@myoc/excalidraw 0.19.503 → 0.19.504
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +70 -13
- package/dist/dev/{chunk-YVUPBWS6.js → chunk-Z5DMFRJ5.js} +4 -4
- package/dist/dev/{chunk-YVUPBWS6.js.map → chunk-Z5DMFRJ5.js.map} +1 -1
- package/dist/dev/data/{image-I24D3FB6.js → image-ZR5DXOGS.js} +2 -2
- package/dist/dev/index.css.map +2 -2
- package/dist/dev/index.js +334 -372
- package/dist/dev/index.js.map +4 -4
- package/dist/prod/{chunk-2VV6LBBJ.js → chunk-44LLHLSZ.js} +2 -2
- package/dist/prod/data/{image-IFJHSHJP.js → image-XPYUWCHN.js} +1 -1
- package/dist/prod/index.js +19 -19
- package/dist/types/element/src/arrange-algorithms/maxRects.d.ts +16 -0
- package/dist/types/element/src/linearElementEditor.d.ts +1 -1
- package/dist/types/element/src/types.d.ts +1 -1
- package/dist/types/excalidraw/actions/actionAlign.d.ts +8 -8
- package/dist/types/excalidraw/actions/actionArrange.d.ts +2 -2
- package/dist/types/excalidraw/actions/actionCanvas.d.ts +16 -16
- package/dist/types/excalidraw/actions/actionClipboard.d.ts +2 -2
- package/dist/types/excalidraw/actions/actionDeleteSelected.d.ts +2 -2
- package/dist/types/excalidraw/actions/actionDistribute.d.ts +4 -4
- package/dist/types/excalidraw/actions/actionDuplicateSelection.d.ts +2 -2
- package/dist/types/excalidraw/actions/actionElementLock.d.ts +2 -2
- package/dist/types/excalidraw/actions/actionExport.d.ts +12 -12
- package/dist/types/excalidraw/actions/actionFlip.d.ts +4 -4
- package/dist/types/excalidraw/actions/actionFrame.d.ts +2 -2
- package/dist/types/excalidraw/actions/actionGroup.d.ts +4 -4
- package/dist/types/excalidraw/actions/actionLink.d.ts +2 -2
- package/dist/types/excalidraw/actions/actionMenu.d.ts +2 -2
- package/dist/types/excalidraw/actions/actionProperties.d.ts +5 -5
- package/dist/types/excalidraw/actions/actionSelectAll.d.ts +3 -3
- package/dist/types/excalidraw/actions/actionSmartZoom.d.ts +2 -2
- package/dist/types/excalidraw/actions/actionStyles.d.ts +4 -4
- package/dist/types/excalidraw/actions/actionToggleArrowBinding.d.ts +1 -1
- package/dist/types/excalidraw/actions/actionToggleGridMode.d.ts +2 -2
- package/dist/types/excalidraw/actions/actionToggleObjectsSnapMode.d.ts +2 -2
- package/dist/types/excalidraw/actions/actionToggleSearchMenu.d.ts +2 -2
- package/dist/types/excalidraw/actions/actionToggleStats.d.ts +2 -2
- package/dist/types/excalidraw/actions/actionToggleViewMode.d.ts +2 -2
- package/dist/types/excalidraw/actions/actionToggleZenMode.d.ts +2 -2
- package/dist/types/excalidraw/actions/actionZindex.d.ts +8 -8
- package/dist/types/excalidraw/appState.d.ts +7 -7
- package/dist/types/excalidraw/components/App.d.ts +2 -1
- package/dist/types/excalidraw/components/shapes.d.ts +263 -0
- package/dist/types/excalidraw/data/blob.d.ts +12 -12
- package/dist/types/excalidraw/data/json.d.ts +6 -6
- package/dist/types/excalidraw/editorPreferences.d.ts +11 -0
- package/dist/types/excalidraw/index.d.ts +1 -0
- package/dist/types/excalidraw/types.d.ts +21 -0
- package/package.json +4 -4
- /package/dist/dev/data/{image-I24D3FB6.js.map → image-ZR5DXOGS.js.map} +0 -0
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
export interface Block {
|
|
2
|
+
w: number;
|
|
3
|
+
h: number;
|
|
4
|
+
fit?: {
|
|
5
|
+
x: number;
|
|
6
|
+
y: number;
|
|
7
|
+
} | null;
|
|
8
|
+
}
|
|
9
|
+
export type MaxRectsHeuristic = "best-area-fit" | "center-distance";
|
|
10
|
+
export declare const packBlocksMaxRects: <T extends Block>(blocks: T[], options?: {
|
|
11
|
+
gap?: number;
|
|
12
|
+
heuristic?: MaxRectsHeuristic;
|
|
13
|
+
}) => {
|
|
14
|
+
width: number;
|
|
15
|
+
height: number;
|
|
16
|
+
} | null;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { type GlobalPoint, type LocalPoint } from "@excalidraw/math";
|
|
2
|
-
import { type Store } from "@excalidraw/element";
|
|
3
2
|
import type { AppState, PointerCoords, InteractiveCanvasAppState, AppClassProperties, NullableGridSize, Zoom } from "@excalidraw/excalidraw/types";
|
|
4
3
|
import type { Bounds } from "@excalidraw/common";
|
|
5
4
|
import type { Scene } from "./Scene";
|
|
5
|
+
import type { Store } from "./store";
|
|
6
6
|
import type { NonDeleted, ExcalidrawLinearElement, ExcalidrawElement, ExcalidrawTextElementWithContainer, ElementsMap, NonDeletedSceneElementsMap, FixedPointBinding, ExcalidrawElbowArrowElement, PointsPositionUpdates } from "./types";
|
|
7
7
|
export declare class LinearElementEditor {
|
|
8
8
|
readonly elementId: ExcalidrawElement["id"] & {
|
|
@@ -287,7 +287,7 @@ export type SceneElementsMap = Map<ExcalidrawElement["id"], Ordered<ExcalidrawEl
|
|
|
287
287
|
*/
|
|
288
288
|
export type NonDeletedSceneElementsMap = Map<ExcalidrawElement["id"], Ordered<NonDeletedExcalidrawElement>> & MakeBrand<"NonDeletedSceneElementsMap">;
|
|
289
289
|
export type ElementsMapOrArray = readonly ExcalidrawElement[] | Readonly<ElementsMap>;
|
|
290
|
-
export type ArrangeAlgorithms = "bin-packing";
|
|
290
|
+
export type ArrangeAlgorithms = "bin-packing" | "bin-packing-center" | "bin-packing-max-rects" | "bin-packing-binary-tree";
|
|
291
291
|
export type ExcalidrawLinearElementSubType = "line" | "sharpArrow" | "curvedArrow" | "elbowArrow";
|
|
292
292
|
export type ConvertibleGenericTypes = "rectangle" | "diamond" | "ellipse";
|
|
293
293
|
export type ConvertibleLinearTypes = ExcalidrawLinearElementSubType;
|
|
@@ -14,10 +14,10 @@ export declare const actionAlignTop: {
|
|
|
14
14
|
elements: ExcalidrawElement[];
|
|
15
15
|
captureUpdate: "IMMEDIATELY";
|
|
16
16
|
};
|
|
17
|
-
keyTest: (event:
|
|
17
|
+
keyTest: (event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean;
|
|
18
18
|
PanelComponent: ({ elements, appState, updateData, app }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
|
|
19
19
|
} & {
|
|
20
|
-
keyTest?: ((event:
|
|
20
|
+
keyTest?: ((event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean) | undefined;
|
|
21
21
|
};
|
|
22
22
|
export declare const actionAlignBottom: {
|
|
23
23
|
name: "alignBottom";
|
|
@@ -32,10 +32,10 @@ export declare const actionAlignBottom: {
|
|
|
32
32
|
elements: ExcalidrawElement[];
|
|
33
33
|
captureUpdate: "IMMEDIATELY";
|
|
34
34
|
};
|
|
35
|
-
keyTest: (event:
|
|
35
|
+
keyTest: (event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean;
|
|
36
36
|
PanelComponent: ({ elements, appState, updateData, app }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
|
|
37
37
|
} & {
|
|
38
|
-
keyTest?: ((event:
|
|
38
|
+
keyTest?: ((event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean) | undefined;
|
|
39
39
|
};
|
|
40
40
|
export declare const actionAlignLeft: {
|
|
41
41
|
name: "alignLeft";
|
|
@@ -50,10 +50,10 @@ export declare const actionAlignLeft: {
|
|
|
50
50
|
elements: ExcalidrawElement[];
|
|
51
51
|
captureUpdate: "IMMEDIATELY";
|
|
52
52
|
};
|
|
53
|
-
keyTest: (event:
|
|
53
|
+
keyTest: (event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean;
|
|
54
54
|
PanelComponent: ({ elements, appState, updateData, app }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
|
|
55
55
|
} & {
|
|
56
|
-
keyTest?: ((event:
|
|
56
|
+
keyTest?: ((event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean) | undefined;
|
|
57
57
|
};
|
|
58
58
|
export declare const actionAlignRight: {
|
|
59
59
|
name: "alignRight";
|
|
@@ -68,10 +68,10 @@ export declare const actionAlignRight: {
|
|
|
68
68
|
elements: ExcalidrawElement[];
|
|
69
69
|
captureUpdate: "IMMEDIATELY";
|
|
70
70
|
};
|
|
71
|
-
keyTest: (event:
|
|
71
|
+
keyTest: (event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean;
|
|
72
72
|
PanelComponent: ({ elements, appState, updateData, app }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
|
|
73
73
|
} & {
|
|
74
|
-
keyTest?: ((event:
|
|
74
|
+
keyTest?: ((event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean) | undefined;
|
|
75
75
|
};
|
|
76
76
|
export declare const actionAlignVerticallyCentered: {
|
|
77
77
|
name: "alignVerticallyCentered";
|
|
@@ -22,8 +22,8 @@ export declare const actionArrangeElements: {
|
|
|
22
22
|
elements: ExcalidrawElement[];
|
|
23
23
|
captureUpdate: "IMMEDIATELY";
|
|
24
24
|
};
|
|
25
|
-
keyTest: (event:
|
|
25
|
+
keyTest: (event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean;
|
|
26
26
|
PanelComponent: ({ updateData }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
|
|
27
27
|
} & {
|
|
28
|
-
keyTest?: ((event:
|
|
28
|
+
keyTest?: ((event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean) | undefined;
|
|
29
29
|
};
|
|
@@ -184,9 +184,9 @@ export declare const actionZoomIn: {
|
|
|
184
184
|
captureUpdate: "EVENTUALLY";
|
|
185
185
|
};
|
|
186
186
|
PanelComponent: ({ updateData, appState }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
|
|
187
|
-
keyTest: (event:
|
|
187
|
+
keyTest: (event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean;
|
|
188
188
|
} & {
|
|
189
|
-
keyTest?: ((event:
|
|
189
|
+
keyTest?: ((event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean) | undefined;
|
|
190
190
|
};
|
|
191
191
|
export declare const actionZoomOut: {
|
|
192
192
|
name: "zoomOut";
|
|
@@ -368,9 +368,9 @@ export declare const actionZoomOut: {
|
|
|
368
368
|
captureUpdate: "EVENTUALLY";
|
|
369
369
|
};
|
|
370
370
|
PanelComponent: ({ updateData, appState }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
|
|
371
|
-
keyTest: (event:
|
|
371
|
+
keyTest: (event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean;
|
|
372
372
|
} & {
|
|
373
|
-
keyTest?: ((event:
|
|
373
|
+
keyTest?: ((event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean) | undefined;
|
|
374
374
|
};
|
|
375
375
|
export declare const actionResetZoom: {
|
|
376
376
|
name: "resetZoom";
|
|
@@ -552,9 +552,9 @@ export declare const actionResetZoom: {
|
|
|
552
552
|
captureUpdate: "EVENTUALLY";
|
|
553
553
|
};
|
|
554
554
|
PanelComponent: ({ updateData, appState }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
|
|
555
|
-
keyTest: (event:
|
|
555
|
+
keyTest: (event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean;
|
|
556
556
|
} & {
|
|
557
|
-
keyTest?: ((event:
|
|
557
|
+
keyTest?: ((event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean) | undefined;
|
|
558
558
|
};
|
|
559
559
|
export declare const zoomToFitBounds: ({ bounds, appState, canvasOffsets, fitToViewport, viewportZoomFactor, minZoom, maxZoom, }: {
|
|
560
560
|
bounds: SceneBounds;
|
|
@@ -1096,9 +1096,9 @@ export declare const actionZoomToFitSelectionInViewport: {
|
|
|
1096
1096
|
};
|
|
1097
1097
|
captureUpdate: "EVENTUALLY";
|
|
1098
1098
|
};
|
|
1099
|
-
keyTest: (event:
|
|
1099
|
+
keyTest: (event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean;
|
|
1100
1100
|
} & {
|
|
1101
|
-
keyTest?: ((event:
|
|
1101
|
+
keyTest?: ((event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean) | undefined;
|
|
1102
1102
|
};
|
|
1103
1103
|
export declare const actionZoomToFitSelection: {
|
|
1104
1104
|
name: "zoomToFitSelection";
|
|
@@ -1278,9 +1278,9 @@ export declare const actionZoomToFitSelection: {
|
|
|
1278
1278
|
};
|
|
1279
1279
|
captureUpdate: "EVENTUALLY";
|
|
1280
1280
|
};
|
|
1281
|
-
keyTest: (event:
|
|
1281
|
+
keyTest: (event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean;
|
|
1282
1282
|
} & {
|
|
1283
|
-
keyTest?: ((event:
|
|
1283
|
+
keyTest?: ((event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean) | undefined;
|
|
1284
1284
|
};
|
|
1285
1285
|
export declare const actionZoomToFit: {
|
|
1286
1286
|
name: "zoomToFit";
|
|
@@ -1461,9 +1461,9 @@ export declare const actionZoomToFit: {
|
|
|
1461
1461
|
};
|
|
1462
1462
|
captureUpdate: "EVENTUALLY";
|
|
1463
1463
|
};
|
|
1464
|
-
keyTest: (event:
|
|
1464
|
+
keyTest: (event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean;
|
|
1465
1465
|
} & {
|
|
1466
|
-
keyTest?: ((event:
|
|
1466
|
+
keyTest?: ((event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean) | undefined;
|
|
1467
1467
|
};
|
|
1468
1468
|
export declare const actionToggleTheme: import("./types").Action<import("@excalidraw/element/types").Theme> & {
|
|
1469
1469
|
keyTest?: ((event: React.KeyboardEvent | KeyboardEvent, appState: AppState, elements: readonly ExcalidrawElement[], app: import("../types").AppClassProperties) => boolean) | undefined;
|
|
@@ -1636,9 +1636,9 @@ export declare const actionToggleEraserTool: {
|
|
|
1636
1636
|
};
|
|
1637
1637
|
captureUpdate: "IMMEDIATELY";
|
|
1638
1638
|
};
|
|
1639
|
-
keyTest: (event:
|
|
1639
|
+
keyTest: (event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean;
|
|
1640
1640
|
} & {
|
|
1641
|
-
keyTest?: ((event:
|
|
1641
|
+
keyTest?: ((event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean) | undefined;
|
|
1642
1642
|
};
|
|
1643
1643
|
export declare const actionToggleLassoTool: {
|
|
1644
1644
|
name: "toggleLassoTool";
|
|
@@ -1983,7 +1983,7 @@ export declare const actionToggleHandTool: {
|
|
|
1983
1983
|
};
|
|
1984
1984
|
captureUpdate: "IMMEDIATELY";
|
|
1985
1985
|
};
|
|
1986
|
-
keyTest: (event:
|
|
1986
|
+
keyTest: (event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean;
|
|
1987
1987
|
} & {
|
|
1988
|
-
keyTest?: ((event:
|
|
1988
|
+
keyTest?: ((event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean) | undefined;
|
|
1989
1989
|
};
|
|
@@ -396,10 +396,10 @@ export declare const actionCopyAsPng: {
|
|
|
396
396
|
captureUpdate: "EVENTUALLY";
|
|
397
397
|
}>;
|
|
398
398
|
predicate: (elements: readonly import("@excalidraw/element/types").ExcalidrawElement[]) => boolean;
|
|
399
|
-
keyTest: (event:
|
|
399
|
+
keyTest: (event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean;
|
|
400
400
|
keywords: string[];
|
|
401
401
|
} & {
|
|
402
|
-
keyTest?: ((event:
|
|
402
|
+
keyTest?: ((event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean) | undefined;
|
|
403
403
|
};
|
|
404
404
|
export declare const copyText: {
|
|
405
405
|
name: "copyText";
|
|
@@ -541,8 +541,8 @@ export declare const actionDeleteSelected: {
|
|
|
541
541
|
};
|
|
542
542
|
captureUpdate: "IMMEDIATELY" | "EVENTUALLY";
|
|
543
543
|
};
|
|
544
|
-
keyTest: (event:
|
|
544
|
+
keyTest: (event: import("react").KeyboardEvent<Element> | KeyboardEvent, appState: AppState, elements: readonly ExcalidrawElement[]) => boolean;
|
|
545
545
|
PanelComponent: ({ elements, appState, updateData, app }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
|
|
546
546
|
} & {
|
|
547
|
-
keyTest?: ((event:
|
|
547
|
+
keyTest?: ((event: import("react").KeyboardEvent<Element> | KeyboardEvent, appState: AppState, elements: readonly ExcalidrawElement[]) => boolean) | undefined;
|
|
548
548
|
};
|
|
@@ -11,10 +11,10 @@ export declare const distributeHorizontally: {
|
|
|
11
11
|
elements: ExcalidrawElement[];
|
|
12
12
|
captureUpdate: "IMMEDIATELY";
|
|
13
13
|
};
|
|
14
|
-
keyTest: (event:
|
|
14
|
+
keyTest: (event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean;
|
|
15
15
|
PanelComponent: ({ elements, appState, updateData, app }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
|
|
16
16
|
} & {
|
|
17
|
-
keyTest?: ((event:
|
|
17
|
+
keyTest?: ((event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean) | undefined;
|
|
18
18
|
};
|
|
19
19
|
export declare const distributeVertically: {
|
|
20
20
|
name: "distributeVertically";
|
|
@@ -27,8 +27,8 @@ export declare const distributeVertically: {
|
|
|
27
27
|
elements: ExcalidrawElement[];
|
|
28
28
|
captureUpdate: "IMMEDIATELY";
|
|
29
29
|
};
|
|
30
|
-
keyTest: (event:
|
|
30
|
+
keyTest: (event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean;
|
|
31
31
|
PanelComponent: ({ elements, appState, updateData, app }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
|
|
32
32
|
} & {
|
|
33
|
-
keyTest?: ((event:
|
|
33
|
+
keyTest?: ((event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean) | undefined;
|
|
34
34
|
};
|
|
@@ -10,8 +10,8 @@ export declare const actionDuplicateSelection: {
|
|
|
10
10
|
appState: import("../types").AppState;
|
|
11
11
|
captureUpdate: "IMMEDIATELY";
|
|
12
12
|
};
|
|
13
|
-
keyTest: (event:
|
|
13
|
+
keyTest: (event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean;
|
|
14
14
|
PanelComponent: ({ elements, appState, updateData, app }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
|
|
15
15
|
} & {
|
|
16
|
-
keyTest?: ((event:
|
|
16
|
+
keyTest?: ((event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean) | undefined;
|
|
17
17
|
};
|
|
@@ -178,9 +178,9 @@ export declare const actionToggleElementLock: {
|
|
|
178
178
|
};
|
|
179
179
|
captureUpdate: "IMMEDIATELY";
|
|
180
180
|
};
|
|
181
|
-
keyTest: (event:
|
|
181
|
+
keyTest: (event: import("react").KeyboardEvent<Element> | KeyboardEvent, appState: AppState, elements: readonly ExcalidrawElement[], app: import("../types").AppClassProperties) => boolean;
|
|
182
182
|
} & {
|
|
183
|
-
keyTest?: ((event:
|
|
183
|
+
keyTest?: ((event: import("react").KeyboardEvent<Element> | KeyboardEvent, appState: AppState, elements: readonly ExcalidrawElement[], app: import("../types").AppClassProperties) => boolean) | undefined;
|
|
184
184
|
};
|
|
185
185
|
export declare const actionUnlockAllElements: {
|
|
186
186
|
name: "unlockAllElements";
|
|
@@ -37,9 +37,9 @@ export declare const actionSaveToActiveFile: {
|
|
|
37
37
|
fileHandle?: undefined;
|
|
38
38
|
};
|
|
39
39
|
}>;
|
|
40
|
-
keyTest: (event:
|
|
40
|
+
keyTest: (event: import("react").KeyboardEvent<Element> | KeyboardEvent) => false;
|
|
41
41
|
} & {
|
|
42
|
-
keyTest?: ((event:
|
|
42
|
+
keyTest?: ((event: import("react").KeyboardEvent<Element> | KeyboardEvent) => false) | undefined;
|
|
43
43
|
};
|
|
44
44
|
export declare const actionSaveFileToDisk: {
|
|
45
45
|
name: "saveFileToDisk";
|
|
@@ -67,10 +67,10 @@ export declare const actionSaveFileToDisk: {
|
|
|
67
67
|
fileHandle?: undefined;
|
|
68
68
|
};
|
|
69
69
|
}>;
|
|
70
|
-
keyTest: (event:
|
|
70
|
+
keyTest: (event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean;
|
|
71
71
|
PanelComponent: ({ updateData }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
|
|
72
72
|
} & {
|
|
73
|
-
keyTest?: ((event:
|
|
73
|
+
keyTest?: ((event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean) | undefined;
|
|
74
74
|
};
|
|
75
75
|
export declare const actionLoadScene: {
|
|
76
76
|
name: "loadScene";
|
|
@@ -157,6 +157,12 @@ export declare const actionLoadScene: {
|
|
|
157
157
|
currentItemArrowType: "sharp" | "round" | "elbow";
|
|
158
158
|
bindMode: import("@excalidraw/element/types").BindMode;
|
|
159
159
|
gridSize: number;
|
|
160
|
+
gridModeEnabled: boolean;
|
|
161
|
+
objectsSnapModeEnabled: boolean;
|
|
162
|
+
wheelZoomsOnDefault?: boolean | undefined;
|
|
163
|
+
selectedElementsAreBeingDragged: boolean;
|
|
164
|
+
gridStep: number;
|
|
165
|
+
currentHoveredFontFamily: import("@excalidraw/element/types").FontFamilyValues | null;
|
|
160
166
|
contextMenu: {
|
|
161
167
|
items: import("../components/ContextMenu").ContextMenuItems;
|
|
162
168
|
top: number;
|
|
@@ -167,7 +173,6 @@ export declare const actionLoadScene: {
|
|
|
167
173
|
myocSimplifiedMode: boolean;
|
|
168
174
|
dontResizeLimitMBs: number;
|
|
169
175
|
hideMainMenus: boolean;
|
|
170
|
-
wheelZoomsOnDefault?: boolean | undefined;
|
|
171
176
|
arrangeConfiguration: {
|
|
172
177
|
algorithm: import("@excalidraw/element/types").ArrangeAlgorithms;
|
|
173
178
|
gap: number;
|
|
@@ -202,7 +207,6 @@ export declare const actionLoadScene: {
|
|
|
202
207
|
currentItemTextAlign: import("@excalidraw/element/types").TextAlign;
|
|
203
208
|
currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
204
209
|
currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
205
|
-
currentHoveredFontFamily: import("@excalidraw/element/types").FontFamilyValues | null;
|
|
206
210
|
currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
|
|
207
211
|
cursorButton: "up" | "down";
|
|
208
212
|
scrolledOutside: boolean;
|
|
@@ -218,14 +222,11 @@ export declare const actionLoadScene: {
|
|
|
218
222
|
previousSelectedElementIds: {
|
|
219
223
|
[id: string]: true;
|
|
220
224
|
};
|
|
221
|
-
selectedElementsAreBeingDragged: boolean;
|
|
222
225
|
toast: {
|
|
223
226
|
message: React.ReactNode;
|
|
224
227
|
closable?: boolean;
|
|
225
228
|
duration?: number;
|
|
226
229
|
} | null;
|
|
227
|
-
gridStep: number;
|
|
228
|
-
gridModeEnabled: boolean;
|
|
229
230
|
fileHandle: FileSystemFileHandle | null;
|
|
230
231
|
stats: {
|
|
231
232
|
open: boolean;
|
|
@@ -236,7 +237,6 @@ export declare const actionLoadScene: {
|
|
|
236
237
|
x: number;
|
|
237
238
|
y: number;
|
|
238
239
|
} | null;
|
|
239
|
-
objectsSnapModeEnabled: boolean;
|
|
240
240
|
userToFollow: import("../types").UserToFollow | null;
|
|
241
241
|
followedBy: Set<import("../types").SocketId>;
|
|
242
242
|
lockedMultiSelections: {
|
|
@@ -416,9 +416,9 @@ export declare const actionLoadScene: {
|
|
|
416
416
|
files: BinaryFiles;
|
|
417
417
|
captureUpdate: "EVENTUALLY";
|
|
418
418
|
}>;
|
|
419
|
-
keyTest: (event:
|
|
419
|
+
keyTest: (event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean;
|
|
420
420
|
} & {
|
|
421
|
-
keyTest?: ((event:
|
|
421
|
+
keyTest?: ((event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean) | undefined;
|
|
422
422
|
};
|
|
423
423
|
export declare const actionExportWithDarkMode: import("./types").Action<boolean> & {
|
|
424
424
|
keyTest?: ((event: React.KeyboardEvent | KeyboardEvent, appState: AppState, elements: readonly ExcalidrawElement[], app: AppClassProperties) => boolean) | undefined;
|
|
@@ -12,9 +12,9 @@ export declare const actionFlipHorizontal: {
|
|
|
12
12
|
appState: Readonly<AppState>;
|
|
13
13
|
captureUpdate: "IMMEDIATELY";
|
|
14
14
|
};
|
|
15
|
-
keyTest: (event:
|
|
15
|
+
keyTest: (event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean;
|
|
16
16
|
} & {
|
|
17
|
-
keyTest?: ((event:
|
|
17
|
+
keyTest?: ((event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean) | undefined;
|
|
18
18
|
};
|
|
19
19
|
export declare const actionFlipVertical: {
|
|
20
20
|
name: "flipVertical";
|
|
@@ -28,7 +28,7 @@ export declare const actionFlipVertical: {
|
|
|
28
28
|
appState: Readonly<AppState>;
|
|
29
29
|
captureUpdate: "IMMEDIATELY";
|
|
30
30
|
};
|
|
31
|
-
keyTest: (event:
|
|
31
|
+
keyTest: (event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean;
|
|
32
32
|
} & {
|
|
33
|
-
keyTest?: ((event:
|
|
33
|
+
keyTest?: ((event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean) | undefined;
|
|
34
34
|
};
|
|
@@ -725,9 +725,9 @@ export declare const actionSetFrameAsActiveTool: {
|
|
|
725
725
|
};
|
|
726
726
|
captureUpdate: "EVENTUALLY";
|
|
727
727
|
};
|
|
728
|
-
keyTest: (event:
|
|
728
|
+
keyTest: (event: import("react").KeyboardEvent<Element> | KeyboardEvent) => false;
|
|
729
729
|
} & {
|
|
730
|
-
keyTest?: ((event:
|
|
730
|
+
keyTest?: ((event: import("react").KeyboardEvent<Element> | KeyboardEvent) => false) | undefined;
|
|
731
731
|
};
|
|
732
732
|
export declare const actionWrapSelectionInFrame: {
|
|
733
733
|
name: "wrapSelectionInFrame";
|
|
@@ -178,10 +178,10 @@ export declare const actionGroup: {
|
|
|
178
178
|
captureUpdate: "IMMEDIATELY";
|
|
179
179
|
};
|
|
180
180
|
predicate: (elements: readonly ExcalidrawElement[], appState: AppState, _: import("../types").ExcalidrawProps, app: AppClassProperties) => boolean;
|
|
181
|
-
keyTest: (event:
|
|
181
|
+
keyTest: (event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean;
|
|
182
182
|
PanelComponent: ({ elements, appState, updateData, app }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
|
|
183
183
|
} & {
|
|
184
|
-
keyTest?: ((event:
|
|
184
|
+
keyTest?: ((event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean) | undefined;
|
|
185
185
|
};
|
|
186
186
|
export declare const actionUngroup: {
|
|
187
187
|
name: "ungroup";
|
|
@@ -360,9 +360,9 @@ export declare const actionUngroup: {
|
|
|
360
360
|
elements: OrderedExcalidrawElement[];
|
|
361
361
|
captureUpdate: "IMMEDIATELY";
|
|
362
362
|
};
|
|
363
|
-
keyTest: (event:
|
|
363
|
+
keyTest: (event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean;
|
|
364
364
|
predicate: (elements: readonly ExcalidrawElement[], appState: AppState) => boolean;
|
|
365
365
|
PanelComponent: ({ elements, appState, updateData }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
|
|
366
366
|
} & {
|
|
367
|
-
keyTest?: ((event:
|
|
367
|
+
keyTest?: ((event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean) | undefined;
|
|
368
368
|
};
|
|
@@ -176,9 +176,9 @@ export declare const actionLink: {
|
|
|
176
176
|
category: "hyperlink";
|
|
177
177
|
action: string;
|
|
178
178
|
};
|
|
179
|
-
keyTest: (event:
|
|
179
|
+
keyTest: (event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean;
|
|
180
180
|
predicate: (elements: readonly import("@excalidraw/element/types").ExcalidrawElement[], appState: import("../types").AppState) => boolean;
|
|
181
181
|
PanelComponent: ({ elements, appState, updateData }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
|
|
182
182
|
} & {
|
|
183
|
-
keyTest?: ((event:
|
|
183
|
+
keyTest?: ((event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean) | undefined;
|
|
184
184
|
};
|
|
@@ -165,7 +165,7 @@ export declare const actionShortcuts: {
|
|
|
165
165
|
};
|
|
166
166
|
captureUpdate: "EVENTUALLY";
|
|
167
167
|
};
|
|
168
|
-
keyTest: (event:
|
|
168
|
+
keyTest: (event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean;
|
|
169
169
|
} & {
|
|
170
|
-
keyTest?: ((event:
|
|
170
|
+
keyTest?: ((event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean) | undefined;
|
|
171
171
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { LinearElementEditor } from "@excalidraw/element";
|
|
1
|
+
import { LinearElementEditor } from "@excalidraw/element/linearElementEditor";
|
|
2
2
|
import type { Arrowhead, ExcalidrawBindableElement, ExcalidrawElement, ExcalidrawLinearElement, ExcalidrawTextElement, FontFamilyValues, TextAlign } from "@excalidraw/element/types";
|
|
3
3
|
import type { AppClassProperties, AppState, Primitive } from "../types";
|
|
4
4
|
export declare const changeProperty: (elements: readonly ExcalidrawElement[], appState: AppState, callback: (element: ExcalidrawElement) => ExcalidrawElement, includeBoundText?: boolean) => ExcalidrawElement[];
|
|
@@ -202,9 +202,9 @@ export declare const actionDecreaseFontSize: {
|
|
|
202
202
|
};
|
|
203
203
|
captureUpdate: "IMMEDIATELY";
|
|
204
204
|
};
|
|
205
|
-
keyTest: (event:
|
|
205
|
+
keyTest: (event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean;
|
|
206
206
|
} & {
|
|
207
|
-
keyTest?: ((event:
|
|
207
|
+
keyTest?: ((event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean) | undefined;
|
|
208
208
|
};
|
|
209
209
|
export declare const actionIncreaseFontSize: {
|
|
210
210
|
name: "increaseFontSize";
|
|
@@ -381,9 +381,9 @@ export declare const actionIncreaseFontSize: {
|
|
|
381
381
|
};
|
|
382
382
|
captureUpdate: "IMMEDIATELY";
|
|
383
383
|
};
|
|
384
|
-
keyTest: (event:
|
|
384
|
+
keyTest: (event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean;
|
|
385
385
|
} & {
|
|
386
|
-
keyTest?: ((event:
|
|
386
|
+
keyTest?: ((event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean) | undefined;
|
|
387
387
|
};
|
|
388
388
|
export declare const actionChangeFontFamily: import("./types").Action<{
|
|
389
389
|
currentItemFontFamily: any;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { LinearElementEditor } from "@excalidraw/element";
|
|
1
|
+
import { LinearElementEditor } from "@excalidraw/element/linearElementEditor";
|
|
2
2
|
import type { ExcalidrawElement } from "@excalidraw/element/types";
|
|
3
3
|
export declare const actionSelectAll: {
|
|
4
4
|
name: "selectAll";
|
|
@@ -173,7 +173,7 @@ export declare const actionSelectAll: {
|
|
|
173
173
|
};
|
|
174
174
|
captureUpdate: "IMMEDIATELY";
|
|
175
175
|
};
|
|
176
|
-
keyTest: (event:
|
|
176
|
+
keyTest: (event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean;
|
|
177
177
|
} & {
|
|
178
|
-
keyTest?: ((event:
|
|
178
|
+
keyTest?: ((event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean) | undefined;
|
|
179
179
|
};
|
|
@@ -9,8 +9,8 @@ export declare const actionSmartZoom: {
|
|
|
9
9
|
perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, _: unknown, app: import("../types").AppClassProperties) => {
|
|
10
10
|
captureUpdate: "NEVER";
|
|
11
11
|
};
|
|
12
|
-
keyTest: (event:
|
|
12
|
+
keyTest: (event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean;
|
|
13
13
|
PanelComponent: ({ data, updateData }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
|
|
14
14
|
} & {
|
|
15
|
-
keyTest?: ((event:
|
|
15
|
+
keyTest?: ((event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean) | undefined;
|
|
16
16
|
};
|
|
@@ -174,9 +174,9 @@ export declare const actionCopyStyles: {
|
|
|
174
174
|
};
|
|
175
175
|
captureUpdate: "EVENTUALLY";
|
|
176
176
|
};
|
|
177
|
-
keyTest: (event:
|
|
177
|
+
keyTest: (event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean;
|
|
178
178
|
} & {
|
|
179
|
-
keyTest?: ((event:
|
|
179
|
+
keyTest?: ((event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean) | undefined;
|
|
180
180
|
};
|
|
181
181
|
export declare const actionPasteStyles: {
|
|
182
182
|
name: "pasteStyles";
|
|
@@ -192,7 +192,7 @@ export declare const actionPasteStyles: {
|
|
|
192
192
|
elements: import("@excalidraw/element/types").OrderedExcalidrawElement[];
|
|
193
193
|
captureUpdate: "IMMEDIATELY";
|
|
194
194
|
};
|
|
195
|
-
keyTest: (event:
|
|
195
|
+
keyTest: (event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean;
|
|
196
196
|
} & {
|
|
197
|
-
keyTest?: ((event:
|
|
197
|
+
keyTest?: ((event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean) | undefined;
|
|
198
198
|
};
|
|
@@ -8,7 +8,7 @@ export declare const actionToggleArrowBinding: {
|
|
|
8
8
|
};
|
|
9
9
|
perform(elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>): {
|
|
10
10
|
appState: {
|
|
11
|
-
bindingPreference: "
|
|
11
|
+
bindingPreference: "disabled" | "enabled";
|
|
12
12
|
isBindingEnabled: boolean;
|
|
13
13
|
contextMenu: {
|
|
14
14
|
items: import("../components/ContextMenu").ContextMenuItems;
|
|
@@ -180,7 +180,7 @@ export declare const actionToggleGridMode: {
|
|
|
180
180
|
};
|
|
181
181
|
checked: (appState: AppState) => boolean;
|
|
182
182
|
predicate: (element: readonly import("@excalidraw/element/types").ExcalidrawElement[], appState: AppState, props: import("../types").ExcalidrawProps) => boolean;
|
|
183
|
-
keyTest: (event:
|
|
183
|
+
keyTest: (event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean;
|
|
184
184
|
} & {
|
|
185
|
-
keyTest?: ((event:
|
|
185
|
+
keyTest?: ((event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean) | undefined;
|
|
186
186
|
};
|
|
@@ -178,7 +178,7 @@ export declare const actionToggleObjectsSnapMode: {
|
|
|
178
178
|
};
|
|
179
179
|
checked: (appState: Readonly<import("../types").AppState>) => boolean;
|
|
180
180
|
predicate: (elements: readonly import("@excalidraw/element/types").ExcalidrawElement[], appState: import("../types").AppState, appProps: import("../types").ExcalidrawProps) => boolean;
|
|
181
|
-
keyTest: (event:
|
|
181
|
+
keyTest: (event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean;
|
|
182
182
|
} & {
|
|
183
|
-
keyTest?: ((event:
|
|
183
|
+
keyTest?: ((event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean) | undefined;
|
|
184
184
|
};
|
|
@@ -168,7 +168,7 @@ export declare const actionToggleSearchMenu: {
|
|
|
168
168
|
};
|
|
169
169
|
checked: (appState: AppState) => boolean;
|
|
170
170
|
predicate: (element: readonly import("@excalidraw/element/types").ExcalidrawElement[], appState: AppState, props: import("../types").ExcalidrawProps) => boolean;
|
|
171
|
-
keyTest: (event:
|
|
171
|
+
keyTest: (event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean;
|
|
172
172
|
} & {
|
|
173
|
-
keyTest?: ((event:
|
|
173
|
+
keyTest?: ((event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean) | undefined;
|
|
174
174
|
};
|
|
@@ -177,7 +177,7 @@ export declare const actionToggleStats: {
|
|
|
177
177
|
captureUpdate: "EVENTUALLY";
|
|
178
178
|
};
|
|
179
179
|
checked: (appState: Readonly<import("../types").AppState>) => boolean;
|
|
180
|
-
keyTest: (event:
|
|
180
|
+
keyTest: (event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean;
|
|
181
181
|
} & {
|
|
182
|
-
keyTest?: ((event:
|
|
182
|
+
keyTest?: ((event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean) | undefined;
|
|
183
183
|
};
|
|
@@ -178,8 +178,8 @@ export declare const actionToggleViewMode: {
|
|
|
178
178
|
};
|
|
179
179
|
checked: (appState: Readonly<import("../types").AppState>) => boolean;
|
|
180
180
|
predicate: (elements: readonly import("@excalidraw/element/types").ExcalidrawElement[], appState: import("../types").AppState, appProps: import("../types").ExcalidrawProps) => boolean;
|
|
181
|
-
keyTest: (event:
|
|
181
|
+
keyTest: (event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean;
|
|
182
182
|
PanelComponent: ({ data, updateData, appState }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
|
|
183
183
|
} & {
|
|
184
|
-
keyTest?: ((event:
|
|
184
|
+
keyTest?: ((event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean) | undefined;
|
|
185
185
|
};
|
|
@@ -178,7 +178,7 @@ export declare const actionToggleZenMode: {
|
|
|
178
178
|
};
|
|
179
179
|
checked: (appState: Readonly<import("../types").AppState>) => boolean;
|
|
180
180
|
predicate: (elements: readonly import("@excalidraw/element/types").ExcalidrawElement[], appState: import("../types").AppState, appProps: import("../types").ExcalidrawProps, app: import("../types").AppClassProperties) => boolean;
|
|
181
|
-
keyTest: (event:
|
|
181
|
+
keyTest: (event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean;
|
|
182
182
|
} & {
|
|
183
|
-
keyTest?: ((event:
|
|
183
|
+
keyTest?: ((event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean) | undefined;
|
|
184
184
|
};
|