@myoc/math 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 +116 -125
- 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 +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 +2 -2
- package/dist/types/excalidraw/charts.d.ts +0 -27
|
@@ -39,8 +39,13 @@ export declare const actionSelectAllElementsInFrame: {
|
|
|
39
39
|
multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
|
|
40
40
|
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
41
41
|
isBindingEnabled: boolean;
|
|
42
|
+
bindingPreference: "enabled" | "disabled";
|
|
43
|
+
isMidpointSnappingEnabled: boolean;
|
|
42
44
|
startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
43
|
-
suggestedBinding:
|
|
45
|
+
suggestedBinding: {
|
|
46
|
+
element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
|
|
47
|
+
midPoint?: import("@excalidraw/math").GlobalPoint;
|
|
48
|
+
} | null;
|
|
44
49
|
frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
|
|
45
50
|
frameRendering: {
|
|
46
51
|
enabled: boolean;
|
|
@@ -50,7 +55,7 @@ export declare const actionSelectAllElementsInFrame: {
|
|
|
50
55
|
};
|
|
51
56
|
editingFrame: string | null;
|
|
52
57
|
elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
|
|
53
|
-
editingTextElement: import("@excalidraw/element/types").
|
|
58
|
+
editingTextElement: import("@excalidraw/element/types").ExcalidrawTextElement | null;
|
|
54
59
|
activeTool: {
|
|
55
60
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
56
61
|
locked: boolean;
|
|
@@ -105,6 +110,10 @@ export declare const actionSelectAllElementsInFrame: {
|
|
|
105
110
|
} | {
|
|
106
111
|
name: "elementLinkSelector";
|
|
107
112
|
sourceElementId: ExcalidrawElement["id"];
|
|
113
|
+
} | {
|
|
114
|
+
name: "charts";
|
|
115
|
+
data: import("../charts").Spreadsheet;
|
|
116
|
+
rawText: string;
|
|
108
117
|
};
|
|
109
118
|
defaultSidebarDockedPreference: boolean;
|
|
110
119
|
lastPointerDownWith: import("@excalidraw/element/types").PointerType;
|
|
@@ -117,7 +126,7 @@ export declare const actionSelectAllElementsInFrame: {
|
|
|
117
126
|
selectedElementsAreBeingDragged: boolean;
|
|
118
127
|
shouldCacheIgnoreZoom: boolean;
|
|
119
128
|
toast: {
|
|
120
|
-
message:
|
|
129
|
+
message: React.ReactNode;
|
|
121
130
|
closable?: boolean;
|
|
122
131
|
duration?: number;
|
|
123
132
|
} | null;
|
|
@@ -135,20 +144,12 @@ export declare const actionSelectAllElementsInFrame: {
|
|
|
135
144
|
height: number;
|
|
136
145
|
offsetTop: number;
|
|
137
146
|
offsetLeft: number;
|
|
138
|
-
fileHandle:
|
|
147
|
+
fileHandle: FileSystemFileHandle | null;
|
|
139
148
|
collaborators: Map<import("../types").SocketId, import("../types").Collaborator>;
|
|
140
149
|
stats: {
|
|
141
150
|
open: boolean;
|
|
142
151
|
panels: number;
|
|
143
152
|
};
|
|
144
|
-
currentChartType: import("@excalidraw/element/types").ChartType;
|
|
145
|
-
pasteDialog: {
|
|
146
|
-
shown: false;
|
|
147
|
-
data: null;
|
|
148
|
-
} | {
|
|
149
|
-
shown: true;
|
|
150
|
-
data: import("../charts").Spreadsheet;
|
|
151
|
-
};
|
|
152
153
|
showHyperlinkPopup: false | "info" | "editor";
|
|
153
154
|
selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
|
|
154
155
|
snapLines: readonly import("../snapping").SnapLine[];
|
|
@@ -222,8 +223,13 @@ export declare const actionRemoveAllElementsFromFrame: {
|
|
|
222
223
|
multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
|
|
223
224
|
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
224
225
|
isBindingEnabled: boolean;
|
|
226
|
+
bindingPreference: "enabled" | "disabled";
|
|
227
|
+
isMidpointSnappingEnabled: boolean;
|
|
225
228
|
startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
226
|
-
suggestedBinding:
|
|
229
|
+
suggestedBinding: {
|
|
230
|
+
element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
|
|
231
|
+
midPoint?: import("@excalidraw/math").GlobalPoint;
|
|
232
|
+
} | null;
|
|
227
233
|
frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
|
|
228
234
|
frameRendering: {
|
|
229
235
|
enabled: boolean;
|
|
@@ -233,7 +239,7 @@ export declare const actionRemoveAllElementsFromFrame: {
|
|
|
233
239
|
};
|
|
234
240
|
editingFrame: string | null;
|
|
235
241
|
elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
|
|
236
|
-
editingTextElement: import("@excalidraw/element/types").
|
|
242
|
+
editingTextElement: import("@excalidraw/element/types").ExcalidrawTextElement | null;
|
|
237
243
|
activeTool: {
|
|
238
244
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
239
245
|
locked: boolean;
|
|
@@ -288,6 +294,10 @@ export declare const actionRemoveAllElementsFromFrame: {
|
|
|
288
294
|
} | {
|
|
289
295
|
name: "elementLinkSelector";
|
|
290
296
|
sourceElementId: ExcalidrawElement["id"];
|
|
297
|
+
} | {
|
|
298
|
+
name: "charts";
|
|
299
|
+
data: import("../charts").Spreadsheet;
|
|
300
|
+
rawText: string;
|
|
291
301
|
};
|
|
292
302
|
defaultSidebarDockedPreference: boolean;
|
|
293
303
|
lastPointerDownWith: import("@excalidraw/element/types").PointerType;
|
|
@@ -300,7 +310,7 @@ export declare const actionRemoveAllElementsFromFrame: {
|
|
|
300
310
|
selectedElementsAreBeingDragged: boolean;
|
|
301
311
|
shouldCacheIgnoreZoom: boolean;
|
|
302
312
|
toast: {
|
|
303
|
-
message:
|
|
313
|
+
message: React.ReactNode;
|
|
304
314
|
closable?: boolean;
|
|
305
315
|
duration?: number;
|
|
306
316
|
} | null;
|
|
@@ -318,20 +328,12 @@ export declare const actionRemoveAllElementsFromFrame: {
|
|
|
318
328
|
height: number;
|
|
319
329
|
offsetTop: number;
|
|
320
330
|
offsetLeft: number;
|
|
321
|
-
fileHandle:
|
|
331
|
+
fileHandle: FileSystemFileHandle | null;
|
|
322
332
|
collaborators: Map<import("../types").SocketId, import("../types").Collaborator>;
|
|
323
333
|
stats: {
|
|
324
334
|
open: boolean;
|
|
325
335
|
panels: number;
|
|
326
336
|
};
|
|
327
|
-
currentChartType: import("@excalidraw/element/types").ChartType;
|
|
328
|
-
pasteDialog: {
|
|
329
|
-
shown: false;
|
|
330
|
-
data: null;
|
|
331
|
-
} | {
|
|
332
|
-
shown: true;
|
|
333
|
-
data: import("../charts").Spreadsheet;
|
|
334
|
-
};
|
|
335
337
|
showHyperlinkPopup: false | "info" | "editor";
|
|
336
338
|
selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
|
|
337
339
|
snapLines: readonly import("../snapping").SnapLine[];
|
|
@@ -409,12 +411,17 @@ export declare const actionupdateFrameRendering: {
|
|
|
409
411
|
multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
|
|
410
412
|
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
411
413
|
isBindingEnabled: boolean;
|
|
414
|
+
bindingPreference: "enabled" | "disabled";
|
|
415
|
+
isMidpointSnappingEnabled: boolean;
|
|
412
416
|
startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
413
|
-
suggestedBinding:
|
|
417
|
+
suggestedBinding: {
|
|
418
|
+
element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
|
|
419
|
+
midPoint?: import("@excalidraw/math").GlobalPoint;
|
|
420
|
+
} | null;
|
|
414
421
|
frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
|
|
415
422
|
editingFrame: string | null;
|
|
416
423
|
elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
|
|
417
|
-
editingTextElement: import("@excalidraw/element/types").
|
|
424
|
+
editingTextElement: import("@excalidraw/element/types").ExcalidrawTextElement | null;
|
|
418
425
|
activeTool: {
|
|
419
426
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
420
427
|
locked: boolean;
|
|
@@ -469,6 +476,10 @@ export declare const actionupdateFrameRendering: {
|
|
|
469
476
|
} | {
|
|
470
477
|
name: "elementLinkSelector";
|
|
471
478
|
sourceElementId: ExcalidrawElement["id"];
|
|
479
|
+
} | {
|
|
480
|
+
name: "charts";
|
|
481
|
+
data: import("../charts").Spreadsheet;
|
|
482
|
+
rawText: string;
|
|
472
483
|
};
|
|
473
484
|
defaultSidebarDockedPreference: boolean;
|
|
474
485
|
lastPointerDownWith: import("@excalidraw/element/types").PointerType;
|
|
@@ -484,7 +495,7 @@ export declare const actionupdateFrameRendering: {
|
|
|
484
495
|
selectedElementsAreBeingDragged: boolean;
|
|
485
496
|
shouldCacheIgnoreZoom: boolean;
|
|
486
497
|
toast: {
|
|
487
|
-
message:
|
|
498
|
+
message: React.ReactNode;
|
|
488
499
|
closable?: boolean;
|
|
489
500
|
duration?: number;
|
|
490
501
|
} | null;
|
|
@@ -502,20 +513,12 @@ export declare const actionupdateFrameRendering: {
|
|
|
502
513
|
height: number;
|
|
503
514
|
offsetTop: number;
|
|
504
515
|
offsetLeft: number;
|
|
505
|
-
fileHandle:
|
|
516
|
+
fileHandle: FileSystemFileHandle | null;
|
|
506
517
|
collaborators: Map<import("../types").SocketId, import("../types").Collaborator>;
|
|
507
518
|
stats: {
|
|
508
519
|
open: boolean;
|
|
509
520
|
panels: number;
|
|
510
521
|
};
|
|
511
|
-
currentChartType: import("@excalidraw/element/types").ChartType;
|
|
512
|
-
pasteDialog: {
|
|
513
|
-
shown: false;
|
|
514
|
-
data: null;
|
|
515
|
-
} | {
|
|
516
|
-
shown: true;
|
|
517
|
-
data: import("../charts").Spreadsheet;
|
|
518
|
-
};
|
|
519
522
|
showHyperlinkPopup: false | "info" | "editor";
|
|
520
523
|
selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
|
|
521
524
|
snapLines: readonly import("../snapping").SnapLine[];
|
|
@@ -589,8 +592,13 @@ export declare const actionSetFrameAsActiveTool: {
|
|
|
589
592
|
multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
|
|
590
593
|
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
591
594
|
isBindingEnabled: boolean;
|
|
595
|
+
bindingPreference: "enabled" | "disabled";
|
|
596
|
+
isMidpointSnappingEnabled: boolean;
|
|
592
597
|
startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
593
|
-
suggestedBinding:
|
|
598
|
+
suggestedBinding: {
|
|
599
|
+
element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
|
|
600
|
+
midPoint?: import("@excalidraw/math").GlobalPoint;
|
|
601
|
+
} | null;
|
|
594
602
|
frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
|
|
595
603
|
frameRendering: {
|
|
596
604
|
enabled: boolean;
|
|
@@ -600,7 +608,7 @@ export declare const actionSetFrameAsActiveTool: {
|
|
|
600
608
|
};
|
|
601
609
|
editingFrame: string | null;
|
|
602
610
|
elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
|
|
603
|
-
editingTextElement: import("@excalidraw/element/types").
|
|
611
|
+
editingTextElement: import("@excalidraw/element/types").ExcalidrawTextElement | null;
|
|
604
612
|
preferredSelectionTool: {
|
|
605
613
|
type: "selection" | "lasso";
|
|
606
614
|
initialized: boolean;
|
|
@@ -650,6 +658,10 @@ export declare const actionSetFrameAsActiveTool: {
|
|
|
650
658
|
} | {
|
|
651
659
|
name: "elementLinkSelector";
|
|
652
660
|
sourceElementId: ExcalidrawElement["id"];
|
|
661
|
+
} | {
|
|
662
|
+
name: "charts";
|
|
663
|
+
data: import("../charts").Spreadsheet;
|
|
664
|
+
rawText: string;
|
|
653
665
|
};
|
|
654
666
|
defaultSidebarDockedPreference: boolean;
|
|
655
667
|
lastPointerDownWith: import("@excalidraw/element/types").PointerType;
|
|
@@ -665,7 +677,7 @@ export declare const actionSetFrameAsActiveTool: {
|
|
|
665
677
|
selectedElementsAreBeingDragged: boolean;
|
|
666
678
|
shouldCacheIgnoreZoom: boolean;
|
|
667
679
|
toast: {
|
|
668
|
-
message:
|
|
680
|
+
message: React.ReactNode;
|
|
669
681
|
closable?: boolean;
|
|
670
682
|
duration?: number;
|
|
671
683
|
} | null;
|
|
@@ -683,20 +695,12 @@ export declare const actionSetFrameAsActiveTool: {
|
|
|
683
695
|
height: number;
|
|
684
696
|
offsetTop: number;
|
|
685
697
|
offsetLeft: number;
|
|
686
|
-
fileHandle:
|
|
698
|
+
fileHandle: FileSystemFileHandle | null;
|
|
687
699
|
collaborators: Map<import("../types").SocketId, import("../types").Collaborator>;
|
|
688
700
|
stats: {
|
|
689
701
|
open: boolean;
|
|
690
702
|
panels: number;
|
|
691
703
|
};
|
|
692
|
-
currentChartType: import("@excalidraw/element/types").ChartType;
|
|
693
|
-
pasteDialog: {
|
|
694
|
-
shown: false;
|
|
695
|
-
data: null;
|
|
696
|
-
} | {
|
|
697
|
-
shown: true;
|
|
698
|
-
data: import("../charts").Spreadsheet;
|
|
699
|
-
};
|
|
700
704
|
showHyperlinkPopup: false | "info" | "editor";
|
|
701
705
|
selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
|
|
702
706
|
snapLines: readonly import("../snapping").SnapLine[];
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { ExcalidrawElement, OrderedExcalidrawElement } from "@excalidraw/element/types";
|
|
1
|
+
import type { ExcalidrawElement, ExcalidrawTextElement, OrderedExcalidrawElement } from "@excalidraw/element/types";
|
|
2
2
|
import type { AppClassProperties, AppState } from "../types";
|
|
3
3
|
export declare const actionGroup: {
|
|
4
4
|
name: "group";
|
|
@@ -45,8 +45,13 @@ export declare const actionGroup: {
|
|
|
45
45
|
multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
|
|
46
46
|
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
47
47
|
isBindingEnabled: boolean;
|
|
48
|
+
bindingPreference: "enabled" | "disabled";
|
|
49
|
+
isMidpointSnappingEnabled: boolean;
|
|
48
50
|
startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
49
|
-
suggestedBinding:
|
|
51
|
+
suggestedBinding: {
|
|
52
|
+
element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
|
|
53
|
+
midPoint?: import("@excalidraw/math").GlobalPoint;
|
|
54
|
+
} | null;
|
|
50
55
|
frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
|
|
51
56
|
frameRendering: {
|
|
52
57
|
enabled: boolean;
|
|
@@ -56,7 +61,7 @@ export declare const actionGroup: {
|
|
|
56
61
|
};
|
|
57
62
|
editingFrame: string | null;
|
|
58
63
|
elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
|
|
59
|
-
editingTextElement:
|
|
64
|
+
editingTextElement: ExcalidrawTextElement | null;
|
|
60
65
|
activeTool: {
|
|
61
66
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
62
67
|
locked: boolean;
|
|
@@ -111,6 +116,10 @@ export declare const actionGroup: {
|
|
|
111
116
|
} | {
|
|
112
117
|
name: "elementLinkSelector";
|
|
113
118
|
sourceElementId: ExcalidrawElement["id"];
|
|
119
|
+
} | {
|
|
120
|
+
name: "charts";
|
|
121
|
+
data: import("../charts").Spreadsheet;
|
|
122
|
+
rawText: string;
|
|
114
123
|
};
|
|
115
124
|
defaultSidebarDockedPreference: boolean;
|
|
116
125
|
lastPointerDownWith: import("@excalidraw/element/types").PointerType;
|
|
@@ -123,7 +132,7 @@ export declare const actionGroup: {
|
|
|
123
132
|
selectedElementsAreBeingDragged: boolean;
|
|
124
133
|
shouldCacheIgnoreZoom: boolean;
|
|
125
134
|
toast: {
|
|
126
|
-
message:
|
|
135
|
+
message: React.ReactNode;
|
|
127
136
|
closable?: boolean;
|
|
128
137
|
duration?: number;
|
|
129
138
|
} | null;
|
|
@@ -137,20 +146,12 @@ export declare const actionGroup: {
|
|
|
137
146
|
height: number;
|
|
138
147
|
offsetTop: number;
|
|
139
148
|
offsetLeft: number;
|
|
140
|
-
fileHandle:
|
|
149
|
+
fileHandle: FileSystemFileHandle | null;
|
|
141
150
|
collaborators: Map<import("../types").SocketId, import("../types").Collaborator>;
|
|
142
151
|
stats: {
|
|
143
152
|
open: boolean;
|
|
144
153
|
panels: number;
|
|
145
154
|
};
|
|
146
|
-
currentChartType: import("@excalidraw/element/types").ChartType;
|
|
147
|
-
pasteDialog: {
|
|
148
|
-
shown: false;
|
|
149
|
-
data: null;
|
|
150
|
-
} | {
|
|
151
|
-
shown: true;
|
|
152
|
-
data: import("../charts").Spreadsheet;
|
|
153
|
-
};
|
|
154
155
|
showHyperlinkPopup: false | "info" | "editor";
|
|
155
156
|
selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
|
|
156
157
|
snapLines: readonly import("../snapping").SnapLine[];
|
|
@@ -227,8 +228,13 @@ export declare const actionUngroup: {
|
|
|
227
228
|
multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
|
|
228
229
|
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
229
230
|
isBindingEnabled: boolean;
|
|
231
|
+
bindingPreference: "enabled" | "disabled";
|
|
232
|
+
isMidpointSnappingEnabled: boolean;
|
|
230
233
|
startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
231
|
-
suggestedBinding:
|
|
234
|
+
suggestedBinding: {
|
|
235
|
+
element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
|
|
236
|
+
midPoint?: import("@excalidraw/math").GlobalPoint;
|
|
237
|
+
} | null;
|
|
232
238
|
frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
|
|
233
239
|
frameRendering: {
|
|
234
240
|
enabled: boolean;
|
|
@@ -238,7 +244,7 @@ export declare const actionUngroup: {
|
|
|
238
244
|
};
|
|
239
245
|
editingFrame: string | null;
|
|
240
246
|
elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
|
|
241
|
-
editingTextElement:
|
|
247
|
+
editingTextElement: ExcalidrawTextElement | null;
|
|
242
248
|
activeTool: {
|
|
243
249
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
244
250
|
locked: boolean;
|
|
@@ -293,6 +299,10 @@ export declare const actionUngroup: {
|
|
|
293
299
|
} | {
|
|
294
300
|
name: "elementLinkSelector";
|
|
295
301
|
sourceElementId: ExcalidrawElement["id"];
|
|
302
|
+
} | {
|
|
303
|
+
name: "charts";
|
|
304
|
+
data: import("../charts").Spreadsheet;
|
|
305
|
+
rawText: string;
|
|
296
306
|
};
|
|
297
307
|
defaultSidebarDockedPreference: boolean;
|
|
298
308
|
lastPointerDownWith: import("@excalidraw/element/types").PointerType;
|
|
@@ -305,7 +315,7 @@ export declare const actionUngroup: {
|
|
|
305
315
|
selectedElementsAreBeingDragged: boolean;
|
|
306
316
|
shouldCacheIgnoreZoom: boolean;
|
|
307
317
|
toast: {
|
|
308
|
-
message:
|
|
318
|
+
message: React.ReactNode;
|
|
309
319
|
closable?: boolean;
|
|
310
320
|
duration?: number;
|
|
311
321
|
} | null;
|
|
@@ -319,20 +329,12 @@ export declare const actionUngroup: {
|
|
|
319
329
|
height: number;
|
|
320
330
|
offsetTop: number;
|
|
321
331
|
offsetLeft: number;
|
|
322
|
-
fileHandle:
|
|
332
|
+
fileHandle: FileSystemFileHandle | null;
|
|
323
333
|
collaborators: Map<import("../types").SocketId, import("../types").Collaborator>;
|
|
324
334
|
stats: {
|
|
325
335
|
open: boolean;
|
|
326
336
|
panels: number;
|
|
327
337
|
};
|
|
328
|
-
currentChartType: import("@excalidraw/element/types").ChartType;
|
|
329
|
-
pasteDialog: {
|
|
330
|
-
shown: false;
|
|
331
|
-
data: null;
|
|
332
|
-
} | {
|
|
333
|
-
shown: true;
|
|
334
|
-
data: import("../charts").Spreadsheet;
|
|
335
|
-
};
|
|
336
338
|
showHyperlinkPopup: false | "info" | "editor";
|
|
337
339
|
selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
|
|
338
340
|
snapLines: readonly import("../snapping").SnapLine[];
|
|
@@ -37,6 +37,8 @@ export declare const actionToggleLinearEditor: {
|
|
|
37
37
|
}>;
|
|
38
38
|
hoverPointIndex: number;
|
|
39
39
|
segmentMidPointHoveredCoords: import("@excalidraw/math").GlobalPoint | null;
|
|
40
|
+
hoveredFocusPointBinding: "start" | "end" | null;
|
|
41
|
+
draggedFocusPointBinding: "start" | "end" | null;
|
|
40
42
|
elbowed: boolean;
|
|
41
43
|
customLineAngle: number | null;
|
|
42
44
|
pointerDownState: never;
|
|
@@ -70,8 +72,13 @@ export declare const actionToggleLinearEditor: {
|
|
|
70
72
|
multiElement: import("@excalidraw/element/types").NonDeleted<ExcalidrawLinearElement> | null;
|
|
71
73
|
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
72
74
|
isBindingEnabled: boolean;
|
|
75
|
+
bindingPreference: "enabled" | "disabled";
|
|
76
|
+
isMidpointSnappingEnabled: boolean;
|
|
73
77
|
startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
74
|
-
suggestedBinding:
|
|
78
|
+
suggestedBinding: {
|
|
79
|
+
element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
|
|
80
|
+
midPoint?: import("@excalidraw/math").GlobalPoint;
|
|
81
|
+
} | null;
|
|
75
82
|
frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
|
|
76
83
|
frameRendering: {
|
|
77
84
|
enabled: boolean;
|
|
@@ -81,7 +88,7 @@ export declare const actionToggleLinearEditor: {
|
|
|
81
88
|
};
|
|
82
89
|
editingFrame: string | null;
|
|
83
90
|
elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
|
|
84
|
-
editingTextElement: import("@excalidraw/element/types").
|
|
91
|
+
editingTextElement: import("@excalidraw/element/types").ExcalidrawTextElement | null;
|
|
85
92
|
activeTool: {
|
|
86
93
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
87
94
|
locked: boolean;
|
|
@@ -136,6 +143,10 @@ export declare const actionToggleLinearEditor: {
|
|
|
136
143
|
} | {
|
|
137
144
|
name: "elementLinkSelector";
|
|
138
145
|
sourceElementId: import("@excalidraw/element/types").ExcalidrawElement["id"];
|
|
146
|
+
} | {
|
|
147
|
+
name: "charts";
|
|
148
|
+
data: import("../charts").Spreadsheet;
|
|
149
|
+
rawText: string;
|
|
139
150
|
};
|
|
140
151
|
defaultSidebarDockedPreference: boolean;
|
|
141
152
|
lastPointerDownWith: import("@excalidraw/element/types").PointerType;
|
|
@@ -151,7 +162,7 @@ export declare const actionToggleLinearEditor: {
|
|
|
151
162
|
selectedElementsAreBeingDragged: boolean;
|
|
152
163
|
shouldCacheIgnoreZoom: boolean;
|
|
153
164
|
toast: {
|
|
154
|
-
message:
|
|
165
|
+
message: React.ReactNode;
|
|
155
166
|
closable?: boolean;
|
|
156
167
|
duration?: number;
|
|
157
168
|
} | null;
|
|
@@ -169,20 +180,12 @@ export declare const actionToggleLinearEditor: {
|
|
|
169
180
|
height: number;
|
|
170
181
|
offsetTop: number;
|
|
171
182
|
offsetLeft: number;
|
|
172
|
-
fileHandle:
|
|
183
|
+
fileHandle: FileSystemFileHandle | null;
|
|
173
184
|
collaborators: Map<import("../types").SocketId, import("../types").Collaborator>;
|
|
174
185
|
stats: {
|
|
175
186
|
open: boolean;
|
|
176
187
|
panels: number;
|
|
177
188
|
};
|
|
178
|
-
currentChartType: import("@excalidraw/element/types").ChartType;
|
|
179
|
-
pasteDialog: {
|
|
180
|
-
shown: false;
|
|
181
|
-
data: null;
|
|
182
|
-
} | {
|
|
183
|
-
shown: true;
|
|
184
|
-
data: import("../charts").Spreadsheet;
|
|
185
|
-
};
|
|
186
189
|
showHyperlinkPopup: false | "info" | "editor";
|
|
187
190
|
snapLines: readonly import("../snapping").SnapLine[];
|
|
188
191
|
originSnapOffset: {
|
|
@@ -36,8 +36,13 @@ export declare const actionLink: {
|
|
|
36
36
|
multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
|
|
37
37
|
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
38
38
|
isBindingEnabled: boolean;
|
|
39
|
+
bindingPreference: "enabled" | "disabled";
|
|
40
|
+
isMidpointSnappingEnabled: boolean;
|
|
39
41
|
startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
40
|
-
suggestedBinding:
|
|
42
|
+
suggestedBinding: {
|
|
43
|
+
element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
|
|
44
|
+
midPoint?: import("@excalidraw/math").GlobalPoint;
|
|
45
|
+
} | null;
|
|
41
46
|
frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
|
|
42
47
|
frameRendering: {
|
|
43
48
|
enabled: boolean;
|
|
@@ -47,7 +52,7 @@ export declare const actionLink: {
|
|
|
47
52
|
};
|
|
48
53
|
editingFrame: string | null;
|
|
49
54
|
elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
|
|
50
|
-
editingTextElement: import("@excalidraw/element/types").
|
|
55
|
+
editingTextElement: import("@excalidraw/element/types").ExcalidrawTextElement | null;
|
|
51
56
|
activeTool: {
|
|
52
57
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
53
58
|
locked: boolean;
|
|
@@ -101,6 +106,10 @@ export declare const actionLink: {
|
|
|
101
106
|
} | {
|
|
102
107
|
name: "elementLinkSelector";
|
|
103
108
|
sourceElementId: import("@excalidraw/element/types").ExcalidrawElement["id"];
|
|
109
|
+
} | {
|
|
110
|
+
name: "charts";
|
|
111
|
+
data: import("../charts").Spreadsheet;
|
|
112
|
+
rawText: string;
|
|
104
113
|
};
|
|
105
114
|
defaultSidebarDockedPreference: boolean;
|
|
106
115
|
lastPointerDownWith: import("@excalidraw/element/types").PointerType;
|
|
@@ -116,7 +125,7 @@ export declare const actionLink: {
|
|
|
116
125
|
selectedElementsAreBeingDragged: boolean;
|
|
117
126
|
shouldCacheIgnoreZoom: boolean;
|
|
118
127
|
toast: {
|
|
119
|
-
message:
|
|
128
|
+
message: React.ReactNode;
|
|
120
129
|
closable?: boolean;
|
|
121
130
|
duration?: number;
|
|
122
131
|
} | null;
|
|
@@ -134,20 +143,12 @@ export declare const actionLink: {
|
|
|
134
143
|
height: number;
|
|
135
144
|
offsetTop: number;
|
|
136
145
|
offsetLeft: number;
|
|
137
|
-
fileHandle:
|
|
146
|
+
fileHandle: FileSystemFileHandle | null;
|
|
138
147
|
collaborators: Map<import("../types").SocketId, import("../types").Collaborator>;
|
|
139
148
|
stats: {
|
|
140
149
|
open: boolean;
|
|
141
150
|
panels: number;
|
|
142
151
|
};
|
|
143
|
-
currentChartType: import("@excalidraw/element/types").ChartType;
|
|
144
|
-
pasteDialog: {
|
|
145
|
-
shown: false;
|
|
146
|
-
data: null;
|
|
147
|
-
} | {
|
|
148
|
-
shown: true;
|
|
149
|
-
data: import("../charts").Spreadsheet;
|
|
150
|
-
};
|
|
151
152
|
selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
|
|
152
153
|
snapLines: readonly import("../snapping").SnapLine[];
|
|
153
154
|
originSnapOffset: {
|
|
@@ -43,8 +43,13 @@ export declare const actionShortcuts: {
|
|
|
43
43
|
multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
|
|
44
44
|
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
45
45
|
isBindingEnabled: boolean;
|
|
46
|
+
bindingPreference: "enabled" | "disabled";
|
|
47
|
+
isMidpointSnappingEnabled: boolean;
|
|
46
48
|
startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
47
|
-
suggestedBinding:
|
|
49
|
+
suggestedBinding: {
|
|
50
|
+
element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
|
|
51
|
+
midPoint?: import("@excalidraw/math").GlobalPoint;
|
|
52
|
+
} | null;
|
|
48
53
|
frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
|
|
49
54
|
frameRendering: {
|
|
50
55
|
enabled: boolean;
|
|
@@ -54,7 +59,7 @@ export declare const actionShortcuts: {
|
|
|
54
59
|
};
|
|
55
60
|
editingFrame: string | null;
|
|
56
61
|
elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
|
|
57
|
-
editingTextElement: import("@excalidraw/element/types").
|
|
62
|
+
editingTextElement: import("@excalidraw/element/types").ExcalidrawTextElement | null;
|
|
58
63
|
activeTool: {
|
|
59
64
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
60
65
|
locked: boolean;
|
|
@@ -112,7 +117,7 @@ export declare const actionShortcuts: {
|
|
|
112
117
|
selectedElementsAreBeingDragged: boolean;
|
|
113
118
|
shouldCacheIgnoreZoom: boolean;
|
|
114
119
|
toast: {
|
|
115
|
-
message:
|
|
120
|
+
message: React.ReactNode;
|
|
116
121
|
closable?: boolean;
|
|
117
122
|
duration?: number;
|
|
118
123
|
} | null;
|
|
@@ -130,20 +135,12 @@ export declare const actionShortcuts: {
|
|
|
130
135
|
height: number;
|
|
131
136
|
offsetTop: number;
|
|
132
137
|
offsetLeft: number;
|
|
133
|
-
fileHandle:
|
|
138
|
+
fileHandle: FileSystemFileHandle | null;
|
|
134
139
|
collaborators: Map<import("../types").SocketId, import("../types").Collaborator>;
|
|
135
140
|
stats: {
|
|
136
141
|
open: boolean;
|
|
137
142
|
panels: number;
|
|
138
143
|
};
|
|
139
|
-
currentChartType: import("@excalidraw/element/types").ChartType;
|
|
140
|
-
pasteDialog: {
|
|
141
|
-
shown: false;
|
|
142
|
-
data: null;
|
|
143
|
-
} | {
|
|
144
|
-
shown: true;
|
|
145
|
-
data: import("../charts").Spreadsheet;
|
|
146
|
-
};
|
|
147
144
|
showHyperlinkPopup: false | "info" | "editor";
|
|
148
145
|
selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
|
|
149
146
|
snapLines: readonly import("../snapping").SnapLine[];
|