@excalidraw/common 0.18.0-f0063e113 → 0.18.0-f2600fe
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 +180 -44
- package/dist/dev/index.js.map +3 -3
- package/dist/prod/index.js +3 -3
- package/dist/types/common/src/constants.d.ts +19 -15
- package/dist/types/common/src/editorInterface.d.ts +34 -0
- package/dist/types/common/src/index.d.ts +1 -0
- package/dist/types/common/src/utils.d.ts +2 -1
- package/dist/types/element/src/Scene.d.ts +6 -2
- package/dist/types/element/src/align.d.ts +2 -1
- package/dist/types/element/src/bounds.d.ts +1 -1
- package/dist/types/element/src/delta.d.ts +16 -4
- package/dist/types/element/src/distribute.d.ts +2 -1
- package/dist/types/element/src/groups.d.ts +1 -0
- package/dist/types/element/src/index.d.ts +1 -0
- package/dist/types/element/src/linearElementEditor.d.ts +2 -1
- package/dist/types/element/src/positionElementsOnGrid.d.ts +2 -0
- package/dist/types/element/src/renderElement.d.ts +4 -1
- package/dist/types/element/src/resizeTest.d.ts +5 -4
- package/dist/types/element/src/store.d.ts +8 -2
- package/dist/types/element/src/textElement.d.ts +1 -1
- package/dist/types/element/src/transformHandles.d.ts +5 -4
- package/dist/types/excalidraw/actions/actionAddToLibrary.d.ts +21 -12
- package/dist/types/excalidraw/actions/actionBoundText.d.ts +14 -8
- package/dist/types/excalidraw/actions/actionCanvas.d.ts +94 -54
- package/dist/types/excalidraw/actions/actionClipboard.d.ts +45 -26
- package/dist/types/excalidraw/actions/actionCropEditor.d.ts +7 -4
- package/dist/types/excalidraw/actions/actionDeleteSelected.d.ts +25 -16
- package/dist/types/excalidraw/actions/actionDuplicateSelection.d.ts +1 -1
- package/dist/types/excalidraw/actions/actionElementLink.d.ts +7 -4
- package/dist/types/excalidraw/actions/actionElementLock.d.ts +14 -8
- package/dist/types/excalidraw/actions/actionEmbeddable.d.ts +7 -4
- package/dist/types/excalidraw/actions/actionExport.d.ts +63 -36
- package/dist/types/excalidraw/actions/actionFinalize.d.ts +16 -9
- package/dist/types/excalidraw/actions/actionFrame.d.ts +28 -16
- package/dist/types/excalidraw/actions/actionGroup.d.ts +14 -8
- package/dist/types/excalidraw/actions/actionLinearEditor.d.ts +41 -7
- package/dist/types/excalidraw/actions/actionLink.d.ts +5 -2
- package/dist/types/excalidraw/actions/actionMenu.d.ts +7 -372
- package/dist/types/excalidraw/actions/actionNavigate.d.ts +14 -8
- package/dist/types/excalidraw/actions/actionProperties.d.ts +122 -68
- package/dist/types/excalidraw/actions/actionSelectAll.d.ts +7 -4
- package/dist/types/excalidraw/actions/actionStyles.d.ts +7 -4
- package/dist/types/excalidraw/actions/actionToggleGridMode.d.ts +7 -4
- package/dist/types/excalidraw/actions/actionToggleObjectsSnapMode.d.ts +7 -4
- package/dist/types/excalidraw/actions/actionToggleSearchMenu.d.ts +7 -4
- package/dist/types/excalidraw/actions/actionToggleStats.d.ts +7 -4
- package/dist/types/excalidraw/actions/actionToggleViewMode.d.ts +7 -4
- package/dist/types/excalidraw/actions/actionToggleZenMode.d.ts +8 -5
- package/dist/types/excalidraw/actions/index.d.ts +2 -2
- package/dist/types/excalidraw/actions/types.d.ts +1 -1
- package/dist/types/excalidraw/appState.d.ts +5 -1
- package/dist/types/excalidraw/clipboard.d.ts +64 -1
- package/dist/types/excalidraw/components/Actions.d.ts +20 -7
- package/dist/types/excalidraw/components/App.d.ts +29 -23
- package/dist/types/excalidraw/components/ColorPicker/Picker.d.ts +2 -0
- package/dist/types/excalidraw/components/ColorPicker/PickerColorList.d.ts +2 -1
- package/dist/types/excalidraw/components/ColorPicker/ShadeList.d.ts +2 -1
- package/dist/types/excalidraw/components/CommandPalette/CommandPalette.d.ts +1 -0
- package/dist/types/excalidraw/components/Ellipsify.d.ts +4 -0
- package/dist/types/excalidraw/components/ExcalidrawLogo.d.ts +1 -1
- package/dist/types/excalidraw/components/FilledButton.d.ts +1 -1
- package/dist/types/excalidraw/components/FontPicker/FontPicker.d.ts +2 -1
- package/dist/types/excalidraw/components/FontPicker/FontPickerTrigger.d.ts +3 -1
- package/dist/types/excalidraw/components/HintViewer.d.ts +4 -3
- package/dist/types/excalidraw/components/InlineIcon.d.ts +3 -1
- package/dist/types/excalidraw/components/LayerUI.d.ts +2 -1
- package/dist/types/excalidraw/components/LibraryMenuSection.d.ts +1 -1
- package/dist/types/excalidraw/components/MobileMenu.d.ts +3 -5
- package/dist/types/excalidraw/components/MobileToolBar.d.ts +11 -0
- package/dist/types/excalidraw/components/Popover.d.ts +2 -1
- package/dist/types/excalidraw/components/PropertiesPopover.d.ts +1 -0
- package/dist/types/excalidraw/components/TTDDialog/TTDDialogTrigger.d.ts +1 -2
- package/dist/types/excalidraw/components/TextField.d.ts +1 -0
- package/dist/types/excalidraw/components/ToolPopover.d.ts +25 -0
- package/dist/types/excalidraw/components/canvases/InteractiveCanvas.d.ts +3 -2
- package/dist/types/excalidraw/components/dropdownMenu/DropdownMenu.d.ts +4 -2
- package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuContent.d.ts +2 -1
- package/dist/types/excalidraw/components/icons.d.ts +10 -0
- package/dist/types/excalidraw/components/live-collaboration/LiveCollaborationTrigger.d.ts +13 -1
- package/dist/types/excalidraw/components/main-menu/MainMenu.d.ts +0 -3
- package/dist/types/excalidraw/components/shapes.d.ts +129 -1
- package/dist/types/excalidraw/data/blob.d.ts +3 -7
- package/dist/types/excalidraw/data/reconcile.d.ts +1 -0
- package/dist/types/excalidraw/data/restore.d.ts +6 -1
- package/dist/types/excalidraw/data/types.d.ts +4 -1
- package/dist/types/excalidraw/hooks/useLibraryItemSvg.d.ts +1 -1
- package/dist/types/excalidraw/hooks/useOutsideClick.d.ts +3 -1
- package/dist/types/excalidraw/hooks/useTextEditorFocus.d.ts +14 -0
- package/dist/types/excalidraw/index.d.ts +4 -4
- package/dist/types/excalidraw/renderer/interactiveScene.d.ts +1 -1
- package/dist/types/excalidraw/renderer/staticScene.d.ts +4 -1
- package/dist/types/excalidraw/scene/types.d.ts +3 -3
- package/dist/types/excalidraw/shortcut.d.ts +1 -0
- package/dist/types/excalidraw/types.d.ts +23 -19
- package/dist/types/math/src/segment.d.ts +1 -0
- package/package.json +5 -2
|
@@ -11,7 +11,7 @@ export declare const actionChangeViewBackgroundColor: {
|
|
|
11
11
|
appState: any;
|
|
12
12
|
captureUpdate: "IMMEDIATELY" | "EVENTUALLY";
|
|
13
13
|
};
|
|
14
|
-
PanelComponent: ({ elements, appState, updateData, appProps }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
|
|
14
|
+
PanelComponent: ({ elements, appState, updateData, appProps, data }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
|
|
15
15
|
} & {
|
|
16
16
|
keyTest?: undefined;
|
|
17
17
|
};
|
|
@@ -85,7 +85,6 @@ export declare const actionClearCanvas: {
|
|
|
85
85
|
element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
|
|
86
86
|
state: "active" | "hover";
|
|
87
87
|
} | null;
|
|
88
|
-
editingLinearElement: import("@excalidraw/element").LinearElementEditor | null;
|
|
89
88
|
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
90
89
|
selectedGroupIds: {
|
|
91
90
|
[groupId: string]: boolean;
|
|
@@ -138,6 +137,10 @@ export declare const actionClearCanvas: {
|
|
|
138
137
|
resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
139
138
|
startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
140
139
|
editingFrame: string | null;
|
|
140
|
+
preferredSelectionTool: {
|
|
141
|
+
type: "selection" | "lasso";
|
|
142
|
+
initialized: boolean;
|
|
143
|
+
};
|
|
141
144
|
exportWithDarkMode: boolean;
|
|
142
145
|
exportScale: number;
|
|
143
146
|
currentItemStrokeColor: string;
|
|
@@ -158,8 +161,8 @@ export declare const actionClearCanvas: {
|
|
|
158
161
|
cursorButton: "up" | "down";
|
|
159
162
|
scrolledOutside: boolean;
|
|
160
163
|
isResizing: boolean;
|
|
161
|
-
openMenu: "canvas" |
|
|
162
|
-
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
164
|
+
openMenu: "canvas" | null;
|
|
165
|
+
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
|
|
163
166
|
openSidebar: {
|
|
164
167
|
name: string;
|
|
165
168
|
tab?: string | undefined;
|
|
@@ -181,7 +184,7 @@ export declare const actionClearCanvas: {
|
|
|
181
184
|
} | null;
|
|
182
185
|
fileHandle: import("browser-fs-access").FileSystemHandle | null;
|
|
183
186
|
currentChartType: import("@excalidraw/element/types").ChartType;
|
|
184
|
-
showHyperlinkPopup: false | "
|
|
187
|
+
showHyperlinkPopup: false | "info" | "editor";
|
|
185
188
|
originSnapOffset: {
|
|
186
189
|
x: number;
|
|
187
190
|
y: number;
|
|
@@ -243,12 +246,15 @@ export declare const actionZoomIn: {
|
|
|
243
246
|
editingFrame: string | null;
|
|
244
247
|
elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
|
|
245
248
|
editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
246
|
-
editingLinearElement: import("@excalidraw/element").LinearElementEditor | null;
|
|
247
249
|
activeTool: {
|
|
248
250
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
249
251
|
locked: boolean;
|
|
250
252
|
fromSelection: boolean;
|
|
251
253
|
} & import("../types").ActiveTool;
|
|
254
|
+
preferredSelectionTool: {
|
|
255
|
+
type: "selection" | "lasso";
|
|
256
|
+
initialized: boolean;
|
|
257
|
+
};
|
|
252
258
|
penMode: boolean;
|
|
253
259
|
penDetected: boolean;
|
|
254
260
|
exportBackground: boolean;
|
|
@@ -276,8 +282,8 @@ export declare const actionZoomIn: {
|
|
|
276
282
|
name: string | null;
|
|
277
283
|
isResizing: boolean;
|
|
278
284
|
isRotating: boolean;
|
|
279
|
-
openMenu: "canvas" |
|
|
280
|
-
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
285
|
+
openMenu: "canvas" | null;
|
|
286
|
+
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
|
|
281
287
|
openSidebar: {
|
|
282
288
|
name: string;
|
|
283
289
|
tab?: string | undefined;
|
|
@@ -358,7 +364,7 @@ export declare const actionZoomIn: {
|
|
|
358
364
|
shown: true;
|
|
359
365
|
data: import("../charts").Spreadsheet;
|
|
360
366
|
};
|
|
361
|
-
showHyperlinkPopup: false | "
|
|
367
|
+
showHyperlinkPopup: false | "info" | "editor";
|
|
362
368
|
selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
|
|
363
369
|
snapLines: readonly import("../snapping").SnapLine[];
|
|
364
370
|
originSnapOffset: {
|
|
@@ -430,12 +436,15 @@ export declare const actionZoomOut: {
|
|
|
430
436
|
editingFrame: string | null;
|
|
431
437
|
elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
|
|
432
438
|
editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
433
|
-
editingLinearElement: import("@excalidraw/element").LinearElementEditor | null;
|
|
434
439
|
activeTool: {
|
|
435
440
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
436
441
|
locked: boolean;
|
|
437
442
|
fromSelection: boolean;
|
|
438
443
|
} & import("../types").ActiveTool;
|
|
444
|
+
preferredSelectionTool: {
|
|
445
|
+
type: "selection" | "lasso";
|
|
446
|
+
initialized: boolean;
|
|
447
|
+
};
|
|
439
448
|
penMode: boolean;
|
|
440
449
|
penDetected: boolean;
|
|
441
450
|
exportBackground: boolean;
|
|
@@ -463,8 +472,8 @@ export declare const actionZoomOut: {
|
|
|
463
472
|
name: string | null;
|
|
464
473
|
isResizing: boolean;
|
|
465
474
|
isRotating: boolean;
|
|
466
|
-
openMenu: "canvas" |
|
|
467
|
-
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
475
|
+
openMenu: "canvas" | null;
|
|
476
|
+
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
|
|
468
477
|
openSidebar: {
|
|
469
478
|
name: string;
|
|
470
479
|
tab?: string | undefined;
|
|
@@ -545,7 +554,7 @@ export declare const actionZoomOut: {
|
|
|
545
554
|
shown: true;
|
|
546
555
|
data: import("../charts").Spreadsheet;
|
|
547
556
|
};
|
|
548
|
-
showHyperlinkPopup: false | "
|
|
557
|
+
showHyperlinkPopup: false | "info" | "editor";
|
|
549
558
|
selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
|
|
550
559
|
snapLines: readonly import("../snapping").SnapLine[];
|
|
551
560
|
originSnapOffset: {
|
|
@@ -617,12 +626,15 @@ export declare const actionResetZoom: {
|
|
|
617
626
|
editingFrame: string | null;
|
|
618
627
|
elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
|
|
619
628
|
editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
620
|
-
editingLinearElement: import("@excalidraw/element").LinearElementEditor | null;
|
|
621
629
|
activeTool: {
|
|
622
630
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
623
631
|
locked: boolean;
|
|
624
632
|
fromSelection: boolean;
|
|
625
633
|
} & import("../types").ActiveTool;
|
|
634
|
+
preferredSelectionTool: {
|
|
635
|
+
type: "selection" | "lasso";
|
|
636
|
+
initialized: boolean;
|
|
637
|
+
};
|
|
626
638
|
penMode: boolean;
|
|
627
639
|
penDetected: boolean;
|
|
628
640
|
exportBackground: boolean;
|
|
@@ -650,8 +662,8 @@ export declare const actionResetZoom: {
|
|
|
650
662
|
name: string | null;
|
|
651
663
|
isResizing: boolean;
|
|
652
664
|
isRotating: boolean;
|
|
653
|
-
openMenu: "canvas" |
|
|
654
|
-
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
665
|
+
openMenu: "canvas" | null;
|
|
666
|
+
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
|
|
655
667
|
openSidebar: {
|
|
656
668
|
name: string;
|
|
657
669
|
tab?: string | undefined;
|
|
@@ -732,7 +744,7 @@ export declare const actionResetZoom: {
|
|
|
732
744
|
shown: true;
|
|
733
745
|
data: import("../charts").Spreadsheet;
|
|
734
746
|
};
|
|
735
|
-
showHyperlinkPopup: false | "
|
|
747
|
+
showHyperlinkPopup: false | "info" | "editor";
|
|
736
748
|
selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
|
|
737
749
|
snapLines: readonly import("../snapping").SnapLine[];
|
|
738
750
|
originSnapOffset: {
|
|
@@ -810,12 +822,15 @@ export declare const zoomToFitBounds: ({ bounds, appState, canvasOffsets, fitToV
|
|
|
810
822
|
editingFrame: string | null;
|
|
811
823
|
elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
|
|
812
824
|
editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
813
|
-
editingLinearElement: import("@excalidraw/element").LinearElementEditor | null;
|
|
814
825
|
activeTool: {
|
|
815
826
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
816
827
|
locked: boolean;
|
|
817
828
|
fromSelection: boolean;
|
|
818
829
|
} & import("../types").ActiveTool;
|
|
830
|
+
preferredSelectionTool: {
|
|
831
|
+
type: "selection" | "lasso";
|
|
832
|
+
initialized: boolean;
|
|
833
|
+
};
|
|
819
834
|
penMode: boolean;
|
|
820
835
|
penDetected: boolean;
|
|
821
836
|
exportBackground: boolean;
|
|
@@ -843,8 +858,8 @@ export declare const zoomToFitBounds: ({ bounds, appState, canvasOffsets, fitToV
|
|
|
843
858
|
name: string | null;
|
|
844
859
|
isResizing: boolean;
|
|
845
860
|
isRotating: boolean;
|
|
846
|
-
openMenu: "canvas" |
|
|
847
|
-
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
861
|
+
openMenu: "canvas" | null;
|
|
862
|
+
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
|
|
848
863
|
openSidebar: {
|
|
849
864
|
name: string;
|
|
850
865
|
tab?: string | undefined;
|
|
@@ -925,7 +940,7 @@ export declare const zoomToFitBounds: ({ bounds, appState, canvasOffsets, fitToV
|
|
|
925
940
|
shown: true;
|
|
926
941
|
data: import("../charts").Spreadsheet;
|
|
927
942
|
};
|
|
928
|
-
showHyperlinkPopup: false | "
|
|
943
|
+
showHyperlinkPopup: false | "info" | "editor";
|
|
929
944
|
selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
|
|
930
945
|
snapLines: readonly import("../snapping").SnapLine[];
|
|
931
946
|
originSnapOffset: {
|
|
@@ -999,12 +1014,15 @@ export declare const zoomToFit: ({ canvasOffsets, targetElements, appState, fitT
|
|
|
999
1014
|
editingFrame: string | null;
|
|
1000
1015
|
elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
|
|
1001
1016
|
editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
1002
|
-
editingLinearElement: import("@excalidraw/element").LinearElementEditor | null;
|
|
1003
1017
|
activeTool: {
|
|
1004
1018
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
1005
1019
|
locked: boolean;
|
|
1006
1020
|
fromSelection: boolean;
|
|
1007
1021
|
} & import("../types").ActiveTool;
|
|
1022
|
+
preferredSelectionTool: {
|
|
1023
|
+
type: "selection" | "lasso";
|
|
1024
|
+
initialized: boolean;
|
|
1025
|
+
};
|
|
1008
1026
|
penMode: boolean;
|
|
1009
1027
|
penDetected: boolean;
|
|
1010
1028
|
exportBackground: boolean;
|
|
@@ -1032,8 +1050,8 @@ export declare const zoomToFit: ({ canvasOffsets, targetElements, appState, fitT
|
|
|
1032
1050
|
name: string | null;
|
|
1033
1051
|
isResizing: boolean;
|
|
1034
1052
|
isRotating: boolean;
|
|
1035
|
-
openMenu: "canvas" |
|
|
1036
|
-
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
1053
|
+
openMenu: "canvas" | null;
|
|
1054
|
+
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
|
|
1037
1055
|
openSidebar: {
|
|
1038
1056
|
name: string;
|
|
1039
1057
|
tab?: string | undefined;
|
|
@@ -1114,7 +1132,7 @@ export declare const zoomToFit: ({ canvasOffsets, targetElements, appState, fitT
|
|
|
1114
1132
|
shown: true;
|
|
1115
1133
|
data: import("../charts").Spreadsheet;
|
|
1116
1134
|
};
|
|
1117
|
-
showHyperlinkPopup: false | "
|
|
1135
|
+
showHyperlinkPopup: false | "info" | "editor";
|
|
1118
1136
|
selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
|
|
1119
1137
|
snapLines: readonly import("../snapping").SnapLine[];
|
|
1120
1138
|
originSnapOffset: {
|
|
@@ -1180,12 +1198,15 @@ export declare const actionZoomToFitSelectionInViewport: {
|
|
|
1180
1198
|
editingFrame: string | null;
|
|
1181
1199
|
elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
|
|
1182
1200
|
editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
1183
|
-
editingLinearElement: import("@excalidraw/element").LinearElementEditor | null;
|
|
1184
1201
|
activeTool: {
|
|
1185
1202
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
1186
1203
|
locked: boolean;
|
|
1187
1204
|
fromSelection: boolean;
|
|
1188
1205
|
} & import("../types").ActiveTool;
|
|
1206
|
+
preferredSelectionTool: {
|
|
1207
|
+
type: "selection" | "lasso";
|
|
1208
|
+
initialized: boolean;
|
|
1209
|
+
};
|
|
1189
1210
|
penMode: boolean;
|
|
1190
1211
|
penDetected: boolean;
|
|
1191
1212
|
exportBackground: boolean;
|
|
@@ -1213,8 +1234,8 @@ export declare const actionZoomToFitSelectionInViewport: {
|
|
|
1213
1234
|
name: string | null;
|
|
1214
1235
|
isResizing: boolean;
|
|
1215
1236
|
isRotating: boolean;
|
|
1216
|
-
openMenu: "canvas" |
|
|
1217
|
-
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
1237
|
+
openMenu: "canvas" | null;
|
|
1238
|
+
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
|
|
1218
1239
|
openSidebar: {
|
|
1219
1240
|
name: string;
|
|
1220
1241
|
tab?: string | undefined;
|
|
@@ -1295,7 +1316,7 @@ export declare const actionZoomToFitSelectionInViewport: {
|
|
|
1295
1316
|
shown: true;
|
|
1296
1317
|
data: import("../charts").Spreadsheet;
|
|
1297
1318
|
};
|
|
1298
|
-
showHyperlinkPopup: false | "
|
|
1319
|
+
showHyperlinkPopup: false | "info" | "editor";
|
|
1299
1320
|
selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
|
|
1300
1321
|
snapLines: readonly import("../snapping").SnapLine[];
|
|
1301
1322
|
originSnapOffset: {
|
|
@@ -1365,12 +1386,15 @@ export declare const actionZoomToFitSelection: {
|
|
|
1365
1386
|
editingFrame: string | null;
|
|
1366
1387
|
elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
|
|
1367
1388
|
editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
1368
|
-
editingLinearElement: import("@excalidraw/element").LinearElementEditor | null;
|
|
1369
1389
|
activeTool: {
|
|
1370
1390
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
1371
1391
|
locked: boolean;
|
|
1372
1392
|
fromSelection: boolean;
|
|
1373
1393
|
} & import("../types").ActiveTool;
|
|
1394
|
+
preferredSelectionTool: {
|
|
1395
|
+
type: "selection" | "lasso";
|
|
1396
|
+
initialized: boolean;
|
|
1397
|
+
};
|
|
1374
1398
|
penMode: boolean;
|
|
1375
1399
|
penDetected: boolean;
|
|
1376
1400
|
exportBackground: boolean;
|
|
@@ -1398,8 +1422,8 @@ export declare const actionZoomToFitSelection: {
|
|
|
1398
1422
|
name: string | null;
|
|
1399
1423
|
isResizing: boolean;
|
|
1400
1424
|
isRotating: boolean;
|
|
1401
|
-
openMenu: "canvas" |
|
|
1402
|
-
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
1425
|
+
openMenu: "canvas" | null;
|
|
1426
|
+
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
|
|
1403
1427
|
openSidebar: {
|
|
1404
1428
|
name: string;
|
|
1405
1429
|
tab?: string | undefined;
|
|
@@ -1480,7 +1504,7 @@ export declare const actionZoomToFitSelection: {
|
|
|
1480
1504
|
shown: true;
|
|
1481
1505
|
data: import("../charts").Spreadsheet;
|
|
1482
1506
|
};
|
|
1483
|
-
showHyperlinkPopup: false | "
|
|
1507
|
+
showHyperlinkPopup: false | "info" | "editor";
|
|
1484
1508
|
selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
|
|
1485
1509
|
snapLines: readonly import("../snapping").SnapLine[];
|
|
1486
1510
|
originSnapOffset: {
|
|
@@ -1551,12 +1575,15 @@ export declare const actionZoomToFit: {
|
|
|
1551
1575
|
editingFrame: string | null;
|
|
1552
1576
|
elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
|
|
1553
1577
|
editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
1554
|
-
editingLinearElement: import("@excalidraw/element").LinearElementEditor | null;
|
|
1555
1578
|
activeTool: {
|
|
1556
1579
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
1557
1580
|
locked: boolean;
|
|
1558
1581
|
fromSelection: boolean;
|
|
1559
1582
|
} & import("../types").ActiveTool;
|
|
1583
|
+
preferredSelectionTool: {
|
|
1584
|
+
type: "selection" | "lasso";
|
|
1585
|
+
initialized: boolean;
|
|
1586
|
+
};
|
|
1560
1587
|
penMode: boolean;
|
|
1561
1588
|
penDetected: boolean;
|
|
1562
1589
|
exportBackground: boolean;
|
|
@@ -1584,8 +1611,8 @@ export declare const actionZoomToFit: {
|
|
|
1584
1611
|
name: string | null;
|
|
1585
1612
|
isResizing: boolean;
|
|
1586
1613
|
isRotating: boolean;
|
|
1587
|
-
openMenu: "canvas" |
|
|
1588
|
-
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
1614
|
+
openMenu: "canvas" | null;
|
|
1615
|
+
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
|
|
1589
1616
|
openSidebar: {
|
|
1590
1617
|
name: string;
|
|
1591
1618
|
tab?: string | undefined;
|
|
@@ -1666,7 +1693,7 @@ export declare const actionZoomToFit: {
|
|
|
1666
1693
|
shown: true;
|
|
1667
1694
|
data: import("../charts").Spreadsheet;
|
|
1668
1695
|
};
|
|
1669
|
-
showHyperlinkPopup: false | "
|
|
1696
|
+
showHyperlinkPopup: false | "info" | "editor";
|
|
1670
1697
|
selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
|
|
1671
1698
|
snapLines: readonly import("../snapping").SnapLine[];
|
|
1672
1699
|
originSnapOffset: {
|
|
@@ -1734,12 +1761,15 @@ export declare const actionToggleTheme: {
|
|
|
1734
1761
|
editingFrame: string | null;
|
|
1735
1762
|
elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
|
|
1736
1763
|
editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
1737
|
-
editingLinearElement: import("@excalidraw/element").LinearElementEditor | null;
|
|
1738
1764
|
activeTool: {
|
|
1739
1765
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
1740
1766
|
locked: boolean;
|
|
1741
1767
|
fromSelection: boolean;
|
|
1742
1768
|
} & import("../types").ActiveTool;
|
|
1769
|
+
preferredSelectionTool: {
|
|
1770
|
+
type: "selection" | "lasso";
|
|
1771
|
+
initialized: boolean;
|
|
1772
|
+
};
|
|
1743
1773
|
penMode: boolean;
|
|
1744
1774
|
penDetected: boolean;
|
|
1745
1775
|
exportBackground: boolean;
|
|
@@ -1772,8 +1802,8 @@ export declare const actionToggleTheme: {
|
|
|
1772
1802
|
zoom: Readonly<{
|
|
1773
1803
|
value: import("../types").NormalizedZoomValue;
|
|
1774
1804
|
}>;
|
|
1775
|
-
openMenu: "canvas" |
|
|
1776
|
-
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
1805
|
+
openMenu: "canvas" | null;
|
|
1806
|
+
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
|
|
1777
1807
|
openSidebar: {
|
|
1778
1808
|
name: string;
|
|
1779
1809
|
tab?: string | undefined;
|
|
@@ -1853,7 +1883,7 @@ export declare const actionToggleTheme: {
|
|
|
1853
1883
|
shown: true;
|
|
1854
1884
|
data: import("../charts").Spreadsheet;
|
|
1855
1885
|
};
|
|
1856
|
-
showHyperlinkPopup: false | "
|
|
1886
|
+
showHyperlinkPopup: false | "info" | "editor";
|
|
1857
1887
|
selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
|
|
1858
1888
|
snapLines: readonly import("../snapping").SnapLine[];
|
|
1859
1889
|
originSnapOffset: {
|
|
@@ -1887,7 +1917,7 @@ export declare const actionToggleEraserTool: {
|
|
|
1887
1917
|
trackEvent: {
|
|
1888
1918
|
category: "toolbar";
|
|
1889
1919
|
};
|
|
1890
|
-
perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState
|
|
1920
|
+
perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: any, app: import("../types").AppClassProperties) => {
|
|
1891
1921
|
appState: {
|
|
1892
1922
|
selectedElementIds: {};
|
|
1893
1923
|
selectedGroupIds: {};
|
|
@@ -1922,7 +1952,10 @@ export declare const actionToggleEraserTool: {
|
|
|
1922
1952
|
editingFrame: string | null;
|
|
1923
1953
|
elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
|
|
1924
1954
|
editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
1925
|
-
|
|
1955
|
+
preferredSelectionTool: {
|
|
1956
|
+
type: "selection" | "lasso";
|
|
1957
|
+
initialized: boolean;
|
|
1958
|
+
};
|
|
1926
1959
|
penMode: boolean;
|
|
1927
1960
|
penDetected: boolean;
|
|
1928
1961
|
exportBackground: boolean;
|
|
@@ -1955,8 +1988,8 @@ export declare const actionToggleEraserTool: {
|
|
|
1955
1988
|
zoom: Readonly<{
|
|
1956
1989
|
value: import("../types").NormalizedZoomValue;
|
|
1957
1990
|
}>;
|
|
1958
|
-
openMenu: "canvas" |
|
|
1959
|
-
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
1991
|
+
openMenu: "canvas" | null;
|
|
1992
|
+
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
|
|
1960
1993
|
openSidebar: {
|
|
1961
1994
|
name: string;
|
|
1962
1995
|
tab?: string | undefined;
|
|
@@ -2031,7 +2064,7 @@ export declare const actionToggleEraserTool: {
|
|
|
2031
2064
|
shown: true;
|
|
2032
2065
|
data: import("../charts").Spreadsheet;
|
|
2033
2066
|
};
|
|
2034
|
-
showHyperlinkPopup: false | "
|
|
2067
|
+
showHyperlinkPopup: false | "info" | "editor";
|
|
2035
2068
|
selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
|
|
2036
2069
|
snapLines: readonly import("../snapping").SnapLine[];
|
|
2037
2070
|
originSnapOffset: {
|
|
@@ -2065,6 +2098,7 @@ export declare const actionToggleLassoTool: {
|
|
|
2065
2098
|
trackEvent: {
|
|
2066
2099
|
category: "toolbar";
|
|
2067
2100
|
};
|
|
2101
|
+
predicate: (elements: readonly ExcalidrawElement[], appState: AppState, props: import("../types").ExcalidrawProps, app: import("../types").AppClassProperties) => boolean;
|
|
2068
2102
|
perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: any, app: import("../types").AppClassProperties) => {
|
|
2069
2103
|
appState: {
|
|
2070
2104
|
selectedElementIds: {};
|
|
@@ -2100,7 +2134,10 @@ export declare const actionToggleLassoTool: {
|
|
|
2100
2134
|
editingFrame: string | null;
|
|
2101
2135
|
elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
|
|
2102
2136
|
editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
2103
|
-
|
|
2137
|
+
preferredSelectionTool: {
|
|
2138
|
+
type: "selection" | "lasso";
|
|
2139
|
+
initialized: boolean;
|
|
2140
|
+
};
|
|
2104
2141
|
penMode: boolean;
|
|
2105
2142
|
penDetected: boolean;
|
|
2106
2143
|
exportBackground: boolean;
|
|
@@ -2133,8 +2170,8 @@ export declare const actionToggleLassoTool: {
|
|
|
2133
2170
|
zoom: Readonly<{
|
|
2134
2171
|
value: import("../types").NormalizedZoomValue;
|
|
2135
2172
|
}>;
|
|
2136
|
-
openMenu: "canvas" |
|
|
2137
|
-
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
2173
|
+
openMenu: "canvas" | null;
|
|
2174
|
+
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
|
|
2138
2175
|
openSidebar: {
|
|
2139
2176
|
name: string;
|
|
2140
2177
|
tab?: string | undefined;
|
|
@@ -2209,7 +2246,7 @@ export declare const actionToggleLassoTool: {
|
|
|
2209
2246
|
shown: true;
|
|
2210
2247
|
data: import("../charts").Spreadsheet;
|
|
2211
2248
|
};
|
|
2212
|
-
showHyperlinkPopup: false | "
|
|
2249
|
+
showHyperlinkPopup: false | "info" | "editor";
|
|
2213
2250
|
selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
|
|
2214
2251
|
snapLines: readonly import("../snapping").SnapLine[];
|
|
2215
2252
|
originSnapOffset: {
|
|
@@ -2278,7 +2315,10 @@ export declare const actionToggleHandTool: {
|
|
|
2278
2315
|
editingFrame: string | null;
|
|
2279
2316
|
elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
|
|
2280
2317
|
editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
2281
|
-
|
|
2318
|
+
preferredSelectionTool: {
|
|
2319
|
+
type: "selection" | "lasso";
|
|
2320
|
+
initialized: boolean;
|
|
2321
|
+
};
|
|
2282
2322
|
penMode: boolean;
|
|
2283
2323
|
penDetected: boolean;
|
|
2284
2324
|
exportBackground: boolean;
|
|
@@ -2311,8 +2351,8 @@ export declare const actionToggleHandTool: {
|
|
|
2311
2351
|
zoom: Readonly<{
|
|
2312
2352
|
value: import("../types").NormalizedZoomValue;
|
|
2313
2353
|
}>;
|
|
2314
|
-
openMenu: "canvas" |
|
|
2315
|
-
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
2354
|
+
openMenu: "canvas" | null;
|
|
2355
|
+
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
|
|
2316
2356
|
openSidebar: {
|
|
2317
2357
|
name: string;
|
|
2318
2358
|
tab?: string | undefined;
|
|
@@ -2387,7 +2427,7 @@ export declare const actionToggleHandTool: {
|
|
|
2387
2427
|
shown: true;
|
|
2388
2428
|
data: import("../charts").Spreadsheet;
|
|
2389
2429
|
};
|
|
2390
|
-
showHyperlinkPopup: false | "
|
|
2430
|
+
showHyperlinkPopup: false | "info" | "editor";
|
|
2391
2431
|
selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
|
|
2392
2432
|
snapLines: readonly import("../snapping").SnapLine[];
|
|
2393
2433
|
originSnapOffset: {
|