@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
|
@@ -28,13 +28,6 @@ export declare const actionClearCanvas: {
|
|
|
28
28
|
open: boolean;
|
|
29
29
|
panels: number;
|
|
30
30
|
};
|
|
31
|
-
pasteDialog: {
|
|
32
|
-
shown: false;
|
|
33
|
-
data: null;
|
|
34
|
-
} | {
|
|
35
|
-
shown: true;
|
|
36
|
-
data: import("../charts").Spreadsheet;
|
|
37
|
-
};
|
|
38
31
|
activeTool: {
|
|
39
32
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
40
33
|
locked: boolean;
|
|
@@ -64,6 +57,10 @@ export declare const actionClearCanvas: {
|
|
|
64
57
|
} | {
|
|
65
58
|
name: "elementLinkSelector";
|
|
66
59
|
sourceElementId: ExcalidrawElement["id"];
|
|
60
|
+
} | {
|
|
61
|
+
name: "charts";
|
|
62
|
+
data: import("../charts").Spreadsheet;
|
|
63
|
+
rawText: string;
|
|
67
64
|
};
|
|
68
65
|
editingGroupId: import("@excalidraw/element/types").GroupId | null;
|
|
69
66
|
selectedElementIds: Readonly<{
|
|
@@ -82,6 +79,7 @@ export declare const actionClearCanvas: {
|
|
|
82
79
|
multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
|
|
83
80
|
newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
|
|
84
81
|
isBindingEnabled: boolean;
|
|
82
|
+
isMidpointSnappingEnabled: boolean;
|
|
85
83
|
suggestedBinding: {
|
|
86
84
|
element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
|
|
87
85
|
midPoint?: import("@excalidraw/math").GlobalPoint;
|
|
@@ -91,7 +89,7 @@ export declare const actionClearCanvas: {
|
|
|
91
89
|
collaborators: Map<import("../types").SocketId, import("../types").Collaborator>;
|
|
92
90
|
snapLines: readonly import("../snapping").SnapLine[];
|
|
93
91
|
zenModeEnabled: boolean;
|
|
94
|
-
editingTextElement: import("@excalidraw/element/types").
|
|
92
|
+
editingTextElement: import("@excalidraw/element/types").ExcalidrawTextElement | null;
|
|
95
93
|
isCropping: boolean;
|
|
96
94
|
croppingElementId: ExcalidrawElement["id"] | null;
|
|
97
95
|
searchMatches: Readonly<{
|
|
@@ -115,7 +113,8 @@ export declare const actionClearCanvas: {
|
|
|
115
113
|
isLoading: boolean;
|
|
116
114
|
errorMessage: React.ReactNode;
|
|
117
115
|
resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
118
|
-
|
|
116
|
+
boxSelectionMode: import("../types").BoxSelectionMode;
|
|
117
|
+
bindingPreference: "enabled" | "disabled";
|
|
119
118
|
editingFrame: string | null;
|
|
120
119
|
preferredSelectionTool: {
|
|
121
120
|
type: "selection" | "lasso";
|
|
@@ -125,9 +124,10 @@ export declare const actionClearCanvas: {
|
|
|
125
124
|
currentItemStrokeColor: string;
|
|
126
125
|
currentItemBackgroundColor: string;
|
|
127
126
|
currentItemFillStyle: ExcalidrawElement["fillStyle"];
|
|
128
|
-
|
|
127
|
+
currentItemStrokeWidthKey: import("@excalidraw/common").StrokeWidthKey;
|
|
129
128
|
currentItemStrokeStyle: ExcalidrawElement["strokeStyle"];
|
|
130
129
|
currentItemRoughness: number;
|
|
130
|
+
currentItemStrokeVariability: import("@excalidraw/element/types").StrokeVariability;
|
|
131
131
|
currentItemOpacity: number;
|
|
132
132
|
currentItemFontFamily: import("@excalidraw/element/types").FontFamilyValues;
|
|
133
133
|
currentItemFontSize: number;
|
|
@@ -152,12 +152,11 @@ export declare const actionClearCanvas: {
|
|
|
152
152
|
};
|
|
153
153
|
selectedElementsAreBeingDragged: boolean;
|
|
154
154
|
toast: {
|
|
155
|
-
message:
|
|
155
|
+
message: React.ReactNode;
|
|
156
156
|
closable?: boolean;
|
|
157
157
|
duration?: number;
|
|
158
158
|
} | null;
|
|
159
|
-
fileHandle:
|
|
160
|
-
currentChartType: import("@excalidraw/element/types").ChartType;
|
|
159
|
+
fileHandle: FileSystemFileHandle | null;
|
|
161
160
|
showHyperlinkPopup: false | "info" | "editor";
|
|
162
161
|
originSnapOffset: {
|
|
163
162
|
x: number;
|
|
@@ -208,7 +207,9 @@ export declare const actionZoomIn: {
|
|
|
208
207
|
multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
|
|
209
208
|
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
210
209
|
isBindingEnabled: boolean;
|
|
211
|
-
|
|
210
|
+
boxSelectionMode: import("../types").BoxSelectionMode;
|
|
211
|
+
bindingPreference: "enabled" | "disabled";
|
|
212
|
+
isMidpointSnappingEnabled: boolean;
|
|
212
213
|
suggestedBinding: {
|
|
213
214
|
element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
|
|
214
215
|
midPoint?: import("@excalidraw/math").GlobalPoint;
|
|
@@ -222,7 +223,7 @@ export declare const actionZoomIn: {
|
|
|
222
223
|
};
|
|
223
224
|
editingFrame: string | null;
|
|
224
225
|
elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
|
|
225
|
-
editingTextElement: import("@excalidraw/element/types").
|
|
226
|
+
editingTextElement: import("@excalidraw/element/types").ExcalidrawTextElement | null;
|
|
226
227
|
activeTool: {
|
|
227
228
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
228
229
|
locked: boolean;
|
|
@@ -241,9 +242,10 @@ export declare const actionZoomIn: {
|
|
|
241
242
|
currentItemStrokeColor: string;
|
|
242
243
|
currentItemBackgroundColor: string;
|
|
243
244
|
currentItemFillStyle: ExcalidrawElement["fillStyle"];
|
|
244
|
-
|
|
245
|
+
currentItemStrokeWidthKey: import("@excalidraw/common").StrokeWidthKey;
|
|
245
246
|
currentItemStrokeStyle: ExcalidrawElement["strokeStyle"];
|
|
246
247
|
currentItemRoughness: number;
|
|
248
|
+
currentItemStrokeVariability: import("@excalidraw/element/types").StrokeVariability;
|
|
247
249
|
currentItemOpacity: number;
|
|
248
250
|
currentItemFontFamily: import("@excalidraw/element/types").FontFamilyValues;
|
|
249
251
|
currentItemFontSize: number;
|
|
@@ -277,6 +279,10 @@ export declare const actionZoomIn: {
|
|
|
277
279
|
} | {
|
|
278
280
|
name: "elementLinkSelector";
|
|
279
281
|
sourceElementId: ExcalidrawElement["id"];
|
|
282
|
+
} | {
|
|
283
|
+
name: "charts";
|
|
284
|
+
data: import("../charts").Spreadsheet;
|
|
285
|
+
rawText: string;
|
|
280
286
|
};
|
|
281
287
|
defaultSidebarDockedPreference: boolean;
|
|
282
288
|
lastPointerDownWith: import("@excalidraw/element/types").PointerType;
|
|
@@ -292,7 +298,7 @@ export declare const actionZoomIn: {
|
|
|
292
298
|
selectedElementsAreBeingDragged: boolean;
|
|
293
299
|
shouldCacheIgnoreZoom: boolean;
|
|
294
300
|
toast: {
|
|
295
|
-
message:
|
|
301
|
+
message: React.ReactNode;
|
|
296
302
|
closable?: boolean;
|
|
297
303
|
duration?: number;
|
|
298
304
|
} | null;
|
|
@@ -310,20 +316,12 @@ export declare const actionZoomIn: {
|
|
|
310
316
|
height: number;
|
|
311
317
|
offsetTop: number;
|
|
312
318
|
offsetLeft: number;
|
|
313
|
-
fileHandle:
|
|
319
|
+
fileHandle: FileSystemFileHandle | null;
|
|
314
320
|
collaborators: Map<import("../types").SocketId, import("../types").Collaborator>;
|
|
315
321
|
stats: {
|
|
316
322
|
open: boolean;
|
|
317
323
|
panels: number;
|
|
318
324
|
};
|
|
319
|
-
currentChartType: import("@excalidraw/element/types").ChartType;
|
|
320
|
-
pasteDialog: {
|
|
321
|
-
shown: false;
|
|
322
|
-
data: null;
|
|
323
|
-
} | {
|
|
324
|
-
shown: true;
|
|
325
|
-
data: import("../charts").Spreadsheet;
|
|
326
|
-
};
|
|
327
325
|
showHyperlinkPopup: false | "info" | "editor";
|
|
328
326
|
selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
|
|
329
327
|
snapLines: readonly import("../snapping").SnapLine[];
|
|
@@ -385,7 +383,9 @@ export declare const actionZoomOut: {
|
|
|
385
383
|
multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
|
|
386
384
|
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
387
385
|
isBindingEnabled: boolean;
|
|
388
|
-
|
|
386
|
+
boxSelectionMode: import("../types").BoxSelectionMode;
|
|
387
|
+
bindingPreference: "enabled" | "disabled";
|
|
388
|
+
isMidpointSnappingEnabled: boolean;
|
|
389
389
|
suggestedBinding: {
|
|
390
390
|
element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
|
|
391
391
|
midPoint?: import("@excalidraw/math").GlobalPoint;
|
|
@@ -399,7 +399,7 @@ export declare const actionZoomOut: {
|
|
|
399
399
|
};
|
|
400
400
|
editingFrame: string | null;
|
|
401
401
|
elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
|
|
402
|
-
editingTextElement: import("@excalidraw/element/types").
|
|
402
|
+
editingTextElement: import("@excalidraw/element/types").ExcalidrawTextElement | null;
|
|
403
403
|
activeTool: {
|
|
404
404
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
405
405
|
locked: boolean;
|
|
@@ -418,9 +418,10 @@ export declare const actionZoomOut: {
|
|
|
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;
|
|
@@ -454,6 +455,10 @@ export declare const actionZoomOut: {
|
|
|
454
455
|
} | {
|
|
455
456
|
name: "elementLinkSelector";
|
|
456
457
|
sourceElementId: ExcalidrawElement["id"];
|
|
458
|
+
} | {
|
|
459
|
+
name: "charts";
|
|
460
|
+
data: import("../charts").Spreadsheet;
|
|
461
|
+
rawText: string;
|
|
457
462
|
};
|
|
458
463
|
defaultSidebarDockedPreference: boolean;
|
|
459
464
|
lastPointerDownWith: import("@excalidraw/element/types").PointerType;
|
|
@@ -469,7 +474,7 @@ export declare const actionZoomOut: {
|
|
|
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;
|
|
@@ -487,20 +492,12 @@ export declare const actionZoomOut: {
|
|
|
487
492
|
height: number;
|
|
488
493
|
offsetTop: number;
|
|
489
494
|
offsetLeft: number;
|
|
490
|
-
fileHandle:
|
|
495
|
+
fileHandle: FileSystemFileHandle | null;
|
|
491
496
|
collaborators: Map<import("../types").SocketId, import("../types").Collaborator>;
|
|
492
497
|
stats: {
|
|
493
498
|
open: boolean;
|
|
494
499
|
panels: number;
|
|
495
500
|
};
|
|
496
|
-
currentChartType: import("@excalidraw/element/types").ChartType;
|
|
497
|
-
pasteDialog: {
|
|
498
|
-
shown: false;
|
|
499
|
-
data: null;
|
|
500
|
-
} | {
|
|
501
|
-
shown: true;
|
|
502
|
-
data: import("../charts").Spreadsheet;
|
|
503
|
-
};
|
|
504
501
|
showHyperlinkPopup: false | "info" | "editor";
|
|
505
502
|
selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
|
|
506
503
|
snapLines: readonly import("../snapping").SnapLine[];
|
|
@@ -562,7 +559,9 @@ export declare const actionResetZoom: {
|
|
|
562
559
|
multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
|
|
563
560
|
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
564
561
|
isBindingEnabled: boolean;
|
|
565
|
-
|
|
562
|
+
boxSelectionMode: import("../types").BoxSelectionMode;
|
|
563
|
+
bindingPreference: "enabled" | "disabled";
|
|
564
|
+
isMidpointSnappingEnabled: boolean;
|
|
566
565
|
suggestedBinding: {
|
|
567
566
|
element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
|
|
568
567
|
midPoint?: import("@excalidraw/math").GlobalPoint;
|
|
@@ -576,7 +575,7 @@ export declare const actionResetZoom: {
|
|
|
576
575
|
};
|
|
577
576
|
editingFrame: string | null;
|
|
578
577
|
elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
|
|
579
|
-
editingTextElement: import("@excalidraw/element/types").
|
|
578
|
+
editingTextElement: import("@excalidraw/element/types").ExcalidrawTextElement | null;
|
|
580
579
|
activeTool: {
|
|
581
580
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
582
581
|
locked: boolean;
|
|
@@ -595,9 +594,10 @@ export declare const actionResetZoom: {
|
|
|
595
594
|
currentItemStrokeColor: string;
|
|
596
595
|
currentItemBackgroundColor: string;
|
|
597
596
|
currentItemFillStyle: ExcalidrawElement["fillStyle"];
|
|
598
|
-
|
|
597
|
+
currentItemStrokeWidthKey: import("@excalidraw/common").StrokeWidthKey;
|
|
599
598
|
currentItemStrokeStyle: ExcalidrawElement["strokeStyle"];
|
|
600
599
|
currentItemRoughness: number;
|
|
600
|
+
currentItemStrokeVariability: import("@excalidraw/element/types").StrokeVariability;
|
|
601
601
|
currentItemOpacity: number;
|
|
602
602
|
currentItemFontFamily: import("@excalidraw/element/types").FontFamilyValues;
|
|
603
603
|
currentItemFontSize: number;
|
|
@@ -631,6 +631,10 @@ export declare const actionResetZoom: {
|
|
|
631
631
|
} | {
|
|
632
632
|
name: "elementLinkSelector";
|
|
633
633
|
sourceElementId: ExcalidrawElement["id"];
|
|
634
|
+
} | {
|
|
635
|
+
name: "charts";
|
|
636
|
+
data: import("../charts").Spreadsheet;
|
|
637
|
+
rawText: string;
|
|
634
638
|
};
|
|
635
639
|
defaultSidebarDockedPreference: boolean;
|
|
636
640
|
lastPointerDownWith: import("@excalidraw/element/types").PointerType;
|
|
@@ -646,7 +650,7 @@ export declare const actionResetZoom: {
|
|
|
646
650
|
selectedElementsAreBeingDragged: boolean;
|
|
647
651
|
shouldCacheIgnoreZoom: boolean;
|
|
648
652
|
toast: {
|
|
649
|
-
message:
|
|
653
|
+
message: React.ReactNode;
|
|
650
654
|
closable?: boolean;
|
|
651
655
|
duration?: number;
|
|
652
656
|
} | null;
|
|
@@ -664,20 +668,12 @@ export declare const actionResetZoom: {
|
|
|
664
668
|
height: number;
|
|
665
669
|
offsetTop: number;
|
|
666
670
|
offsetLeft: number;
|
|
667
|
-
fileHandle:
|
|
671
|
+
fileHandle: FileSystemFileHandle | null;
|
|
668
672
|
collaborators: Map<import("../types").SocketId, import("../types").Collaborator>;
|
|
669
673
|
stats: {
|
|
670
674
|
open: boolean;
|
|
671
675
|
panels: number;
|
|
672
676
|
};
|
|
673
|
-
currentChartType: import("@excalidraw/element/types").ChartType;
|
|
674
|
-
pasteDialog: {
|
|
675
|
-
shown: false;
|
|
676
|
-
data: null;
|
|
677
|
-
} | {
|
|
678
|
-
shown: true;
|
|
679
|
-
data: import("../charts").Spreadsheet;
|
|
680
|
-
};
|
|
681
677
|
showHyperlinkPopup: false | "info" | "editor";
|
|
682
678
|
selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
|
|
683
679
|
snapLines: readonly import("../snapping").SnapLine[];
|
|
@@ -740,7 +736,9 @@ export declare const zoomToFitBounds: ({ bounds, appState, canvasOffsets, fitToV
|
|
|
740
736
|
multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
|
|
741
737
|
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
742
738
|
isBindingEnabled: boolean;
|
|
743
|
-
|
|
739
|
+
boxSelectionMode: import("../types").BoxSelectionMode;
|
|
740
|
+
bindingPreference: "enabled" | "disabled";
|
|
741
|
+
isMidpointSnappingEnabled: boolean;
|
|
744
742
|
suggestedBinding: {
|
|
745
743
|
element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
|
|
746
744
|
midPoint?: import("@excalidraw/math").GlobalPoint;
|
|
@@ -754,7 +752,7 @@ export declare const zoomToFitBounds: ({ bounds, appState, canvasOffsets, fitToV
|
|
|
754
752
|
};
|
|
755
753
|
editingFrame: string | null;
|
|
756
754
|
elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
|
|
757
|
-
editingTextElement: import("@excalidraw/element/types").
|
|
755
|
+
editingTextElement: import("@excalidraw/element/types").ExcalidrawTextElement | null;
|
|
758
756
|
activeTool: {
|
|
759
757
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
760
758
|
locked: boolean;
|
|
@@ -773,9 +771,10 @@ export declare const zoomToFitBounds: ({ bounds, appState, canvasOffsets, fitToV
|
|
|
773
771
|
currentItemStrokeColor: string;
|
|
774
772
|
currentItemBackgroundColor: string;
|
|
775
773
|
currentItemFillStyle: ExcalidrawElement["fillStyle"];
|
|
776
|
-
|
|
774
|
+
currentItemStrokeWidthKey: import("@excalidraw/common").StrokeWidthKey;
|
|
777
775
|
currentItemStrokeStyle: ExcalidrawElement["strokeStyle"];
|
|
778
776
|
currentItemRoughness: number;
|
|
777
|
+
currentItemStrokeVariability: import("@excalidraw/element/types").StrokeVariability;
|
|
779
778
|
currentItemOpacity: number;
|
|
780
779
|
currentItemFontFamily: import("@excalidraw/element/types").FontFamilyValues;
|
|
781
780
|
currentItemFontSize: number;
|
|
@@ -809,6 +808,10 @@ export declare const zoomToFitBounds: ({ bounds, appState, canvasOffsets, fitToV
|
|
|
809
808
|
} | {
|
|
810
809
|
name: "elementLinkSelector";
|
|
811
810
|
sourceElementId: ExcalidrawElement["id"];
|
|
811
|
+
} | {
|
|
812
|
+
name: "charts";
|
|
813
|
+
data: import("../charts").Spreadsheet;
|
|
814
|
+
rawText: string;
|
|
812
815
|
};
|
|
813
816
|
defaultSidebarDockedPreference: boolean;
|
|
814
817
|
lastPointerDownWith: import("@excalidraw/element/types").PointerType;
|
|
@@ -824,7 +827,7 @@ export declare const zoomToFitBounds: ({ bounds, appState, canvasOffsets, fitToV
|
|
|
824
827
|
selectedElementsAreBeingDragged: boolean;
|
|
825
828
|
shouldCacheIgnoreZoom: boolean;
|
|
826
829
|
toast: {
|
|
827
|
-
message:
|
|
830
|
+
message: React.ReactNode;
|
|
828
831
|
closable?: boolean;
|
|
829
832
|
duration?: number;
|
|
830
833
|
} | null;
|
|
@@ -842,20 +845,12 @@ export declare const zoomToFitBounds: ({ bounds, appState, canvasOffsets, fitToV
|
|
|
842
845
|
height: number;
|
|
843
846
|
offsetTop: number;
|
|
844
847
|
offsetLeft: number;
|
|
845
|
-
fileHandle:
|
|
848
|
+
fileHandle: FileSystemFileHandle | null;
|
|
846
849
|
collaborators: Map<import("../types").SocketId, import("../types").Collaborator>;
|
|
847
850
|
stats: {
|
|
848
851
|
open: boolean;
|
|
849
852
|
panels: number;
|
|
850
853
|
};
|
|
851
|
-
currentChartType: import("@excalidraw/element/types").ChartType;
|
|
852
|
-
pasteDialog: {
|
|
853
|
-
shown: false;
|
|
854
|
-
data: null;
|
|
855
|
-
} | {
|
|
856
|
-
shown: true;
|
|
857
|
-
data: import("../charts").Spreadsheet;
|
|
858
|
-
};
|
|
859
854
|
showHyperlinkPopup: false | "info" | "editor";
|
|
860
855
|
selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
|
|
861
856
|
snapLines: readonly import("../snapping").SnapLine[];
|
|
@@ -914,7 +909,9 @@ export declare const zoomToFit: ({ canvasOffsets, targetElements, appState, fitT
|
|
|
914
909
|
multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
|
|
915
910
|
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
916
911
|
isBindingEnabled: boolean;
|
|
917
|
-
|
|
912
|
+
boxSelectionMode: import("../types").BoxSelectionMode;
|
|
913
|
+
bindingPreference: "enabled" | "disabled";
|
|
914
|
+
isMidpointSnappingEnabled: boolean;
|
|
918
915
|
suggestedBinding: {
|
|
919
916
|
element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
|
|
920
917
|
midPoint?: import("@excalidraw/math").GlobalPoint;
|
|
@@ -928,7 +925,7 @@ export declare const zoomToFit: ({ canvasOffsets, targetElements, appState, fitT
|
|
|
928
925
|
};
|
|
929
926
|
editingFrame: string | null;
|
|
930
927
|
elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
|
|
931
|
-
editingTextElement: import("@excalidraw/element/types").
|
|
928
|
+
editingTextElement: import("@excalidraw/element/types").ExcalidrawTextElement | null;
|
|
932
929
|
activeTool: {
|
|
933
930
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
934
931
|
locked: boolean;
|
|
@@ -947,9 +944,10 @@ export declare const zoomToFit: ({ canvasOffsets, targetElements, appState, fitT
|
|
|
947
944
|
currentItemStrokeColor: string;
|
|
948
945
|
currentItemBackgroundColor: string;
|
|
949
946
|
currentItemFillStyle: ExcalidrawElement["fillStyle"];
|
|
950
|
-
|
|
947
|
+
currentItemStrokeWidthKey: import("@excalidraw/common").StrokeWidthKey;
|
|
951
948
|
currentItemStrokeStyle: ExcalidrawElement["strokeStyle"];
|
|
952
949
|
currentItemRoughness: number;
|
|
950
|
+
currentItemStrokeVariability: import("@excalidraw/element/types").StrokeVariability;
|
|
953
951
|
currentItemOpacity: number;
|
|
954
952
|
currentItemFontFamily: import("@excalidraw/element/types").FontFamilyValues;
|
|
955
953
|
currentItemFontSize: number;
|
|
@@ -983,6 +981,10 @@ export declare const zoomToFit: ({ canvasOffsets, targetElements, appState, fitT
|
|
|
983
981
|
} | {
|
|
984
982
|
name: "elementLinkSelector";
|
|
985
983
|
sourceElementId: ExcalidrawElement["id"];
|
|
984
|
+
} | {
|
|
985
|
+
name: "charts";
|
|
986
|
+
data: import("../charts").Spreadsheet;
|
|
987
|
+
rawText: string;
|
|
986
988
|
};
|
|
987
989
|
defaultSidebarDockedPreference: boolean;
|
|
988
990
|
lastPointerDownWith: import("@excalidraw/element/types").PointerType;
|
|
@@ -998,7 +1000,7 @@ export declare const zoomToFit: ({ canvasOffsets, targetElements, appState, fitT
|
|
|
998
1000
|
selectedElementsAreBeingDragged: boolean;
|
|
999
1001
|
shouldCacheIgnoreZoom: boolean;
|
|
1000
1002
|
toast: {
|
|
1001
|
-
message:
|
|
1003
|
+
message: React.ReactNode;
|
|
1002
1004
|
closable?: boolean;
|
|
1003
1005
|
duration?: number;
|
|
1004
1006
|
} | null;
|
|
@@ -1016,20 +1018,12 @@ export declare const zoomToFit: ({ canvasOffsets, targetElements, appState, fitT
|
|
|
1016
1018
|
height: number;
|
|
1017
1019
|
offsetTop: number;
|
|
1018
1020
|
offsetLeft: number;
|
|
1019
|
-
fileHandle:
|
|
1021
|
+
fileHandle: FileSystemFileHandle | null;
|
|
1020
1022
|
collaborators: Map<import("../types").SocketId, import("../types").Collaborator>;
|
|
1021
1023
|
stats: {
|
|
1022
1024
|
open: boolean;
|
|
1023
1025
|
panels: number;
|
|
1024
1026
|
};
|
|
1025
|
-
currentChartType: import("@excalidraw/element/types").ChartType;
|
|
1026
|
-
pasteDialog: {
|
|
1027
|
-
shown: false;
|
|
1028
|
-
data: null;
|
|
1029
|
-
} | {
|
|
1030
|
-
shown: true;
|
|
1031
|
-
data: import("../charts").Spreadsheet;
|
|
1032
|
-
};
|
|
1033
1027
|
showHyperlinkPopup: false | "info" | "editor";
|
|
1034
1028
|
selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
|
|
1035
1029
|
snapLines: readonly import("../snapping").SnapLine[];
|
|
@@ -1085,7 +1079,9 @@ export declare const actionZoomToFitSelectionInViewport: {
|
|
|
1085
1079
|
multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
|
|
1086
1080
|
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
1087
1081
|
isBindingEnabled: boolean;
|
|
1088
|
-
|
|
1082
|
+
boxSelectionMode: import("../types").BoxSelectionMode;
|
|
1083
|
+
bindingPreference: "enabled" | "disabled";
|
|
1084
|
+
isMidpointSnappingEnabled: boolean;
|
|
1089
1085
|
suggestedBinding: {
|
|
1090
1086
|
element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
|
|
1091
1087
|
midPoint?: import("@excalidraw/math").GlobalPoint;
|
|
@@ -1099,7 +1095,7 @@ export declare const actionZoomToFitSelectionInViewport: {
|
|
|
1099
1095
|
};
|
|
1100
1096
|
editingFrame: string | null;
|
|
1101
1097
|
elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
|
|
1102
|
-
editingTextElement: import("@excalidraw/element/types").
|
|
1098
|
+
editingTextElement: import("@excalidraw/element/types").ExcalidrawTextElement | null;
|
|
1103
1099
|
activeTool: {
|
|
1104
1100
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
1105
1101
|
locked: boolean;
|
|
@@ -1118,9 +1114,10 @@ export declare const actionZoomToFitSelectionInViewport: {
|
|
|
1118
1114
|
currentItemStrokeColor: string;
|
|
1119
1115
|
currentItemBackgroundColor: string;
|
|
1120
1116
|
currentItemFillStyle: ExcalidrawElement["fillStyle"];
|
|
1121
|
-
|
|
1117
|
+
currentItemStrokeWidthKey: import("@excalidraw/common").StrokeWidthKey;
|
|
1122
1118
|
currentItemStrokeStyle: ExcalidrawElement["strokeStyle"];
|
|
1123
1119
|
currentItemRoughness: number;
|
|
1120
|
+
currentItemStrokeVariability: import("@excalidraw/element/types").StrokeVariability;
|
|
1124
1121
|
currentItemOpacity: number;
|
|
1125
1122
|
currentItemFontFamily: import("@excalidraw/element/types").FontFamilyValues;
|
|
1126
1123
|
currentItemFontSize: number;
|
|
@@ -1154,6 +1151,10 @@ export declare const actionZoomToFitSelectionInViewport: {
|
|
|
1154
1151
|
} | {
|
|
1155
1152
|
name: "elementLinkSelector";
|
|
1156
1153
|
sourceElementId: ExcalidrawElement["id"];
|
|
1154
|
+
} | {
|
|
1155
|
+
name: "charts";
|
|
1156
|
+
data: import("../charts").Spreadsheet;
|
|
1157
|
+
rawText: string;
|
|
1157
1158
|
};
|
|
1158
1159
|
defaultSidebarDockedPreference: boolean;
|
|
1159
1160
|
lastPointerDownWith: import("@excalidraw/element/types").PointerType;
|
|
@@ -1169,7 +1170,7 @@ export declare const actionZoomToFitSelectionInViewport: {
|
|
|
1169
1170
|
selectedElementsAreBeingDragged: boolean;
|
|
1170
1171
|
shouldCacheIgnoreZoom: boolean;
|
|
1171
1172
|
toast: {
|
|
1172
|
-
message:
|
|
1173
|
+
message: React.ReactNode;
|
|
1173
1174
|
closable?: boolean;
|
|
1174
1175
|
duration?: number;
|
|
1175
1176
|
} | null;
|
|
@@ -1187,20 +1188,12 @@ export declare const actionZoomToFitSelectionInViewport: {
|
|
|
1187
1188
|
height: number;
|
|
1188
1189
|
offsetTop: number;
|
|
1189
1190
|
offsetLeft: number;
|
|
1190
|
-
fileHandle:
|
|
1191
|
+
fileHandle: FileSystemFileHandle | null;
|
|
1191
1192
|
collaborators: Map<import("../types").SocketId, import("../types").Collaborator>;
|
|
1192
1193
|
stats: {
|
|
1193
1194
|
open: boolean;
|
|
1194
1195
|
panels: number;
|
|
1195
1196
|
};
|
|
1196
|
-
currentChartType: import("@excalidraw/element/types").ChartType;
|
|
1197
|
-
pasteDialog: {
|
|
1198
|
-
shown: false;
|
|
1199
|
-
data: null;
|
|
1200
|
-
} | {
|
|
1201
|
-
shown: true;
|
|
1202
|
-
data: import("../charts").Spreadsheet;
|
|
1203
|
-
};
|
|
1204
1197
|
showHyperlinkPopup: false | "info" | "editor";
|
|
1205
1198
|
selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
|
|
1206
1199
|
snapLines: readonly import("../snapping").SnapLine[];
|
|
@@ -1260,7 +1253,9 @@ export declare const actionZoomToFitSelection: {
|
|
|
1260
1253
|
multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
|
|
1261
1254
|
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
1262
1255
|
isBindingEnabled: boolean;
|
|
1263
|
-
|
|
1256
|
+
boxSelectionMode: import("../types").BoxSelectionMode;
|
|
1257
|
+
bindingPreference: "enabled" | "disabled";
|
|
1258
|
+
isMidpointSnappingEnabled: boolean;
|
|
1264
1259
|
suggestedBinding: {
|
|
1265
1260
|
element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
|
|
1266
1261
|
midPoint?: import("@excalidraw/math").GlobalPoint;
|
|
@@ -1274,7 +1269,7 @@ export declare const actionZoomToFitSelection: {
|
|
|
1274
1269
|
};
|
|
1275
1270
|
editingFrame: string | null;
|
|
1276
1271
|
elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
|
|
1277
|
-
editingTextElement: import("@excalidraw/element/types").
|
|
1272
|
+
editingTextElement: import("@excalidraw/element/types").ExcalidrawTextElement | null;
|
|
1278
1273
|
activeTool: {
|
|
1279
1274
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
1280
1275
|
locked: boolean;
|
|
@@ -1293,9 +1288,10 @@ export declare const actionZoomToFitSelection: {
|
|
|
1293
1288
|
currentItemStrokeColor: string;
|
|
1294
1289
|
currentItemBackgroundColor: string;
|
|
1295
1290
|
currentItemFillStyle: ExcalidrawElement["fillStyle"];
|
|
1296
|
-
|
|
1291
|
+
currentItemStrokeWidthKey: import("@excalidraw/common").StrokeWidthKey;
|
|
1297
1292
|
currentItemStrokeStyle: ExcalidrawElement["strokeStyle"];
|
|
1298
1293
|
currentItemRoughness: number;
|
|
1294
|
+
currentItemStrokeVariability: import("@excalidraw/element/types").StrokeVariability;
|
|
1299
1295
|
currentItemOpacity: number;
|
|
1300
1296
|
currentItemFontFamily: import("@excalidraw/element/types").FontFamilyValues;
|
|
1301
1297
|
currentItemFontSize: number;
|
|
@@ -1329,6 +1325,10 @@ export declare const actionZoomToFitSelection: {
|
|
|
1329
1325
|
} | {
|
|
1330
1326
|
name: "elementLinkSelector";
|
|
1331
1327
|
sourceElementId: ExcalidrawElement["id"];
|
|
1328
|
+
} | {
|
|
1329
|
+
name: "charts";
|
|
1330
|
+
data: import("../charts").Spreadsheet;
|
|
1331
|
+
rawText: string;
|
|
1332
1332
|
};
|
|
1333
1333
|
defaultSidebarDockedPreference: boolean;
|
|
1334
1334
|
lastPointerDownWith: import("@excalidraw/element/types").PointerType;
|
|
@@ -1344,7 +1344,7 @@ export declare const actionZoomToFitSelection: {
|
|
|
1344
1344
|
selectedElementsAreBeingDragged: boolean;
|
|
1345
1345
|
shouldCacheIgnoreZoom: boolean;
|
|
1346
1346
|
toast: {
|
|
1347
|
-
message:
|
|
1347
|
+
message: React.ReactNode;
|
|
1348
1348
|
closable?: boolean;
|
|
1349
1349
|
duration?: number;
|
|
1350
1350
|
} | null;
|
|
@@ -1362,20 +1362,12 @@ export declare const actionZoomToFitSelection: {
|
|
|
1362
1362
|
height: number;
|
|
1363
1363
|
offsetTop: number;
|
|
1364
1364
|
offsetLeft: number;
|
|
1365
|
-
fileHandle:
|
|
1365
|
+
fileHandle: FileSystemFileHandle | null;
|
|
1366
1366
|
collaborators: Map<import("../types").SocketId, import("../types").Collaborator>;
|
|
1367
1367
|
stats: {
|
|
1368
1368
|
open: boolean;
|
|
1369
1369
|
panels: number;
|
|
1370
1370
|
};
|
|
1371
|
-
currentChartType: import("@excalidraw/element/types").ChartType;
|
|
1372
|
-
pasteDialog: {
|
|
1373
|
-
shown: false;
|
|
1374
|
-
data: null;
|
|
1375
|
-
} | {
|
|
1376
|
-
shown: true;
|
|
1377
|
-
data: import("../charts").Spreadsheet;
|
|
1378
|
-
};
|
|
1379
1371
|
showHyperlinkPopup: false | "info" | "editor";
|
|
1380
1372
|
selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
|
|
1381
1373
|
snapLines: readonly import("../snapping").SnapLine[];
|
|
@@ -1436,7 +1428,9 @@ export declare const actionZoomToFit: {
|
|
|
1436
1428
|
multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
|
|
1437
1429
|
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
1438
1430
|
isBindingEnabled: boolean;
|
|
1439
|
-
|
|
1431
|
+
boxSelectionMode: import("../types").BoxSelectionMode;
|
|
1432
|
+
bindingPreference: "enabled" | "disabled";
|
|
1433
|
+
isMidpointSnappingEnabled: boolean;
|
|
1440
1434
|
suggestedBinding: {
|
|
1441
1435
|
element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
|
|
1442
1436
|
midPoint?: import("@excalidraw/math").GlobalPoint;
|
|
@@ -1450,7 +1444,7 @@ export declare const actionZoomToFit: {
|
|
|
1450
1444
|
};
|
|
1451
1445
|
editingFrame: string | null;
|
|
1452
1446
|
elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
|
|
1453
|
-
editingTextElement: import("@excalidraw/element/types").
|
|
1447
|
+
editingTextElement: import("@excalidraw/element/types").ExcalidrawTextElement | null;
|
|
1454
1448
|
activeTool: {
|
|
1455
1449
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
1456
1450
|
locked: boolean;
|
|
@@ -1469,9 +1463,10 @@ export declare const actionZoomToFit: {
|
|
|
1469
1463
|
currentItemStrokeColor: string;
|
|
1470
1464
|
currentItemBackgroundColor: string;
|
|
1471
1465
|
currentItemFillStyle: ExcalidrawElement["fillStyle"];
|
|
1472
|
-
|
|
1466
|
+
currentItemStrokeWidthKey: import("@excalidraw/common").StrokeWidthKey;
|
|
1473
1467
|
currentItemStrokeStyle: ExcalidrawElement["strokeStyle"];
|
|
1474
1468
|
currentItemRoughness: number;
|
|
1469
|
+
currentItemStrokeVariability: import("@excalidraw/element/types").StrokeVariability;
|
|
1475
1470
|
currentItemOpacity: number;
|
|
1476
1471
|
currentItemFontFamily: import("@excalidraw/element/types").FontFamilyValues;
|
|
1477
1472
|
currentItemFontSize: number;
|
|
@@ -1505,6 +1500,10 @@ export declare const actionZoomToFit: {
|
|
|
1505
1500
|
} | {
|
|
1506
1501
|
name: "elementLinkSelector";
|
|
1507
1502
|
sourceElementId: ExcalidrawElement["id"];
|
|
1503
|
+
} | {
|
|
1504
|
+
name: "charts";
|
|
1505
|
+
data: import("../charts").Spreadsheet;
|
|
1506
|
+
rawText: string;
|
|
1508
1507
|
};
|
|
1509
1508
|
defaultSidebarDockedPreference: boolean;
|
|
1510
1509
|
lastPointerDownWith: import("@excalidraw/element/types").PointerType;
|
|
@@ -1520,7 +1519,7 @@ export declare const actionZoomToFit: {
|
|
|
1520
1519
|
selectedElementsAreBeingDragged: boolean;
|
|
1521
1520
|
shouldCacheIgnoreZoom: boolean;
|
|
1522
1521
|
toast: {
|
|
1523
|
-
message:
|
|
1522
|
+
message: React.ReactNode;
|
|
1524
1523
|
closable?: boolean;
|
|
1525
1524
|
duration?: number;
|
|
1526
1525
|
} | null;
|
|
@@ -1538,20 +1537,12 @@ export declare const actionZoomToFit: {
|
|
|
1538
1537
|
height: number;
|
|
1539
1538
|
offsetTop: number;
|
|
1540
1539
|
offsetLeft: number;
|
|
1541
|
-
fileHandle:
|
|
1540
|
+
fileHandle: FileSystemFileHandle | null;
|
|
1542
1541
|
collaborators: Map<import("../types").SocketId, import("../types").Collaborator>;
|
|
1543
1542
|
stats: {
|
|
1544
1543
|
open: boolean;
|
|
1545
1544
|
panels: number;
|
|
1546
1545
|
};
|
|
1547
|
-
currentChartType: import("@excalidraw/element/types").ChartType;
|
|
1548
|
-
pasteDialog: {
|
|
1549
|
-
shown: false;
|
|
1550
|
-
data: null;
|
|
1551
|
-
} | {
|
|
1552
|
-
shown: true;
|
|
1553
|
-
data: import("../charts").Spreadsheet;
|
|
1554
|
-
};
|
|
1555
1546
|
showHyperlinkPopup: false | "info" | "editor";
|
|
1556
1547
|
selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
|
|
1557
1548
|
snapLines: readonly import("../snapping").SnapLine[];
|
|
@@ -1612,7 +1603,9 @@ export declare const actionToggleEraserTool: {
|
|
|
1612
1603
|
multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
|
|
1613
1604
|
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
1614
1605
|
isBindingEnabled: boolean;
|
|
1615
|
-
|
|
1606
|
+
boxSelectionMode: import("../types").BoxSelectionMode;
|
|
1607
|
+
bindingPreference: "enabled" | "disabled";
|
|
1608
|
+
isMidpointSnappingEnabled: boolean;
|
|
1616
1609
|
suggestedBinding: {
|
|
1617
1610
|
element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
|
|
1618
1611
|
midPoint?: import("@excalidraw/math").GlobalPoint;
|
|
@@ -1626,7 +1619,7 @@ export declare const actionToggleEraserTool: {
|
|
|
1626
1619
|
};
|
|
1627
1620
|
editingFrame: string | null;
|
|
1628
1621
|
elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
|
|
1629
|
-
editingTextElement: import("@excalidraw/element/types").
|
|
1622
|
+
editingTextElement: import("@excalidraw/element/types").ExcalidrawTextElement | null;
|
|
1630
1623
|
preferredSelectionTool: {
|
|
1631
1624
|
type: "selection" | "lasso";
|
|
1632
1625
|
initialized: boolean;
|
|
@@ -1640,9 +1633,10 @@ export declare const actionToggleEraserTool: {
|
|
|
1640
1633
|
currentItemStrokeColor: string;
|
|
1641
1634
|
currentItemBackgroundColor: string;
|
|
1642
1635
|
currentItemFillStyle: ExcalidrawElement["fillStyle"];
|
|
1643
|
-
|
|
1636
|
+
currentItemStrokeWidthKey: import("@excalidraw/common").StrokeWidthKey;
|
|
1644
1637
|
currentItemStrokeStyle: ExcalidrawElement["strokeStyle"];
|
|
1645
1638
|
currentItemRoughness: number;
|
|
1639
|
+
currentItemStrokeVariability: import("@excalidraw/element/types").StrokeVariability;
|
|
1646
1640
|
currentItemOpacity: number;
|
|
1647
1641
|
currentItemFontFamily: import("@excalidraw/element/types").FontFamilyValues;
|
|
1648
1642
|
currentItemFontSize: number;
|
|
@@ -1679,6 +1673,10 @@ export declare const actionToggleEraserTool: {
|
|
|
1679
1673
|
} | {
|
|
1680
1674
|
name: "elementLinkSelector";
|
|
1681
1675
|
sourceElementId: ExcalidrawElement["id"];
|
|
1676
|
+
} | {
|
|
1677
|
+
name: "charts";
|
|
1678
|
+
data: import("../charts").Spreadsheet;
|
|
1679
|
+
rawText: string;
|
|
1682
1680
|
};
|
|
1683
1681
|
defaultSidebarDockedPreference: boolean;
|
|
1684
1682
|
lastPointerDownWith: import("@excalidraw/element/types").PointerType;
|
|
@@ -1691,7 +1689,7 @@ export declare const actionToggleEraserTool: {
|
|
|
1691
1689
|
selectedElementsAreBeingDragged: boolean;
|
|
1692
1690
|
shouldCacheIgnoreZoom: boolean;
|
|
1693
1691
|
toast: {
|
|
1694
|
-
message:
|
|
1692
|
+
message: React.ReactNode;
|
|
1695
1693
|
closable?: boolean;
|
|
1696
1694
|
duration?: number;
|
|
1697
1695
|
} | null;
|
|
@@ -1706,20 +1704,12 @@ export declare const actionToggleEraserTool: {
|
|
|
1706
1704
|
height: number;
|
|
1707
1705
|
offsetTop: number;
|
|
1708
1706
|
offsetLeft: number;
|
|
1709
|
-
fileHandle:
|
|
1707
|
+
fileHandle: FileSystemFileHandle | null;
|
|
1710
1708
|
collaborators: Map<import("../types").SocketId, import("../types").Collaborator>;
|
|
1711
1709
|
stats: {
|
|
1712
1710
|
open: boolean;
|
|
1713
1711
|
panels: number;
|
|
1714
1712
|
};
|
|
1715
|
-
currentChartType: import("@excalidraw/element/types").ChartType;
|
|
1716
|
-
pasteDialog: {
|
|
1717
|
-
shown: false;
|
|
1718
|
-
data: null;
|
|
1719
|
-
} | {
|
|
1720
|
-
shown: true;
|
|
1721
|
-
data: import("../charts").Spreadsheet;
|
|
1722
|
-
};
|
|
1723
1713
|
showHyperlinkPopup: false | "info" | "editor";
|
|
1724
1714
|
selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
|
|
1725
1715
|
snapLines: readonly import("../snapping").SnapLine[];
|
|
@@ -1779,7 +1769,9 @@ export declare const actionToggleLassoTool: {
|
|
|
1779
1769
|
multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
|
|
1780
1770
|
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
1781
1771
|
isBindingEnabled: boolean;
|
|
1782
|
-
|
|
1772
|
+
boxSelectionMode: import("../types").BoxSelectionMode;
|
|
1773
|
+
bindingPreference: "enabled" | "disabled";
|
|
1774
|
+
isMidpointSnappingEnabled: boolean;
|
|
1783
1775
|
suggestedBinding: {
|
|
1784
1776
|
element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
|
|
1785
1777
|
midPoint?: import("@excalidraw/math").GlobalPoint;
|
|
@@ -1793,7 +1785,7 @@ export declare const actionToggleLassoTool: {
|
|
|
1793
1785
|
};
|
|
1794
1786
|
editingFrame: string | null;
|
|
1795
1787
|
elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
|
|
1796
|
-
editingTextElement: import("@excalidraw/element/types").
|
|
1788
|
+
editingTextElement: import("@excalidraw/element/types").ExcalidrawTextElement | null;
|
|
1797
1789
|
preferredSelectionTool: {
|
|
1798
1790
|
type: "selection" | "lasso";
|
|
1799
1791
|
initialized: boolean;
|
|
@@ -1807,9 +1799,10 @@ export declare const actionToggleLassoTool: {
|
|
|
1807
1799
|
currentItemStrokeColor: string;
|
|
1808
1800
|
currentItemBackgroundColor: string;
|
|
1809
1801
|
currentItemFillStyle: ExcalidrawElement["fillStyle"];
|
|
1810
|
-
|
|
1802
|
+
currentItemStrokeWidthKey: import("@excalidraw/common").StrokeWidthKey;
|
|
1811
1803
|
currentItemStrokeStyle: ExcalidrawElement["strokeStyle"];
|
|
1812
1804
|
currentItemRoughness: number;
|
|
1805
|
+
currentItemStrokeVariability: import("@excalidraw/element/types").StrokeVariability;
|
|
1813
1806
|
currentItemOpacity: number;
|
|
1814
1807
|
currentItemFontFamily: import("@excalidraw/element/types").FontFamilyValues;
|
|
1815
1808
|
currentItemFontSize: number;
|
|
@@ -1846,6 +1839,10 @@ export declare const actionToggleLassoTool: {
|
|
|
1846
1839
|
} | {
|
|
1847
1840
|
name: "elementLinkSelector";
|
|
1848
1841
|
sourceElementId: ExcalidrawElement["id"];
|
|
1842
|
+
} | {
|
|
1843
|
+
name: "charts";
|
|
1844
|
+
data: import("../charts").Spreadsheet;
|
|
1845
|
+
rawText: string;
|
|
1849
1846
|
};
|
|
1850
1847
|
defaultSidebarDockedPreference: boolean;
|
|
1851
1848
|
lastPointerDownWith: import("@excalidraw/element/types").PointerType;
|
|
@@ -1858,7 +1855,7 @@ export declare const actionToggleLassoTool: {
|
|
|
1858
1855
|
selectedElementsAreBeingDragged: boolean;
|
|
1859
1856
|
shouldCacheIgnoreZoom: boolean;
|
|
1860
1857
|
toast: {
|
|
1861
|
-
message:
|
|
1858
|
+
message: React.ReactNode;
|
|
1862
1859
|
closable?: boolean;
|
|
1863
1860
|
duration?: number;
|
|
1864
1861
|
} | null;
|
|
@@ -1873,20 +1870,12 @@ export declare const actionToggleLassoTool: {
|
|
|
1873
1870
|
height: number;
|
|
1874
1871
|
offsetTop: number;
|
|
1875
1872
|
offsetLeft: number;
|
|
1876
|
-
fileHandle:
|
|
1873
|
+
fileHandle: FileSystemFileHandle | null;
|
|
1877
1874
|
collaborators: Map<import("../types").SocketId, import("../types").Collaborator>;
|
|
1878
1875
|
stats: {
|
|
1879
1876
|
open: boolean;
|
|
1880
1877
|
panels: number;
|
|
1881
1878
|
};
|
|
1882
|
-
currentChartType: import("@excalidraw/element/types").ChartType;
|
|
1883
|
-
pasteDialog: {
|
|
1884
|
-
shown: false;
|
|
1885
|
-
data: null;
|
|
1886
|
-
} | {
|
|
1887
|
-
shown: true;
|
|
1888
|
-
data: import("../charts").Spreadsheet;
|
|
1889
|
-
};
|
|
1890
1879
|
showHyperlinkPopup: false | "info" | "editor";
|
|
1891
1880
|
selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
|
|
1892
1881
|
snapLines: readonly import("../snapping").SnapLine[];
|
|
@@ -1945,7 +1934,9 @@ export declare const actionToggleHandTool: {
|
|
|
1945
1934
|
multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
|
|
1946
1935
|
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
1947
1936
|
isBindingEnabled: boolean;
|
|
1948
|
-
|
|
1937
|
+
boxSelectionMode: import("../types").BoxSelectionMode;
|
|
1938
|
+
bindingPreference: "enabled" | "disabled";
|
|
1939
|
+
isMidpointSnappingEnabled: boolean;
|
|
1949
1940
|
suggestedBinding: {
|
|
1950
1941
|
element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
|
|
1951
1942
|
midPoint?: import("@excalidraw/math").GlobalPoint;
|
|
@@ -1959,7 +1950,7 @@ export declare const actionToggleHandTool: {
|
|
|
1959
1950
|
};
|
|
1960
1951
|
editingFrame: string | null;
|
|
1961
1952
|
elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
|
|
1962
|
-
editingTextElement: import("@excalidraw/element/types").
|
|
1953
|
+
editingTextElement: import("@excalidraw/element/types").ExcalidrawTextElement | null;
|
|
1963
1954
|
preferredSelectionTool: {
|
|
1964
1955
|
type: "selection" | "lasso";
|
|
1965
1956
|
initialized: boolean;
|
|
@@ -1973,9 +1964,10 @@ export declare const actionToggleHandTool: {
|
|
|
1973
1964
|
currentItemStrokeColor: string;
|
|
1974
1965
|
currentItemBackgroundColor: string;
|
|
1975
1966
|
currentItemFillStyle: ExcalidrawElement["fillStyle"];
|
|
1976
|
-
|
|
1967
|
+
currentItemStrokeWidthKey: import("@excalidraw/common").StrokeWidthKey;
|
|
1977
1968
|
currentItemStrokeStyle: ExcalidrawElement["strokeStyle"];
|
|
1978
1969
|
currentItemRoughness: number;
|
|
1970
|
+
currentItemStrokeVariability: import("@excalidraw/element/types").StrokeVariability;
|
|
1979
1971
|
currentItemOpacity: number;
|
|
1980
1972
|
currentItemFontFamily: import("@excalidraw/element/types").FontFamilyValues;
|
|
1981
1973
|
currentItemFontSize: number;
|
|
@@ -2012,6 +2004,10 @@ export declare const actionToggleHandTool: {
|
|
|
2012
2004
|
} | {
|
|
2013
2005
|
name: "elementLinkSelector";
|
|
2014
2006
|
sourceElementId: ExcalidrawElement["id"];
|
|
2007
|
+
} | {
|
|
2008
|
+
name: "charts";
|
|
2009
|
+
data: import("../charts").Spreadsheet;
|
|
2010
|
+
rawText: string;
|
|
2015
2011
|
};
|
|
2016
2012
|
defaultSidebarDockedPreference: boolean;
|
|
2017
2013
|
lastPointerDownWith: import("@excalidraw/element/types").PointerType;
|
|
@@ -2024,7 +2020,7 @@ export declare const actionToggleHandTool: {
|
|
|
2024
2020
|
selectedElementsAreBeingDragged: boolean;
|
|
2025
2021
|
shouldCacheIgnoreZoom: boolean;
|
|
2026
2022
|
toast: {
|
|
2027
|
-
message:
|
|
2023
|
+
message: React.ReactNode;
|
|
2028
2024
|
closable?: boolean;
|
|
2029
2025
|
duration?: number;
|
|
2030
2026
|
} | null;
|
|
@@ -2039,20 +2035,12 @@ export declare const actionToggleHandTool: {
|
|
|
2039
2035
|
height: number;
|
|
2040
2036
|
offsetTop: number;
|
|
2041
2037
|
offsetLeft: number;
|
|
2042
|
-
fileHandle:
|
|
2038
|
+
fileHandle: FileSystemFileHandle | null;
|
|
2043
2039
|
collaborators: Map<import("../types").SocketId, import("../types").Collaborator>;
|
|
2044
2040
|
stats: {
|
|
2045
2041
|
open: boolean;
|
|
2046
2042
|
panels: number;
|
|
2047
2043
|
};
|
|
2048
|
-
currentChartType: import("@excalidraw/element/types").ChartType;
|
|
2049
|
-
pasteDialog: {
|
|
2050
|
-
shown: false;
|
|
2051
|
-
data: null;
|
|
2052
|
-
} | {
|
|
2053
|
-
shown: true;
|
|
2054
|
-
data: import("../charts").Spreadsheet;
|
|
2055
|
-
};
|
|
2056
2044
|
showHyperlinkPopup: false | "info" | "editor";
|
|
2057
2045
|
selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
|
|
2058
2046
|
snapLines: readonly import("../snapping").SnapLine[];
|