@excalidraw/element 0.18.0-2874f9e → 0.18.0-2a82821
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/index.js +5228 -4610
- package/dist/dev/index.js.map +4 -4
- package/dist/prod/index.js +19 -18
- package/dist/types/common/src/appEventBus.d.ts +27 -0
- package/dist/types/common/src/colors.d.ts +2 -2
- package/dist/types/common/src/constants.d.ts +9 -7
- package/dist/types/common/src/index.d.ts +2 -0
- package/dist/types/common/src/utils.d.ts +1 -3
- package/dist/types/common/src/versionedSnapshotStore.d.ts +17 -0
- package/dist/types/element/src/Scene.d.ts +7 -3
- package/dist/types/element/src/arrowheads.d.ts +3 -0
- package/dist/types/element/src/binding.d.ts +3 -4
- package/dist/types/element/src/bounds.d.ts +22 -3
- package/dist/types/element/src/comparisons.d.ts +1 -0
- package/dist/types/element/src/duplicate.d.ts +1 -0
- package/dist/types/element/src/elbowArrow.d.ts +2 -0
- package/dist/types/element/src/frame.d.ts +7 -6
- package/dist/types/element/src/index.d.ts +1 -0
- package/dist/types/element/src/linearElementEditor.d.ts +5 -2
- package/dist/types/element/src/mutateElement.d.ts +2 -0
- package/dist/types/element/src/newElement.d.ts +1 -0
- package/dist/types/element/src/selection.d.ts +7 -3
- package/dist/types/element/src/shape.d.ts +1 -1
- package/dist/types/element/src/textElement.d.ts +1 -1
- package/dist/types/element/src/textWrapping.d.ts +26 -0
- package/dist/types/element/src/typeChecks.d.ts +1 -0
- package/dist/types/element/src/types.d.ts +11 -2
- package/dist/types/element/src/utils.d.ts +2 -2
- package/dist/types/element/src/visualdebug.d.ts +1 -2
- package/dist/types/excalidraw/actions/actionAddToLibrary.d.ts +35 -38
- package/dist/types/excalidraw/actions/actionBoundText.d.ts +25 -27
- package/dist/types/excalidraw/actions/actionCanvas.d.ts +144 -156
- package/dist/types/excalidraw/actions/actionClipboard.d.ts +24 -26
- package/dist/types/excalidraw/actions/actionCropEditor.d.ts +12 -13
- package/dist/types/excalidraw/actions/actionDeleteSelected.d.ts +36 -39
- package/dist/types/excalidraw/actions/actionDeselect.d.ts +160 -0
- package/dist/types/excalidraw/actions/actionElementLink.d.ts +8 -13
- package/dist/types/excalidraw/actions/actionElementLock.d.ts +24 -26
- package/dist/types/excalidraw/actions/actionEmbeddable.d.ts +12 -13
- package/dist/types/excalidraw/actions/actionExport.d.ts +67 -349
- package/dist/types/excalidraw/actions/actionFrame.d.ts +49 -52
- package/dist/types/excalidraw/actions/actionGroup.d.ts +25 -27
- package/dist/types/excalidraw/actions/actionLinearEditor.d.ts +13 -13
- package/dist/types/excalidraw/actions/actionLink.d.ts +12 -13
- package/dist/types/excalidraw/actions/actionMenu.d.ts +8 -13
- package/dist/types/excalidraw/actions/actionProperties.d.ts +36 -29
- package/dist/types/excalidraw/actions/actionSelectAll.d.ts +12 -13
- package/dist/types/excalidraw/actions/actionStyles.d.ts +12 -12
- package/dist/types/excalidraw/actions/actionTextAutoResize.d.ts +3 -3
- package/dist/types/excalidraw/actions/actionToggleArrowBinding.d.ts +173 -0
- package/dist/types/excalidraw/actions/actionToggleGridMode.d.ts +12 -13
- package/dist/types/excalidraw/actions/actionToggleMidpointSnapping.d.ts +173 -0
- package/dist/types/excalidraw/actions/actionToggleObjectsSnapMode.d.ts +12 -13
- package/dist/types/excalidraw/actions/actionToggleSearchMenu.d.ts +8 -13
- package/dist/types/excalidraw/actions/actionToggleStats.d.ts +12 -13
- package/dist/types/excalidraw/actions/actionToggleViewMode.d.ts +12 -13
- package/dist/types/excalidraw/actions/actionToggleZenMode.d.ts +12 -13
- package/dist/types/excalidraw/actions/index.d.ts +4 -1
- package/dist/types/excalidraw/actions/types.d.ts +1 -1
- package/dist/types/excalidraw/{animated-trail.d.ts → animatedTrail.d.ts} +4 -3
- package/dist/types/excalidraw/appState.d.ts +6 -2
- package/dist/types/excalidraw/charts/charts.bar.d.ts +2 -0
- package/dist/types/excalidraw/charts/charts.constants.d.ts +48 -0
- package/dist/types/excalidraw/charts/charts.helpers.d.ts +32 -0
- package/dist/types/excalidraw/charts/charts.line.d.ts +2 -0
- package/dist/types/excalidraw/charts/charts.parse.d.ts +10 -0
- package/dist/types/excalidraw/charts/charts.radar.d.ts +2 -0
- package/dist/types/excalidraw/charts/charts.types.d.ts +18 -0
- package/dist/types/excalidraw/charts/index.d.ts +7 -0
- package/dist/types/excalidraw/clipboard.d.ts +2 -5
- package/dist/types/excalidraw/components/ActiveConfirmDialog.d.ts +1 -1
- package/dist/types/excalidraw/components/App.d.ts +54 -14
- package/dist/types/excalidraw/components/AppStateObserver.d.ts +37 -0
- package/dist/types/excalidraw/components/ColorPicker/colorPickerUtils.d.ts +1 -1
- package/dist/types/excalidraw/components/CommandPalette/defaultCommandPaletteItems.d.ts +1 -2
- package/dist/types/excalidraw/components/ConvertElementTypePopup.d.ts +1 -1
- package/dist/types/excalidraw/components/EyeDropper.d.ts +1 -1
- package/dist/types/excalidraw/components/IconPicker.d.ts +14 -9
- package/dist/types/excalidraw/components/LibraryMenu.d.ts +1 -1
- package/dist/types/excalidraw/components/OverwriteConfirm/OverwriteConfirmState.d.ts +1 -1
- package/dist/types/excalidraw/components/PasteChartDialog.d.ts +4 -5
- package/dist/types/excalidraw/components/Range.d.ts +10 -4
- package/dist/types/excalidraw/components/SVGLayer.d.ts +1 -1
- package/dist/types/excalidraw/components/SearchMenu.d.ts +1 -1
- package/dist/types/excalidraw/components/Sidebar/Sidebar.d.ts +1 -1
- package/dist/types/excalidraw/components/TTDDialog/CodeMirrorEditor.d.ts +11 -0
- package/dist/types/excalidraw/components/TTDDialog/TTDContext.d.ts +4 -4
- package/dist/types/excalidraw/components/TTDDialog/TTDDialogInput.d.ts +3 -3
- package/dist/types/excalidraw/components/TTDDialog/TTDDialogOutput.d.ts +4 -1
- package/dist/types/excalidraw/components/TTDDialog/mermaid-lang-lite.d.ts +2 -0
- package/dist/types/excalidraw/components/TTDDialog/useTTDChatStorage.d.ts +3 -3
- package/dist/types/excalidraw/components/TTDDialog/utils/mermaidAutoFix.d.ts +1 -0
- package/dist/types/excalidraw/components/TTDDialog/utils/mermaidError.d.ts +10 -0
- package/dist/types/excalidraw/components/Toast.d.ts +8 -4
- package/dist/types/excalidraw/components/canvases/InteractiveCanvas.d.ts +2 -1
- package/dist/types/excalidraw/components/canvases/NewElementCanvas.d.ts +1 -0
- package/dist/types/excalidraw/components/canvases/StaticCanvas.d.ts +1 -1
- package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuItemContentRadio.d.ts +2 -1
- package/dist/types/excalidraw/components/icons.d.ts +19 -8
- package/dist/types/excalidraw/components/main-menu/DefaultItems.d.ts +9 -3
- package/dist/types/excalidraw/components/shapes.d.ts +7 -0
- package/dist/types/excalidraw/data/blob.d.ts +31 -34
- package/dist/types/excalidraw/data/filesystem.d.ts +3 -5
- package/dist/types/excalidraw/data/index.d.ts +2 -3
- package/dist/types/excalidraw/data/json.d.ts +30 -23
- package/dist/types/excalidraw/data/library.d.ts +1 -1
- package/dist/types/excalidraw/data/resave.d.ts +7 -2
- package/dist/types/excalidraw/eraser/index.d.ts +2 -3
- package/dist/types/excalidraw/hooks/useLibraryItemSvg.d.ts +1 -1
- package/dist/types/excalidraw/{laser-trails.d.ts → laserTrails.d.ts} +5 -7
- package/dist/types/excalidraw/lasso/index.d.ts +2 -3
- package/dist/types/excalidraw/renderer/animation.d.ts +4 -1
- package/dist/types/excalidraw/scene/Renderer.d.ts +426 -19
- package/dist/types/excalidraw/scene/index.d.ts +1 -1
- package/dist/types/excalidraw/textAutoResizeHandle.d.ts +15 -0
- package/dist/types/excalidraw/types.d.ts +110 -18
- package/dist/types/excalidraw/wysiwyg/textWysiwyg.d.ts +5 -1
- package/dist/types/fractional-indexing/src/index.d.ts +29 -0
- package/dist/types/laser-pointer/src/index.d.ts +2 -0
- package/dist/types/laser-pointer/src/math.d.ts +16 -0
- package/dist/types/laser-pointer/src/simplify.d.ts +2 -0
- package/dist/types/laser-pointer/src/state.d.ts +35 -0
- package/dist/types/math/src/constants.d.ts +0 -1
- package/dist/types/math/src/curve.d.ts +4 -1
- package/dist/types/math/src/point.d.ts +2 -1
- package/dist/types/utils/src/index.d.ts +1 -2
- package/package.json +4 -3
- package/dist/types/excalidraw/animation-frame-handler.d.ts +0 -16
- package/dist/types/excalidraw/charts.d.ts +0 -27
- package/dist/types/excalidraw/components/DiagramToCodePlugin/DiagramToCodePlugin.d.ts +0 -4
- package/dist/types/excalidraw/components/ExcalidrawLogo.d.ts +0 -15
- package/dist/types/excalidraw/components/InitializeApp.d.ts +0 -10
- package/dist/types/excalidraw/components/TTDDialog/TTDDialogTrigger.d.ts +0 -8
- package/dist/types/excalidraw/components/TTDDialog/utils/TTDStreamFetch.d.ts +0 -24
- package/dist/types/excalidraw/components/footer/FooterCenter.d.ts +0 -8
- package/dist/types/excalidraw/components/live-collaboration/LiveCollaborationTrigger.d.ts +0 -11
- package/dist/types/excalidraw/components/welcome-screen/WelcomeScreen.Center.d.ts +0 -58
- package/dist/types/excalidraw/components/welcome-screen/WelcomeScreen.Hints.d.ts +0 -19
- package/dist/types/excalidraw/components/welcome-screen/WelcomeScreen.d.ts +0 -84
- package/dist/types/excalidraw/data/reconcile.d.ts +0 -7
- package/dist/types/excalidraw/index.d.ts +0 -47
- package/dist/types/excalidraw/polyfill.d.ts +0 -2
- package/dist/types/utils/src/bbox.d.ts +0 -9
- package/dist/types/utils/src/withinBounds.d.ts +0 -19
|
@@ -27,7 +27,9 @@ export declare const actionPaste: {
|
|
|
27
27
|
multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
|
|
28
28
|
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
29
29
|
isBindingEnabled: boolean;
|
|
30
|
-
|
|
30
|
+
boxSelectionMode: import("../types").BoxSelectionMode;
|
|
31
|
+
bindingPreference: "enabled" | "disabled";
|
|
32
|
+
isMidpointSnappingEnabled: boolean;
|
|
31
33
|
suggestedBinding: {
|
|
32
34
|
element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
|
|
33
35
|
midPoint?: import("@excalidraw/math").GlobalPoint;
|
|
@@ -41,7 +43,7 @@ export declare const actionPaste: {
|
|
|
41
43
|
};
|
|
42
44
|
editingFrame: string | null;
|
|
43
45
|
elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
|
|
44
|
-
editingTextElement: import("@excalidraw/element/types").
|
|
46
|
+
editingTextElement: import("@excalidraw/element/types").ExcalidrawTextElement | null;
|
|
45
47
|
activeTool: {
|
|
46
48
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
47
49
|
locked: boolean;
|
|
@@ -60,9 +62,10 @@ export declare const actionPaste: {
|
|
|
60
62
|
currentItemStrokeColor: string;
|
|
61
63
|
currentItemBackgroundColor: string;
|
|
62
64
|
currentItemFillStyle: import("@excalidraw/element/types").ExcalidrawElement["fillStyle"];
|
|
63
|
-
|
|
65
|
+
currentItemStrokeWidthKey: import("@excalidraw/common").StrokeWidthKey;
|
|
64
66
|
currentItemStrokeStyle: import("@excalidraw/element/types").ExcalidrawElement["strokeStyle"];
|
|
65
67
|
currentItemRoughness: number;
|
|
68
|
+
currentItemStrokeVariability: import("@excalidraw/element/types").StrokeVariability;
|
|
66
69
|
currentItemOpacity: number;
|
|
67
70
|
currentItemFontFamily: import("@excalidraw/element/types").FontFamilyValues;
|
|
68
71
|
currentItemFontSize: number;
|
|
@@ -99,6 +102,10 @@ export declare const actionPaste: {
|
|
|
99
102
|
} | {
|
|
100
103
|
name: "elementLinkSelector";
|
|
101
104
|
sourceElementId: import("@excalidraw/element/types").ExcalidrawElement["id"];
|
|
105
|
+
} | {
|
|
106
|
+
name: "charts";
|
|
107
|
+
data: import("../charts").Spreadsheet;
|
|
108
|
+
rawText: string;
|
|
102
109
|
};
|
|
103
110
|
defaultSidebarDockedPreference: boolean;
|
|
104
111
|
lastPointerDownWith: import("@excalidraw/element/types").PointerType;
|
|
@@ -114,7 +121,7 @@ export declare const actionPaste: {
|
|
|
114
121
|
selectedElementsAreBeingDragged: boolean;
|
|
115
122
|
shouldCacheIgnoreZoom: boolean;
|
|
116
123
|
toast: {
|
|
117
|
-
message:
|
|
124
|
+
message: React.ReactNode;
|
|
118
125
|
closable?: boolean;
|
|
119
126
|
duration?: number;
|
|
120
127
|
} | null;
|
|
@@ -132,20 +139,12 @@ export declare const actionPaste: {
|
|
|
132
139
|
height: number;
|
|
133
140
|
offsetTop: number;
|
|
134
141
|
offsetLeft: number;
|
|
135
|
-
fileHandle:
|
|
142
|
+
fileHandle: FileSystemFileHandle | null;
|
|
136
143
|
collaborators: Map<import("../types").SocketId, import("../types").Collaborator>;
|
|
137
144
|
stats: {
|
|
138
145
|
open: boolean;
|
|
139
146
|
panels: number;
|
|
140
147
|
};
|
|
141
|
-
currentChartType: import("@excalidraw/element/types").ChartType;
|
|
142
|
-
pasteDialog: {
|
|
143
|
-
shown: false;
|
|
144
|
-
data: null;
|
|
145
|
-
} | {
|
|
146
|
-
shown: true;
|
|
147
|
-
data: import("../charts").Spreadsheet;
|
|
148
|
-
};
|
|
149
148
|
showHyperlinkPopup: false | "info" | "editor";
|
|
150
149
|
selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
|
|
151
150
|
snapLines: readonly import("../snapping").SnapLine[];
|
|
@@ -238,7 +237,9 @@ export declare const actionCopyAsPng: {
|
|
|
238
237
|
multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
|
|
239
238
|
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
240
239
|
isBindingEnabled: boolean;
|
|
241
|
-
|
|
240
|
+
boxSelectionMode: import("../types").BoxSelectionMode;
|
|
241
|
+
bindingPreference: "enabled" | "disabled";
|
|
242
|
+
isMidpointSnappingEnabled: boolean;
|
|
242
243
|
suggestedBinding: {
|
|
243
244
|
element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
|
|
244
245
|
midPoint?: import("@excalidraw/math").GlobalPoint;
|
|
@@ -252,7 +253,7 @@ export declare const actionCopyAsPng: {
|
|
|
252
253
|
};
|
|
253
254
|
editingFrame: string | null;
|
|
254
255
|
elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
|
|
255
|
-
editingTextElement: import("@excalidraw/element/types").
|
|
256
|
+
editingTextElement: import("@excalidraw/element/types").ExcalidrawTextElement | null;
|
|
256
257
|
activeTool: {
|
|
257
258
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
258
259
|
locked: boolean;
|
|
@@ -271,9 +272,10 @@ export declare const actionCopyAsPng: {
|
|
|
271
272
|
currentItemStrokeColor: string;
|
|
272
273
|
currentItemBackgroundColor: string;
|
|
273
274
|
currentItemFillStyle: import("@excalidraw/element/types").ExcalidrawElement["fillStyle"];
|
|
274
|
-
|
|
275
|
+
currentItemStrokeWidthKey: import("@excalidraw/common").StrokeWidthKey;
|
|
275
276
|
currentItemStrokeStyle: import("@excalidraw/element/types").ExcalidrawElement["strokeStyle"];
|
|
276
277
|
currentItemRoughness: number;
|
|
278
|
+
currentItemStrokeVariability: import("@excalidraw/element/types").StrokeVariability;
|
|
277
279
|
currentItemOpacity: number;
|
|
278
280
|
currentItemFontFamily: import("@excalidraw/element/types").FontFamilyValues;
|
|
279
281
|
currentItemFontSize: number;
|
|
@@ -310,6 +312,10 @@ export declare const actionCopyAsPng: {
|
|
|
310
312
|
} | {
|
|
311
313
|
name: "elementLinkSelector";
|
|
312
314
|
sourceElementId: import("@excalidraw/element/types").ExcalidrawElement["id"];
|
|
315
|
+
} | {
|
|
316
|
+
name: "charts";
|
|
317
|
+
data: import("../charts").Spreadsheet;
|
|
318
|
+
rawText: string;
|
|
313
319
|
};
|
|
314
320
|
defaultSidebarDockedPreference: boolean;
|
|
315
321
|
lastPointerDownWith: import("@excalidraw/element/types").PointerType;
|
|
@@ -325,7 +331,7 @@ export declare const actionCopyAsPng: {
|
|
|
325
331
|
selectedElementsAreBeingDragged: boolean;
|
|
326
332
|
shouldCacheIgnoreZoom: boolean;
|
|
327
333
|
toast: {
|
|
328
|
-
message:
|
|
334
|
+
message: React.ReactNode;
|
|
329
335
|
closable?: boolean;
|
|
330
336
|
duration?: number;
|
|
331
337
|
} | null;
|
|
@@ -343,20 +349,12 @@ export declare const actionCopyAsPng: {
|
|
|
343
349
|
height: number;
|
|
344
350
|
offsetTop: number;
|
|
345
351
|
offsetLeft: number;
|
|
346
|
-
fileHandle:
|
|
352
|
+
fileHandle: FileSystemFileHandle | null;
|
|
347
353
|
collaborators: Map<import("../types").SocketId, import("../types").Collaborator>;
|
|
348
354
|
stats: {
|
|
349
355
|
open: boolean;
|
|
350
356
|
panels: number;
|
|
351
357
|
};
|
|
352
|
-
currentChartType: import("@excalidraw/element/types").ChartType;
|
|
353
|
-
pasteDialog: {
|
|
354
|
-
shown: false;
|
|
355
|
-
data: null;
|
|
356
|
-
} | {
|
|
357
|
-
shown: true;
|
|
358
|
-
data: import("../charts").Spreadsheet;
|
|
359
|
-
};
|
|
360
358
|
showHyperlinkPopup: false | "info" | "editor";
|
|
361
359
|
selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
|
|
362
360
|
snapLines: readonly import("../snapping").SnapLine[];
|
|
@@ -28,7 +28,9 @@ export declare const actionToggleCropEditor: {
|
|
|
28
28
|
multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
|
|
29
29
|
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
30
30
|
isBindingEnabled: boolean;
|
|
31
|
-
|
|
31
|
+
boxSelectionMode: import("../types").BoxSelectionMode;
|
|
32
|
+
bindingPreference: "enabled" | "disabled";
|
|
33
|
+
isMidpointSnappingEnabled: boolean;
|
|
32
34
|
suggestedBinding: {
|
|
33
35
|
element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
|
|
34
36
|
midPoint?: import("@excalidraw/math").GlobalPoint;
|
|
@@ -42,7 +44,7 @@ export declare const actionToggleCropEditor: {
|
|
|
42
44
|
};
|
|
43
45
|
editingFrame: string | null;
|
|
44
46
|
elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
|
|
45
|
-
editingTextElement: import("@excalidraw/element/types").
|
|
47
|
+
editingTextElement: import("@excalidraw/element/types").ExcalidrawTextElement | null;
|
|
46
48
|
activeTool: {
|
|
47
49
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
48
50
|
locked: boolean;
|
|
@@ -61,9 +63,10 @@ export declare const actionToggleCropEditor: {
|
|
|
61
63
|
currentItemStrokeColor: string;
|
|
62
64
|
currentItemBackgroundColor: string;
|
|
63
65
|
currentItemFillStyle: import("@excalidraw/element/types").ExcalidrawElement["fillStyle"];
|
|
64
|
-
|
|
66
|
+
currentItemStrokeWidthKey: import("@excalidraw/common").StrokeWidthKey;
|
|
65
67
|
currentItemStrokeStyle: import("@excalidraw/element/types").ExcalidrawElement["strokeStyle"];
|
|
66
68
|
currentItemRoughness: number;
|
|
69
|
+
currentItemStrokeVariability: import("@excalidraw/element/types").StrokeVariability;
|
|
67
70
|
currentItemOpacity: number;
|
|
68
71
|
currentItemFontFamily: import("@excalidraw/element/types").FontFamilyValues;
|
|
69
72
|
currentItemFontSize: number;
|
|
@@ -100,6 +103,10 @@ export declare const actionToggleCropEditor: {
|
|
|
100
103
|
} | {
|
|
101
104
|
name: "elementLinkSelector";
|
|
102
105
|
sourceElementId: import("@excalidraw/element/types").ExcalidrawElement["id"];
|
|
106
|
+
} | {
|
|
107
|
+
name: "charts";
|
|
108
|
+
data: import("../charts").Spreadsheet;
|
|
109
|
+
rawText: string;
|
|
103
110
|
};
|
|
104
111
|
defaultSidebarDockedPreference: boolean;
|
|
105
112
|
lastPointerDownWith: import("@excalidraw/element/types").PointerType;
|
|
@@ -115,7 +122,7 @@ export declare const actionToggleCropEditor: {
|
|
|
115
122
|
selectedElementsAreBeingDragged: boolean;
|
|
116
123
|
shouldCacheIgnoreZoom: boolean;
|
|
117
124
|
toast: {
|
|
118
|
-
message:
|
|
125
|
+
message: React.ReactNode;
|
|
119
126
|
closable?: boolean;
|
|
120
127
|
duration?: number;
|
|
121
128
|
} | null;
|
|
@@ -133,20 +140,12 @@ export declare const actionToggleCropEditor: {
|
|
|
133
140
|
height: number;
|
|
134
141
|
offsetTop: number;
|
|
135
142
|
offsetLeft: number;
|
|
136
|
-
fileHandle:
|
|
143
|
+
fileHandle: FileSystemFileHandle | null;
|
|
137
144
|
collaborators: Map<import("../types").SocketId, import("../types").Collaborator>;
|
|
138
145
|
stats: {
|
|
139
146
|
open: boolean;
|
|
140
147
|
panels: number;
|
|
141
148
|
};
|
|
142
|
-
currentChartType: import("@excalidraw/element/types").ChartType;
|
|
143
|
-
pasteDialog: {
|
|
144
|
-
shown: false;
|
|
145
|
-
data: null;
|
|
146
|
-
} | {
|
|
147
|
-
shown: true;
|
|
148
|
-
data: import("../charts").Spreadsheet;
|
|
149
|
-
};
|
|
150
149
|
showHyperlinkPopup: false | "info" | "editor";
|
|
151
150
|
selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
|
|
152
151
|
snapLines: readonly import("../snapping").SnapLine[];
|
|
@@ -29,7 +29,9 @@ export declare const actionDeleteSelected: {
|
|
|
29
29
|
multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
|
|
30
30
|
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
31
31
|
isBindingEnabled: boolean;
|
|
32
|
-
|
|
32
|
+
boxSelectionMode: import("../types").BoxSelectionMode;
|
|
33
|
+
bindingPreference: "enabled" | "disabled";
|
|
34
|
+
isMidpointSnappingEnabled: boolean;
|
|
33
35
|
suggestedBinding: {
|
|
34
36
|
element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
|
|
35
37
|
midPoint?: import("@excalidraw/math").GlobalPoint;
|
|
@@ -43,7 +45,7 @@ export declare const actionDeleteSelected: {
|
|
|
43
45
|
};
|
|
44
46
|
editingFrame: string | null;
|
|
45
47
|
elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
|
|
46
|
-
editingTextElement: import("@excalidraw/element/types").
|
|
48
|
+
editingTextElement: import("@excalidraw/element/types").ExcalidrawTextElement | null;
|
|
47
49
|
activeTool: {
|
|
48
50
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
49
51
|
locked: boolean;
|
|
@@ -62,9 +64,10 @@ export declare const actionDeleteSelected: {
|
|
|
62
64
|
currentItemStrokeColor: string;
|
|
63
65
|
currentItemBackgroundColor: string;
|
|
64
66
|
currentItemFillStyle: ExcalidrawElement["fillStyle"];
|
|
65
|
-
|
|
67
|
+
currentItemStrokeWidthKey: import("@excalidraw/common").StrokeWidthKey;
|
|
66
68
|
currentItemStrokeStyle: ExcalidrawElement["strokeStyle"];
|
|
67
69
|
currentItemRoughness: number;
|
|
70
|
+
currentItemStrokeVariability: import("@excalidraw/element/types").StrokeVariability;
|
|
68
71
|
currentItemOpacity: number;
|
|
69
72
|
currentItemFontFamily: import("@excalidraw/element/types").FontFamilyValues;
|
|
70
73
|
currentItemFontSize: number;
|
|
@@ -101,6 +104,10 @@ export declare const actionDeleteSelected: {
|
|
|
101
104
|
} | {
|
|
102
105
|
name: "elementLinkSelector";
|
|
103
106
|
sourceElementId: ExcalidrawElement["id"];
|
|
107
|
+
} | {
|
|
108
|
+
name: "charts";
|
|
109
|
+
data: import("../charts").Spreadsheet;
|
|
110
|
+
rawText: string;
|
|
104
111
|
};
|
|
105
112
|
defaultSidebarDockedPreference: boolean;
|
|
106
113
|
lastPointerDownWith: import("@excalidraw/element/types").PointerType;
|
|
@@ -116,7 +123,7 @@ export declare const actionDeleteSelected: {
|
|
|
116
123
|
selectedElementsAreBeingDragged: boolean;
|
|
117
124
|
shouldCacheIgnoreZoom: boolean;
|
|
118
125
|
toast: {
|
|
119
|
-
message:
|
|
126
|
+
message: React.ReactNode;
|
|
120
127
|
closable?: boolean;
|
|
121
128
|
duration?: number;
|
|
122
129
|
} | null;
|
|
@@ -134,20 +141,12 @@ export declare const actionDeleteSelected: {
|
|
|
134
141
|
height: number;
|
|
135
142
|
offsetTop: number;
|
|
136
143
|
offsetLeft: number;
|
|
137
|
-
fileHandle:
|
|
144
|
+
fileHandle: FileSystemFileHandle | null;
|
|
138
145
|
collaborators: Map<import("../types").SocketId, import("../types").Collaborator>;
|
|
139
146
|
stats: {
|
|
140
147
|
open: boolean;
|
|
141
148
|
panels: number;
|
|
142
149
|
};
|
|
143
|
-
currentChartType: import("@excalidraw/element/types").ChartType;
|
|
144
|
-
pasteDialog: {
|
|
145
|
-
shown: false;
|
|
146
|
-
data: null;
|
|
147
|
-
} | {
|
|
148
|
-
shown: true;
|
|
149
|
-
data: import("../charts").Spreadsheet;
|
|
150
|
-
};
|
|
151
150
|
showHyperlinkPopup: false | "info" | "editor";
|
|
152
151
|
snapLines: readonly import("../snapping").SnapLine[];
|
|
153
152
|
originSnapOffset: {
|
|
@@ -223,7 +222,9 @@ export declare const actionDeleteSelected: {
|
|
|
223
222
|
multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
|
|
224
223
|
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
225
224
|
isBindingEnabled: boolean;
|
|
226
|
-
|
|
225
|
+
boxSelectionMode: import("../types").BoxSelectionMode;
|
|
226
|
+
bindingPreference: "enabled" | "disabled";
|
|
227
|
+
isMidpointSnappingEnabled: boolean;
|
|
227
228
|
suggestedBinding: {
|
|
228
229
|
element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
|
|
229
230
|
midPoint?: import("@excalidraw/math").GlobalPoint;
|
|
@@ -237,7 +238,7 @@ export declare const actionDeleteSelected: {
|
|
|
237
238
|
};
|
|
238
239
|
editingFrame: string | null;
|
|
239
240
|
elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
|
|
240
|
-
editingTextElement: import("@excalidraw/element/types").
|
|
241
|
+
editingTextElement: import("@excalidraw/element/types").ExcalidrawTextElement | null;
|
|
241
242
|
activeTool: {
|
|
242
243
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
243
244
|
locked: boolean;
|
|
@@ -256,9 +257,10 @@ export declare const actionDeleteSelected: {
|
|
|
256
257
|
currentItemStrokeColor: string;
|
|
257
258
|
currentItemBackgroundColor: string;
|
|
258
259
|
currentItemFillStyle: ExcalidrawElement["fillStyle"];
|
|
259
|
-
|
|
260
|
+
currentItemStrokeWidthKey: import("@excalidraw/common").StrokeWidthKey;
|
|
260
261
|
currentItemStrokeStyle: ExcalidrawElement["strokeStyle"];
|
|
261
262
|
currentItemRoughness: number;
|
|
263
|
+
currentItemStrokeVariability: import("@excalidraw/element/types").StrokeVariability;
|
|
262
264
|
currentItemOpacity: number;
|
|
263
265
|
currentItemFontFamily: import("@excalidraw/element/types").FontFamilyValues;
|
|
264
266
|
currentItemFontSize: number;
|
|
@@ -295,6 +297,10 @@ export declare const actionDeleteSelected: {
|
|
|
295
297
|
} | {
|
|
296
298
|
name: "elementLinkSelector";
|
|
297
299
|
sourceElementId: ExcalidrawElement["id"];
|
|
300
|
+
} | {
|
|
301
|
+
name: "charts";
|
|
302
|
+
data: import("../charts").Spreadsheet;
|
|
303
|
+
rawText: string;
|
|
298
304
|
};
|
|
299
305
|
defaultSidebarDockedPreference: boolean;
|
|
300
306
|
lastPointerDownWith: import("@excalidraw/element/types").PointerType;
|
|
@@ -310,7 +316,7 @@ export declare const actionDeleteSelected: {
|
|
|
310
316
|
selectedElementsAreBeingDragged: boolean;
|
|
311
317
|
shouldCacheIgnoreZoom: boolean;
|
|
312
318
|
toast: {
|
|
313
|
-
message:
|
|
319
|
+
message: React.ReactNode;
|
|
314
320
|
closable?: boolean;
|
|
315
321
|
duration?: number;
|
|
316
322
|
} | null;
|
|
@@ -328,20 +334,12 @@ export declare const actionDeleteSelected: {
|
|
|
328
334
|
height: number;
|
|
329
335
|
offsetTop: number;
|
|
330
336
|
offsetLeft: number;
|
|
331
|
-
fileHandle:
|
|
337
|
+
fileHandle: FileSystemFileHandle | null;
|
|
332
338
|
collaborators: Map<import("../types").SocketId, import("../types").Collaborator>;
|
|
333
339
|
stats: {
|
|
334
340
|
open: boolean;
|
|
335
341
|
panels: number;
|
|
336
342
|
};
|
|
337
|
-
currentChartType: import("@excalidraw/element/types").ChartType;
|
|
338
|
-
pasteDialog: {
|
|
339
|
-
shown: false;
|
|
340
|
-
data: null;
|
|
341
|
-
} | {
|
|
342
|
-
shown: true;
|
|
343
|
-
data: import("../charts").Spreadsheet;
|
|
344
|
-
};
|
|
345
343
|
showHyperlinkPopup: false | "info" | "editor";
|
|
346
344
|
snapLines: readonly import("../snapping").SnapLine[];
|
|
347
345
|
originSnapOffset: {
|
|
@@ -390,7 +388,9 @@ export declare const actionDeleteSelected: {
|
|
|
390
388
|
resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
391
389
|
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
392
390
|
isBindingEnabled: boolean;
|
|
393
|
-
|
|
391
|
+
boxSelectionMode: import("../types").BoxSelectionMode;
|
|
392
|
+
bindingPreference: "enabled" | "disabled";
|
|
393
|
+
isMidpointSnappingEnabled: boolean;
|
|
394
394
|
suggestedBinding: {
|
|
395
395
|
element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
|
|
396
396
|
midPoint?: import("@excalidraw/math").GlobalPoint;
|
|
@@ -404,7 +404,7 @@ export declare const actionDeleteSelected: {
|
|
|
404
404
|
};
|
|
405
405
|
editingFrame: string | null;
|
|
406
406
|
elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
|
|
407
|
-
editingTextElement: import("@excalidraw/element/types").
|
|
407
|
+
editingTextElement: import("@excalidraw/element/types").ExcalidrawTextElement | null;
|
|
408
408
|
preferredSelectionTool: {
|
|
409
409
|
type: "selection" | "lasso";
|
|
410
410
|
initialized: boolean;
|
|
@@ -418,9 +418,10 @@ export declare const actionDeleteSelected: {
|
|
|
418
418
|
currentItemStrokeColor: string;
|
|
419
419
|
currentItemBackgroundColor: string;
|
|
420
420
|
currentItemFillStyle: ExcalidrawElement["fillStyle"];
|
|
421
|
-
|
|
421
|
+
currentItemStrokeWidthKey: import("@excalidraw/common").StrokeWidthKey;
|
|
422
422
|
currentItemStrokeStyle: ExcalidrawElement["strokeStyle"];
|
|
423
423
|
currentItemRoughness: number;
|
|
424
|
+
currentItemStrokeVariability: import("@excalidraw/element/types").StrokeVariability;
|
|
424
425
|
currentItemOpacity: number;
|
|
425
426
|
currentItemFontFamily: import("@excalidraw/element/types").FontFamilyValues;
|
|
426
427
|
currentItemFontSize: number;
|
|
@@ -457,6 +458,10 @@ export declare const actionDeleteSelected: {
|
|
|
457
458
|
} | {
|
|
458
459
|
name: "elementLinkSelector";
|
|
459
460
|
sourceElementId: ExcalidrawElement["id"];
|
|
461
|
+
} | {
|
|
462
|
+
name: "charts";
|
|
463
|
+
data: import("../charts").Spreadsheet;
|
|
464
|
+
rawText: string;
|
|
460
465
|
};
|
|
461
466
|
defaultSidebarDockedPreference: boolean;
|
|
462
467
|
lastPointerDownWith: import("@excalidraw/element/types").PointerType;
|
|
@@ -469,7 +474,7 @@ export declare const actionDeleteSelected: {
|
|
|
469
474
|
selectedElementsAreBeingDragged: boolean;
|
|
470
475
|
shouldCacheIgnoreZoom: boolean;
|
|
471
476
|
toast: {
|
|
472
|
-
message:
|
|
477
|
+
message: React.ReactNode;
|
|
473
478
|
closable?: boolean;
|
|
474
479
|
duration?: number;
|
|
475
480
|
} | null;
|
|
@@ -483,20 +488,12 @@ export declare const actionDeleteSelected: {
|
|
|
483
488
|
height: number;
|
|
484
489
|
offsetTop: number;
|
|
485
490
|
offsetLeft: number;
|
|
486
|
-
fileHandle:
|
|
491
|
+
fileHandle: FileSystemFileHandle | null;
|
|
487
492
|
collaborators: Map<import("../types").SocketId, import("../types").Collaborator>;
|
|
488
493
|
stats: {
|
|
489
494
|
open: boolean;
|
|
490
495
|
panels: number;
|
|
491
496
|
};
|
|
492
|
-
currentChartType: import("@excalidraw/element/types").ChartType;
|
|
493
|
-
pasteDialog: {
|
|
494
|
-
shown: false;
|
|
495
|
-
data: null;
|
|
496
|
-
} | {
|
|
497
|
-
shown: true;
|
|
498
|
-
data: import("../charts").Spreadsheet;
|
|
499
|
-
};
|
|
500
497
|
showHyperlinkPopup: false | "info" | "editor";
|
|
501
498
|
snapLines: readonly import("../snapping").SnapLine[];
|
|
502
499
|
originSnapOffset: {
|
|
@@ -0,0 +1,160 @@
|
|
|
1
|
+
import type { AppClassProperties, AppState } from "../types";
|
|
2
|
+
export declare const actionDeselect: {
|
|
3
|
+
name: "deselect";
|
|
4
|
+
label: string;
|
|
5
|
+
trackEvent: false;
|
|
6
|
+
perform: (_elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: unknown, app: AppClassProperties) => {
|
|
7
|
+
appState: {
|
|
8
|
+
activeEmbeddable: null;
|
|
9
|
+
activeTool: {
|
|
10
|
+
lastActiveTool: import("../types").ActiveTool | null;
|
|
11
|
+
locked: boolean;
|
|
12
|
+
fromSelection: boolean;
|
|
13
|
+
} & import("../types").ActiveTool;
|
|
14
|
+
selectedLinearElement: null;
|
|
15
|
+
selectionElement: null;
|
|
16
|
+
showHyperlinkPopup: false;
|
|
17
|
+
suggestedBinding: null;
|
|
18
|
+
frameToHighlight: null;
|
|
19
|
+
editingGroupId: AppState["editingGroupId"];
|
|
20
|
+
selectedElementIds: AppState["selectedElementIds"];
|
|
21
|
+
selectedGroupIds: AppState["selectedGroupIds"];
|
|
22
|
+
contextMenu: {
|
|
23
|
+
items: import("../components/ContextMenu").ContextMenuItems;
|
|
24
|
+
top: number;
|
|
25
|
+
left: number;
|
|
26
|
+
} | null;
|
|
27
|
+
showWelcomeScreen: boolean;
|
|
28
|
+
isLoading: boolean;
|
|
29
|
+
errorMessage: React.ReactNode;
|
|
30
|
+
newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
|
|
31
|
+
resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
32
|
+
multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
|
|
33
|
+
isBindingEnabled: boolean;
|
|
34
|
+
boxSelectionMode: import("../types").BoxSelectionMode;
|
|
35
|
+
bindingPreference: "enabled" | "disabled";
|
|
36
|
+
isMidpointSnappingEnabled: boolean;
|
|
37
|
+
frameRendering: {
|
|
38
|
+
enabled: boolean;
|
|
39
|
+
name: boolean;
|
|
40
|
+
outline: boolean;
|
|
41
|
+
clip: boolean;
|
|
42
|
+
};
|
|
43
|
+
editingFrame: string | null;
|
|
44
|
+
elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
|
|
45
|
+
editingTextElement: import("@excalidraw/element/types").ExcalidrawTextElement | null;
|
|
46
|
+
preferredSelectionTool: {
|
|
47
|
+
type: "selection" | "lasso";
|
|
48
|
+
initialized: boolean;
|
|
49
|
+
};
|
|
50
|
+
penMode: boolean;
|
|
51
|
+
penDetected: boolean;
|
|
52
|
+
exportBackground: boolean;
|
|
53
|
+
exportEmbedScene: boolean;
|
|
54
|
+
exportWithDarkMode: boolean;
|
|
55
|
+
exportScale: number;
|
|
56
|
+
currentItemStrokeColor: string;
|
|
57
|
+
currentItemBackgroundColor: string;
|
|
58
|
+
currentItemFillStyle: import("@excalidraw/element/types").ExcalidrawElement["fillStyle"];
|
|
59
|
+
currentItemStrokeWidthKey: import("@excalidraw/common").StrokeWidthKey;
|
|
60
|
+
currentItemStrokeStyle: import("@excalidraw/element/types").ExcalidrawElement["strokeStyle"];
|
|
61
|
+
currentItemRoughness: number;
|
|
62
|
+
currentItemStrokeVariability: import("@excalidraw/element/types").StrokeVariability;
|
|
63
|
+
currentItemOpacity: number;
|
|
64
|
+
currentItemFontFamily: import("@excalidraw/element/types").FontFamilyValues;
|
|
65
|
+
currentItemFontSize: number;
|
|
66
|
+
currentItemTextAlign: import("@excalidraw/element/types").TextAlign;
|
|
67
|
+
currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
68
|
+
currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
69
|
+
currentHoveredFontFamily: import("@excalidraw/element/types").FontFamilyValues | null;
|
|
70
|
+
currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
|
|
71
|
+
currentItemArrowType: "sharp" | "round" | "elbow";
|
|
72
|
+
viewBackgroundColor: string;
|
|
73
|
+
scrollX: number;
|
|
74
|
+
scrollY: number;
|
|
75
|
+
cursorButton: "up" | "down";
|
|
76
|
+
scrolledOutside: boolean;
|
|
77
|
+
name: string | null;
|
|
78
|
+
isResizing: boolean;
|
|
79
|
+
isRotating: boolean;
|
|
80
|
+
zoom: import("../types").Zoom;
|
|
81
|
+
openMenu: "canvas" | null;
|
|
82
|
+
openPopup: "canvasBackground" | "elementBackground" | "elementStroke" | "fontFamily" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
|
|
83
|
+
openSidebar: {
|
|
84
|
+
name: import("../types").SidebarName;
|
|
85
|
+
tab?: import("../types").SidebarTabName;
|
|
86
|
+
} | null;
|
|
87
|
+
openDialog: null | {
|
|
88
|
+
name: "imageExport" | "help" | "jsonExport";
|
|
89
|
+
} | {
|
|
90
|
+
name: "ttd";
|
|
91
|
+
tab: "text-to-diagram" | "mermaid";
|
|
92
|
+
} | {
|
|
93
|
+
name: "commandPalette";
|
|
94
|
+
} | {
|
|
95
|
+
name: "settings";
|
|
96
|
+
} | {
|
|
97
|
+
name: "elementLinkSelector";
|
|
98
|
+
sourceElementId: import("@excalidraw/element/types").ExcalidrawElement["id"];
|
|
99
|
+
} | {
|
|
100
|
+
name: "charts";
|
|
101
|
+
data: import("../charts").Spreadsheet;
|
|
102
|
+
rawText: string;
|
|
103
|
+
};
|
|
104
|
+
defaultSidebarDockedPreference: boolean;
|
|
105
|
+
lastPointerDownWith: import("@excalidraw/element/types").PointerType;
|
|
106
|
+
hoveredElementIds: Readonly<{
|
|
107
|
+
[id: string]: true;
|
|
108
|
+
}>;
|
|
109
|
+
previousSelectedElementIds: {
|
|
110
|
+
[id: string]: true;
|
|
111
|
+
};
|
|
112
|
+
selectedElementsAreBeingDragged: boolean;
|
|
113
|
+
shouldCacheIgnoreZoom: boolean;
|
|
114
|
+
toast: {
|
|
115
|
+
message: React.ReactNode;
|
|
116
|
+
closable?: boolean;
|
|
117
|
+
duration?: number;
|
|
118
|
+
} | null;
|
|
119
|
+
zenModeEnabled: boolean;
|
|
120
|
+
theme: import("@excalidraw/element/types").Theme;
|
|
121
|
+
gridSize: number;
|
|
122
|
+
gridStep: number;
|
|
123
|
+
gridModeEnabled: boolean;
|
|
124
|
+
viewModeEnabled: boolean;
|
|
125
|
+
width: number;
|
|
126
|
+
height: number;
|
|
127
|
+
offsetTop: number;
|
|
128
|
+
offsetLeft: number;
|
|
129
|
+
fileHandle: FileSystemFileHandle | null;
|
|
130
|
+
collaborators: Map<import("../types").SocketId, import("../types").Collaborator>;
|
|
131
|
+
stats: {
|
|
132
|
+
open: boolean;
|
|
133
|
+
panels: number;
|
|
134
|
+
};
|
|
135
|
+
snapLines: readonly import("../snapping").SnapLine[];
|
|
136
|
+
originSnapOffset: {
|
|
137
|
+
x: number;
|
|
138
|
+
y: number;
|
|
139
|
+
} | null;
|
|
140
|
+
objectsSnapModeEnabled: boolean;
|
|
141
|
+
userToFollow: import("../types").UserToFollow | null;
|
|
142
|
+
followedBy: Set<import("../types").SocketId>;
|
|
143
|
+
isCropping: boolean;
|
|
144
|
+
croppingElementId: import("@excalidraw/element/types").ExcalidrawElement["id"] | null;
|
|
145
|
+
searchMatches: Readonly<{
|
|
146
|
+
focusedId: import("@excalidraw/element/types").ExcalidrawElement["id"] | null;
|
|
147
|
+
matches: readonly import("../types").SearchMatch[];
|
|
148
|
+
}> | null;
|
|
149
|
+
activeLockedId: string | null;
|
|
150
|
+
lockedMultiSelections: {
|
|
151
|
+
[groupId: string]: true;
|
|
152
|
+
};
|
|
153
|
+
bindMode: import("@excalidraw/element/types").BindMode;
|
|
154
|
+
};
|
|
155
|
+
captureUpdate: "IMMEDIATELY";
|
|
156
|
+
};
|
|
157
|
+
keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>, appState: AppState, _: readonly import("@excalidraw/element/types").ExcalidrawElement[], app: AppClassProperties) => boolean;
|
|
158
|
+
} & {
|
|
159
|
+
keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>, appState: AppState, _: readonly import("@excalidraw/element/types").ExcalidrawElement[], app: AppClassProperties) => boolean) | undefined;
|
|
160
|
+
};
|
|
@@ -57,7 +57,9 @@ export declare const actionLinkToElement: {
|
|
|
57
57
|
multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
|
|
58
58
|
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
59
59
|
isBindingEnabled: boolean;
|
|
60
|
-
|
|
60
|
+
boxSelectionMode: import("../types").BoxSelectionMode;
|
|
61
|
+
bindingPreference: "enabled" | "disabled";
|
|
62
|
+
isMidpointSnappingEnabled: boolean;
|
|
61
63
|
suggestedBinding: {
|
|
62
64
|
element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
|
|
63
65
|
midPoint?: import("@excalidraw/math").GlobalPoint;
|
|
@@ -71,7 +73,7 @@ export declare const actionLinkToElement: {
|
|
|
71
73
|
};
|
|
72
74
|
editingFrame: string | null;
|
|
73
75
|
elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
|
|
74
|
-
editingTextElement: import("@excalidraw/element/types").
|
|
76
|
+
editingTextElement: import("@excalidraw/element/types").ExcalidrawTextElement | null;
|
|
75
77
|
activeTool: {
|
|
76
78
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
77
79
|
locked: boolean;
|
|
@@ -90,9 +92,10 @@ export declare const actionLinkToElement: {
|
|
|
90
92
|
currentItemStrokeColor: string;
|
|
91
93
|
currentItemBackgroundColor: string;
|
|
92
94
|
currentItemFillStyle: import("@excalidraw/element/types").ExcalidrawElement["fillStyle"];
|
|
93
|
-
|
|
95
|
+
currentItemStrokeWidthKey: import("@excalidraw/common").StrokeWidthKey;
|
|
94
96
|
currentItemStrokeStyle: import("@excalidraw/element/types").ExcalidrawElement["strokeStyle"];
|
|
95
97
|
currentItemRoughness: number;
|
|
98
|
+
currentItemStrokeVariability: import("@excalidraw/element/types").StrokeVariability;
|
|
96
99
|
currentItemOpacity: number;
|
|
97
100
|
currentItemFontFamily: import("@excalidraw/element/types").FontFamilyValues;
|
|
98
101
|
currentItemFontSize: number;
|
|
@@ -131,7 +134,7 @@ export declare const actionLinkToElement: {
|
|
|
131
134
|
selectedElementsAreBeingDragged: boolean;
|
|
132
135
|
shouldCacheIgnoreZoom: boolean;
|
|
133
136
|
toast: {
|
|
134
|
-
message:
|
|
137
|
+
message: React.ReactNode;
|
|
135
138
|
closable?: boolean;
|
|
136
139
|
duration?: number;
|
|
137
140
|
} | null;
|
|
@@ -149,20 +152,12 @@ export declare const actionLinkToElement: {
|
|
|
149
152
|
height: number;
|
|
150
153
|
offsetTop: number;
|
|
151
154
|
offsetLeft: number;
|
|
152
|
-
fileHandle:
|
|
155
|
+
fileHandle: FileSystemFileHandle | null;
|
|
153
156
|
collaborators: Map<import("../types").SocketId, import("../types").Collaborator>;
|
|
154
157
|
stats: {
|
|
155
158
|
open: boolean;
|
|
156
159
|
panels: number;
|
|
157
160
|
};
|
|
158
|
-
currentChartType: import("@excalidraw/element/types").ChartType;
|
|
159
|
-
pasteDialog: {
|
|
160
|
-
shown: false;
|
|
161
|
-
data: null;
|
|
162
|
-
} | {
|
|
163
|
-
shown: true;
|
|
164
|
-
data: import("../charts").Spreadsheet;
|
|
165
|
-
};
|
|
166
161
|
showHyperlinkPopup: false | "info" | "editor";
|
|
167
162
|
selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
|
|
168
163
|
snapLines: readonly import("../snapping").SnapLine[];
|