@excalidraw/math 0.18.0-6135548 → 0.18.0-699826
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 +150 -130
- package/dist/dev/index.js.map +4 -4
- package/dist/prod/index.js +1 -1
- package/dist/types/common/debug.d.ts +21 -0
- 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 +5 -2
- package/dist/types/common/src/index.d.ts +3 -0
- package/dist/types/common/src/utils.d.ts +4 -7
- 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/arrows/focus.d.ts +27 -0
- package/dist/types/element/src/arrows/helpers.d.ts +5 -0
- package/dist/types/element/src/binding.d.ts +13 -8
- package/dist/types/element/src/bounds.d.ts +22 -3
- package/dist/types/element/src/collision.d.ts +4 -3
- package/dist/types/element/src/distribute.d.ts +2 -1
- 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 +3 -0
- package/dist/types/element/src/linearElementEditor.d.ts +7 -2
- package/dist/types/element/src/mutateElement.d.ts +2 -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 +5 -2
- package/dist/types/element/src/utils.d.ts +6 -4
- package/dist/types/element/src/zindex.d.ts +1 -1
- package/dist/types/excalidraw/actions/actionAddToLibrary.d.ts +41 -38
- package/dist/types/excalidraw/actions/actionBoundText.d.ts +29 -27
- package/dist/types/excalidraw/actions/actionCanvas.d.ts +169 -157
- package/dist/types/excalidraw/actions/actionClipboard.d.ts +28 -26
- package/dist/types/excalidraw/actions/actionCropEditor.d.ts +14 -13
- package/dist/types/excalidraw/actions/actionDeleteSelected.d.ts +44 -39
- package/dist/types/excalidraw/actions/actionDeselect.d.ts +159 -0
- package/dist/types/excalidraw/actions/actionElementLink.d.ts +10 -13
- package/dist/types/excalidraw/actions/actionElementLock.d.ts +28 -26
- package/dist/types/excalidraw/actions/actionEmbeddable.d.ts +14 -13
- package/dist/types/excalidraw/actions/actionExport.d.ts +77 -349
- package/dist/types/excalidraw/actions/actionFrame.d.ts +56 -52
- package/dist/types/excalidraw/actions/actionGroup.d.ts +29 -27
- package/dist/types/excalidraw/actions/actionLinearEditor.d.ts +16 -13
- package/dist/types/excalidraw/actions/actionLink.d.ts +14 -13
- package/dist/types/excalidraw/actions/actionMenu.d.ts +10 -13
- package/dist/types/excalidraw/actions/actionProperties.d.ts +30 -28
- package/dist/types/excalidraw/actions/actionSelectAll.d.ts +14 -13
- package/dist/types/excalidraw/actions/actionStyles.d.ts +14 -12
- package/dist/types/excalidraw/actions/actionTextAutoResize.d.ts +3 -3
- package/dist/types/excalidraw/actions/actionToggleArrowBinding.d.ts +172 -0
- package/dist/types/excalidraw/actions/actionToggleGridMode.d.ts +14 -13
- package/dist/types/excalidraw/actions/actionToggleMidpointSnapping.d.ts +172 -0
- package/dist/types/excalidraw/actions/actionToggleObjectsSnapMode.d.ts +14 -13
- package/dist/types/excalidraw/actions/actionToggleSearchMenu.d.ts +10 -13
- package/dist/types/excalidraw/actions/actionToggleStats.d.ts +14 -13
- package/dist/types/excalidraw/actions/actionToggleViewMode.d.ts +14 -13
- package/dist/types/excalidraw/actions/actionToggleZenMode.d.ts +14 -13
- package/dist/types/excalidraw/actions/index.d.ts +3 -0
- package/dist/types/excalidraw/actions/shortcuts.d.ts +1 -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 +10 -7
- 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 +6 -7
- package/dist/types/excalidraw/components/App.d.ts +63 -16
- package/dist/types/excalidraw/components/AppStateObserver.d.ts +37 -0
- package/dist/types/excalidraw/components/CommandPalette/defaultCommandPaletteItems.d.ts +1 -2
- package/dist/types/excalidraw/components/CommandPalette/types.d.ts +1 -1
- package/dist/types/excalidraw/components/IconPicker.d.ts +14 -9
- package/dist/types/excalidraw/components/PasteChartDialog.d.ts +4 -5
- package/dist/types/excalidraw/components/PropertiesPopover.d.ts +1 -1
- 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/TTDDialog/Chat/ChatInterface.d.ts +2 -6
- package/dist/types/excalidraw/components/TTDDialog/Chat/TTDChatPanel.d.ts +2 -1
- package/dist/types/excalidraw/components/TTDDialog/CodeMirrorEditor.d.ts +11 -0
- package/dist/types/excalidraw/components/TTDDialog/TTDDialog.d.ts +11 -7
- 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/TTDWelcomeMessage.d.ts +1 -0
- package/dist/types/excalidraw/components/TTDDialog/TextToDiagram.d.ts +2 -1
- package/dist/types/excalidraw/components/TTDDialog/mermaid-lang-lite.d.ts +2 -0
- package/dist/types/excalidraw/components/TTDDialog/types.d.ts +4 -0
- 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/DropdownMenu.d.ts +30 -17
- package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuContent.d.ts +3 -2
- package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuItem.d.ts +11 -13
- package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuItemCheckbox.d.ts +5 -0
- package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuItemContentRadio.d.ts +2 -1
- package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuSub.d.ts +23 -0
- package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuSubContent.d.ts +8 -0
- package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuSubTrigger.d.ts +12 -0
- package/dist/types/excalidraw/components/dropdownMenu/common.d.ts +1 -1
- package/dist/types/excalidraw/components/dropdownMenu/dropdownMenuUtils.d.ts +2 -0
- package/dist/types/excalidraw/components/icons.d.ts +23 -9
- package/dist/types/excalidraw/components/main-menu/DefaultItems.d.ts +24 -3
- package/dist/types/excalidraw/components/main-menu/MainMenu.d.ts +23 -13
- package/dist/types/excalidraw/components/shapes.d.ts +81 -1
- package/dist/types/excalidraw/data/blob.d.ts +47 -46
- 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 +37 -28
- package/dist/types/excalidraw/data/resave.d.ts +7 -2
- package/dist/types/excalidraw/eraser/index.d.ts +2 -3
- 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 +425 -19
- package/dist/types/excalidraw/textAutoResizeHandle.d.ts +15 -0
- package/dist/types/excalidraw/types.d.ts +116 -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/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 +8 -2
- package/dist/types/math/src/types.d.ts +25 -1
- package/dist/types/utils/src/index.d.ts +1 -2
- package/package.json +2 -2
- 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 -46
- 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
|
@@ -26,8 +26,13 @@ export declare const actionAddToLibrary: {
|
|
|
26
26
|
multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
|
|
27
27
|
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
28
28
|
isBindingEnabled: boolean;
|
|
29
|
-
|
|
30
|
-
|
|
29
|
+
boxSelectionMode: import("../types").BoxSelectionMode;
|
|
30
|
+
bindingPreference: "enabled" | "disabled";
|
|
31
|
+
isMidpointSnappingEnabled: boolean;
|
|
32
|
+
suggestedBinding: {
|
|
33
|
+
element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
|
|
34
|
+
midPoint?: import("@excalidraw/math").GlobalPoint;
|
|
35
|
+
} | null;
|
|
31
36
|
frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
|
|
32
37
|
frameRendering: {
|
|
33
38
|
enabled: boolean;
|
|
@@ -37,7 +42,7 @@ export declare const actionAddToLibrary: {
|
|
|
37
42
|
};
|
|
38
43
|
editingFrame: string | null;
|
|
39
44
|
elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
|
|
40
|
-
editingTextElement: import("@excalidraw/element/types").
|
|
45
|
+
editingTextElement: import("@excalidraw/element/types").ExcalidrawTextElement | null;
|
|
41
46
|
activeTool: {
|
|
42
47
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
43
48
|
locked: boolean;
|
|
@@ -95,6 +100,10 @@ export declare const actionAddToLibrary: {
|
|
|
95
100
|
} | {
|
|
96
101
|
name: "elementLinkSelector";
|
|
97
102
|
sourceElementId: import("@excalidraw/element/types").ExcalidrawElement["id"];
|
|
103
|
+
} | {
|
|
104
|
+
name: "charts";
|
|
105
|
+
data: import("../charts").Spreadsheet;
|
|
106
|
+
rawText: string;
|
|
98
107
|
};
|
|
99
108
|
defaultSidebarDockedPreference: boolean;
|
|
100
109
|
lastPointerDownWith: import("@excalidraw/element/types").PointerType;
|
|
@@ -123,20 +132,12 @@ export declare const actionAddToLibrary: {
|
|
|
123
132
|
height: number;
|
|
124
133
|
offsetTop: number;
|
|
125
134
|
offsetLeft: number;
|
|
126
|
-
fileHandle:
|
|
135
|
+
fileHandle: FileSystemFileHandle | null;
|
|
127
136
|
collaborators: Map<import("../types").SocketId, import("../types").Collaborator>;
|
|
128
137
|
stats: {
|
|
129
138
|
open: boolean;
|
|
130
139
|
panels: number;
|
|
131
140
|
};
|
|
132
|
-
currentChartType: import("@excalidraw/element/types").ChartType;
|
|
133
|
-
pasteDialog: {
|
|
134
|
-
shown: false;
|
|
135
|
-
data: null;
|
|
136
|
-
} | {
|
|
137
|
-
shown: true;
|
|
138
|
-
data: import("../charts").Spreadsheet;
|
|
139
|
-
};
|
|
140
141
|
showHyperlinkPopup: false | "info" | "editor";
|
|
141
142
|
selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
|
|
142
143
|
snapLines: readonly import("../snapping").SnapLine[];
|
|
@@ -179,8 +180,13 @@ export declare const actionAddToLibrary: {
|
|
|
179
180
|
multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
|
|
180
181
|
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
181
182
|
isBindingEnabled: boolean;
|
|
182
|
-
|
|
183
|
-
|
|
183
|
+
boxSelectionMode: import("../types").BoxSelectionMode;
|
|
184
|
+
bindingPreference: "enabled" | "disabled";
|
|
185
|
+
isMidpointSnappingEnabled: boolean;
|
|
186
|
+
suggestedBinding: {
|
|
187
|
+
element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
|
|
188
|
+
midPoint?: import("@excalidraw/math").GlobalPoint;
|
|
189
|
+
} | null;
|
|
184
190
|
frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
|
|
185
191
|
frameRendering: {
|
|
186
192
|
enabled: boolean;
|
|
@@ -190,7 +196,7 @@ export declare const actionAddToLibrary: {
|
|
|
190
196
|
};
|
|
191
197
|
editingFrame: string | null;
|
|
192
198
|
elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
|
|
193
|
-
editingTextElement: import("@excalidraw/element/types").
|
|
199
|
+
editingTextElement: import("@excalidraw/element/types").ExcalidrawTextElement | null;
|
|
194
200
|
activeTool: {
|
|
195
201
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
196
202
|
locked: boolean;
|
|
@@ -248,6 +254,10 @@ export declare const actionAddToLibrary: {
|
|
|
248
254
|
} | {
|
|
249
255
|
name: "elementLinkSelector";
|
|
250
256
|
sourceElementId: import("@excalidraw/element/types").ExcalidrawElement["id"];
|
|
257
|
+
} | {
|
|
258
|
+
name: "charts";
|
|
259
|
+
data: import("../charts").Spreadsheet;
|
|
260
|
+
rawText: string;
|
|
251
261
|
};
|
|
252
262
|
defaultSidebarDockedPreference: boolean;
|
|
253
263
|
lastPointerDownWith: import("@excalidraw/element/types").PointerType;
|
|
@@ -263,7 +273,7 @@ export declare const actionAddToLibrary: {
|
|
|
263
273
|
selectedElementsAreBeingDragged: boolean;
|
|
264
274
|
shouldCacheIgnoreZoom: boolean;
|
|
265
275
|
toast: {
|
|
266
|
-
message:
|
|
276
|
+
message: React.ReactNode;
|
|
267
277
|
closable?: boolean;
|
|
268
278
|
duration?: number;
|
|
269
279
|
} | null;
|
|
@@ -281,20 +291,12 @@ export declare const actionAddToLibrary: {
|
|
|
281
291
|
height: number;
|
|
282
292
|
offsetTop: number;
|
|
283
293
|
offsetLeft: number;
|
|
284
|
-
fileHandle:
|
|
294
|
+
fileHandle: FileSystemFileHandle | null;
|
|
285
295
|
collaborators: Map<import("../types").SocketId, import("../types").Collaborator>;
|
|
286
296
|
stats: {
|
|
287
297
|
open: boolean;
|
|
288
298
|
panels: number;
|
|
289
299
|
};
|
|
290
|
-
currentChartType: import("@excalidraw/element/types").ChartType;
|
|
291
|
-
pasteDialog: {
|
|
292
|
-
shown: false;
|
|
293
|
-
data: null;
|
|
294
|
-
} | {
|
|
295
|
-
shown: true;
|
|
296
|
-
data: import("../charts").Spreadsheet;
|
|
297
|
-
};
|
|
298
300
|
showHyperlinkPopup: false | "info" | "editor";
|
|
299
301
|
selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
|
|
300
302
|
snapLines: readonly import("../snapping").SnapLine[];
|
|
@@ -337,8 +339,13 @@ export declare const actionAddToLibrary: {
|
|
|
337
339
|
multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
|
|
338
340
|
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
339
341
|
isBindingEnabled: boolean;
|
|
340
|
-
|
|
341
|
-
|
|
342
|
+
boxSelectionMode: import("../types").BoxSelectionMode;
|
|
343
|
+
bindingPreference: "enabled" | "disabled";
|
|
344
|
+
isMidpointSnappingEnabled: boolean;
|
|
345
|
+
suggestedBinding: {
|
|
346
|
+
element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
|
|
347
|
+
midPoint?: import("@excalidraw/math").GlobalPoint;
|
|
348
|
+
} | null;
|
|
342
349
|
frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
|
|
343
350
|
frameRendering: {
|
|
344
351
|
enabled: boolean;
|
|
@@ -348,7 +355,7 @@ export declare const actionAddToLibrary: {
|
|
|
348
355
|
};
|
|
349
356
|
editingFrame: string | null;
|
|
350
357
|
elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
|
|
351
|
-
editingTextElement: import("@excalidraw/element/types").
|
|
358
|
+
editingTextElement: import("@excalidraw/element/types").ExcalidrawTextElement | null;
|
|
352
359
|
activeTool: {
|
|
353
360
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
354
361
|
locked: boolean;
|
|
@@ -406,6 +413,10 @@ export declare const actionAddToLibrary: {
|
|
|
406
413
|
} | {
|
|
407
414
|
name: "elementLinkSelector";
|
|
408
415
|
sourceElementId: import("@excalidraw/element/types").ExcalidrawElement["id"];
|
|
416
|
+
} | {
|
|
417
|
+
name: "charts";
|
|
418
|
+
data: import("../charts").Spreadsheet;
|
|
419
|
+
rawText: string;
|
|
409
420
|
};
|
|
410
421
|
defaultSidebarDockedPreference: boolean;
|
|
411
422
|
lastPointerDownWith: import("@excalidraw/element/types").PointerType;
|
|
@@ -421,7 +432,7 @@ export declare const actionAddToLibrary: {
|
|
|
421
432
|
selectedElementsAreBeingDragged: boolean;
|
|
422
433
|
shouldCacheIgnoreZoom: boolean;
|
|
423
434
|
toast: {
|
|
424
|
-
message:
|
|
435
|
+
message: React.ReactNode;
|
|
425
436
|
closable?: boolean;
|
|
426
437
|
duration?: number;
|
|
427
438
|
} | null;
|
|
@@ -439,20 +450,12 @@ export declare const actionAddToLibrary: {
|
|
|
439
450
|
height: number;
|
|
440
451
|
offsetTop: number;
|
|
441
452
|
offsetLeft: number;
|
|
442
|
-
fileHandle:
|
|
453
|
+
fileHandle: FileSystemFileHandle | null;
|
|
443
454
|
collaborators: Map<import("../types").SocketId, import("../types").Collaborator>;
|
|
444
455
|
stats: {
|
|
445
456
|
open: boolean;
|
|
446
457
|
panels: number;
|
|
447
458
|
};
|
|
448
|
-
currentChartType: import("@excalidraw/element/types").ChartType;
|
|
449
|
-
pasteDialog: {
|
|
450
|
-
shown: false;
|
|
451
|
-
data: null;
|
|
452
|
-
} | {
|
|
453
|
-
shown: true;
|
|
454
|
-
data: import("../charts").Spreadsheet;
|
|
455
|
-
};
|
|
456
459
|
showHyperlinkPopup: false | "info" | "editor";
|
|
457
460
|
selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
|
|
458
461
|
snapLines: readonly import("../snapping").SnapLine[];
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { ExcalidrawElement, ExcalidrawLinearElement } from "@excalidraw/element/types";
|
|
1
|
+
import type { ExcalidrawElement, ExcalidrawLinearElement, ExcalidrawTextElement } from "@excalidraw/element/types";
|
|
2
2
|
import type { Mutable } from "@excalidraw/common/utility-types";
|
|
3
3
|
import type { AppState } from "../types";
|
|
4
4
|
export declare const actionUnbindText: {
|
|
@@ -46,8 +46,13 @@ export declare const actionBindText: {
|
|
|
46
46
|
multiElement: import("@excalidraw/element/types").NonDeleted<ExcalidrawLinearElement> | null;
|
|
47
47
|
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
48
48
|
isBindingEnabled: boolean;
|
|
49
|
-
|
|
50
|
-
|
|
49
|
+
boxSelectionMode: import("../types").BoxSelectionMode;
|
|
50
|
+
bindingPreference: "enabled" | "disabled";
|
|
51
|
+
isMidpointSnappingEnabled: boolean;
|
|
52
|
+
suggestedBinding: {
|
|
53
|
+
element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
|
|
54
|
+
midPoint?: import("@excalidraw/math").GlobalPoint;
|
|
55
|
+
} | null;
|
|
51
56
|
frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
|
|
52
57
|
frameRendering: {
|
|
53
58
|
enabled: boolean;
|
|
@@ -57,7 +62,7 @@ export declare const actionBindText: {
|
|
|
57
62
|
};
|
|
58
63
|
editingFrame: string | null;
|
|
59
64
|
elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
|
|
60
|
-
editingTextElement:
|
|
65
|
+
editingTextElement: ExcalidrawTextElement | null;
|
|
61
66
|
activeTool: {
|
|
62
67
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
63
68
|
locked: boolean;
|
|
@@ -115,6 +120,10 @@ export declare const actionBindText: {
|
|
|
115
120
|
} | {
|
|
116
121
|
name: "elementLinkSelector";
|
|
117
122
|
sourceElementId: ExcalidrawElement["id"];
|
|
123
|
+
} | {
|
|
124
|
+
name: "charts";
|
|
125
|
+
data: import("../charts").Spreadsheet;
|
|
126
|
+
rawText: string;
|
|
118
127
|
};
|
|
119
128
|
defaultSidebarDockedPreference: boolean;
|
|
120
129
|
lastPointerDownWith: import("@excalidraw/element/types").PointerType;
|
|
@@ -127,7 +136,7 @@ export declare const actionBindText: {
|
|
|
127
136
|
selectedElementsAreBeingDragged: boolean;
|
|
128
137
|
shouldCacheIgnoreZoom: boolean;
|
|
129
138
|
toast: {
|
|
130
|
-
message:
|
|
139
|
+
message: React.ReactNode;
|
|
131
140
|
closable?: boolean;
|
|
132
141
|
duration?: number;
|
|
133
142
|
} | null;
|
|
@@ -145,20 +154,12 @@ export declare const actionBindText: {
|
|
|
145
154
|
height: number;
|
|
146
155
|
offsetTop: number;
|
|
147
156
|
offsetLeft: number;
|
|
148
|
-
fileHandle:
|
|
157
|
+
fileHandle: FileSystemFileHandle | null;
|
|
149
158
|
collaborators: Map<import("../types").SocketId, import("../types").Collaborator>;
|
|
150
159
|
stats: {
|
|
151
160
|
open: boolean;
|
|
152
161
|
panels: number;
|
|
153
162
|
};
|
|
154
|
-
currentChartType: import("@excalidraw/element/types").ChartType;
|
|
155
|
-
pasteDialog: {
|
|
156
|
-
shown: false;
|
|
157
|
-
data: null;
|
|
158
|
-
} | {
|
|
159
|
-
shown: true;
|
|
160
|
-
data: import("../charts").Spreadsheet;
|
|
161
|
-
};
|
|
162
163
|
showHyperlinkPopup: false | "info" | "editor";
|
|
163
164
|
selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
|
|
164
165
|
snapLines: readonly import("../snapping").SnapLine[];
|
|
@@ -216,8 +217,13 @@ export declare const actionWrapTextInContainer: {
|
|
|
216
217
|
multiElement: import("@excalidraw/element/types").NonDeleted<ExcalidrawLinearElement> | null;
|
|
217
218
|
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
218
219
|
isBindingEnabled: boolean;
|
|
219
|
-
|
|
220
|
-
|
|
220
|
+
boxSelectionMode: import("../types").BoxSelectionMode;
|
|
221
|
+
bindingPreference: "enabled" | "disabled";
|
|
222
|
+
isMidpointSnappingEnabled: boolean;
|
|
223
|
+
suggestedBinding: {
|
|
224
|
+
element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
|
|
225
|
+
midPoint?: import("@excalidraw/math").GlobalPoint;
|
|
226
|
+
} | null;
|
|
221
227
|
frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
|
|
222
228
|
frameRendering: {
|
|
223
229
|
enabled: boolean;
|
|
@@ -227,7 +233,7 @@ export declare const actionWrapTextInContainer: {
|
|
|
227
233
|
};
|
|
228
234
|
editingFrame: string | null;
|
|
229
235
|
elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
|
|
230
|
-
editingTextElement:
|
|
236
|
+
editingTextElement: ExcalidrawTextElement | null;
|
|
231
237
|
activeTool: {
|
|
232
238
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
233
239
|
locked: boolean;
|
|
@@ -285,6 +291,10 @@ export declare const actionWrapTextInContainer: {
|
|
|
285
291
|
} | {
|
|
286
292
|
name: "elementLinkSelector";
|
|
287
293
|
sourceElementId: ExcalidrawElement["id"];
|
|
294
|
+
} | {
|
|
295
|
+
name: "charts";
|
|
296
|
+
data: import("../charts").Spreadsheet;
|
|
297
|
+
rawText: string;
|
|
288
298
|
};
|
|
289
299
|
defaultSidebarDockedPreference: boolean;
|
|
290
300
|
lastPointerDownWith: import("@excalidraw/element/types").PointerType;
|
|
@@ -297,7 +307,7 @@ export declare const actionWrapTextInContainer: {
|
|
|
297
307
|
selectedElementsAreBeingDragged: boolean;
|
|
298
308
|
shouldCacheIgnoreZoom: boolean;
|
|
299
309
|
toast: {
|
|
300
|
-
message:
|
|
310
|
+
message: React.ReactNode;
|
|
301
311
|
closable?: boolean;
|
|
302
312
|
duration?: number;
|
|
303
313
|
} | null;
|
|
@@ -315,20 +325,12 @@ export declare const actionWrapTextInContainer: {
|
|
|
315
325
|
height: number;
|
|
316
326
|
offsetTop: number;
|
|
317
327
|
offsetLeft: number;
|
|
318
|
-
fileHandle:
|
|
328
|
+
fileHandle: FileSystemFileHandle | null;
|
|
319
329
|
collaborators: Map<import("../types").SocketId, import("../types").Collaborator>;
|
|
320
330
|
stats: {
|
|
321
331
|
open: boolean;
|
|
322
332
|
panels: number;
|
|
323
333
|
};
|
|
324
|
-
currentChartType: import("@excalidraw/element/types").ChartType;
|
|
325
|
-
pasteDialog: {
|
|
326
|
-
shown: false;
|
|
327
|
-
data: null;
|
|
328
|
-
} | {
|
|
329
|
-
shown: true;
|
|
330
|
-
data: import("../charts").Spreadsheet;
|
|
331
|
-
};
|
|
332
334
|
showHyperlinkPopup: false | "info" | "editor";
|
|
333
335
|
selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
|
|
334
336
|
snapLines: readonly import("../snapping").SnapLine[];
|