@dwelle/excalidraw 0.5.0-8cb033d → 0.5.0-90f2d4e
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/dist/dev/{chunk-C6WW3IWU.js → chunk-BIYCCCC4.js} +14 -4
- package/dist/dev/chunk-BIYCCCC4.js.map +7 -0
- package/dist/dev/chunk-QW2KPMGE.js +7 -0
- package/dist/dev/chunk-QW2KPMGE.js.map +7 -0
- package/dist/dev/{chunk-2LNRWI74.js → chunk-VPDGV5DO.js} +9679 -8756
- package/dist/dev/chunk-VPDGV5DO.js.map +7 -0
- package/dist/dev/data/{image-7QZI7GM4.js → image-RC4Z3PZK.js} +3 -3
- package/dist/dev/index.css +695 -506
- package/dist/dev/index.css.map +3 -3
- package/dist/dev/index.js +4223 -2821
- package/dist/dev/index.js.map +4 -4
- package/dist/dev/locales/{en-VFJV7E2V.js → en-XLJO5VTH.js} +2 -2
- package/dist/dev/subset-shared.chunk.js +1 -1
- package/dist/dev/subset-worker.chunk.js +1 -1
- package/dist/prod/chunk-DUG5AXRR.js +33 -0
- package/dist/prod/chunk-M2OFWNPH.js +7 -0
- package/dist/prod/{chunk-O65DDAOS.js → chunk-SPUFWQ3U.js} +4 -4
- package/dist/prod/data/image-W7J67QSB.js +1 -0
- package/dist/prod/index.css +1 -1
- package/dist/prod/index.js +20 -20
- package/dist/prod/locales/{en-UUHXMMMY.js → en-DMU2KFKH.js} +1 -1
- package/dist/prod/subset-shared.chunk.js +1 -1
- package/dist/prod/subset-worker.chunk.js +1 -1
- package/dist/types/common/src/constants.d.ts +38 -6
- package/dist/types/common/src/utils.d.ts +6 -5
- package/dist/types/element/src/Scene.d.ts +7 -3
- package/dist/types/element/src/align.d.ts +2 -1
- package/dist/types/element/src/binding.d.ts +10 -7
- package/dist/types/element/src/bounds.d.ts +12 -4
- package/dist/types/element/src/collision.d.ts +18 -12
- package/dist/types/element/src/cropElement.d.ts +1 -1
- package/dist/types/element/src/delta.d.ts +41 -9
- package/dist/types/element/src/distance.d.ts +2 -2
- package/dist/types/element/src/distribute.d.ts +2 -1
- package/dist/types/element/src/fractionalIndex.d.ts +8 -2
- package/dist/types/element/src/frame.d.ts +2 -2
- package/dist/types/element/src/groups.d.ts +1 -0
- package/dist/types/element/src/index.d.ts +2 -3
- package/dist/types/element/src/linearElementEditor.d.ts +13 -15
- package/dist/types/element/src/mutateElement.d.ts +1 -1
- package/dist/types/element/src/newElement.d.ts +2 -1
- package/dist/types/element/src/positionElementsOnGrid.d.ts +2 -0
- package/dist/types/element/src/renderElement.d.ts +4 -1
- package/dist/types/element/src/resizeElements.d.ts +1 -0
- package/dist/types/element/src/selection.d.ts +1 -1
- package/dist/types/element/src/shape.d.ts +42 -0
- package/dist/types/element/src/sizeHelpers.d.ts +2 -1
- package/dist/types/element/src/store.d.ts +19 -9
- package/dist/types/element/src/textElement.d.ts +1 -1
- package/dist/types/element/src/transformHandles.d.ts +4 -4
- package/dist/types/element/src/typeChecks.d.ts +15 -1
- package/dist/types/element/src/types.d.ts +8 -3
- package/dist/types/element/src/utils.d.ts +16 -6
- package/dist/types/excalidraw/actions/actionAddToLibrary.d.ts +15 -18
- package/dist/types/excalidraw/actions/actionAlign.d.ts +8 -8
- package/dist/types/excalidraw/actions/actionBoundText.d.ts +10 -12
- package/dist/types/excalidraw/actions/actionCanvas.d.ts +158 -170
- package/dist/types/excalidraw/actions/actionClipboard.d.ts +38 -42
- package/dist/types/excalidraw/actions/actionCropEditor.d.ts +5 -6
- package/dist/types/excalidraw/actions/actionDeleteSelected.d.ts +21 -23
- 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/actionElementLink.d.ts +4 -5
- package/dist/types/excalidraw/actions/actionElementLock.d.ts +12 -14
- package/dist/types/excalidraw/actions/actionEmbeddable.d.ts +5 -6
- package/dist/types/excalidraw/actions/actionExport.d.ts +130 -139
- package/dist/types/excalidraw/actions/actionFinalize.d.ts +61 -22
- package/dist/types/excalidraw/actions/actionFlip.d.ts +4 -4
- package/dist/types/excalidraw/actions/actionFrame.d.ts +70 -74
- package/dist/types/excalidraw/actions/actionGroup.d.ts +16 -18
- package/dist/types/excalidraw/actions/actionLinearEditor.d.ts +532 -9
- package/dist/types/excalidraw/actions/actionLink.d.ts +6 -7
- package/dist/types/excalidraw/actions/actionMenu.d.ts +16 -19
- package/dist/types/excalidraw/actions/actionNavigate.d.ts +10 -12
- package/dist/types/excalidraw/actions/actionProperties.d.ts +107 -105
- package/dist/types/excalidraw/actions/actionSelectAll.d.ts +8 -9
- package/dist/types/excalidraw/actions/actionStyles.d.ts +9 -10
- package/dist/types/excalidraw/actions/actionToggleGridMode.d.ts +7 -8
- package/dist/types/excalidraw/actions/actionToggleObjectsSnapMode.d.ts +7 -8
- package/dist/types/excalidraw/actions/actionToggleSearchMenu.d.ts +6 -7
- package/dist/types/excalidraw/actions/actionToggleStats.d.ts +7 -8
- package/dist/types/excalidraw/actions/actionToggleViewMode.d.ts +7 -8
- package/dist/types/excalidraw/actions/actionToggleZenMode.d.ts +7 -8
- package/dist/types/excalidraw/actions/actionZindex.d.ts +8 -8
- package/dist/types/excalidraw/actions/index.d.ts +1 -1
- package/dist/types/excalidraw/actions/types.d.ts +2 -1
- package/dist/types/excalidraw/appState.d.ts +21 -20
- package/dist/types/excalidraw/clipboard.d.ts +64 -1
- package/dist/types/excalidraw/components/Actions.d.ts +8 -5
- package/dist/types/excalidraw/components/App.d.ts +21 -27
- package/dist/types/excalidraw/components/ButtonIcon.d.ts +1 -0
- package/dist/types/excalidraw/components/ColorPicker/ColorPicker.d.ts +2 -1
- package/dist/types/excalidraw/components/CommandPalette/CommandPalette.d.ts +1 -0
- package/dist/types/excalidraw/components/Ellipsify.d.ts +4 -0
- package/dist/types/excalidraw/components/FontPicker/FontPicker.d.ts +2 -1
- package/dist/types/excalidraw/components/FontPicker/FontPickerTrigger.d.ts +2 -1
- package/dist/types/excalidraw/components/InlineIcon.d.ts +3 -1
- package/dist/types/excalidraw/components/LibraryMenuSection.d.ts +1 -1
- package/dist/types/excalidraw/components/PropertiesPopover.d.ts +1 -0
- package/dist/types/excalidraw/components/Stats/DragInput.d.ts +11 -1
- package/dist/types/excalidraw/components/TextField.d.ts +1 -0
- package/dist/types/excalidraw/components/icons.d.ts +7 -0
- package/dist/types/excalidraw/components/shapes.d.ts +129 -1
- package/dist/types/excalidraw/data/blob.d.ts +4 -8
- package/dist/types/excalidraw/data/reconcile.d.ts +1 -0
- package/dist/types/excalidraw/data/restore.d.ts +6 -1
- package/dist/types/excalidraw/data/types.d.ts +4 -1
- package/dist/types/excalidraw/eraser/index.d.ts +0 -2
- package/dist/types/excalidraw/history.d.ts +21 -5
- package/dist/types/excalidraw/hooks/useLibraryItemSvg.d.ts +1 -1
- package/dist/types/excalidraw/hooks/useTextEditorFocus.d.ts +14 -0
- package/dist/types/excalidraw/index.d.ts +2 -1
- package/dist/types/excalidraw/lasso/utils.d.ts +2 -1
- package/dist/types/excalidraw/renderer/helpers.d.ts +4 -4
- package/dist/types/excalidraw/renderer/staticScene.d.ts +4 -1
- package/dist/types/excalidraw/scene/Renderer.d.ts +0 -1
- package/dist/types/excalidraw/types.d.ts +12 -9
- package/dist/types/math/src/angle.d.ts +2 -0
- package/dist/types/math/src/constants.d.ts +3 -0
- package/dist/types/math/src/curve.d.ts +32 -0
- package/dist/types/math/src/index.d.ts +1 -0
- package/dist/types/math/src/point.d.ts +1 -1
- package/dist/types/math/src/rectangle.d.ts +2 -0
- package/dist/types/math/src/segment.d.ts +1 -0
- package/dist/types/math/src/vector.d.ts +4 -2
- package/history.ts +107 -44
- package/package.json +9 -9
- package/dist/dev/chunk-2LNRWI74.js.map +0 -7
- package/dist/dev/chunk-C6WW3IWU.js.map +0 -7
- package/dist/dev/chunk-NR24AOHB.js +0 -7
- package/dist/dev/chunk-NR24AOHB.js.map +0 -7
- package/dist/prod/chunk-JUZ2P6ZK.js +0 -33
- package/dist/prod/chunk-ZSOIT5RG.js +0 -7
- package/dist/prod/data/image-RPTD4VCP.js +0 -1
- package/dist/types/element/src/Shape.d.ts +0 -17
- package/dist/types/element/src/ShapeCache.d.ts +0 -25
- package/dist/types/element/src/shapes.d.ts +0 -23
- package/dist/types/excalidraw/visualdebug.d.ts +0 -41
- package/dist/types/utils/src/collision.d.ts +0 -8
- /package/dist/dev/data/{image-7QZI7GM4.js.map → image-RC4Z3PZK.js.map} +0 -0
- /package/dist/dev/locales/{en-VFJV7E2V.js.map → en-XLJO5VTH.js.map} +0 -0
|
@@ -12,13 +12,13 @@ export declare const actionSelectAll: {
|
|
|
12
12
|
perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, value: any, app: import("../types").AppClassProperties) => false | {
|
|
13
13
|
appState: {
|
|
14
14
|
selectedLinearElement: LinearElementEditor | null;
|
|
15
|
+
editingGroupId: string | null;
|
|
15
16
|
selectedElementIds: Readonly<{
|
|
16
17
|
[id: string]: true;
|
|
17
18
|
}>;
|
|
18
19
|
selectedGroupIds: {
|
|
19
20
|
[groupId: string]: boolean;
|
|
20
21
|
};
|
|
21
|
-
editingGroupId: string | null;
|
|
22
22
|
contextMenu: {
|
|
23
23
|
items: import("../components/ContextMenu").ContextMenuItems;
|
|
24
24
|
top: number;
|
|
@@ -29,7 +29,7 @@ export declare const actionSelectAll: {
|
|
|
29
29
|
errorMessage: import("react").ReactNode;
|
|
30
30
|
activeEmbeddable: {
|
|
31
31
|
element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
|
|
32
|
-
state: "
|
|
32
|
+
state: "active" | "hover";
|
|
33
33
|
} | null;
|
|
34
34
|
newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
|
|
35
35
|
resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
@@ -48,7 +48,6 @@ export declare const actionSelectAll: {
|
|
|
48
48
|
editingFrame: string | null;
|
|
49
49
|
elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
|
|
50
50
|
editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
51
|
-
editingLinearElement: LinearElementEditor | null;
|
|
52
51
|
activeTool: {
|
|
53
52
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
54
53
|
locked: boolean;
|
|
@@ -87,7 +86,7 @@ export declare const actionSelectAll: {
|
|
|
87
86
|
value: import("../types").NormalizedZoomValue;
|
|
88
87
|
}>;
|
|
89
88
|
openMenu: "canvas" | "shape" | null;
|
|
90
|
-
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
89
|
+
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
|
|
91
90
|
openSidebar: {
|
|
92
91
|
name: string;
|
|
93
92
|
tab?: string | undefined;
|
|
@@ -96,7 +95,7 @@ export declare const actionSelectAll: {
|
|
|
96
95
|
name: "imageExport" | "help" | "jsonExport";
|
|
97
96
|
} | {
|
|
98
97
|
name: "ttd";
|
|
99
|
-
tab: "text-to-diagram"
|
|
98
|
+
tab: "mermaid" | "text-to-diagram";
|
|
100
99
|
} | {
|
|
101
100
|
name: "commandPalette";
|
|
102
101
|
} | {
|
|
@@ -161,8 +160,7 @@ export declare const actionSelectAll: {
|
|
|
161
160
|
shown: true;
|
|
162
161
|
data: import("../charts").Spreadsheet;
|
|
163
162
|
};
|
|
164
|
-
|
|
165
|
-
showHyperlinkPopup: false | "info" | "editor";
|
|
163
|
+
showHyperlinkPopup: false | "editor" | "info";
|
|
166
164
|
snapLines: readonly import("../snapping").SnapLine[];
|
|
167
165
|
originSnapOffset: {
|
|
168
166
|
x: number;
|
|
@@ -181,10 +179,11 @@ export declare const actionSelectAll: {
|
|
|
181
179
|
lockedMultiSelections: {
|
|
182
180
|
[groupId: string]: true;
|
|
183
181
|
};
|
|
182
|
+
stylesPanelMode: "compact" | "full";
|
|
184
183
|
};
|
|
185
184
|
captureUpdate: "IMMEDIATELY";
|
|
186
185
|
};
|
|
187
|
-
keyTest: (event: import("react").KeyboardEvent<Element>
|
|
186
|
+
keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
|
|
188
187
|
} & {
|
|
189
|
-
keyTest?: ((event: import("react").KeyboardEvent<Element>
|
|
188
|
+
keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
|
|
190
189
|
};
|
|
@@ -22,7 +22,7 @@ export declare const actionCopyStyles: {
|
|
|
22
22
|
errorMessage: import("react").ReactNode;
|
|
23
23
|
activeEmbeddable: {
|
|
24
24
|
element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
|
|
25
|
-
state: "
|
|
25
|
+
state: "active" | "hover";
|
|
26
26
|
} | null;
|
|
27
27
|
newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
|
|
28
28
|
resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
@@ -41,7 +41,6 @@ export declare const actionCopyStyles: {
|
|
|
41
41
|
editingFrame: string | null;
|
|
42
42
|
elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
|
|
43
43
|
editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
44
|
-
editingLinearElement: import("@excalidraw/element").LinearElementEditor | null;
|
|
45
44
|
activeTool: {
|
|
46
45
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
47
46
|
locked: boolean;
|
|
@@ -80,7 +79,7 @@ export declare const actionCopyStyles: {
|
|
|
80
79
|
value: import("../types").NormalizedZoomValue;
|
|
81
80
|
}>;
|
|
82
81
|
openMenu: "canvas" | "shape" | null;
|
|
83
|
-
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
82
|
+
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
|
|
84
83
|
openSidebar: {
|
|
85
84
|
name: string;
|
|
86
85
|
tab?: string | undefined;
|
|
@@ -89,7 +88,7 @@ export declare const actionCopyStyles: {
|
|
|
89
88
|
name: "imageExport" | "help" | "jsonExport";
|
|
90
89
|
} | {
|
|
91
90
|
name: "ttd";
|
|
92
|
-
tab: "text-to-diagram"
|
|
91
|
+
tab: "mermaid" | "text-to-diagram";
|
|
93
92
|
} | {
|
|
94
93
|
name: "commandPalette";
|
|
95
94
|
} | {
|
|
@@ -156,8 +155,7 @@ export declare const actionCopyStyles: {
|
|
|
156
155
|
shown: true;
|
|
157
156
|
data: import("../charts").Spreadsheet;
|
|
158
157
|
};
|
|
159
|
-
|
|
160
|
-
showHyperlinkPopup: false | "info" | "editor";
|
|
158
|
+
showHyperlinkPopup: false | "editor" | "info";
|
|
161
159
|
selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
|
|
162
160
|
snapLines: readonly import("../snapping").SnapLine[];
|
|
163
161
|
originSnapOffset: {
|
|
@@ -177,12 +175,13 @@ export declare const actionCopyStyles: {
|
|
|
177
175
|
lockedMultiSelections: {
|
|
178
176
|
[groupId: string]: true;
|
|
179
177
|
};
|
|
178
|
+
stylesPanelMode: "compact" | "full";
|
|
180
179
|
};
|
|
181
180
|
captureUpdate: "EVENTUALLY";
|
|
182
181
|
};
|
|
183
|
-
keyTest: (event: import("react").KeyboardEvent<Element>
|
|
182
|
+
keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
|
|
184
183
|
} & {
|
|
185
|
-
keyTest?: ((event: import("react").KeyboardEvent<Element>
|
|
184
|
+
keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
|
|
186
185
|
};
|
|
187
186
|
export declare const actionPasteStyles: {
|
|
188
187
|
name: "pasteStyles";
|
|
@@ -198,7 +197,7 @@ export declare const actionPasteStyles: {
|
|
|
198
197
|
elements: import("@excalidraw/element/types").OrderedExcalidrawElement[];
|
|
199
198
|
captureUpdate: "IMMEDIATELY";
|
|
200
199
|
};
|
|
201
|
-
keyTest: (event: import("react").KeyboardEvent<Element>
|
|
200
|
+
keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
|
|
202
201
|
} & {
|
|
203
|
-
keyTest?: ((event: import("react").KeyboardEvent<Element>
|
|
202
|
+
keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
|
|
204
203
|
};
|
|
@@ -24,7 +24,7 @@ export declare const actionToggleGridMode: {
|
|
|
24
24
|
errorMessage: import("react").ReactNode;
|
|
25
25
|
activeEmbeddable: {
|
|
26
26
|
element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
|
|
27
|
-
state: "
|
|
27
|
+
state: "active" | "hover";
|
|
28
28
|
} | null;
|
|
29
29
|
newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
|
|
30
30
|
resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
@@ -43,7 +43,6 @@ export declare const actionToggleGridMode: {
|
|
|
43
43
|
editingFrame: string | null;
|
|
44
44
|
elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
|
|
45
45
|
editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
46
|
-
editingLinearElement: import("@excalidraw/element").LinearElementEditor | null;
|
|
47
46
|
activeTool: {
|
|
48
47
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
49
48
|
locked: boolean;
|
|
@@ -82,7 +81,7 @@ export declare const actionToggleGridMode: {
|
|
|
82
81
|
value: import("../types").NormalizedZoomValue;
|
|
83
82
|
}>;
|
|
84
83
|
openMenu: "canvas" | "shape" | null;
|
|
85
|
-
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
84
|
+
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
|
|
86
85
|
openSidebar: {
|
|
87
86
|
name: string;
|
|
88
87
|
tab?: string | undefined;
|
|
@@ -91,7 +90,7 @@ export declare const actionToggleGridMode: {
|
|
|
91
90
|
name: "imageExport" | "help" | "jsonExport";
|
|
92
91
|
} | {
|
|
93
92
|
name: "ttd";
|
|
94
|
-
tab: "text-to-diagram"
|
|
93
|
+
tab: "mermaid" | "text-to-diagram";
|
|
95
94
|
} | {
|
|
96
95
|
name: "commandPalette";
|
|
97
96
|
} | {
|
|
@@ -162,8 +161,7 @@ export declare const actionToggleGridMode: {
|
|
|
162
161
|
shown: true;
|
|
163
162
|
data: import("../charts").Spreadsheet;
|
|
164
163
|
};
|
|
165
|
-
|
|
166
|
-
showHyperlinkPopup: false | "info" | "editor";
|
|
164
|
+
showHyperlinkPopup: false | "editor" | "info";
|
|
167
165
|
selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
|
|
168
166
|
snapLines: readonly import("../snapping").SnapLine[];
|
|
169
167
|
originSnapOffset: {
|
|
@@ -182,12 +180,13 @@ export declare const actionToggleGridMode: {
|
|
|
182
180
|
lockedMultiSelections: {
|
|
183
181
|
[groupId: string]: true;
|
|
184
182
|
};
|
|
183
|
+
stylesPanelMode: "compact" | "full";
|
|
185
184
|
};
|
|
186
185
|
captureUpdate: "EVENTUALLY";
|
|
187
186
|
};
|
|
188
187
|
checked: (appState: AppState) => boolean;
|
|
189
188
|
predicate: (element: readonly import("@excalidraw/element/types").ExcalidrawElement[], appState: AppState, props: import("../types").ExcalidrawProps) => boolean;
|
|
190
|
-
keyTest: (event: import("react").KeyboardEvent<Element>
|
|
189
|
+
keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
|
|
191
190
|
} & {
|
|
192
|
-
keyTest?: ((event: import("react").KeyboardEvent<Element>
|
|
191
|
+
keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
|
|
193
192
|
};
|
|
@@ -22,7 +22,7 @@ export declare const actionToggleObjectsSnapMode: {
|
|
|
22
22
|
errorMessage: import("react").ReactNode;
|
|
23
23
|
activeEmbeddable: {
|
|
24
24
|
element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
|
|
25
|
-
state: "
|
|
25
|
+
state: "active" | "hover";
|
|
26
26
|
} | null;
|
|
27
27
|
newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
|
|
28
28
|
resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
@@ -41,7 +41,6 @@ export declare const actionToggleObjectsSnapMode: {
|
|
|
41
41
|
editingFrame: string | null;
|
|
42
42
|
elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
|
|
43
43
|
editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
44
|
-
editingLinearElement: import("@excalidraw/element").LinearElementEditor | null;
|
|
45
44
|
activeTool: {
|
|
46
45
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
47
46
|
locked: boolean;
|
|
@@ -80,7 +79,7 @@ export declare const actionToggleObjectsSnapMode: {
|
|
|
80
79
|
value: import("../types").NormalizedZoomValue;
|
|
81
80
|
}>;
|
|
82
81
|
openMenu: "canvas" | "shape" | null;
|
|
83
|
-
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
82
|
+
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
|
|
84
83
|
openSidebar: {
|
|
85
84
|
name: string;
|
|
86
85
|
tab?: string | undefined;
|
|
@@ -89,7 +88,7 @@ export declare const actionToggleObjectsSnapMode: {
|
|
|
89
88
|
name: "imageExport" | "help" | "jsonExport";
|
|
90
89
|
} | {
|
|
91
90
|
name: "ttd";
|
|
92
|
-
tab: "text-to-diagram"
|
|
91
|
+
tab: "mermaid" | "text-to-diagram";
|
|
93
92
|
} | {
|
|
94
93
|
name: "commandPalette";
|
|
95
94
|
} | {
|
|
@@ -160,8 +159,7 @@ export declare const actionToggleObjectsSnapMode: {
|
|
|
160
159
|
shown: true;
|
|
161
160
|
data: import("../charts").Spreadsheet;
|
|
162
161
|
};
|
|
163
|
-
|
|
164
|
-
showHyperlinkPopup: false | "info" | "editor";
|
|
162
|
+
showHyperlinkPopup: false | "editor" | "info";
|
|
165
163
|
selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
|
|
166
164
|
snapLines: readonly import("../snapping").SnapLine[];
|
|
167
165
|
originSnapOffset: {
|
|
@@ -180,12 +178,13 @@ export declare const actionToggleObjectsSnapMode: {
|
|
|
180
178
|
lockedMultiSelections: {
|
|
181
179
|
[groupId: string]: true;
|
|
182
180
|
};
|
|
181
|
+
stylesPanelMode: "compact" | "full";
|
|
183
182
|
};
|
|
184
183
|
captureUpdate: "EVENTUALLY";
|
|
185
184
|
};
|
|
186
185
|
checked: (appState: Readonly<import("../types").AppState>) => boolean;
|
|
187
186
|
predicate: (elements: readonly import("@excalidraw/element/types").ExcalidrawElement[], appState: import("../types").AppState, appProps: import("../types").ExcalidrawProps) => boolean;
|
|
188
|
-
keyTest: (event: import("react").KeyboardEvent<Element>
|
|
187
|
+
keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
|
|
189
188
|
} & {
|
|
190
|
-
keyTest?: ((event: import("react").KeyboardEvent<Element>
|
|
189
|
+
keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
|
|
191
190
|
};
|
|
@@ -28,7 +28,7 @@ export declare const actionToggleSearchMenu: {
|
|
|
28
28
|
errorMessage: import("react").ReactNode;
|
|
29
29
|
activeEmbeddable: {
|
|
30
30
|
element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
|
|
31
|
-
state: "
|
|
31
|
+
state: "active" | "hover";
|
|
32
32
|
} | null;
|
|
33
33
|
newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
|
|
34
34
|
resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
@@ -47,7 +47,6 @@ export declare const actionToggleSearchMenu: {
|
|
|
47
47
|
editingFrame: string | null;
|
|
48
48
|
elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
|
|
49
49
|
editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
50
|
-
editingLinearElement: import("@excalidraw/element").LinearElementEditor | null;
|
|
51
50
|
activeTool: {
|
|
52
51
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
53
52
|
locked: boolean;
|
|
@@ -86,7 +85,7 @@ export declare const actionToggleSearchMenu: {
|
|
|
86
85
|
value: import("../types").NormalizedZoomValue;
|
|
87
86
|
}>;
|
|
88
87
|
openMenu: "canvas" | "shape" | null;
|
|
89
|
-
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
88
|
+
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
|
|
90
89
|
defaultSidebarDockedPreference: boolean;
|
|
91
90
|
lastPointerDownWith: import("@excalidraw/element/types").PointerType;
|
|
92
91
|
selectedElementIds: Readonly<{
|
|
@@ -152,8 +151,7 @@ export declare const actionToggleSearchMenu: {
|
|
|
152
151
|
shown: true;
|
|
153
152
|
data: import("../charts").Spreadsheet;
|
|
154
153
|
};
|
|
155
|
-
|
|
156
|
-
showHyperlinkPopup: false | "info" | "editor";
|
|
154
|
+
showHyperlinkPopup: false | "editor" | "info";
|
|
157
155
|
selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
|
|
158
156
|
snapLines: readonly import("../snapping").SnapLine[];
|
|
159
157
|
originSnapOffset: {
|
|
@@ -173,12 +171,13 @@ export declare const actionToggleSearchMenu: {
|
|
|
173
171
|
lockedMultiSelections: {
|
|
174
172
|
[groupId: string]: true;
|
|
175
173
|
};
|
|
174
|
+
stylesPanelMode: "compact" | "full";
|
|
176
175
|
};
|
|
177
176
|
captureUpdate: "EVENTUALLY";
|
|
178
177
|
};
|
|
179
178
|
checked: (appState: AppState) => boolean;
|
|
180
179
|
predicate: (element: readonly import("@excalidraw/element/types").ExcalidrawElement[], appState: AppState, props: import("../types").ExcalidrawProps) => boolean;
|
|
181
|
-
keyTest: (event: import("react").KeyboardEvent<Element>
|
|
180
|
+
keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
|
|
182
181
|
} & {
|
|
183
|
-
keyTest?: ((event: import("react").KeyboardEvent<Element>
|
|
182
|
+
keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
|
|
184
183
|
};
|
|
@@ -24,7 +24,7 @@ export declare const actionToggleStats: {
|
|
|
24
24
|
errorMessage: import("react").ReactNode;
|
|
25
25
|
activeEmbeddable: {
|
|
26
26
|
element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
|
|
27
|
-
state: "
|
|
27
|
+
state: "active" | "hover";
|
|
28
28
|
} | null;
|
|
29
29
|
newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
|
|
30
30
|
resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
@@ -43,7 +43,6 @@ export declare const actionToggleStats: {
|
|
|
43
43
|
editingFrame: string | null;
|
|
44
44
|
elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
|
|
45
45
|
editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
46
|
-
editingLinearElement: import("@excalidraw/element").LinearElementEditor | null;
|
|
47
46
|
activeTool: {
|
|
48
47
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
49
48
|
locked: boolean;
|
|
@@ -82,7 +81,7 @@ export declare const actionToggleStats: {
|
|
|
82
81
|
value: import("../types").NormalizedZoomValue;
|
|
83
82
|
}>;
|
|
84
83
|
openMenu: "canvas" | "shape" | null;
|
|
85
|
-
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
84
|
+
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
|
|
86
85
|
openSidebar: {
|
|
87
86
|
name: string;
|
|
88
87
|
tab?: string | undefined;
|
|
@@ -91,7 +90,7 @@ export declare const actionToggleStats: {
|
|
|
91
90
|
name: "imageExport" | "help" | "jsonExport";
|
|
92
91
|
} | {
|
|
93
92
|
name: "ttd";
|
|
94
|
-
tab: "text-to-diagram"
|
|
93
|
+
tab: "mermaid" | "text-to-diagram";
|
|
95
94
|
} | {
|
|
96
95
|
name: "commandPalette";
|
|
97
96
|
} | {
|
|
@@ -159,8 +158,7 @@ export declare const actionToggleStats: {
|
|
|
159
158
|
shown: true;
|
|
160
159
|
data: import("../charts").Spreadsheet;
|
|
161
160
|
};
|
|
162
|
-
|
|
163
|
-
showHyperlinkPopup: false | "info" | "editor";
|
|
161
|
+
showHyperlinkPopup: false | "editor" | "info";
|
|
164
162
|
selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
|
|
165
163
|
snapLines: readonly import("../snapping").SnapLine[];
|
|
166
164
|
originSnapOffset: {
|
|
@@ -180,11 +178,12 @@ export declare const actionToggleStats: {
|
|
|
180
178
|
lockedMultiSelections: {
|
|
181
179
|
[groupId: string]: true;
|
|
182
180
|
};
|
|
181
|
+
stylesPanelMode: "compact" | "full";
|
|
183
182
|
};
|
|
184
183
|
captureUpdate: "EVENTUALLY";
|
|
185
184
|
};
|
|
186
185
|
checked: (appState: Readonly<import("../types").AppState>) => boolean;
|
|
187
|
-
keyTest: (event: import("react").KeyboardEvent<Element>
|
|
186
|
+
keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
|
|
188
187
|
} & {
|
|
189
|
-
keyTest?: ((event: import("react").KeyboardEvent<Element>
|
|
188
|
+
keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
|
|
190
189
|
};
|
|
@@ -21,7 +21,7 @@ export declare const actionToggleViewMode: {
|
|
|
21
21
|
errorMessage: import("react").ReactNode;
|
|
22
22
|
activeEmbeddable: {
|
|
23
23
|
element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
|
|
24
|
-
state: "
|
|
24
|
+
state: "active" | "hover";
|
|
25
25
|
} | null;
|
|
26
26
|
newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
|
|
27
27
|
resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
@@ -40,7 +40,6 @@ export declare const actionToggleViewMode: {
|
|
|
40
40
|
editingFrame: string | null;
|
|
41
41
|
elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
|
|
42
42
|
editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
43
|
-
editingLinearElement: import("@excalidraw/element").LinearElementEditor | null;
|
|
44
43
|
activeTool: {
|
|
45
44
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
46
45
|
locked: boolean;
|
|
@@ -79,7 +78,7 @@ export declare const actionToggleViewMode: {
|
|
|
79
78
|
value: import("../types").NormalizedZoomValue;
|
|
80
79
|
}>;
|
|
81
80
|
openMenu: "canvas" | "shape" | null;
|
|
82
|
-
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
81
|
+
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
|
|
83
82
|
openSidebar: {
|
|
84
83
|
name: string;
|
|
85
84
|
tab?: string | undefined;
|
|
@@ -88,7 +87,7 @@ export declare const actionToggleViewMode: {
|
|
|
88
87
|
name: "imageExport" | "help" | "jsonExport";
|
|
89
88
|
} | {
|
|
90
89
|
name: "ttd";
|
|
91
|
-
tab: "text-to-diagram"
|
|
90
|
+
tab: "mermaid" | "text-to-diagram";
|
|
92
91
|
} | {
|
|
93
92
|
name: "commandPalette";
|
|
94
93
|
} | {
|
|
@@ -159,8 +158,7 @@ export declare const actionToggleViewMode: {
|
|
|
159
158
|
shown: true;
|
|
160
159
|
data: import("../charts").Spreadsheet;
|
|
161
160
|
};
|
|
162
|
-
|
|
163
|
-
showHyperlinkPopup: false | "info" | "editor";
|
|
161
|
+
showHyperlinkPopup: false | "editor" | "info";
|
|
164
162
|
selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
|
|
165
163
|
snapLines: readonly import("../snapping").SnapLine[];
|
|
166
164
|
originSnapOffset: {
|
|
@@ -180,12 +178,13 @@ export declare const actionToggleViewMode: {
|
|
|
180
178
|
lockedMultiSelections: {
|
|
181
179
|
[groupId: string]: true;
|
|
182
180
|
};
|
|
181
|
+
stylesPanelMode: "compact" | "full";
|
|
183
182
|
};
|
|
184
183
|
captureUpdate: "EVENTUALLY";
|
|
185
184
|
};
|
|
186
185
|
checked: (appState: Readonly<import("../types").AppState>) => boolean;
|
|
187
186
|
predicate: (elements: readonly import("@excalidraw/element/types").ExcalidrawElement[], appState: import("../types").AppState, appProps: import("../types").ExcalidrawProps) => boolean;
|
|
188
|
-
keyTest: (event: import("react").KeyboardEvent<Element>
|
|
187
|
+
keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
|
|
189
188
|
} & {
|
|
190
|
-
keyTest?: ((event: import("react").KeyboardEvent<Element>
|
|
189
|
+
keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
|
|
191
190
|
};
|
|
@@ -21,7 +21,7 @@ export declare const actionToggleZenMode: {
|
|
|
21
21
|
errorMessage: import("react").ReactNode;
|
|
22
22
|
activeEmbeddable: {
|
|
23
23
|
element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
|
|
24
|
-
state: "
|
|
24
|
+
state: "active" | "hover";
|
|
25
25
|
} | null;
|
|
26
26
|
newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
|
|
27
27
|
resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
@@ -40,7 +40,6 @@ export declare const actionToggleZenMode: {
|
|
|
40
40
|
editingFrame: string | null;
|
|
41
41
|
elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
|
|
42
42
|
editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
43
|
-
editingLinearElement: import("@excalidraw/element").LinearElementEditor | null;
|
|
44
43
|
activeTool: {
|
|
45
44
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
46
45
|
locked: boolean;
|
|
@@ -79,7 +78,7 @@ export declare const actionToggleZenMode: {
|
|
|
79
78
|
value: import("../types").NormalizedZoomValue;
|
|
80
79
|
}>;
|
|
81
80
|
openMenu: "canvas" | "shape" | null;
|
|
82
|
-
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
81
|
+
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
|
|
83
82
|
openSidebar: {
|
|
84
83
|
name: string;
|
|
85
84
|
tab?: string | undefined;
|
|
@@ -88,7 +87,7 @@ export declare const actionToggleZenMode: {
|
|
|
88
87
|
name: "imageExport" | "help" | "jsonExport";
|
|
89
88
|
} | {
|
|
90
89
|
name: "ttd";
|
|
91
|
-
tab: "text-to-diagram"
|
|
90
|
+
tab: "mermaid" | "text-to-diagram";
|
|
92
91
|
} | {
|
|
93
92
|
name: "commandPalette";
|
|
94
93
|
} | {
|
|
@@ -159,8 +158,7 @@ export declare const actionToggleZenMode: {
|
|
|
159
158
|
shown: true;
|
|
160
159
|
data: import("../charts").Spreadsheet;
|
|
161
160
|
};
|
|
162
|
-
|
|
163
|
-
showHyperlinkPopup: false | "info" | "editor";
|
|
161
|
+
showHyperlinkPopup: false | "editor" | "info";
|
|
164
162
|
selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
|
|
165
163
|
snapLines: readonly import("../snapping").SnapLine[];
|
|
166
164
|
originSnapOffset: {
|
|
@@ -180,12 +178,13 @@ export declare const actionToggleZenMode: {
|
|
|
180
178
|
lockedMultiSelections: {
|
|
181
179
|
[groupId: string]: true;
|
|
182
180
|
};
|
|
181
|
+
stylesPanelMode: "compact" | "full";
|
|
183
182
|
};
|
|
184
183
|
captureUpdate: "EVENTUALLY";
|
|
185
184
|
};
|
|
186
185
|
checked: (appState: Readonly<import("../types").AppState>) => boolean;
|
|
187
186
|
predicate: (elements: readonly import("@excalidraw/element/types").ExcalidrawElement[], appState: import("../types").AppState, appProps: import("../types").ExcalidrawProps) => boolean;
|
|
188
|
-
keyTest: (event: import("react").KeyboardEvent<Element>
|
|
187
|
+
keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
|
|
189
188
|
} & {
|
|
190
|
-
keyTest?: ((event: import("react").KeyboardEvent<Element>
|
|
189
|
+
keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
|
|
191
190
|
};
|
|
@@ -13,10 +13,10 @@ export declare const actionSendBackward: {
|
|
|
13
13
|
captureUpdate: "IMMEDIATELY";
|
|
14
14
|
};
|
|
15
15
|
keyPriority: number;
|
|
16
|
-
keyTest: (event: import("react").KeyboardEvent<Element>
|
|
16
|
+
keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
|
|
17
17
|
PanelComponent: ({ updateData, appState }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
|
|
18
18
|
} & {
|
|
19
|
-
keyTest?: ((event: import("react").KeyboardEvent<Element>
|
|
19
|
+
keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
|
|
20
20
|
};
|
|
21
21
|
export declare const actionBringForward: {
|
|
22
22
|
name: "bringForward";
|
|
@@ -32,10 +32,10 @@ export declare const actionBringForward: {
|
|
|
32
32
|
captureUpdate: "IMMEDIATELY";
|
|
33
33
|
};
|
|
34
34
|
keyPriority: number;
|
|
35
|
-
keyTest: (event: import("react").KeyboardEvent<Element>
|
|
35
|
+
keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
|
|
36
36
|
PanelComponent: ({ updateData, appState }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
|
|
37
37
|
} & {
|
|
38
|
-
keyTest?: ((event: import("react").KeyboardEvent<Element>
|
|
38
|
+
keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
|
|
39
39
|
};
|
|
40
40
|
export declare const actionSendToBack: {
|
|
41
41
|
name: "sendToBack";
|
|
@@ -50,10 +50,10 @@ export declare const actionSendToBack: {
|
|
|
50
50
|
appState: Readonly<import("../types").AppState>;
|
|
51
51
|
captureUpdate: "IMMEDIATELY";
|
|
52
52
|
};
|
|
53
|
-
keyTest: (event: import("react").KeyboardEvent<Element>
|
|
53
|
+
keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
|
|
54
54
|
PanelComponent: ({ updateData, appState }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
|
|
55
55
|
} & {
|
|
56
|
-
keyTest?: ((event: import("react").KeyboardEvent<Element>
|
|
56
|
+
keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
|
|
57
57
|
};
|
|
58
58
|
export declare const actionBringToFront: {
|
|
59
59
|
name: "bringToFront";
|
|
@@ -68,8 +68,8 @@ export declare const actionBringToFront: {
|
|
|
68
68
|
appState: Readonly<import("../types").AppState>;
|
|
69
69
|
captureUpdate: "IMMEDIATELY";
|
|
70
70
|
};
|
|
71
|
-
keyTest: (event: import("react").KeyboardEvent<Element>
|
|
71
|
+
keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
|
|
72
72
|
PanelComponent: ({ updateData, appState }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
|
|
73
73
|
} & {
|
|
74
|
-
keyTest?: ((event: import("react").KeyboardEvent<Element>
|
|
74
|
+
keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
|
|
75
75
|
};
|
|
@@ -2,7 +2,7 @@ export { actionDeleteSelected } from "./actionDeleteSelected";
|
|
|
2
2
|
export { actionBringForward, actionBringToFront, actionSendBackward, actionSendToBack, } from "./actionZindex";
|
|
3
3
|
export { actionSelectAll } from "./actionSelectAll";
|
|
4
4
|
export { actionDuplicateSelection } from "./actionDuplicateSelection";
|
|
5
|
-
export { actionChangeStrokeColor, actionChangeBackgroundColor, actionChangeStrokeWidth, actionChangeFillStyle, actionChangeSloppiness, actionChangeOpacity, actionChangeFontSize, actionChangeFontFamily, actionChangeTextAlign, actionChangeVerticalAlign, } from "./actionProperties";
|
|
5
|
+
export { actionChangeStrokeColor, actionChangeBackgroundColor, actionChangeStrokeWidth, actionChangeFillStyle, actionChangeSloppiness, actionChangeOpacity, actionChangeFontSize, actionChangeFontFamily, actionChangeTextAlign, actionChangeVerticalAlign, actionChangeArrowProperties, } from "./actionProperties";
|
|
6
6
|
export { actionChangeViewBackgroundColor, actionClearCanvas, actionZoomIn, actionZoomOut, actionResetZoom, actionZoomToFit, actionToggleTheme, } from "./actionCanvas";
|
|
7
7
|
export { actionSetEmbeddableAsActiveTool } from "./actionEmbeddable";
|
|
8
8
|
export { actionFinalize } from "./actionFinalize";
|
|
@@ -14,7 +14,7 @@ export type ActionResult = {
|
|
|
14
14
|
type ActionFn = (elements: readonly OrderedExcalidrawElement[], appState: Readonly<AppState>, formData: any, app: AppClassProperties) => ActionResult | Promise<ActionResult>;
|
|
15
15
|
export type UpdaterFn = (res: ActionResult) => void;
|
|
16
16
|
export type ActionFilterFn = (action: Action) => void;
|
|
17
|
-
export type ActionName = "copy" | "cut" | "paste" | "copyAsPng" | "copyAsSvg" | "copyText" | "sendBackward" | "bringForward" | "sendToBack" | "bringToFront" | "copyStyles" | "selectAll" | "pasteStyles" | "gridMode" | "zenMode" | "objectsSnapMode" | "stats" | "changeStrokeColor" | "changeBackgroundColor" | "changeFillStyle" | "changeStrokeWidth" | "changeStrokeShape" | "changeSloppiness" | "changeStrokeStyle" | "changeArrowhead" | "changeArrowType" | "changeOpacity" | "changeFontSize" | "toggleCanvasMenu" | "toggleEditMenu" | "undo" | "redo" | "finalize" | "changeProjectName" | "changeExportBackground" | "changeExportEmbedScene" | "changeExportScale" | "saveToActiveFile" | "saveFileToDisk" | "loadScene" | "duplicateSelection" | "deleteSelectedElements" | "changeViewBackgroundColor" | "clearCanvas" | "zoomIn" | "zoomOut" | "resetZoom" | "zoomToFit" | "zoomToFitSelection" | "zoomToFitSelectionInViewport" | "changeFontFamily" | "changeTextAlign" | "changeVerticalAlign" | "toggleFullScreen" | "toggleShortcuts" | "group" | "ungroup" | "goToCollaborator" | "addToLibrary" | "changeRoundness" | "alignTop" | "alignBottom" | "alignLeft" | "alignRight" | "alignVerticallyCentered" | "alignHorizontallyCentered" | "distributeHorizontally" | "distributeVertically" | "flipHorizontal" | "flipVertical" | "viewMode" | "exportWithDarkMode" | "toggleTheme" | "increaseFontSize" | "decreaseFontSize" | "unbindText" | "hyperlink" | "bindText" | "unlockAllElements" | "toggleElementLock" | "toggleLinearEditor" | "toggleEraserTool" | "toggleHandTool" | "selectAllElementsInFrame" | "removeAllElementsFromFrame" | "updateFrameRendering" | "setFrameAsActiveTool" | "setEmbeddableAsActiveTool" | "createContainerFromText" | "wrapTextInContainer" | "commandPalette" | "autoResize" | "elementStats" | "searchMenu" | "copyElementLink" | "linkToElement" | "cropEditor" | "wrapSelectionInFrame" | "toggleLassoTool" | "toggleShapeSwitch";
|
|
17
|
+
export type ActionName = "copy" | "cut" | "paste" | "copyAsPng" | "copyAsSvg" | "copyText" | "sendBackward" | "bringForward" | "sendToBack" | "bringToFront" | "copyStyles" | "selectAll" | "pasteStyles" | "gridMode" | "zenMode" | "objectsSnapMode" | "stats" | "changeStrokeColor" | "changeBackgroundColor" | "changeFillStyle" | "changeStrokeWidth" | "changeStrokeShape" | "changeSloppiness" | "changeStrokeStyle" | "changeArrowhead" | "changeArrowType" | "changeArrowProperties" | "changeOpacity" | "changeFontSize" | "toggleCanvasMenu" | "toggleEditMenu" | "undo" | "redo" | "finalize" | "changeProjectName" | "changeExportBackground" | "changeExportEmbedScene" | "changeExportScale" | "saveToActiveFile" | "saveFileToDisk" | "loadScene" | "duplicateSelection" | "deleteSelectedElements" | "changeViewBackgroundColor" | "clearCanvas" | "zoomIn" | "zoomOut" | "resetZoom" | "zoomToFit" | "zoomToFitSelection" | "zoomToFitSelectionInViewport" | "changeFontFamily" | "changeTextAlign" | "changeVerticalAlign" | "toggleFullScreen" | "toggleShortcuts" | "group" | "ungroup" | "goToCollaborator" | "addToLibrary" | "changeRoundness" | "alignTop" | "alignBottom" | "alignLeft" | "alignRight" | "alignVerticallyCentered" | "alignHorizontallyCentered" | "distributeHorizontally" | "distributeVertically" | "flipHorizontal" | "flipVertical" | "viewMode" | "exportWithDarkMode" | "toggleTheme" | "increaseFontSize" | "decreaseFontSize" | "unbindText" | "hyperlink" | "bindText" | "unlockAllElements" | "toggleElementLock" | "toggleLinearEditor" | "toggleEraserTool" | "toggleHandTool" | "selectAllElementsInFrame" | "removeAllElementsFromFrame" | "updateFrameRendering" | "setFrameAsActiveTool" | "setEmbeddableAsActiveTool" | "createContainerFromText" | "wrapTextInContainer" | "commandPalette" | "autoResize" | "elementStats" | "searchMenu" | "copyElementLink" | "linkToElement" | "cropEditor" | "wrapSelectionInFrame" | "toggleLassoTool" | "toggleShapeSwitch" | "togglePolygon";
|
|
18
18
|
export type PanelComponentProps = {
|
|
19
19
|
elements: readonly ExcalidrawElement[];
|
|
20
20
|
appState: AppState;
|
|
@@ -22,6 +22,7 @@ export type PanelComponentProps = {
|
|
|
22
22
|
appProps: ExcalidrawProps;
|
|
23
23
|
data?: Record<string, any>;
|
|
24
24
|
app: AppClassProperties;
|
|
25
|
+
renderAction: (name: ActionName, data?: PanelComponentProps["data"]) => React.JSX.Element | null;
|
|
25
26
|
};
|
|
26
27
|
export interface Action {
|
|
27
28
|
name: ActionName;
|