@dwelle/excalidraw 0.5.0-e05a141 → 0.5.0-e2a82c4d8
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/{chunk-JCMFCSXV.js → chunk-7M7SVUYU.js} +121 -7
- package/dist/dev/chunk-7M7SVUYU.js.map +7 -0
- package/dist/dev/{chunk-P7XQCHXR.js → chunk-HJWER26G.js} +901 -439
- package/dist/dev/chunk-HJWER26G.js.map +7 -0
- package/dist/dev/{chunk-B7UQ5W6R.js → chunk-Q5BO7QEK.js} +2 -2
- package/dist/dev/{chunk-B7UQ5W6R.js.map → chunk-Q5BO7QEK.js.map} +1 -1
- package/dist/dev/components/TTDDialog/CodeMirrorEditor-4GD6MAJW.js +259 -0
- package/dist/dev/components/TTDDialog/CodeMirrorEditor-4GD6MAJW.js.map +7 -0
- package/dist/dev/data/{image-BUI6GQJR.js → image-UQK7BQY4.js} +3 -3
- package/dist/dev/index.css +2444 -173
- package/dist/dev/index.css.map +3 -3
- package/dist/dev/index.js +6875 -1415
- package/dist/dev/index.js.map +4 -4
- package/dist/dev/locales/{en-SEGQGVZN.js → en-IHKMFGHF.js} +6 -2
- package/dist/dev/subset-shared.chunk.js +1 -1
- package/dist/dev/subset-worker.chunk.js +1 -1
- package/dist/prod/chunk-QHCRJDAB.js +12 -0
- package/dist/prod/chunk-R2CZDOAE.js +34 -0
- package/dist/prod/{chunk-KDBB3MAO.js → chunk-XXRJJHWR.js} +1 -1
- package/dist/prod/components/TTDDialog/CodeMirrorEditor-P2CDXXOC.js +1 -0
- package/dist/prod/data/image-WAWRV65K.js +1 -0
- package/dist/prod/index.css +1 -1
- package/dist/prod/index.js +34 -25
- package/dist/prod/locales/en-QQWGF6XN.js +1 -0
- package/dist/prod/subset-shared.chunk.js +1 -1
- package/dist/prod/subset-worker.chunk.js +1 -1
- package/dist/types/common/src/utils.d.ts +5 -3
- 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/binding.d.ts +5 -4
- package/dist/types/element/src/bounds.d.ts +5 -3
- package/dist/types/element/src/elbowArrow.d.ts +2 -0
- package/dist/types/element/src/frame.d.ts +1 -1
- 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/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/types.d.ts +4 -1
- package/dist/types/element/src/utils.d.ts +2 -2
- package/dist/types/excalidraw/TTA/TTAChatEmptyState.d.ts +7 -0
- package/dist/types/excalidraw/TTA/TTAChatMessage.d.ts +15 -0
- package/dist/types/excalidraw/TTA/TTAComposer.d.ts +24 -0
- package/dist/types/excalidraw/TTA/TTADialog.d.ts +19 -0
- package/dist/types/excalidraw/TTA/TTADialogPanel.d.ts +46 -0
- package/dist/types/excalidraw/TTA/TTADialogTrigger.d.ts +10 -0
- package/dist/types/excalidraw/TTA/TTAHistory.d.ts +11 -0
- package/dist/types/excalidraw/TTA/TTAWarningMessage.d.ts +5 -0
- package/dist/types/excalidraw/TTA/chatErrors.d.ts +13 -0
- package/dist/types/excalidraw/TTA/chatHelpers.d.ts +26 -0
- package/dist/types/excalidraw/TTA/client.d.ts +74 -0
- package/dist/types/excalidraw/TTA/history.d.ts +2 -0
- package/dist/types/excalidraw/TTA/insertAISkeletons.d.ts +20 -0
- package/dist/types/excalidraw/TTA/types.d.ts +167 -0
- package/dist/types/excalidraw/TTA/useAIAssistantPreview.d.ts +18 -0
- package/dist/types/excalidraw/TTA/useAIStreamingCanvasPreview.d.ts +21 -0
- package/dist/types/excalidraw/TTA/useAIStreamingLifecycle.d.ts +34 -0
- package/dist/types/excalidraw/TTA/useTTAChatHistory.d.ts +18 -0
- package/dist/types/excalidraw/TTA/utils.d.ts +14 -0
- package/dist/types/excalidraw/actions/actionAddToLibrary.d.ts +15 -6
- package/dist/types/excalidraw/actions/actionBoundText.d.ts +11 -5
- package/dist/types/excalidraw/actions/actionCanvas.d.ts +50 -20
- package/dist/types/excalidraw/actions/actionClipboard.d.ts +10 -4
- package/dist/types/excalidraw/actions/actionCropEditor.d.ts +5 -2
- package/dist/types/excalidraw/actions/actionDeleteSelected.d.ts +15 -6
- package/dist/types/excalidraw/actions/actionDeselect.d.ts +161 -0
- package/dist/types/excalidraw/actions/actionElementLink.d.ts +5 -2
- package/dist/types/excalidraw/actions/actionElementLock.d.ts +10 -4
- package/dist/types/excalidraw/actions/actionEmbeddable.d.ts +5 -2
- package/dist/types/excalidraw/actions/actionExport.d.ts +21 -8
- package/dist/types/excalidraw/actions/actionFrame.d.ts +20 -8
- package/dist/types/excalidraw/actions/actionGroup.d.ts +11 -5
- package/dist/types/excalidraw/actions/actionLinearEditor.d.ts +5 -2
- package/dist/types/excalidraw/actions/actionLink.d.ts +5 -2
- package/dist/types/excalidraw/actions/actionMenu.d.ts +5 -2
- package/dist/types/excalidraw/actions/actionProperties.d.ts +12 -6
- package/dist/types/excalidraw/actions/actionSelectAll.d.ts +5 -2
- package/dist/types/excalidraw/actions/actionStyles.d.ts +6 -2
- package/dist/types/excalidraw/actions/actionTextAutoResize.d.ts +3 -3
- package/dist/types/excalidraw/actions/actionToggleArrowBinding.d.ts +174 -0
- package/dist/types/excalidraw/actions/actionToggleGridMode.d.ts +5 -2
- package/dist/types/excalidraw/actions/actionToggleMidpointSnapping.d.ts +174 -0
- package/dist/types/excalidraw/actions/actionToggleObjectsSnapMode.d.ts +5 -2
- package/dist/types/excalidraw/actions/actionToggleSearchMenu.d.ts +5 -2
- package/dist/types/excalidraw/actions/actionToggleStats.d.ts +5 -2
- package/dist/types/excalidraw/actions/actionToggleViewMode.d.ts +5 -2
- package/dist/types/excalidraw/actions/actionToggleZenMode.d.ts +5 -2
- package/dist/types/excalidraw/actions/index.d.ts +3 -0
- package/dist/types/excalidraw/actions/types.d.ts +1 -1
- package/dist/types/excalidraw/aiWarnings.d.ts +7 -0
- package/dist/types/excalidraw/appState.d.ts +4 -0
- package/dist/types/excalidraw/components/AI/ChatMessage.d.ts +33 -0
- package/dist/types/excalidraw/components/AI/index.d.ts +2 -0
- package/dist/types/excalidraw/components/App.d.ts +11 -1
- package/dist/types/excalidraw/components/FilledButton.d.ts +1 -1
- package/dist/types/excalidraw/components/IconPicker.d.ts +14 -9
- package/dist/types/excalidraw/components/Range.d.ts +10 -4
- package/dist/types/excalidraw/components/TTDDialog/Chat/TTDRateLimitWarningContent.d.ts +5 -0
- package/dist/types/excalidraw/components/TTDDialog/CodeMirrorEditor.d.ts +11 -0
- package/dist/types/excalidraw/components/TTDDialog/TTDDialog.d.ts +2 -2
- 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/types.d.ts +5 -1
- package/dist/types/excalidraw/components/TTDDialog/utils/TTDStreamFetch.d.ts +24 -6
- 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/canvases/InteractiveCanvas.d.ts +1 -0
- package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuItemContentRadio.d.ts +2 -1
- package/dist/types/excalidraw/components/icons.d.ts +18 -8
- package/dist/types/excalidraw/components/main-menu/DefaultItems.d.ts +3 -0
- package/dist/types/excalidraw/context/tunnels.d.ts +1 -0
- package/dist/types/excalidraw/data/blob.d.ts +9 -3
- package/dist/types/excalidraw/data/filesystem.d.ts +3 -3
- package/dist/types/excalidraw/data/index.d.ts +1 -1
- package/dist/types/excalidraw/data/json.d.ts +6 -3
- package/dist/types/excalidraw/data/resave.d.ts +1 -1
- package/dist/types/excalidraw/data/sse.d.ts +15 -0
- package/dist/types/excalidraw/index.d.ts +15 -2
- package/dist/types/excalidraw/textAutoResizeHandle.d.ts +15 -0
- package/dist/types/excalidraw/types.d.ts +15 -2
- package/dist/types/excalidraw/wysiwyg/textWysiwyg.d.ts +5 -1
- package/dist/types/math/src/curve.d.ts +4 -1
- package/dist/types/math/src/point.d.ts +1 -1
- package/package.json +11 -5
- package/CHANGELOG.md +0 -2385
- package/dist/dev/chunk-JCMFCSXV.js.map +0 -7
- package/dist/dev/chunk-P7XQCHXR.js.map +0 -7
- package/dist/prod/chunk-FVPDTNSG.js +0 -12
- package/dist/prod/chunk-LRBVLW2I.js +0 -33
- package/dist/prod/data/image-KI7JN73E.js +0 -1
- package/dist/prod/locales/en-6237XDE7.js +0 -1
- package/dist/types/excalidraw/data/ai/types.d.ts +0 -242
- package/history.ts +0 -249
- /package/dist/dev/data/{image-BUI6GQJR.js.map → image-UQK7BQY4.js.map} +0 -0
- /package/dist/dev/locales/{en-SEGQGVZN.js.map → en-IHKMFGHF.js.map} +0 -0
|
@@ -60,6 +60,9 @@ export declare const actionClearCanvas: {
|
|
|
60
60
|
multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
|
|
61
61
|
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
62
62
|
isBindingEnabled: boolean;
|
|
63
|
+
boxSelectionMode: import("../types").BoxSelectionMode;
|
|
64
|
+
bindingPreference: "enabled" | "disabled";
|
|
65
|
+
isMidpointSnappingEnabled: boolean;
|
|
63
66
|
startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
64
67
|
suggestedBinding: {
|
|
65
68
|
element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
|
|
@@ -68,7 +71,7 @@ export declare const actionClearCanvas: {
|
|
|
68
71
|
frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
|
|
69
72
|
editingFrame: string | null;
|
|
70
73
|
elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
|
|
71
|
-
editingTextElement: import("@excalidraw/element/types").
|
|
74
|
+
editingTextElement: import("@excalidraw/element/types").ExcalidrawTextElement | null;
|
|
72
75
|
preferredSelectionTool: {
|
|
73
76
|
type: "selection" | "lasso";
|
|
74
77
|
initialized: boolean;
|
|
@@ -142,7 +145,7 @@ export declare const actionClearCanvas: {
|
|
|
142
145
|
[groupId: string]: boolean;
|
|
143
146
|
};
|
|
144
147
|
editingGroupId: import("@excalidraw/element/types").GroupId | null;
|
|
145
|
-
fileHandle: import("
|
|
148
|
+
fileHandle: import("../data/filesystem").FileSystemHandle | null;
|
|
146
149
|
collaborators: Map<import("../types").SocketId, import("../types").Collaborator>;
|
|
147
150
|
showHyperlinkPopup: false | "info" | "editor";
|
|
148
151
|
selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
|
|
@@ -238,6 +241,9 @@ export declare const actionResetZoom: {
|
|
|
238
241
|
multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
|
|
239
242
|
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
240
243
|
isBindingEnabled: boolean;
|
|
244
|
+
boxSelectionMode: import("../types").BoxSelectionMode;
|
|
245
|
+
bindingPreference: "enabled" | "disabled";
|
|
246
|
+
isMidpointSnappingEnabled: boolean;
|
|
241
247
|
startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
242
248
|
suggestedBinding: {
|
|
243
249
|
element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
|
|
@@ -252,7 +258,7 @@ export declare const actionResetZoom: {
|
|
|
252
258
|
};
|
|
253
259
|
editingFrame: string | null;
|
|
254
260
|
elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
|
|
255
|
-
editingTextElement: import("@excalidraw/element/types").
|
|
261
|
+
editingTextElement: import("@excalidraw/element/types").ExcalidrawTextElement | null;
|
|
256
262
|
activeTool: {
|
|
257
263
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
258
264
|
locked: boolean;
|
|
@@ -344,7 +350,7 @@ export declare const actionResetZoom: {
|
|
|
344
350
|
height: number;
|
|
345
351
|
offsetTop: number;
|
|
346
352
|
offsetLeft: number;
|
|
347
|
-
fileHandle: import("
|
|
353
|
+
fileHandle: import("../data/filesystem").FileSystemHandle | null;
|
|
348
354
|
collaborators: Map<import("../types").SocketId, import("../types").Collaborator>;
|
|
349
355
|
stats: {
|
|
350
356
|
open: boolean;
|
|
@@ -413,6 +419,9 @@ export declare const zoomToFitBounds: ({ bounds, appState, canvasOffsets, fitToV
|
|
|
413
419
|
multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
|
|
414
420
|
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
415
421
|
isBindingEnabled: boolean;
|
|
422
|
+
boxSelectionMode: import("../types").BoxSelectionMode;
|
|
423
|
+
bindingPreference: "enabled" | "disabled";
|
|
424
|
+
isMidpointSnappingEnabled: boolean;
|
|
416
425
|
startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
417
426
|
suggestedBinding: {
|
|
418
427
|
element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
|
|
@@ -427,7 +436,7 @@ export declare const zoomToFitBounds: ({ bounds, appState, canvasOffsets, fitToV
|
|
|
427
436
|
};
|
|
428
437
|
editingFrame: string | null;
|
|
429
438
|
elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
|
|
430
|
-
editingTextElement: import("@excalidraw/element/types").
|
|
439
|
+
editingTextElement: import("@excalidraw/element/types").ExcalidrawTextElement | null;
|
|
431
440
|
activeTool: {
|
|
432
441
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
433
442
|
locked: boolean;
|
|
@@ -519,7 +528,7 @@ export declare const zoomToFitBounds: ({ bounds, appState, canvasOffsets, fitToV
|
|
|
519
528
|
height: number;
|
|
520
529
|
offsetTop: number;
|
|
521
530
|
offsetLeft: number;
|
|
522
|
-
fileHandle: import("
|
|
531
|
+
fileHandle: import("../data/filesystem").FileSystemHandle | null;
|
|
523
532
|
collaborators: Map<import("../types").SocketId, import("../types").Collaborator>;
|
|
524
533
|
stats: {
|
|
525
534
|
open: boolean;
|
|
@@ -584,6 +593,9 @@ export declare const zoomToFit: ({ canvasOffsets, targetElements, appState, fitT
|
|
|
584
593
|
multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
|
|
585
594
|
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
586
595
|
isBindingEnabled: boolean;
|
|
596
|
+
boxSelectionMode: import("../types").BoxSelectionMode;
|
|
597
|
+
bindingPreference: "enabled" | "disabled";
|
|
598
|
+
isMidpointSnappingEnabled: boolean;
|
|
587
599
|
startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
588
600
|
suggestedBinding: {
|
|
589
601
|
element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
|
|
@@ -598,7 +610,7 @@ export declare const zoomToFit: ({ canvasOffsets, targetElements, appState, fitT
|
|
|
598
610
|
};
|
|
599
611
|
editingFrame: string | null;
|
|
600
612
|
elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
|
|
601
|
-
editingTextElement: import("@excalidraw/element/types").
|
|
613
|
+
editingTextElement: import("@excalidraw/element/types").ExcalidrawTextElement | null;
|
|
602
614
|
activeTool: {
|
|
603
615
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
604
616
|
locked: boolean;
|
|
@@ -690,7 +702,7 @@ export declare const zoomToFit: ({ canvasOffsets, targetElements, appState, fitT
|
|
|
690
702
|
height: number;
|
|
691
703
|
offsetTop: number;
|
|
692
704
|
offsetLeft: number;
|
|
693
|
-
fileHandle: import("
|
|
705
|
+
fileHandle: import("../data/filesystem").FileSystemHandle | null;
|
|
694
706
|
collaborators: Map<import("../types").SocketId, import("../types").Collaborator>;
|
|
695
707
|
stats: {
|
|
696
708
|
open: boolean;
|
|
@@ -752,6 +764,9 @@ export declare const actionZoomToFitSelectionInViewport: {
|
|
|
752
764
|
multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
|
|
753
765
|
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
754
766
|
isBindingEnabled: boolean;
|
|
767
|
+
boxSelectionMode: import("../types").BoxSelectionMode;
|
|
768
|
+
bindingPreference: "enabled" | "disabled";
|
|
769
|
+
isMidpointSnappingEnabled: boolean;
|
|
755
770
|
startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
756
771
|
suggestedBinding: {
|
|
757
772
|
element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
|
|
@@ -766,7 +781,7 @@ export declare const actionZoomToFitSelectionInViewport: {
|
|
|
766
781
|
};
|
|
767
782
|
editingFrame: string | null;
|
|
768
783
|
elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
|
|
769
|
-
editingTextElement: import("@excalidraw/element/types").
|
|
784
|
+
editingTextElement: import("@excalidraw/element/types").ExcalidrawTextElement | null;
|
|
770
785
|
activeTool: {
|
|
771
786
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
772
787
|
locked: boolean;
|
|
@@ -858,7 +873,7 @@ export declare const actionZoomToFitSelectionInViewport: {
|
|
|
858
873
|
height: number;
|
|
859
874
|
offsetTop: number;
|
|
860
875
|
offsetLeft: number;
|
|
861
|
-
fileHandle: import("
|
|
876
|
+
fileHandle: import("../data/filesystem").FileSystemHandle | null;
|
|
862
877
|
collaborators: Map<import("../types").SocketId, import("../types").Collaborator>;
|
|
863
878
|
stats: {
|
|
864
879
|
open: boolean;
|
|
@@ -924,6 +939,9 @@ export declare const actionZoomToFitSelection: {
|
|
|
924
939
|
multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
|
|
925
940
|
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
926
941
|
isBindingEnabled: boolean;
|
|
942
|
+
boxSelectionMode: import("../types").BoxSelectionMode;
|
|
943
|
+
bindingPreference: "enabled" | "disabled";
|
|
944
|
+
isMidpointSnappingEnabled: boolean;
|
|
927
945
|
startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
928
946
|
suggestedBinding: {
|
|
929
947
|
element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
|
|
@@ -938,7 +956,7 @@ export declare const actionZoomToFitSelection: {
|
|
|
938
956
|
};
|
|
939
957
|
editingFrame: string | null;
|
|
940
958
|
elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
|
|
941
|
-
editingTextElement: import("@excalidraw/element/types").
|
|
959
|
+
editingTextElement: import("@excalidraw/element/types").ExcalidrawTextElement | null;
|
|
942
960
|
activeTool: {
|
|
943
961
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
944
962
|
locked: boolean;
|
|
@@ -1030,7 +1048,7 @@ export declare const actionZoomToFitSelection: {
|
|
|
1030
1048
|
height: number;
|
|
1031
1049
|
offsetTop: number;
|
|
1032
1050
|
offsetLeft: number;
|
|
1033
|
-
fileHandle: import("
|
|
1051
|
+
fileHandle: import("../data/filesystem").FileSystemHandle | null;
|
|
1034
1052
|
collaborators: Map<import("../types").SocketId, import("../types").Collaborator>;
|
|
1035
1053
|
stats: {
|
|
1036
1054
|
open: boolean;
|
|
@@ -1097,6 +1115,9 @@ export declare const actionZoomToFit: {
|
|
|
1097
1115
|
multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
|
|
1098
1116
|
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
1099
1117
|
isBindingEnabled: boolean;
|
|
1118
|
+
boxSelectionMode: import("../types").BoxSelectionMode;
|
|
1119
|
+
bindingPreference: "enabled" | "disabled";
|
|
1120
|
+
isMidpointSnappingEnabled: boolean;
|
|
1100
1121
|
startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
1101
1122
|
suggestedBinding: {
|
|
1102
1123
|
element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
|
|
@@ -1111,7 +1132,7 @@ export declare const actionZoomToFit: {
|
|
|
1111
1132
|
};
|
|
1112
1133
|
editingFrame: string | null;
|
|
1113
1134
|
elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
|
|
1114
|
-
editingTextElement: import("@excalidraw/element/types").
|
|
1135
|
+
editingTextElement: import("@excalidraw/element/types").ExcalidrawTextElement | null;
|
|
1115
1136
|
activeTool: {
|
|
1116
1137
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
1117
1138
|
locked: boolean;
|
|
@@ -1203,7 +1224,7 @@ export declare const actionZoomToFit: {
|
|
|
1203
1224
|
height: number;
|
|
1204
1225
|
offsetTop: number;
|
|
1205
1226
|
offsetLeft: number;
|
|
1206
|
-
fileHandle: import("
|
|
1227
|
+
fileHandle: import("../data/filesystem").FileSystemHandle | null;
|
|
1207
1228
|
collaborators: Map<import("../types").SocketId, import("../types").Collaborator>;
|
|
1208
1229
|
stats: {
|
|
1209
1230
|
open: boolean;
|
|
@@ -1270,6 +1291,9 @@ export declare const actionToggleEraserTool: {
|
|
|
1270
1291
|
multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
|
|
1271
1292
|
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
1272
1293
|
isBindingEnabled: boolean;
|
|
1294
|
+
boxSelectionMode: import("../types").BoxSelectionMode;
|
|
1295
|
+
bindingPreference: "enabled" | "disabled";
|
|
1296
|
+
isMidpointSnappingEnabled: boolean;
|
|
1273
1297
|
startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
1274
1298
|
suggestedBinding: {
|
|
1275
1299
|
element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
|
|
@@ -1284,7 +1308,7 @@ export declare const actionToggleEraserTool: {
|
|
|
1284
1308
|
};
|
|
1285
1309
|
editingFrame: string | null;
|
|
1286
1310
|
elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
|
|
1287
|
-
editingTextElement: import("@excalidraw/element/types").
|
|
1311
|
+
editingTextElement: import("@excalidraw/element/types").ExcalidrawTextElement | null;
|
|
1288
1312
|
preferredSelectionTool: {
|
|
1289
1313
|
type: "selection" | "lasso";
|
|
1290
1314
|
initialized: boolean;
|
|
@@ -1368,7 +1392,7 @@ export declare const actionToggleEraserTool: {
|
|
|
1368
1392
|
height: number;
|
|
1369
1393
|
offsetTop: number;
|
|
1370
1394
|
offsetLeft: number;
|
|
1371
|
-
fileHandle: import("
|
|
1395
|
+
fileHandle: import("../data/filesystem").FileSystemHandle | null;
|
|
1372
1396
|
collaborators: Map<import("../types").SocketId, import("../types").Collaborator>;
|
|
1373
1397
|
stats: {
|
|
1374
1398
|
open: boolean;
|
|
@@ -1434,6 +1458,9 @@ export declare const actionToggleLassoTool: {
|
|
|
1434
1458
|
multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
|
|
1435
1459
|
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
1436
1460
|
isBindingEnabled: boolean;
|
|
1461
|
+
boxSelectionMode: import("../types").BoxSelectionMode;
|
|
1462
|
+
bindingPreference: "enabled" | "disabled";
|
|
1463
|
+
isMidpointSnappingEnabled: boolean;
|
|
1437
1464
|
startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
1438
1465
|
suggestedBinding: {
|
|
1439
1466
|
element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
|
|
@@ -1448,7 +1475,7 @@ export declare const actionToggleLassoTool: {
|
|
|
1448
1475
|
};
|
|
1449
1476
|
editingFrame: string | null;
|
|
1450
1477
|
elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
|
|
1451
|
-
editingTextElement: import("@excalidraw/element/types").
|
|
1478
|
+
editingTextElement: import("@excalidraw/element/types").ExcalidrawTextElement | null;
|
|
1452
1479
|
preferredSelectionTool: {
|
|
1453
1480
|
type: "selection" | "lasso";
|
|
1454
1481
|
initialized: boolean;
|
|
@@ -1532,7 +1559,7 @@ export declare const actionToggleLassoTool: {
|
|
|
1532
1559
|
height: number;
|
|
1533
1560
|
offsetTop: number;
|
|
1534
1561
|
offsetLeft: number;
|
|
1535
|
-
fileHandle: import("
|
|
1562
|
+
fileHandle: import("../data/filesystem").FileSystemHandle | null;
|
|
1536
1563
|
collaborators: Map<import("../types").SocketId, import("../types").Collaborator>;
|
|
1537
1564
|
stats: {
|
|
1538
1565
|
open: boolean;
|
|
@@ -1597,6 +1624,9 @@ export declare const actionToggleHandTool: {
|
|
|
1597
1624
|
multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
|
|
1598
1625
|
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
1599
1626
|
isBindingEnabled: boolean;
|
|
1627
|
+
boxSelectionMode: import("../types").BoxSelectionMode;
|
|
1628
|
+
bindingPreference: "enabled" | "disabled";
|
|
1629
|
+
isMidpointSnappingEnabled: boolean;
|
|
1600
1630
|
startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
1601
1631
|
suggestedBinding: {
|
|
1602
1632
|
element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
|
|
@@ -1611,7 +1641,7 @@ export declare const actionToggleHandTool: {
|
|
|
1611
1641
|
};
|
|
1612
1642
|
editingFrame: string | null;
|
|
1613
1643
|
elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
|
|
1614
|
-
editingTextElement: import("@excalidraw/element/types").
|
|
1644
|
+
editingTextElement: import("@excalidraw/element/types").ExcalidrawTextElement | null;
|
|
1615
1645
|
preferredSelectionTool: {
|
|
1616
1646
|
type: "selection" | "lasso";
|
|
1617
1647
|
initialized: boolean;
|
|
@@ -1695,7 +1725,7 @@ export declare const actionToggleHandTool: {
|
|
|
1695
1725
|
height: number;
|
|
1696
1726
|
offsetTop: number;
|
|
1697
1727
|
offsetLeft: number;
|
|
1698
|
-
fileHandle: import("
|
|
1728
|
+
fileHandle: import("../data/filesystem").FileSystemHandle | null;
|
|
1699
1729
|
collaborators: Map<import("../types").SocketId, import("../types").Collaborator>;
|
|
1700
1730
|
stats: {
|
|
1701
1731
|
open: boolean;
|
|
@@ -27,6 +27,9 @@ export declare const actionPaste: {
|
|
|
27
27
|
multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
|
|
28
28
|
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
29
29
|
isBindingEnabled: boolean;
|
|
30
|
+
boxSelectionMode: import("../types").BoxSelectionMode;
|
|
31
|
+
bindingPreference: "enabled" | "disabled";
|
|
32
|
+
isMidpointSnappingEnabled: boolean;
|
|
30
33
|
startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
31
34
|
suggestedBinding: {
|
|
32
35
|
element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
|
|
@@ -41,7 +44,7 @@ export declare const actionPaste: {
|
|
|
41
44
|
};
|
|
42
45
|
editingFrame: string | null;
|
|
43
46
|
elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
|
|
44
|
-
editingTextElement: import("@excalidraw/element/types").
|
|
47
|
+
editingTextElement: import("@excalidraw/element/types").ExcalidrawTextElement | null;
|
|
45
48
|
activeTool: {
|
|
46
49
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
47
50
|
locked: boolean;
|
|
@@ -136,7 +139,7 @@ export declare const actionPaste: {
|
|
|
136
139
|
height: number;
|
|
137
140
|
offsetTop: number;
|
|
138
141
|
offsetLeft: number;
|
|
139
|
-
fileHandle: import("
|
|
142
|
+
fileHandle: import("../data/filesystem").FileSystemHandle | null;
|
|
140
143
|
collaborators: Map<import("../types").SocketId, import("../types").Collaborator>;
|
|
141
144
|
stats: {
|
|
142
145
|
open: boolean;
|
|
@@ -235,6 +238,9 @@ export declare const actionCopyAsPng: {
|
|
|
235
238
|
multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
|
|
236
239
|
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
237
240
|
isBindingEnabled: boolean;
|
|
241
|
+
boxSelectionMode: import("../types").BoxSelectionMode;
|
|
242
|
+
bindingPreference: "enabled" | "disabled";
|
|
243
|
+
isMidpointSnappingEnabled: boolean;
|
|
238
244
|
startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
239
245
|
suggestedBinding: {
|
|
240
246
|
element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
|
|
@@ -249,7 +255,7 @@ export declare const actionCopyAsPng: {
|
|
|
249
255
|
};
|
|
250
256
|
editingFrame: string | null;
|
|
251
257
|
elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
|
|
252
|
-
editingTextElement: import("@excalidraw/element/types").
|
|
258
|
+
editingTextElement: import("@excalidraw/element/types").ExcalidrawTextElement | null;
|
|
253
259
|
activeTool: {
|
|
254
260
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
255
261
|
locked: boolean;
|
|
@@ -344,7 +350,7 @@ export declare const actionCopyAsPng: {
|
|
|
344
350
|
height: number;
|
|
345
351
|
offsetTop: number;
|
|
346
352
|
offsetLeft: number;
|
|
347
|
-
fileHandle: import("
|
|
353
|
+
fileHandle: import("../data/filesystem").FileSystemHandle | null;
|
|
348
354
|
collaborators: Map<import("../types").SocketId, import("../types").Collaborator>;
|
|
349
355
|
stats: {
|
|
350
356
|
open: boolean;
|
|
@@ -28,6 +28,9 @@ export declare const actionToggleCropEditor: {
|
|
|
28
28
|
multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
|
|
29
29
|
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
30
30
|
isBindingEnabled: boolean;
|
|
31
|
+
boxSelectionMode: import("../types").BoxSelectionMode;
|
|
32
|
+
bindingPreference: "enabled" | "disabled";
|
|
33
|
+
isMidpointSnappingEnabled: boolean;
|
|
31
34
|
startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
32
35
|
suggestedBinding: {
|
|
33
36
|
element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
|
|
@@ -42,7 +45,7 @@ export declare const actionToggleCropEditor: {
|
|
|
42
45
|
};
|
|
43
46
|
editingFrame: string | null;
|
|
44
47
|
elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
|
|
45
|
-
editingTextElement: import("@excalidraw/element/types").
|
|
48
|
+
editingTextElement: import("@excalidraw/element/types").ExcalidrawTextElement | null;
|
|
46
49
|
activeTool: {
|
|
47
50
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
48
51
|
locked: boolean;
|
|
@@ -137,7 +140,7 @@ export declare const actionToggleCropEditor: {
|
|
|
137
140
|
height: number;
|
|
138
141
|
offsetTop: number;
|
|
139
142
|
offsetLeft: number;
|
|
140
|
-
fileHandle: import("
|
|
143
|
+
fileHandle: import("../data/filesystem").FileSystemHandle | null;
|
|
141
144
|
collaborators: Map<import("../types").SocketId, import("../types").Collaborator>;
|
|
142
145
|
stats: {
|
|
143
146
|
open: boolean;
|
|
@@ -29,6 +29,9 @@ export declare const actionDeleteSelected: {
|
|
|
29
29
|
multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
|
|
30
30
|
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
31
31
|
isBindingEnabled: boolean;
|
|
32
|
+
boxSelectionMode: import("../types").BoxSelectionMode;
|
|
33
|
+
bindingPreference: "enabled" | "disabled";
|
|
34
|
+
isMidpointSnappingEnabled: boolean;
|
|
32
35
|
startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
33
36
|
suggestedBinding: {
|
|
34
37
|
element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
|
|
@@ -43,7 +46,7 @@ export declare const actionDeleteSelected: {
|
|
|
43
46
|
};
|
|
44
47
|
editingFrame: string | null;
|
|
45
48
|
elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
|
|
46
|
-
editingTextElement: import("@excalidraw/element/types").
|
|
49
|
+
editingTextElement: import("@excalidraw/element/types").ExcalidrawTextElement | null;
|
|
47
50
|
activeTool: {
|
|
48
51
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
49
52
|
locked: boolean;
|
|
@@ -138,7 +141,7 @@ export declare const actionDeleteSelected: {
|
|
|
138
141
|
height: number;
|
|
139
142
|
offsetTop: number;
|
|
140
143
|
offsetLeft: number;
|
|
141
|
-
fileHandle: import("
|
|
144
|
+
fileHandle: import("../data/filesystem").FileSystemHandle | null;
|
|
142
145
|
collaborators: Map<import("../types").SocketId, import("../types").Collaborator>;
|
|
143
146
|
stats: {
|
|
144
147
|
open: boolean;
|
|
@@ -220,6 +223,9 @@ export declare const actionDeleteSelected: {
|
|
|
220
223
|
multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
|
|
221
224
|
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
222
225
|
isBindingEnabled: boolean;
|
|
226
|
+
boxSelectionMode: import("../types").BoxSelectionMode;
|
|
227
|
+
bindingPreference: "enabled" | "disabled";
|
|
228
|
+
isMidpointSnappingEnabled: boolean;
|
|
223
229
|
startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
224
230
|
suggestedBinding: {
|
|
225
231
|
element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
|
|
@@ -234,7 +240,7 @@ export declare const actionDeleteSelected: {
|
|
|
234
240
|
};
|
|
235
241
|
editingFrame: string | null;
|
|
236
242
|
elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
|
|
237
|
-
editingTextElement: import("@excalidraw/element/types").
|
|
243
|
+
editingTextElement: import("@excalidraw/element/types").ExcalidrawTextElement | null;
|
|
238
244
|
activeTool: {
|
|
239
245
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
240
246
|
locked: boolean;
|
|
@@ -329,7 +335,7 @@ export declare const actionDeleteSelected: {
|
|
|
329
335
|
height: number;
|
|
330
336
|
offsetTop: number;
|
|
331
337
|
offsetLeft: number;
|
|
332
|
-
fileHandle: import("
|
|
338
|
+
fileHandle: import("../data/filesystem").FileSystemHandle | null;
|
|
333
339
|
collaborators: Map<import("../types").SocketId, import("../types").Collaborator>;
|
|
334
340
|
stats: {
|
|
335
341
|
open: boolean;
|
|
@@ -384,6 +390,9 @@ export declare const actionDeleteSelected: {
|
|
|
384
390
|
resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
385
391
|
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
386
392
|
isBindingEnabled: boolean;
|
|
393
|
+
boxSelectionMode: import("../types").BoxSelectionMode;
|
|
394
|
+
bindingPreference: "enabled" | "disabled";
|
|
395
|
+
isMidpointSnappingEnabled: boolean;
|
|
387
396
|
startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
388
397
|
suggestedBinding: {
|
|
389
398
|
element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
|
|
@@ -398,7 +407,7 @@ export declare const actionDeleteSelected: {
|
|
|
398
407
|
};
|
|
399
408
|
editingFrame: string | null;
|
|
400
409
|
elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
|
|
401
|
-
editingTextElement: import("@excalidraw/element/types").
|
|
410
|
+
editingTextElement: import("@excalidraw/element/types").ExcalidrawTextElement | null;
|
|
402
411
|
preferredSelectionTool: {
|
|
403
412
|
type: "selection" | "lasso";
|
|
404
413
|
initialized: boolean;
|
|
@@ -481,7 +490,7 @@ export declare const actionDeleteSelected: {
|
|
|
481
490
|
height: number;
|
|
482
491
|
offsetTop: number;
|
|
483
492
|
offsetLeft: number;
|
|
484
|
-
fileHandle: import("
|
|
493
|
+
fileHandle: import("../data/filesystem").FileSystemHandle | null;
|
|
485
494
|
collaborators: Map<import("../types").SocketId, import("../types").Collaborator>;
|
|
486
495
|
stats: {
|
|
487
496
|
open: boolean;
|
|
@@ -0,0 +1,161 @@
|
|
|
1
|
+
import type { AppClassProperties, AppState } from "../types";
|
|
2
|
+
export declare const actionDeselect: {
|
|
3
|
+
name: "deselect";
|
|
4
|
+
label: string;
|
|
5
|
+
trackEvent: false;
|
|
6
|
+
perform: (_elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: unknown, app: AppClassProperties) => {
|
|
7
|
+
appState: {
|
|
8
|
+
activeEmbeddable: null;
|
|
9
|
+
activeTool: {
|
|
10
|
+
lastActiveTool: import("../types").ActiveTool | null;
|
|
11
|
+
locked: boolean;
|
|
12
|
+
fromSelection: boolean;
|
|
13
|
+
} & import("../types").ActiveTool;
|
|
14
|
+
selectedLinearElement: null;
|
|
15
|
+
selectionElement: null;
|
|
16
|
+
showHyperlinkPopup: false;
|
|
17
|
+
suggestedBinding: null;
|
|
18
|
+
selectedElementIds: AppState["selectedElementIds"];
|
|
19
|
+
selectedGroupIds: AppState["selectedGroupIds"];
|
|
20
|
+
editingGroupId: AppState["editingGroupId"];
|
|
21
|
+
contextMenu: {
|
|
22
|
+
items: import("../components/ContextMenu").ContextMenuItems;
|
|
23
|
+
top: number;
|
|
24
|
+
left: number;
|
|
25
|
+
} | null;
|
|
26
|
+
showWelcomeScreen: boolean;
|
|
27
|
+
isLoading: boolean;
|
|
28
|
+
errorMessage: React.ReactNode;
|
|
29
|
+
newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
|
|
30
|
+
resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
31
|
+
multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
|
|
32
|
+
isBindingEnabled: boolean;
|
|
33
|
+
boxSelectionMode: import("../types").BoxSelectionMode;
|
|
34
|
+
bindingPreference: "enabled" | "disabled";
|
|
35
|
+
isMidpointSnappingEnabled: boolean;
|
|
36
|
+
startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
37
|
+
frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
|
|
38
|
+
frameRendering: {
|
|
39
|
+
enabled: boolean;
|
|
40
|
+
name: boolean;
|
|
41
|
+
outline: boolean;
|
|
42
|
+
clip: boolean;
|
|
43
|
+
};
|
|
44
|
+
editingFrame: string | null;
|
|
45
|
+
elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
|
|
46
|
+
editingTextElement: import("@excalidraw/element/types").ExcalidrawTextElement | null;
|
|
47
|
+
preferredSelectionTool: {
|
|
48
|
+
type: "selection" | "lasso";
|
|
49
|
+
initialized: boolean;
|
|
50
|
+
};
|
|
51
|
+
penMode: boolean;
|
|
52
|
+
penDetected: boolean;
|
|
53
|
+
exportBackground: boolean;
|
|
54
|
+
exportEmbedScene: boolean;
|
|
55
|
+
exportWithDarkMode: boolean;
|
|
56
|
+
exportScale: number;
|
|
57
|
+
currentItemStrokeColor: string;
|
|
58
|
+
currentItemBackgroundColor: string;
|
|
59
|
+
currentItemFillStyle: import("@excalidraw/element/types").ExcalidrawElement["fillStyle"];
|
|
60
|
+
currentItemStrokeWidth: number;
|
|
61
|
+
currentItemStrokeStyle: import("@excalidraw/element/types").ExcalidrawElement["strokeStyle"];
|
|
62
|
+
currentItemRoughness: number;
|
|
63
|
+
currentItemOpacity: number;
|
|
64
|
+
currentItemFontFamily: import("@excalidraw/element/types").FontFamilyValues;
|
|
65
|
+
currentItemFontSize: number;
|
|
66
|
+
currentItemTextAlign: import("@excalidraw/element/types").TextAlign;
|
|
67
|
+
currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
68
|
+
currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
69
|
+
currentHoveredFontFamily: import("@excalidraw/element/types").FontFamilyValues | null;
|
|
70
|
+
currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
|
|
71
|
+
currentItemArrowType: "sharp" | "round" | "elbow";
|
|
72
|
+
viewBackgroundColor: string;
|
|
73
|
+
scrollX: number;
|
|
74
|
+
scrollY: number;
|
|
75
|
+
cursorButton: "up" | "down";
|
|
76
|
+
scrolledOutside: boolean;
|
|
77
|
+
name: string | null;
|
|
78
|
+
isResizing: boolean;
|
|
79
|
+
isRotating: boolean;
|
|
80
|
+
zoom: import("../types").Zoom;
|
|
81
|
+
openMenu: "canvas" | null;
|
|
82
|
+
openPopup: "canvasBackground" | "elementBackground" | "elementStroke" | "fontFamily" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
|
|
83
|
+
openSidebar: {
|
|
84
|
+
name: import("../types").SidebarName;
|
|
85
|
+
tab?: import("../types").SidebarTabName;
|
|
86
|
+
} | null;
|
|
87
|
+
openDialog: null | {
|
|
88
|
+
name: "imageExport" | "help" | "jsonExport";
|
|
89
|
+
} | {
|
|
90
|
+
name: "ttd";
|
|
91
|
+
tab: "text-to-diagram" | "mermaid";
|
|
92
|
+
} | {
|
|
93
|
+
name: "commandPalette";
|
|
94
|
+
} | {
|
|
95
|
+
name: "settings";
|
|
96
|
+
} | {
|
|
97
|
+
name: "elementLinkSelector";
|
|
98
|
+
sourceElementId: import("@excalidraw/element/types").ExcalidrawElement["id"];
|
|
99
|
+
} | {
|
|
100
|
+
name: "charts";
|
|
101
|
+
data: import("../charts").Spreadsheet;
|
|
102
|
+
rawText: string;
|
|
103
|
+
};
|
|
104
|
+
defaultSidebarDockedPreference: boolean;
|
|
105
|
+
lastPointerDownWith: import("@excalidraw/element/types").PointerType;
|
|
106
|
+
hoveredElementIds: Readonly<{
|
|
107
|
+
[id: string]: true;
|
|
108
|
+
}>;
|
|
109
|
+
previousSelectedElementIds: {
|
|
110
|
+
[id: string]: true;
|
|
111
|
+
};
|
|
112
|
+
selectedElementsAreBeingDragged: boolean;
|
|
113
|
+
shouldCacheIgnoreZoom: boolean;
|
|
114
|
+
toast: {
|
|
115
|
+
message: string;
|
|
116
|
+
closable?: boolean;
|
|
117
|
+
duration?: number;
|
|
118
|
+
} | null;
|
|
119
|
+
zenModeEnabled: boolean;
|
|
120
|
+
theme: import("@excalidraw/element/types").Theme;
|
|
121
|
+
gridSize: number;
|
|
122
|
+
gridStep: number;
|
|
123
|
+
gridModeEnabled: boolean;
|
|
124
|
+
viewModeEnabled: boolean;
|
|
125
|
+
width: number;
|
|
126
|
+
height: number;
|
|
127
|
+
offsetTop: number;
|
|
128
|
+
offsetLeft: number;
|
|
129
|
+
fileHandle: import("../data/filesystem").FileSystemHandle | null;
|
|
130
|
+
collaborators: Map<import("../types").SocketId, import("../types").Collaborator>;
|
|
131
|
+
stats: {
|
|
132
|
+
open: boolean;
|
|
133
|
+
panels: number;
|
|
134
|
+
};
|
|
135
|
+
snapLines: readonly import("../snapping").SnapLine[];
|
|
136
|
+
originSnapOffset: {
|
|
137
|
+
x: number;
|
|
138
|
+
y: number;
|
|
139
|
+
} | null;
|
|
140
|
+
objectsSnapModeEnabled: boolean;
|
|
141
|
+
userToFollow: import("../types").UserToFollow | null;
|
|
142
|
+
followedBy: Set<import("../types").SocketId>;
|
|
143
|
+
scrollConstraints: import("../types").ScrollConstraints | null;
|
|
144
|
+
isCropping: boolean;
|
|
145
|
+
croppingElementId: import("@excalidraw/element/types").ExcalidrawElement["id"] | null;
|
|
146
|
+
searchMatches: Readonly<{
|
|
147
|
+
focusedId: import("@excalidraw/element/types").ExcalidrawElement["id"] | null;
|
|
148
|
+
matches: readonly import("../types").SearchMatch[];
|
|
149
|
+
}> | null;
|
|
150
|
+
activeLockedId: string | null;
|
|
151
|
+
lockedMultiSelections: {
|
|
152
|
+
[groupId: string]: true;
|
|
153
|
+
};
|
|
154
|
+
bindMode: import("@excalidraw/element/types").BindMode;
|
|
155
|
+
};
|
|
156
|
+
captureUpdate: "IMMEDIATELY";
|
|
157
|
+
};
|
|
158
|
+
keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>, appState: AppState, _: readonly import("@excalidraw/element/types").ExcalidrawElement[], app: AppClassProperties) => boolean;
|
|
159
|
+
} & {
|
|
160
|
+
keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>, appState: AppState, _: readonly import("@excalidraw/element/types").ExcalidrawElement[], app: AppClassProperties) => boolean) | undefined;
|
|
161
|
+
};
|
|
@@ -57,6 +57,9 @@ export declare const actionLinkToElement: {
|
|
|
57
57
|
multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
|
|
58
58
|
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
59
59
|
isBindingEnabled: boolean;
|
|
60
|
+
boxSelectionMode: import("../types").BoxSelectionMode;
|
|
61
|
+
bindingPreference: "enabled" | "disabled";
|
|
62
|
+
isMidpointSnappingEnabled: boolean;
|
|
60
63
|
startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
61
64
|
suggestedBinding: {
|
|
62
65
|
element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
|
|
@@ -71,7 +74,7 @@ export declare const actionLinkToElement: {
|
|
|
71
74
|
};
|
|
72
75
|
editingFrame: string | null;
|
|
73
76
|
elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
|
|
74
|
-
editingTextElement: import("@excalidraw/element/types").
|
|
77
|
+
editingTextElement: import("@excalidraw/element/types").ExcalidrawTextElement | null;
|
|
75
78
|
activeTool: {
|
|
76
79
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
77
80
|
locked: boolean;
|
|
@@ -149,7 +152,7 @@ export declare const actionLinkToElement: {
|
|
|
149
152
|
height: number;
|
|
150
153
|
offsetTop: number;
|
|
151
154
|
offsetLeft: number;
|
|
152
|
-
fileHandle: import("
|
|
155
|
+
fileHandle: import("../data/filesystem").FileSystemHandle | null;
|
|
153
156
|
collaborators: Map<import("../types").SocketId, import("../types").Collaborator>;
|
|
154
157
|
stats: {
|
|
155
158
|
open: boolean;
|