@excalidraw/common 0.18.0-ec07091 → 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 +156 -83
- package/dist/dev/index.js.map +3 -3
- package/dist/prod/index.js +3 -3
- package/dist/types/common/src/constants.d.ts +3 -16
- 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 +0 -2
- package/dist/types/element/src/resizeTest.d.ts +5 -4
- package/dist/types/element/src/transformHandles.d.ts +5 -4
- package/dist/types/excalidraw/actions/actionAddToLibrary.d.ts +18 -9
- package/dist/types/excalidraw/actions/actionBoundText.d.ts +12 -6
- package/dist/types/excalidraw/actions/actionCanvas.d.ts +78 -39
- package/dist/types/excalidraw/actions/actionClipboard.d.ts +36 -18
- package/dist/types/excalidraw/actions/actionCropEditor.d.ts +6 -3
- package/dist/types/excalidraw/actions/actionDeleteSelected.d.ts +19 -10
- package/dist/types/excalidraw/actions/actionDuplicateSelection.d.ts +1 -1
- package/dist/types/excalidraw/actions/actionElementLink.d.ts +6 -3
- package/dist/types/excalidraw/actions/actionElementLock.d.ts +12 -6
- package/dist/types/excalidraw/actions/actionEmbeddable.d.ts +6 -3
- package/dist/types/excalidraw/actions/actionExport.d.ts +54 -27
- package/dist/types/excalidraw/actions/actionFinalize.d.ts +12 -6
- package/dist/types/excalidraw/actions/actionFrame.d.ts +24 -12
- package/dist/types/excalidraw/actions/actionGroup.d.ts +12 -6
- package/dist/types/excalidraw/actions/actionLinearEditor.d.ts +6 -3
- package/dist/types/excalidraw/actions/actionLink.d.ts +4 -1
- package/dist/types/excalidraw/actions/actionMenu.d.ts +7 -372
- package/dist/types/excalidraw/actions/actionNavigate.d.ts +12 -6
- package/dist/types/excalidraw/actions/actionProperties.d.ts +91 -46
- package/dist/types/excalidraw/actions/actionSelectAll.d.ts +6 -3
- package/dist/types/excalidraw/actions/actionStyles.d.ts +6 -3
- package/dist/types/excalidraw/actions/actionToggleGridMode.d.ts +6 -3
- package/dist/types/excalidraw/actions/actionToggleObjectsSnapMode.d.ts +6 -3
- package/dist/types/excalidraw/actions/actionToggleSearchMenu.d.ts +6 -3
- package/dist/types/excalidraw/actions/actionToggleStats.d.ts +6 -3
- package/dist/types/excalidraw/actions/actionToggleViewMode.d.ts +6 -3
- package/dist/types/excalidraw/actions/actionToggleZenMode.d.ts +7 -4
- package/dist/types/excalidraw/actions/index.d.ts +1 -1
- package/dist/types/excalidraw/actions/types.d.ts +1 -1
- package/dist/types/excalidraw/appState.d.ts +5 -2
- package/dist/types/excalidraw/components/Actions.d.ts +13 -3
- package/dist/types/excalidraw/components/App.d.ts +19 -17
- package/dist/types/excalidraw/components/ColorPicker/ColorPicker.d.ts +1 -2
- 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/ExcalidrawLogo.d.ts +1 -1
- package/dist/types/excalidraw/components/FilledButton.d.ts +1 -1
- package/dist/types/excalidraw/components/FontPicker/FontPickerTrigger.d.ts +2 -1
- package/dist/types/excalidraw/components/HintViewer.d.ts +4 -3
- package/dist/types/excalidraw/components/LayerUI.d.ts +2 -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/TTDDialog/TTDDialogTrigger.d.ts +1 -2
- 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 +5 -1
- 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/hooks/useOutsideClick.d.ts +3 -1
- package/dist/types/excalidraw/index.d.ts +2 -3
- package/dist/types/excalidraw/renderer/interactiveScene.d.ts +1 -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 +16 -17
- package/package.json +1 -1
|
@@ -43,6 +43,10 @@ export declare const actionCopy: {
|
|
|
43
43
|
locked: boolean;
|
|
44
44
|
fromSelection: boolean;
|
|
45
45
|
} & import("../types").ActiveTool;
|
|
46
|
+
preferredSelectionTool: {
|
|
47
|
+
type: "selection" | "lasso";
|
|
48
|
+
initialized: boolean;
|
|
49
|
+
};
|
|
46
50
|
penMode: boolean;
|
|
47
51
|
penDetected: boolean;
|
|
48
52
|
exportBackground: boolean;
|
|
@@ -75,7 +79,7 @@ export declare const actionCopy: {
|
|
|
75
79
|
zoom: Readonly<{
|
|
76
80
|
value: import("../types").NormalizedZoomValue;
|
|
77
81
|
}>;
|
|
78
|
-
openMenu: "canvas" |
|
|
82
|
+
openMenu: "canvas" | null;
|
|
79
83
|
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
|
|
80
84
|
openSidebar: {
|
|
81
85
|
name: string;
|
|
@@ -157,7 +161,7 @@ export declare const actionCopy: {
|
|
|
157
161
|
shown: true;
|
|
158
162
|
data: import("../charts").Spreadsheet;
|
|
159
163
|
};
|
|
160
|
-
showHyperlinkPopup: false | "
|
|
164
|
+
showHyperlinkPopup: false | "info" | "editor";
|
|
161
165
|
selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
|
|
162
166
|
snapLines: readonly import("../snapping").SnapLine[];
|
|
163
167
|
originSnapOffset: {
|
|
@@ -177,7 +181,6 @@ export declare const actionCopy: {
|
|
|
177
181
|
lockedMultiSelections: {
|
|
178
182
|
[groupId: string]: true;
|
|
179
183
|
};
|
|
180
|
-
stylesPanelMode: "compact" | "full";
|
|
181
184
|
};
|
|
182
185
|
} | {
|
|
183
186
|
captureUpdate: "EVENTUALLY";
|
|
@@ -230,6 +233,10 @@ export declare const actionPaste: {
|
|
|
230
233
|
locked: boolean;
|
|
231
234
|
fromSelection: boolean;
|
|
232
235
|
} & import("../types").ActiveTool;
|
|
236
|
+
preferredSelectionTool: {
|
|
237
|
+
type: "selection" | "lasso";
|
|
238
|
+
initialized: boolean;
|
|
239
|
+
};
|
|
233
240
|
penMode: boolean;
|
|
234
241
|
penDetected: boolean;
|
|
235
242
|
exportBackground: boolean;
|
|
@@ -262,7 +269,7 @@ export declare const actionPaste: {
|
|
|
262
269
|
zoom: Readonly<{
|
|
263
270
|
value: import("../types").NormalizedZoomValue;
|
|
264
271
|
}>;
|
|
265
|
-
openMenu: "canvas" |
|
|
272
|
+
openMenu: "canvas" | null;
|
|
266
273
|
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
|
|
267
274
|
openSidebar: {
|
|
268
275
|
name: string;
|
|
@@ -344,7 +351,7 @@ export declare const actionPaste: {
|
|
|
344
351
|
shown: true;
|
|
345
352
|
data: import("../charts").Spreadsheet;
|
|
346
353
|
};
|
|
347
|
-
showHyperlinkPopup: false | "
|
|
354
|
+
showHyperlinkPopup: false | "info" | "editor";
|
|
348
355
|
selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
|
|
349
356
|
snapLines: readonly import("../snapping").SnapLine[];
|
|
350
357
|
originSnapOffset: {
|
|
@@ -364,7 +371,6 @@ export declare const actionPaste: {
|
|
|
364
371
|
lockedMultiSelections: {
|
|
365
372
|
[groupId: string]: true;
|
|
366
373
|
};
|
|
367
|
-
stylesPanelMode: "compact" | "full";
|
|
368
374
|
};
|
|
369
375
|
} | {
|
|
370
376
|
captureUpdate: "EVENTUALLY";
|
|
@@ -419,6 +425,10 @@ export declare const actionCut: {
|
|
|
419
425
|
locked: boolean;
|
|
420
426
|
fromSelection: boolean;
|
|
421
427
|
} & import("../types").ActiveTool;
|
|
428
|
+
preferredSelectionTool: {
|
|
429
|
+
type: "selection" | "lasso";
|
|
430
|
+
initialized: boolean;
|
|
431
|
+
};
|
|
422
432
|
penMode: boolean;
|
|
423
433
|
penDetected: boolean;
|
|
424
434
|
exportBackground: boolean;
|
|
@@ -451,7 +461,7 @@ export declare const actionCut: {
|
|
|
451
461
|
zoom: Readonly<{
|
|
452
462
|
value: import("../types").NormalizedZoomValue;
|
|
453
463
|
}>;
|
|
454
|
-
openMenu: "canvas" |
|
|
464
|
+
openMenu: "canvas" | null;
|
|
455
465
|
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
|
|
456
466
|
openSidebar: {
|
|
457
467
|
name: string;
|
|
@@ -533,7 +543,7 @@ export declare const actionCut: {
|
|
|
533
543
|
shown: true;
|
|
534
544
|
data: import("../charts").Spreadsheet;
|
|
535
545
|
};
|
|
536
|
-
showHyperlinkPopup: false | "
|
|
546
|
+
showHyperlinkPopup: false | "info" | "editor";
|
|
537
547
|
snapLines: readonly import("../snapping").SnapLine[];
|
|
538
548
|
originSnapOffset: {
|
|
539
549
|
x: number;
|
|
@@ -552,7 +562,6 @@ export declare const actionCut: {
|
|
|
552
562
|
lockedMultiSelections: {
|
|
553
563
|
[groupId: string]: true;
|
|
554
564
|
};
|
|
555
|
-
stylesPanelMode: "compact" | "full";
|
|
556
565
|
};
|
|
557
566
|
captureUpdate: "IMMEDIATELY";
|
|
558
567
|
} | {
|
|
@@ -625,6 +634,10 @@ export declare const actionCut: {
|
|
|
625
634
|
locked: boolean;
|
|
626
635
|
fromSelection: boolean;
|
|
627
636
|
} & import("../types").ActiveTool;
|
|
637
|
+
preferredSelectionTool: {
|
|
638
|
+
type: "selection" | "lasso";
|
|
639
|
+
initialized: boolean;
|
|
640
|
+
};
|
|
628
641
|
penMode: boolean;
|
|
629
642
|
penDetected: boolean;
|
|
630
643
|
exportBackground: boolean;
|
|
@@ -657,7 +670,7 @@ export declare const actionCut: {
|
|
|
657
670
|
zoom: Readonly<{
|
|
658
671
|
value: import("../types").NormalizedZoomValue;
|
|
659
672
|
}>;
|
|
660
|
-
openMenu: "canvas" |
|
|
673
|
+
openMenu: "canvas" | null;
|
|
661
674
|
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
|
|
662
675
|
openSidebar: {
|
|
663
676
|
name: string;
|
|
@@ -739,7 +752,7 @@ export declare const actionCut: {
|
|
|
739
752
|
shown: true;
|
|
740
753
|
data: import("../charts").Spreadsheet;
|
|
741
754
|
};
|
|
742
|
-
showHyperlinkPopup: false | "
|
|
755
|
+
showHyperlinkPopup: false | "info" | "editor";
|
|
743
756
|
snapLines: readonly import("../snapping").SnapLine[];
|
|
744
757
|
originSnapOffset: {
|
|
745
758
|
x: number;
|
|
@@ -758,7 +771,6 @@ export declare const actionCut: {
|
|
|
758
771
|
lockedMultiSelections: {
|
|
759
772
|
[groupId: string]: true;
|
|
760
773
|
};
|
|
761
|
-
stylesPanelMode: "compact" | "full";
|
|
762
774
|
};
|
|
763
775
|
captureUpdate: "IMMEDIATELY";
|
|
764
776
|
} | {
|
|
@@ -803,6 +815,10 @@ export declare const actionCut: {
|
|
|
803
815
|
editingFrame: string | null;
|
|
804
816
|
elementsToHighlight: import("../../element/src/types").NonDeleted<import("../../element/src/types").ExcalidrawElement>[] | null;
|
|
805
817
|
editingTextElement: import("../../element/src/types").NonDeletedExcalidrawElement | null;
|
|
818
|
+
preferredSelectionTool: {
|
|
819
|
+
type: "selection" | "lasso";
|
|
820
|
+
initialized: boolean;
|
|
821
|
+
};
|
|
806
822
|
penMode: boolean;
|
|
807
823
|
penDetected: boolean;
|
|
808
824
|
exportBackground: boolean;
|
|
@@ -835,7 +851,7 @@ export declare const actionCut: {
|
|
|
835
851
|
zoom: Readonly<{
|
|
836
852
|
value: import("../types").NormalizedZoomValue;
|
|
837
853
|
}>;
|
|
838
|
-
openMenu: "canvas" |
|
|
854
|
+
openMenu: "canvas" | null;
|
|
839
855
|
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
|
|
840
856
|
openSidebar: {
|
|
841
857
|
name: string;
|
|
@@ -910,7 +926,7 @@ export declare const actionCut: {
|
|
|
910
926
|
shown: true;
|
|
911
927
|
data: import("../charts").Spreadsheet;
|
|
912
928
|
};
|
|
913
|
-
showHyperlinkPopup: false | "
|
|
929
|
+
showHyperlinkPopup: false | "info" | "editor";
|
|
914
930
|
snapLines: readonly import("../snapping").SnapLine[];
|
|
915
931
|
originSnapOffset: {
|
|
916
932
|
x: number;
|
|
@@ -929,7 +945,6 @@ export declare const actionCut: {
|
|
|
929
945
|
lockedMultiSelections: {
|
|
930
946
|
[groupId: string]: true;
|
|
931
947
|
};
|
|
932
|
-
stylesPanelMode: "compact" | "full";
|
|
933
948
|
};
|
|
934
949
|
captureUpdate: "IMMEDIATELY" | "EVENTUALLY";
|
|
935
950
|
};
|
|
@@ -1013,6 +1028,10 @@ export declare const actionCopyAsPng: {
|
|
|
1013
1028
|
locked: boolean;
|
|
1014
1029
|
fromSelection: boolean;
|
|
1015
1030
|
} & import("../types").ActiveTool;
|
|
1031
|
+
preferredSelectionTool: {
|
|
1032
|
+
type: "selection" | "lasso";
|
|
1033
|
+
initialized: boolean;
|
|
1034
|
+
};
|
|
1016
1035
|
penMode: boolean;
|
|
1017
1036
|
penDetected: boolean;
|
|
1018
1037
|
exportBackground: boolean;
|
|
@@ -1045,7 +1064,7 @@ export declare const actionCopyAsPng: {
|
|
|
1045
1064
|
zoom: Readonly<{
|
|
1046
1065
|
value: import("../types").NormalizedZoomValue;
|
|
1047
1066
|
}>;
|
|
1048
|
-
openMenu: "canvas" |
|
|
1067
|
+
openMenu: "canvas" | null;
|
|
1049
1068
|
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
|
|
1050
1069
|
openSidebar: {
|
|
1051
1070
|
name: string;
|
|
@@ -1127,7 +1146,7 @@ export declare const actionCopyAsPng: {
|
|
|
1127
1146
|
shown: true;
|
|
1128
1147
|
data: import("../charts").Spreadsheet;
|
|
1129
1148
|
};
|
|
1130
|
-
showHyperlinkPopup: false | "
|
|
1149
|
+
showHyperlinkPopup: false | "info" | "editor";
|
|
1131
1150
|
selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
|
|
1132
1151
|
snapLines: readonly import("../snapping").SnapLine[];
|
|
1133
1152
|
originSnapOffset: {
|
|
@@ -1147,7 +1166,6 @@ export declare const actionCopyAsPng: {
|
|
|
1147
1166
|
lockedMultiSelections: {
|
|
1148
1167
|
[groupId: string]: true;
|
|
1149
1168
|
};
|
|
1150
|
-
stylesPanelMode: "compact" | "full";
|
|
1151
1169
|
};
|
|
1152
1170
|
captureUpdate: "EVENTUALLY";
|
|
1153
1171
|
}>;
|
|
@@ -46,6 +46,10 @@ export declare const actionToggleCropEditor: {
|
|
|
46
46
|
locked: boolean;
|
|
47
47
|
fromSelection: boolean;
|
|
48
48
|
} & import("../types").ActiveTool;
|
|
49
|
+
preferredSelectionTool: {
|
|
50
|
+
type: "selection" | "lasso";
|
|
51
|
+
initialized: boolean;
|
|
52
|
+
};
|
|
49
53
|
penMode: boolean;
|
|
50
54
|
penDetected: boolean;
|
|
51
55
|
exportBackground: boolean;
|
|
@@ -78,7 +82,7 @@ export declare const actionToggleCropEditor: {
|
|
|
78
82
|
zoom: Readonly<{
|
|
79
83
|
value: import("../types").NormalizedZoomValue;
|
|
80
84
|
}>;
|
|
81
|
-
openMenu: "canvas" |
|
|
85
|
+
openMenu: "canvas" | null;
|
|
82
86
|
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
|
|
83
87
|
openSidebar: {
|
|
84
88
|
name: string;
|
|
@@ -160,7 +164,7 @@ export declare const actionToggleCropEditor: {
|
|
|
160
164
|
shown: true;
|
|
161
165
|
data: import("../charts").Spreadsheet;
|
|
162
166
|
};
|
|
163
|
-
showHyperlinkPopup: false | "
|
|
167
|
+
showHyperlinkPopup: false | "info" | "editor";
|
|
164
168
|
selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
|
|
165
169
|
snapLines: readonly import("../snapping").SnapLine[];
|
|
166
170
|
originSnapOffset: {
|
|
@@ -178,7 +182,6 @@ export declare const actionToggleCropEditor: {
|
|
|
178
182
|
lockedMultiSelections: {
|
|
179
183
|
[groupId: string]: true;
|
|
180
184
|
};
|
|
181
|
-
stylesPanelMode: "compact" | "full";
|
|
182
185
|
};
|
|
183
186
|
captureUpdate: "IMMEDIATELY";
|
|
184
187
|
};
|
|
@@ -47,6 +47,10 @@ export declare const actionDeleteSelected: {
|
|
|
47
47
|
locked: boolean;
|
|
48
48
|
fromSelection: boolean;
|
|
49
49
|
} & import("../types").ActiveTool;
|
|
50
|
+
preferredSelectionTool: {
|
|
51
|
+
type: "selection" | "lasso";
|
|
52
|
+
initialized: boolean;
|
|
53
|
+
};
|
|
50
54
|
penMode: boolean;
|
|
51
55
|
penDetected: boolean;
|
|
52
56
|
exportBackground: boolean;
|
|
@@ -79,7 +83,7 @@ export declare const actionDeleteSelected: {
|
|
|
79
83
|
zoom: Readonly<{
|
|
80
84
|
value: import("../types").NormalizedZoomValue;
|
|
81
85
|
}>;
|
|
82
|
-
openMenu: "canvas" |
|
|
86
|
+
openMenu: "canvas" | null;
|
|
83
87
|
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
|
|
84
88
|
openSidebar: {
|
|
85
89
|
name: string;
|
|
@@ -161,7 +165,7 @@ export declare const actionDeleteSelected: {
|
|
|
161
165
|
shown: true;
|
|
162
166
|
data: import("../charts").Spreadsheet;
|
|
163
167
|
};
|
|
164
|
-
showHyperlinkPopup: false | "
|
|
168
|
+
showHyperlinkPopup: false | "info" | "editor";
|
|
165
169
|
snapLines: readonly import("../snapping").SnapLine[];
|
|
166
170
|
originSnapOffset: {
|
|
167
171
|
x: number;
|
|
@@ -180,7 +184,6 @@ export declare const actionDeleteSelected: {
|
|
|
180
184
|
lockedMultiSelections: {
|
|
181
185
|
[groupId: string]: true;
|
|
182
186
|
};
|
|
183
|
-
stylesPanelMode: "compact" | "full";
|
|
184
187
|
};
|
|
185
188
|
captureUpdate: "IMMEDIATELY";
|
|
186
189
|
} | {
|
|
@@ -253,6 +256,10 @@ export declare const actionDeleteSelected: {
|
|
|
253
256
|
locked: boolean;
|
|
254
257
|
fromSelection: boolean;
|
|
255
258
|
} & import("../types").ActiveTool;
|
|
259
|
+
preferredSelectionTool: {
|
|
260
|
+
type: "selection" | "lasso";
|
|
261
|
+
initialized: boolean;
|
|
262
|
+
};
|
|
256
263
|
penMode: boolean;
|
|
257
264
|
penDetected: boolean;
|
|
258
265
|
exportBackground: boolean;
|
|
@@ -285,7 +292,7 @@ export declare const actionDeleteSelected: {
|
|
|
285
292
|
zoom: Readonly<{
|
|
286
293
|
value: import("../types").NormalizedZoomValue;
|
|
287
294
|
}>;
|
|
288
|
-
openMenu: "canvas" |
|
|
295
|
+
openMenu: "canvas" | null;
|
|
289
296
|
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
|
|
290
297
|
openSidebar: {
|
|
291
298
|
name: string;
|
|
@@ -367,7 +374,7 @@ export declare const actionDeleteSelected: {
|
|
|
367
374
|
shown: true;
|
|
368
375
|
data: import("../charts").Spreadsheet;
|
|
369
376
|
};
|
|
370
|
-
showHyperlinkPopup: false | "
|
|
377
|
+
showHyperlinkPopup: false | "info" | "editor";
|
|
371
378
|
snapLines: readonly import("../snapping").SnapLine[];
|
|
372
379
|
originSnapOffset: {
|
|
373
380
|
x: number;
|
|
@@ -386,7 +393,6 @@ export declare const actionDeleteSelected: {
|
|
|
386
393
|
lockedMultiSelections: {
|
|
387
394
|
[groupId: string]: true;
|
|
388
395
|
};
|
|
389
|
-
stylesPanelMode: "compact" | "full";
|
|
390
396
|
};
|
|
391
397
|
captureUpdate: "IMMEDIATELY";
|
|
392
398
|
} | {
|
|
@@ -431,6 +437,10 @@ export declare const actionDeleteSelected: {
|
|
|
431
437
|
editingFrame: string | null;
|
|
432
438
|
elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
|
|
433
439
|
editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
440
|
+
preferredSelectionTool: {
|
|
441
|
+
type: "selection" | "lasso";
|
|
442
|
+
initialized: boolean;
|
|
443
|
+
};
|
|
434
444
|
penMode: boolean;
|
|
435
445
|
penDetected: boolean;
|
|
436
446
|
exportBackground: boolean;
|
|
@@ -463,7 +473,7 @@ export declare const actionDeleteSelected: {
|
|
|
463
473
|
zoom: Readonly<{
|
|
464
474
|
value: import("../types").NormalizedZoomValue;
|
|
465
475
|
}>;
|
|
466
|
-
openMenu: "canvas" |
|
|
476
|
+
openMenu: "canvas" | null;
|
|
467
477
|
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
|
|
468
478
|
openSidebar: {
|
|
469
479
|
name: string;
|
|
@@ -538,7 +548,7 @@ export declare const actionDeleteSelected: {
|
|
|
538
548
|
shown: true;
|
|
539
549
|
data: import("../charts").Spreadsheet;
|
|
540
550
|
};
|
|
541
|
-
showHyperlinkPopup: false | "
|
|
551
|
+
showHyperlinkPopup: false | "info" | "editor";
|
|
542
552
|
snapLines: readonly import("../snapping").SnapLine[];
|
|
543
553
|
originSnapOffset: {
|
|
544
554
|
x: number;
|
|
@@ -557,12 +567,11 @@ export declare const actionDeleteSelected: {
|
|
|
557
567
|
lockedMultiSelections: {
|
|
558
568
|
[groupId: string]: true;
|
|
559
569
|
};
|
|
560
|
-
stylesPanelMode: "compact" | "full";
|
|
561
570
|
};
|
|
562
571
|
captureUpdate: "IMMEDIATELY" | "EVENTUALLY";
|
|
563
572
|
};
|
|
564
573
|
keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>, appState: AppState, elements: readonly ExcalidrawElement[]) => boolean;
|
|
565
|
-
PanelComponent: ({ elements, appState, updateData }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
|
|
574
|
+
PanelComponent: ({ elements, appState, updateData, app }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
|
|
566
575
|
} & {
|
|
567
576
|
keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>, appState: AppState, elements: readonly ExcalidrawElement[]) => boolean) | undefined;
|
|
568
577
|
};
|
|
@@ -12,7 +12,7 @@ export declare const actionDuplicateSelection: {
|
|
|
12
12
|
captureUpdate: "IMMEDIATELY";
|
|
13
13
|
};
|
|
14
14
|
keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
|
|
15
|
-
PanelComponent: ({ elements, appState, updateData }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
|
|
15
|
+
PanelComponent: ({ elements, appState, updateData, app }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
|
|
16
16
|
} & {
|
|
17
17
|
keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
|
|
18
18
|
};
|
|
@@ -75,6 +75,10 @@ export declare const actionLinkToElement: {
|
|
|
75
75
|
locked: boolean;
|
|
76
76
|
fromSelection: boolean;
|
|
77
77
|
} & import("../types").ActiveTool;
|
|
78
|
+
preferredSelectionTool: {
|
|
79
|
+
type: "selection" | "lasso";
|
|
80
|
+
initialized: boolean;
|
|
81
|
+
};
|
|
78
82
|
penMode: boolean;
|
|
79
83
|
penDetected: boolean;
|
|
80
84
|
exportBackground: boolean;
|
|
@@ -107,7 +111,7 @@ export declare const actionLinkToElement: {
|
|
|
107
111
|
zoom: Readonly<{
|
|
108
112
|
value: import("../types").NormalizedZoomValue;
|
|
109
113
|
}>;
|
|
110
|
-
openMenu: "canvas" |
|
|
114
|
+
openMenu: "canvas" | null;
|
|
111
115
|
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
|
|
112
116
|
openSidebar: {
|
|
113
117
|
name: string;
|
|
@@ -178,7 +182,7 @@ export declare const actionLinkToElement: {
|
|
|
178
182
|
shown: true;
|
|
179
183
|
data: import("../charts").Spreadsheet;
|
|
180
184
|
};
|
|
181
|
-
showHyperlinkPopup: false | "
|
|
185
|
+
showHyperlinkPopup: false | "info" | "editor";
|
|
182
186
|
selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
|
|
183
187
|
snapLines: readonly import("../snapping").SnapLine[];
|
|
184
188
|
originSnapOffset: {
|
|
@@ -198,7 +202,6 @@ export declare const actionLinkToElement: {
|
|
|
198
202
|
lockedMultiSelections: {
|
|
199
203
|
[groupId: string]: true;
|
|
200
204
|
};
|
|
201
|
-
stylesPanelMode: "compact" | "full";
|
|
202
205
|
};
|
|
203
206
|
captureUpdate: "IMMEDIATELY";
|
|
204
207
|
elements?: undefined;
|
|
@@ -57,6 +57,10 @@ export declare const actionToggleElementLock: {
|
|
|
57
57
|
locked: boolean;
|
|
58
58
|
fromSelection: boolean;
|
|
59
59
|
} & import("../types").ActiveTool;
|
|
60
|
+
preferredSelectionTool: {
|
|
61
|
+
type: "selection" | "lasso";
|
|
62
|
+
initialized: boolean;
|
|
63
|
+
};
|
|
60
64
|
penMode: boolean;
|
|
61
65
|
penDetected: boolean;
|
|
62
66
|
exportBackground: boolean;
|
|
@@ -89,7 +93,7 @@ export declare const actionToggleElementLock: {
|
|
|
89
93
|
zoom: Readonly<{
|
|
90
94
|
value: import("../types").NormalizedZoomValue;
|
|
91
95
|
}>;
|
|
92
|
-
openMenu: "canvas" |
|
|
96
|
+
openMenu: "canvas" | null;
|
|
93
97
|
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
|
|
94
98
|
openSidebar: {
|
|
95
99
|
name: string;
|
|
@@ -165,7 +169,7 @@ export declare const actionToggleElementLock: {
|
|
|
165
169
|
shown: true;
|
|
166
170
|
data: import("../charts").Spreadsheet;
|
|
167
171
|
};
|
|
168
|
-
showHyperlinkPopup: false | "
|
|
172
|
+
showHyperlinkPopup: false | "info" | "editor";
|
|
169
173
|
snapLines: readonly import("../snapping").SnapLine[];
|
|
170
174
|
originSnapOffset: {
|
|
171
175
|
x: number;
|
|
@@ -180,7 +184,6 @@ export declare const actionToggleElementLock: {
|
|
|
180
184
|
focusedId: string | null;
|
|
181
185
|
matches: readonly import("../types").SearchMatch[];
|
|
182
186
|
}> | null;
|
|
183
|
-
stylesPanelMode: "compact" | "full";
|
|
184
187
|
};
|
|
185
188
|
captureUpdate: "IMMEDIATELY";
|
|
186
189
|
};
|
|
@@ -241,6 +244,10 @@ export declare const actionUnlockAllElements: {
|
|
|
241
244
|
locked: boolean;
|
|
242
245
|
fromSelection: boolean;
|
|
243
246
|
} & import("../types").ActiveTool;
|
|
247
|
+
preferredSelectionTool: {
|
|
248
|
+
type: "selection" | "lasso";
|
|
249
|
+
initialized: boolean;
|
|
250
|
+
};
|
|
244
251
|
penMode: boolean;
|
|
245
252
|
penDetected: boolean;
|
|
246
253
|
exportBackground: boolean;
|
|
@@ -273,7 +280,7 @@ export declare const actionUnlockAllElements: {
|
|
|
273
280
|
zoom: Readonly<{
|
|
274
281
|
value: import("../types").NormalizedZoomValue;
|
|
275
282
|
}>;
|
|
276
|
-
openMenu: "canvas" |
|
|
283
|
+
openMenu: "canvas" | null;
|
|
277
284
|
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
|
|
278
285
|
openSidebar: {
|
|
279
286
|
name: string;
|
|
@@ -349,7 +356,7 @@ export declare const actionUnlockAllElements: {
|
|
|
349
356
|
shown: true;
|
|
350
357
|
data: import("../charts").Spreadsheet;
|
|
351
358
|
};
|
|
352
|
-
showHyperlinkPopup: false | "
|
|
359
|
+
showHyperlinkPopup: false | "info" | "editor";
|
|
353
360
|
selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
|
|
354
361
|
snapLines: readonly import("../snapping").SnapLine[];
|
|
355
362
|
originSnapOffset: {
|
|
@@ -365,7 +372,6 @@ export declare const actionUnlockAllElements: {
|
|
|
365
372
|
focusedId: string | null;
|
|
366
373
|
matches: readonly import("../types").SearchMatch[];
|
|
367
374
|
}> | null;
|
|
368
|
-
stylesPanelMode: "compact" | "full";
|
|
369
375
|
};
|
|
370
376
|
captureUpdate: "IMMEDIATELY";
|
|
371
377
|
};
|
|
@@ -43,6 +43,10 @@ export declare const actionSetEmbeddableAsActiveTool: {
|
|
|
43
43
|
editingFrame: string | null;
|
|
44
44
|
elementsToHighlight: import("../../element/src/types").NonDeleted<import("../../element/src/types").ExcalidrawElement>[] | null;
|
|
45
45
|
editingTextElement: import("../../element/src/types").NonDeletedExcalidrawElement | null;
|
|
46
|
+
preferredSelectionTool: {
|
|
47
|
+
type: "selection" | "lasso";
|
|
48
|
+
initialized: boolean;
|
|
49
|
+
};
|
|
46
50
|
penMode: boolean;
|
|
47
51
|
penDetected: boolean;
|
|
48
52
|
exportBackground: boolean;
|
|
@@ -75,7 +79,7 @@ export declare const actionSetEmbeddableAsActiveTool: {
|
|
|
75
79
|
zoom: Readonly<{
|
|
76
80
|
value: import("../types").NormalizedZoomValue;
|
|
77
81
|
}>;
|
|
78
|
-
openMenu: "canvas" |
|
|
82
|
+
openMenu: "canvas" | null;
|
|
79
83
|
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
|
|
80
84
|
openSidebar: {
|
|
81
85
|
name: string;
|
|
@@ -157,7 +161,7 @@ export declare const actionSetEmbeddableAsActiveTool: {
|
|
|
157
161
|
shown: true;
|
|
158
162
|
data: import("../charts").Spreadsheet;
|
|
159
163
|
};
|
|
160
|
-
showHyperlinkPopup: false | "
|
|
164
|
+
showHyperlinkPopup: false | "info" | "editor";
|
|
161
165
|
selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
|
|
162
166
|
snapLines: readonly import("../snapping").SnapLine[];
|
|
163
167
|
originSnapOffset: {
|
|
@@ -177,7 +181,6 @@ export declare const actionSetEmbeddableAsActiveTool: {
|
|
|
177
181
|
lockedMultiSelections: {
|
|
178
182
|
[groupId: string]: true;
|
|
179
183
|
};
|
|
180
|
-
stylesPanelMode: "compact" | "full";
|
|
181
184
|
};
|
|
182
185
|
captureUpdate: "EVENTUALLY";
|
|
183
186
|
};
|