@myoc/element 0.19.502-ff5a131b0 → 0.19.503
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 +7817 -2494
- package/dist/dev/index.js.map +4 -4
- package/dist/prod/index.js +43 -18
- 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 +1 -1
- package/dist/types/common/src/constants.d.ts +3 -0
- 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 +2 -0
- 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 +1 -1
- 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/elbowArrow.d.ts +2 -0
- package/dist/types/element/src/index.d.ts +4 -0
- package/dist/types/element/src/linearElementEditor.d.ts +5 -0
- package/dist/types/element/src/mutateElement.d.ts +2 -0
- package/dist/types/element/src/selection.d.ts +5 -1
- package/dist/types/element/src/shapes.d.ts +2 -22
- 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/types.d.ts +5 -2
- package/dist/types/element/src/utils.d.ts +5 -3
- package/dist/types/element/src/zindex.d.ts +1 -1
- package/dist/types/excalidraw/actions/actionAddToLibrary.d.ts +38 -35
- package/dist/types/excalidraw/actions/actionBoundText.d.ts +27 -25
- package/dist/types/excalidraw/actions/actionCanvas.d.ts +143 -132
- package/dist/types/excalidraw/actions/actionClipboard.d.ts +26 -24
- package/dist/types/excalidraw/actions/actionCropEditor.d.ts +13 -12
- package/dist/types/excalidraw/actions/actionDeleteSelected.d.ts +41 -36
- package/dist/types/excalidraw/actions/actionElementLink.d.ts +9 -12
- package/dist/types/excalidraw/actions/actionElementLock.d.ts +26 -24
- package/dist/types/excalidraw/actions/actionEmbeddable.d.ts +13 -12
- package/dist/types/excalidraw/actions/actionExport.d.ts +75 -368
- package/dist/types/excalidraw/actions/actionFrame.d.ts +52 -48
- package/dist/types/excalidraw/actions/actionGroup.d.ts +27 -25
- package/dist/types/excalidraw/actions/actionLinearEditor.d.ts +15 -12
- package/dist/types/excalidraw/actions/actionLink.d.ts +13 -12
- package/dist/types/excalidraw/actions/actionMenu.d.ts +9 -12
- package/dist/types/excalidraw/actions/actionProperties.d.ts +28 -26
- package/dist/types/excalidraw/actions/actionSelectAll.d.ts +13 -12
- package/dist/types/excalidraw/actions/actionStyles.d.ts +13 -11
- package/dist/types/excalidraw/actions/actionTextAutoResize.d.ts +3 -3
- package/dist/types/excalidraw/actions/actionToggleArrowBinding.d.ts +181 -0
- package/dist/types/excalidraw/actions/actionToggleGridMode.d.ts +13 -12
- package/dist/types/excalidraw/actions/actionToggleMidpointSnapping.d.ts +181 -0
- package/dist/types/excalidraw/actions/actionToggleObjectsSnapMode.d.ts +13 -12
- package/dist/types/excalidraw/actions/actionToggleSearchMenu.d.ts +9 -12
- package/dist/types/excalidraw/actions/actionToggleStats.d.ts +13 -12
- package/dist/types/excalidraw/actions/actionToggleViewMode.d.ts +13 -12
- package/dist/types/excalidraw/actions/actionToggleZenMode.d.ts +13 -12
- package/dist/types/excalidraw/actions/index.d.ts +2 -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/appState.d.ts +9 -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 +55 -13
- package/dist/types/excalidraw/components/AppStateObserver.d.ts +37 -0
- 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/Toast.d.ts +8 -4
- package/dist/types/excalidraw/components/canvases/InteractiveCanvas.d.ts +1 -0
- 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/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 +17 -0
- package/dist/types/excalidraw/components/main-menu/MainMenu.d.ts +23 -13
- package/dist/types/excalidraw/data/blob.d.ts +45 -44
- 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/hooks/useAppStateValue.d.ts +29 -0
- package/dist/types/excalidraw/index.d.ts +25 -3
- package/dist/types/excalidraw/textAutoResizeHandle.d.ts +15 -0
- package/dist/types/excalidraw/types.d.ts +93 -16
- package/dist/types/excalidraw/wysiwyg/textWysiwyg.d.ts +5 -1
- package/dist/types/math/src/point.d.ts +7 -2
- package/dist/types/math/src/types.d.ts +25 -1
- package/package.json +3 -3
- package/dist/types/excalidraw/charts.d.ts +0 -27
|
@@ -38,8 +38,13 @@ export declare const actionAddToLibrary: {
|
|
|
38
38
|
multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
|
|
39
39
|
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
40
40
|
isBindingEnabled: boolean;
|
|
41
|
+
bindingPreference: "enabled" | "disabled";
|
|
42
|
+
isMidpointSnappingEnabled: boolean;
|
|
41
43
|
startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
42
|
-
suggestedBinding:
|
|
44
|
+
suggestedBinding: {
|
|
45
|
+
element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
|
|
46
|
+
midPoint?: import("@excalidraw/math").GlobalPoint;
|
|
47
|
+
} | null;
|
|
43
48
|
frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
|
|
44
49
|
frameRendering: {
|
|
45
50
|
enabled: boolean;
|
|
@@ -49,7 +54,7 @@ export declare const actionAddToLibrary: {
|
|
|
49
54
|
};
|
|
50
55
|
editingFrame: string | null;
|
|
51
56
|
elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
|
|
52
|
-
editingTextElement: import("@excalidraw/element/types").
|
|
57
|
+
editingTextElement: import("@excalidraw/element/types").ExcalidrawTextElement | null;
|
|
53
58
|
activeTool: {
|
|
54
59
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
55
60
|
locked: boolean;
|
|
@@ -104,6 +109,10 @@ export declare const actionAddToLibrary: {
|
|
|
104
109
|
} | {
|
|
105
110
|
name: "elementLinkSelector";
|
|
106
111
|
sourceElementId: import("@excalidraw/element/types").ExcalidrawElement["id"];
|
|
112
|
+
} | {
|
|
113
|
+
name: "charts";
|
|
114
|
+
data: import("../charts").Spreadsheet;
|
|
115
|
+
rawText: string;
|
|
107
116
|
};
|
|
108
117
|
defaultSidebarDockedPreference: boolean;
|
|
109
118
|
lastPointerDownWith: import("@excalidraw/element/types").PointerType;
|
|
@@ -132,20 +141,12 @@ export declare const actionAddToLibrary: {
|
|
|
132
141
|
height: number;
|
|
133
142
|
offsetTop: number;
|
|
134
143
|
offsetLeft: number;
|
|
135
|
-
fileHandle:
|
|
144
|
+
fileHandle: FileSystemFileHandle | null;
|
|
136
145
|
collaborators: Map<import("../types").SocketId, import("../types").Collaborator>;
|
|
137
146
|
stats: {
|
|
138
147
|
open: boolean;
|
|
139
148
|
panels: number;
|
|
140
149
|
};
|
|
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
150
|
showHyperlinkPopup: false | "info" | "editor";
|
|
150
151
|
selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
|
|
151
152
|
snapLines: readonly import("../snapping").SnapLine[];
|
|
@@ -200,8 +201,13 @@ export declare const actionAddToLibrary: {
|
|
|
200
201
|
multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
|
|
201
202
|
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
202
203
|
isBindingEnabled: boolean;
|
|
204
|
+
bindingPreference: "enabled" | "disabled";
|
|
205
|
+
isMidpointSnappingEnabled: boolean;
|
|
203
206
|
startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
204
|
-
suggestedBinding:
|
|
207
|
+
suggestedBinding: {
|
|
208
|
+
element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
|
|
209
|
+
midPoint?: import("@excalidraw/math").GlobalPoint;
|
|
210
|
+
} | null;
|
|
205
211
|
frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
|
|
206
212
|
frameRendering: {
|
|
207
213
|
enabled: boolean;
|
|
@@ -211,7 +217,7 @@ export declare const actionAddToLibrary: {
|
|
|
211
217
|
};
|
|
212
218
|
editingFrame: string | null;
|
|
213
219
|
elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
|
|
214
|
-
editingTextElement: import("@excalidraw/element/types").
|
|
220
|
+
editingTextElement: import("@excalidraw/element/types").ExcalidrawTextElement | null;
|
|
215
221
|
activeTool: {
|
|
216
222
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
217
223
|
locked: boolean;
|
|
@@ -266,6 +272,10 @@ export declare const actionAddToLibrary: {
|
|
|
266
272
|
} | {
|
|
267
273
|
name: "elementLinkSelector";
|
|
268
274
|
sourceElementId: import("@excalidraw/element/types").ExcalidrawElement["id"];
|
|
275
|
+
} | {
|
|
276
|
+
name: "charts";
|
|
277
|
+
data: import("../charts").Spreadsheet;
|
|
278
|
+
rawText: string;
|
|
269
279
|
};
|
|
270
280
|
defaultSidebarDockedPreference: boolean;
|
|
271
281
|
lastPointerDownWith: import("@excalidraw/element/types").PointerType;
|
|
@@ -281,7 +291,7 @@ export declare const actionAddToLibrary: {
|
|
|
281
291
|
selectedElementsAreBeingDragged: boolean;
|
|
282
292
|
shouldCacheIgnoreZoom: boolean;
|
|
283
293
|
toast: {
|
|
284
|
-
message:
|
|
294
|
+
message: React.ReactNode;
|
|
285
295
|
closable?: boolean;
|
|
286
296
|
duration?: number;
|
|
287
297
|
} | null;
|
|
@@ -299,20 +309,12 @@ export declare const actionAddToLibrary: {
|
|
|
299
309
|
height: number;
|
|
300
310
|
offsetTop: number;
|
|
301
311
|
offsetLeft: number;
|
|
302
|
-
fileHandle:
|
|
312
|
+
fileHandle: FileSystemFileHandle | null;
|
|
303
313
|
collaborators: Map<import("../types").SocketId, import("../types").Collaborator>;
|
|
304
314
|
stats: {
|
|
305
315
|
open: boolean;
|
|
306
316
|
panels: number;
|
|
307
317
|
};
|
|
308
|
-
currentChartType: import("@excalidraw/element/types").ChartType;
|
|
309
|
-
pasteDialog: {
|
|
310
|
-
shown: false;
|
|
311
|
-
data: null;
|
|
312
|
-
} | {
|
|
313
|
-
shown: true;
|
|
314
|
-
data: import("../charts").Spreadsheet;
|
|
315
|
-
};
|
|
316
318
|
showHyperlinkPopup: false | "info" | "editor";
|
|
317
319
|
selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
|
|
318
320
|
snapLines: readonly import("../snapping").SnapLine[];
|
|
@@ -367,8 +369,13 @@ export declare const actionAddToLibrary: {
|
|
|
367
369
|
multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
|
|
368
370
|
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
369
371
|
isBindingEnabled: boolean;
|
|
372
|
+
bindingPreference: "enabled" | "disabled";
|
|
373
|
+
isMidpointSnappingEnabled: boolean;
|
|
370
374
|
startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
371
|
-
suggestedBinding:
|
|
375
|
+
suggestedBinding: {
|
|
376
|
+
element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
|
|
377
|
+
midPoint?: import("@excalidraw/math").GlobalPoint;
|
|
378
|
+
} | null;
|
|
372
379
|
frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
|
|
373
380
|
frameRendering: {
|
|
374
381
|
enabled: boolean;
|
|
@@ -378,7 +385,7 @@ export declare const actionAddToLibrary: {
|
|
|
378
385
|
};
|
|
379
386
|
editingFrame: string | null;
|
|
380
387
|
elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
|
|
381
|
-
editingTextElement: import("@excalidraw/element/types").
|
|
388
|
+
editingTextElement: import("@excalidraw/element/types").ExcalidrawTextElement | null;
|
|
382
389
|
activeTool: {
|
|
383
390
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
384
391
|
locked: boolean;
|
|
@@ -433,6 +440,10 @@ export declare const actionAddToLibrary: {
|
|
|
433
440
|
} | {
|
|
434
441
|
name: "elementLinkSelector";
|
|
435
442
|
sourceElementId: import("@excalidraw/element/types").ExcalidrawElement["id"];
|
|
443
|
+
} | {
|
|
444
|
+
name: "charts";
|
|
445
|
+
data: import("../charts").Spreadsheet;
|
|
446
|
+
rawText: string;
|
|
436
447
|
};
|
|
437
448
|
defaultSidebarDockedPreference: boolean;
|
|
438
449
|
lastPointerDownWith: import("@excalidraw/element/types").PointerType;
|
|
@@ -448,7 +459,7 @@ export declare const actionAddToLibrary: {
|
|
|
448
459
|
selectedElementsAreBeingDragged: boolean;
|
|
449
460
|
shouldCacheIgnoreZoom: boolean;
|
|
450
461
|
toast: {
|
|
451
|
-
message:
|
|
462
|
+
message: React.ReactNode;
|
|
452
463
|
closable?: boolean;
|
|
453
464
|
duration?: number;
|
|
454
465
|
} | null;
|
|
@@ -466,20 +477,12 @@ export declare const actionAddToLibrary: {
|
|
|
466
477
|
height: number;
|
|
467
478
|
offsetTop: number;
|
|
468
479
|
offsetLeft: number;
|
|
469
|
-
fileHandle:
|
|
480
|
+
fileHandle: FileSystemFileHandle | null;
|
|
470
481
|
collaborators: Map<import("../types").SocketId, import("../types").Collaborator>;
|
|
471
482
|
stats: {
|
|
472
483
|
open: boolean;
|
|
473
484
|
panels: number;
|
|
474
485
|
};
|
|
475
|
-
currentChartType: import("@excalidraw/element/types").ChartType;
|
|
476
|
-
pasteDialog: {
|
|
477
|
-
shown: false;
|
|
478
|
-
data: null;
|
|
479
|
-
} | {
|
|
480
|
-
shown: true;
|
|
481
|
-
data: import("../charts").Spreadsheet;
|
|
482
|
-
};
|
|
483
486
|
showHyperlinkPopup: false | "info" | "editor";
|
|
484
487
|
selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
|
|
485
488
|
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: {
|
|
@@ -58,8 +58,13 @@ export declare const actionBindText: {
|
|
|
58
58
|
multiElement: import("@excalidraw/element/types").NonDeleted<ExcalidrawLinearElement> | null;
|
|
59
59
|
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
60
60
|
isBindingEnabled: boolean;
|
|
61
|
+
bindingPreference: "enabled" | "disabled";
|
|
62
|
+
isMidpointSnappingEnabled: boolean;
|
|
61
63
|
startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
62
|
-
suggestedBinding:
|
|
64
|
+
suggestedBinding: {
|
|
65
|
+
element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
|
|
66
|
+
midPoint?: import("@excalidraw/math").GlobalPoint;
|
|
67
|
+
} | null;
|
|
63
68
|
frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
|
|
64
69
|
frameRendering: {
|
|
65
70
|
enabled: boolean;
|
|
@@ -69,7 +74,7 @@ export declare const actionBindText: {
|
|
|
69
74
|
};
|
|
70
75
|
editingFrame: string | null;
|
|
71
76
|
elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
|
|
72
|
-
editingTextElement:
|
|
77
|
+
editingTextElement: ExcalidrawTextElement | null;
|
|
73
78
|
activeTool: {
|
|
74
79
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
75
80
|
locked: boolean;
|
|
@@ -124,6 +129,10 @@ export declare const actionBindText: {
|
|
|
124
129
|
} | {
|
|
125
130
|
name: "elementLinkSelector";
|
|
126
131
|
sourceElementId: ExcalidrawElement["id"];
|
|
132
|
+
} | {
|
|
133
|
+
name: "charts";
|
|
134
|
+
data: import("../charts").Spreadsheet;
|
|
135
|
+
rawText: string;
|
|
127
136
|
};
|
|
128
137
|
defaultSidebarDockedPreference: boolean;
|
|
129
138
|
lastPointerDownWith: import("@excalidraw/element/types").PointerType;
|
|
@@ -136,7 +145,7 @@ export declare const actionBindText: {
|
|
|
136
145
|
selectedElementsAreBeingDragged: boolean;
|
|
137
146
|
shouldCacheIgnoreZoom: boolean;
|
|
138
147
|
toast: {
|
|
139
|
-
message:
|
|
148
|
+
message: React.ReactNode;
|
|
140
149
|
closable?: boolean;
|
|
141
150
|
duration?: number;
|
|
142
151
|
} | null;
|
|
@@ -154,20 +163,12 @@ export declare const actionBindText: {
|
|
|
154
163
|
height: number;
|
|
155
164
|
offsetTop: number;
|
|
156
165
|
offsetLeft: number;
|
|
157
|
-
fileHandle:
|
|
166
|
+
fileHandle: FileSystemFileHandle | null;
|
|
158
167
|
collaborators: Map<import("../types").SocketId, import("../types").Collaborator>;
|
|
159
168
|
stats: {
|
|
160
169
|
open: boolean;
|
|
161
170
|
panels: number;
|
|
162
171
|
};
|
|
163
|
-
currentChartType: import("@excalidraw/element/types").ChartType;
|
|
164
|
-
pasteDialog: {
|
|
165
|
-
shown: false;
|
|
166
|
-
data: null;
|
|
167
|
-
} | {
|
|
168
|
-
shown: true;
|
|
169
|
-
data: import("../charts").Spreadsheet;
|
|
170
|
-
};
|
|
171
172
|
showHyperlinkPopup: false | "info" | "editor";
|
|
172
173
|
selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
|
|
173
174
|
snapLines: readonly import("../snapping").SnapLine[];
|
|
@@ -237,8 +238,13 @@ export declare const actionWrapTextInContainer: {
|
|
|
237
238
|
multiElement: import("@excalidraw/element/types").NonDeleted<ExcalidrawLinearElement> | null;
|
|
238
239
|
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
239
240
|
isBindingEnabled: boolean;
|
|
241
|
+
bindingPreference: "enabled" | "disabled";
|
|
242
|
+
isMidpointSnappingEnabled: boolean;
|
|
240
243
|
startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
241
|
-
suggestedBinding:
|
|
244
|
+
suggestedBinding: {
|
|
245
|
+
element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
|
|
246
|
+
midPoint?: import("@excalidraw/math").GlobalPoint;
|
|
247
|
+
} | null;
|
|
242
248
|
frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
|
|
243
249
|
frameRendering: {
|
|
244
250
|
enabled: boolean;
|
|
@@ -248,7 +254,7 @@ export declare const actionWrapTextInContainer: {
|
|
|
248
254
|
};
|
|
249
255
|
editingFrame: string | null;
|
|
250
256
|
elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
|
|
251
|
-
editingTextElement:
|
|
257
|
+
editingTextElement: ExcalidrawTextElement | null;
|
|
252
258
|
activeTool: {
|
|
253
259
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
254
260
|
locked: boolean;
|
|
@@ -303,6 +309,10 @@ export declare const actionWrapTextInContainer: {
|
|
|
303
309
|
} | {
|
|
304
310
|
name: "elementLinkSelector";
|
|
305
311
|
sourceElementId: ExcalidrawElement["id"];
|
|
312
|
+
} | {
|
|
313
|
+
name: "charts";
|
|
314
|
+
data: import("../charts").Spreadsheet;
|
|
315
|
+
rawText: string;
|
|
306
316
|
};
|
|
307
317
|
defaultSidebarDockedPreference: boolean;
|
|
308
318
|
lastPointerDownWith: import("@excalidraw/element/types").PointerType;
|
|
@@ -315,7 +325,7 @@ export declare const actionWrapTextInContainer: {
|
|
|
315
325
|
selectedElementsAreBeingDragged: boolean;
|
|
316
326
|
shouldCacheIgnoreZoom: boolean;
|
|
317
327
|
toast: {
|
|
318
|
-
message:
|
|
328
|
+
message: React.ReactNode;
|
|
319
329
|
closable?: boolean;
|
|
320
330
|
duration?: number;
|
|
321
331
|
} | null;
|
|
@@ -333,20 +343,12 @@ export declare const actionWrapTextInContainer: {
|
|
|
333
343
|
height: number;
|
|
334
344
|
offsetTop: number;
|
|
335
345
|
offsetLeft: number;
|
|
336
|
-
fileHandle:
|
|
346
|
+
fileHandle: FileSystemFileHandle | null;
|
|
337
347
|
collaborators: Map<import("../types").SocketId, import("../types").Collaborator>;
|
|
338
348
|
stats: {
|
|
339
349
|
open: boolean;
|
|
340
350
|
panels: number;
|
|
341
351
|
};
|
|
342
|
-
currentChartType: import("@excalidraw/element/types").ChartType;
|
|
343
|
-
pasteDialog: {
|
|
344
|
-
shown: false;
|
|
345
|
-
data: null;
|
|
346
|
-
} | {
|
|
347
|
-
shown: true;
|
|
348
|
-
data: import("../charts").Spreadsheet;
|
|
349
|
-
};
|
|
350
352
|
showHyperlinkPopup: false | "info" | "editor";
|
|
351
353
|
selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
|
|
352
354
|
snapLines: readonly import("../snapping").SnapLine[];
|