@excalidraw/element 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 +1098 -634
- package/dist/dev/index.js.map +4 -4
- package/dist/prod/index.js +14 -14
- 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 +7 -3
|
@@ -38,12 +38,15 @@ export declare const actionCopy: {
|
|
|
38
38
|
editingFrame: string | null;
|
|
39
39
|
elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
|
|
40
40
|
editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
41
|
-
editingLinearElement: import("@excalidraw/element").LinearElementEditor | null;
|
|
42
41
|
activeTool: {
|
|
43
42
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
44
43
|
locked: boolean;
|
|
45
44
|
fromSelection: boolean;
|
|
46
45
|
} & import("../types").ActiveTool;
|
|
46
|
+
preferredSelectionTool: {
|
|
47
|
+
type: "selection" | "lasso";
|
|
48
|
+
initialized: boolean;
|
|
49
|
+
};
|
|
47
50
|
penMode: boolean;
|
|
48
51
|
penDetected: boolean;
|
|
49
52
|
exportBackground: boolean;
|
|
@@ -76,8 +79,8 @@ export declare const actionCopy: {
|
|
|
76
79
|
zoom: Readonly<{
|
|
77
80
|
value: import("../types").NormalizedZoomValue;
|
|
78
81
|
}>;
|
|
79
|
-
openMenu: "canvas" |
|
|
80
|
-
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
82
|
+
openMenu: "canvas" | null;
|
|
83
|
+
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
|
|
81
84
|
openSidebar: {
|
|
82
85
|
name: string;
|
|
83
86
|
tab?: string | undefined;
|
|
@@ -158,7 +161,7 @@ export declare const actionCopy: {
|
|
|
158
161
|
shown: true;
|
|
159
162
|
data: import("../charts").Spreadsheet;
|
|
160
163
|
};
|
|
161
|
-
showHyperlinkPopup: false | "
|
|
164
|
+
showHyperlinkPopup: false | "info" | "editor";
|
|
162
165
|
selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
|
|
163
166
|
snapLines: readonly import("../snapping").SnapLine[];
|
|
164
167
|
originSnapOffset: {
|
|
@@ -225,12 +228,15 @@ export declare const actionPaste: {
|
|
|
225
228
|
editingFrame: string | null;
|
|
226
229
|
elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
|
|
227
230
|
editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
228
|
-
editingLinearElement: import("@excalidraw/element").LinearElementEditor | null;
|
|
229
231
|
activeTool: {
|
|
230
232
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
231
233
|
locked: boolean;
|
|
232
234
|
fromSelection: boolean;
|
|
233
235
|
} & import("../types").ActiveTool;
|
|
236
|
+
preferredSelectionTool: {
|
|
237
|
+
type: "selection" | "lasso";
|
|
238
|
+
initialized: boolean;
|
|
239
|
+
};
|
|
234
240
|
penMode: boolean;
|
|
235
241
|
penDetected: boolean;
|
|
236
242
|
exportBackground: boolean;
|
|
@@ -263,8 +269,8 @@ export declare const actionPaste: {
|
|
|
263
269
|
zoom: Readonly<{
|
|
264
270
|
value: import("../types").NormalizedZoomValue;
|
|
265
271
|
}>;
|
|
266
|
-
openMenu: "canvas" |
|
|
267
|
-
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
272
|
+
openMenu: "canvas" | null;
|
|
273
|
+
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
|
|
268
274
|
openSidebar: {
|
|
269
275
|
name: string;
|
|
270
276
|
tab?: string | undefined;
|
|
@@ -345,7 +351,7 @@ export declare const actionPaste: {
|
|
|
345
351
|
shown: true;
|
|
346
352
|
data: import("../charts").Spreadsheet;
|
|
347
353
|
};
|
|
348
|
-
showHyperlinkPopup: false | "
|
|
354
|
+
showHyperlinkPopup: false | "info" | "editor";
|
|
349
355
|
selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
|
|
350
356
|
snapLines: readonly import("../snapping").SnapLine[];
|
|
351
357
|
originSnapOffset: {
|
|
@@ -384,7 +390,7 @@ export declare const actionCut: {
|
|
|
384
390
|
perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, event: ClipboardEvent | null, app: import("../types").AppClassProperties) => false | {
|
|
385
391
|
elements: import("@excalidraw/element/types").OrderedExcalidrawElement[];
|
|
386
392
|
appState: {
|
|
387
|
-
|
|
393
|
+
selectedLinearElement: null;
|
|
388
394
|
contextMenu: {
|
|
389
395
|
items: import("../components/ContextMenu").ContextMenuItems;
|
|
390
396
|
top: number;
|
|
@@ -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,8 +461,8 @@ export declare const actionCut: {
|
|
|
451
461
|
zoom: Readonly<{
|
|
452
462
|
value: import("../types").NormalizedZoomValue;
|
|
453
463
|
}>;
|
|
454
|
-
openMenu: "canvas" |
|
|
455
|
-
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
464
|
+
openMenu: "canvas" | null;
|
|
465
|
+
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
|
|
456
466
|
openSidebar: {
|
|
457
467
|
name: string;
|
|
458
468
|
tab?: string | undefined;
|
|
@@ -533,8 +543,7 @@ export declare const actionCut: {
|
|
|
533
543
|
shown: true;
|
|
534
544
|
data: import("../charts").Spreadsheet;
|
|
535
545
|
};
|
|
536
|
-
showHyperlinkPopup: false | "
|
|
537
|
-
selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
|
|
546
|
+
showHyperlinkPopup: false | "info" | "editor";
|
|
538
547
|
snapLines: readonly import("../snapping").SnapLine[];
|
|
539
548
|
originSnapOffset: {
|
|
540
549
|
x: number;
|
|
@@ -558,7 +567,7 @@ export declare const actionCut: {
|
|
|
558
567
|
} | {
|
|
559
568
|
elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[];
|
|
560
569
|
appState: {
|
|
561
|
-
|
|
570
|
+
selectedLinearElement: {
|
|
562
571
|
selectedPointsIndices: number[];
|
|
563
572
|
startBindingElement: import("@excalidraw/element/types").ExcalidrawBindableElement | "keep" | null;
|
|
564
573
|
endBindingElement: import("@excalidraw/element/types").ExcalidrawBindableElement | "keep" | null;
|
|
@@ -589,6 +598,7 @@ export declare const actionCut: {
|
|
|
589
598
|
segmentMidPointHoveredCoords: import("../../math/src").GlobalPoint | null;
|
|
590
599
|
elbowed: boolean;
|
|
591
600
|
customLineAngle: number | null;
|
|
601
|
+
isEditing: boolean;
|
|
592
602
|
};
|
|
593
603
|
contextMenu: {
|
|
594
604
|
items: import("../components/ContextMenu").ContextMenuItems;
|
|
@@ -624,6 +634,10 @@ export declare const actionCut: {
|
|
|
624
634
|
locked: boolean;
|
|
625
635
|
fromSelection: boolean;
|
|
626
636
|
} & import("../types").ActiveTool;
|
|
637
|
+
preferredSelectionTool: {
|
|
638
|
+
type: "selection" | "lasso";
|
|
639
|
+
initialized: boolean;
|
|
640
|
+
};
|
|
627
641
|
penMode: boolean;
|
|
628
642
|
penDetected: boolean;
|
|
629
643
|
exportBackground: boolean;
|
|
@@ -656,8 +670,8 @@ export declare const actionCut: {
|
|
|
656
670
|
zoom: Readonly<{
|
|
657
671
|
value: import("../types").NormalizedZoomValue;
|
|
658
672
|
}>;
|
|
659
|
-
openMenu: "canvas" |
|
|
660
|
-
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
673
|
+
openMenu: "canvas" | null;
|
|
674
|
+
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
|
|
661
675
|
openSidebar: {
|
|
662
676
|
name: string;
|
|
663
677
|
tab?: string | undefined;
|
|
@@ -738,8 +752,7 @@ export declare const actionCut: {
|
|
|
738
752
|
shown: true;
|
|
739
753
|
data: import("../charts").Spreadsheet;
|
|
740
754
|
};
|
|
741
|
-
showHyperlinkPopup: false | "
|
|
742
|
-
selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
|
|
755
|
+
showHyperlinkPopup: false | "info" | "editor";
|
|
743
756
|
snapLines: readonly import("../snapping").SnapLine[];
|
|
744
757
|
originSnapOffset: {
|
|
745
758
|
x: number;
|
|
@@ -802,7 +815,10 @@ export declare const actionCut: {
|
|
|
802
815
|
editingFrame: string | null;
|
|
803
816
|
elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
|
|
804
817
|
editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
805
|
-
|
|
818
|
+
preferredSelectionTool: {
|
|
819
|
+
type: "selection" | "lasso";
|
|
820
|
+
initialized: boolean;
|
|
821
|
+
};
|
|
806
822
|
penMode: boolean;
|
|
807
823
|
penDetected: boolean;
|
|
808
824
|
exportBackground: boolean;
|
|
@@ -835,8 +851,8 @@ export declare const actionCut: {
|
|
|
835
851
|
zoom: Readonly<{
|
|
836
852
|
value: import("../types").NormalizedZoomValue;
|
|
837
853
|
}>;
|
|
838
|
-
openMenu: "canvas" |
|
|
839
|
-
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
854
|
+
openMenu: "canvas" | null;
|
|
855
|
+
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
|
|
840
856
|
openSidebar: {
|
|
841
857
|
name: string;
|
|
842
858
|
tab?: string | undefined;
|
|
@@ -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;
|
|
@@ -1007,12 +1023,15 @@ export declare const actionCopyAsPng: {
|
|
|
1007
1023
|
editingFrame: string | null;
|
|
1008
1024
|
elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
|
|
1009
1025
|
editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
1010
|
-
editingLinearElement: import("@excalidraw/element").LinearElementEditor | null;
|
|
1011
1026
|
activeTool: {
|
|
1012
1027
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
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,8 +1064,8 @@ export declare const actionCopyAsPng: {
|
|
|
1045
1064
|
zoom: Readonly<{
|
|
1046
1065
|
value: import("../types").NormalizedZoomValue;
|
|
1047
1066
|
}>;
|
|
1048
|
-
openMenu: "canvas" |
|
|
1049
|
-
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
1067
|
+
openMenu: "canvas" | null;
|
|
1068
|
+
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
|
|
1050
1069
|
openSidebar: {
|
|
1051
1070
|
name: string;
|
|
1052
1071
|
tab?: string | undefined;
|
|
@@ -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: {
|
|
@@ -41,12 +41,15 @@ export declare const actionToggleCropEditor: {
|
|
|
41
41
|
editingFrame: string | null;
|
|
42
42
|
elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
|
|
43
43
|
editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
44
|
-
editingLinearElement: import("@excalidraw/element").LinearElementEditor | null;
|
|
45
44
|
activeTool: {
|
|
46
45
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
47
46
|
locked: boolean;
|
|
48
47
|
fromSelection: boolean;
|
|
49
48
|
} & import("../types").ActiveTool;
|
|
49
|
+
preferredSelectionTool: {
|
|
50
|
+
type: "selection" | "lasso";
|
|
51
|
+
initialized: boolean;
|
|
52
|
+
};
|
|
50
53
|
penMode: boolean;
|
|
51
54
|
penDetected: boolean;
|
|
52
55
|
exportBackground: boolean;
|
|
@@ -79,8 +82,8 @@ export declare const actionToggleCropEditor: {
|
|
|
79
82
|
zoom: Readonly<{
|
|
80
83
|
value: import("../types").NormalizedZoomValue;
|
|
81
84
|
}>;
|
|
82
|
-
openMenu: "canvas" |
|
|
83
|
-
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
85
|
+
openMenu: "canvas" | null;
|
|
86
|
+
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
|
|
84
87
|
openSidebar: {
|
|
85
88
|
name: string;
|
|
86
89
|
tab?: string | undefined;
|
|
@@ -161,7 +164,7 @@ export declare const actionToggleCropEditor: {
|
|
|
161
164
|
shown: true;
|
|
162
165
|
data: import("../charts").Spreadsheet;
|
|
163
166
|
};
|
|
164
|
-
showHyperlinkPopup: false | "
|
|
167
|
+
showHyperlinkPopup: false | "info" | "editor";
|
|
165
168
|
selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
|
|
166
169
|
snapLines: readonly import("../snapping").SnapLine[];
|
|
167
170
|
originSnapOffset: {
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import { LinearElementEditor } from "@excalidraw/element";
|
|
3
2
|
import type { ExcalidrawElement } from "@excalidraw/element/types";
|
|
4
3
|
import type { AppClassProperties, AppState } from "../types";
|
|
5
4
|
export declare const actionDeleteSelected: {
|
|
@@ -13,7 +12,7 @@ export declare const actionDeleteSelected: {
|
|
|
13
12
|
perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, formData: any, app: AppClassProperties) => false | {
|
|
14
13
|
elements: import("@excalidraw/element/types").OrderedExcalidrawElement[];
|
|
15
14
|
appState: {
|
|
16
|
-
|
|
15
|
+
selectedLinearElement: null;
|
|
17
16
|
contextMenu: {
|
|
18
17
|
items: import("../components/ContextMenu").ContextMenuItems;
|
|
19
18
|
top: number;
|
|
@@ -48,6 +47,10 @@ export declare const actionDeleteSelected: {
|
|
|
48
47
|
locked: boolean;
|
|
49
48
|
fromSelection: boolean;
|
|
50
49
|
} & import("../types").ActiveTool;
|
|
50
|
+
preferredSelectionTool: {
|
|
51
|
+
type: "selection" | "lasso";
|
|
52
|
+
initialized: boolean;
|
|
53
|
+
};
|
|
51
54
|
penMode: boolean;
|
|
52
55
|
penDetected: boolean;
|
|
53
56
|
exportBackground: boolean;
|
|
@@ -80,8 +83,8 @@ export declare const actionDeleteSelected: {
|
|
|
80
83
|
zoom: Readonly<{
|
|
81
84
|
value: import("../types").NormalizedZoomValue;
|
|
82
85
|
}>;
|
|
83
|
-
openMenu: "canvas" |
|
|
84
|
-
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
86
|
+
openMenu: "canvas" | null;
|
|
87
|
+
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
|
|
85
88
|
openSidebar: {
|
|
86
89
|
name: string;
|
|
87
90
|
tab?: string | undefined;
|
|
@@ -162,8 +165,7 @@ export declare const actionDeleteSelected: {
|
|
|
162
165
|
shown: true;
|
|
163
166
|
data: import("../charts").Spreadsheet;
|
|
164
167
|
};
|
|
165
|
-
showHyperlinkPopup: false | "
|
|
166
|
-
selectedLinearElement: LinearElementEditor | null;
|
|
168
|
+
showHyperlinkPopup: false | "info" | "editor";
|
|
167
169
|
snapLines: readonly import("../snapping").SnapLine[];
|
|
168
170
|
originSnapOffset: {
|
|
169
171
|
x: number;
|
|
@@ -187,7 +189,7 @@ export declare const actionDeleteSelected: {
|
|
|
187
189
|
} | {
|
|
188
190
|
elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[];
|
|
189
191
|
appState: {
|
|
190
|
-
|
|
192
|
+
selectedLinearElement: {
|
|
191
193
|
selectedPointsIndices: number[];
|
|
192
194
|
startBindingElement: import("@excalidraw/element/types").ExcalidrawBindableElement | "keep" | null;
|
|
193
195
|
endBindingElement: import("@excalidraw/element/types").ExcalidrawBindableElement | "keep" | null;
|
|
@@ -218,6 +220,7 @@ export declare const actionDeleteSelected: {
|
|
|
218
220
|
segmentMidPointHoveredCoords: import("../../math/src").GlobalPoint | null;
|
|
219
221
|
elbowed: boolean;
|
|
220
222
|
customLineAngle: number | null;
|
|
223
|
+
isEditing: boolean;
|
|
221
224
|
};
|
|
222
225
|
contextMenu: {
|
|
223
226
|
items: import("../components/ContextMenu").ContextMenuItems;
|
|
@@ -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,8 +292,8 @@ export declare const actionDeleteSelected: {
|
|
|
285
292
|
zoom: Readonly<{
|
|
286
293
|
value: import("../types").NormalizedZoomValue;
|
|
287
294
|
}>;
|
|
288
|
-
openMenu: "canvas" |
|
|
289
|
-
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
295
|
+
openMenu: "canvas" | null;
|
|
296
|
+
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
|
|
290
297
|
openSidebar: {
|
|
291
298
|
name: string;
|
|
292
299
|
tab?: string | undefined;
|
|
@@ -367,8 +374,7 @@ export declare const actionDeleteSelected: {
|
|
|
367
374
|
shown: true;
|
|
368
375
|
data: import("../charts").Spreadsheet;
|
|
369
376
|
};
|
|
370
|
-
showHyperlinkPopup: false | "
|
|
371
|
-
selectedLinearElement: LinearElementEditor | null;
|
|
377
|
+
showHyperlinkPopup: false | "info" | "editor";
|
|
372
378
|
snapLines: readonly import("../snapping").SnapLine[];
|
|
373
379
|
originSnapOffset: {
|
|
374
380
|
x: number;
|
|
@@ -431,7 +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;
|
|
434
|
-
|
|
440
|
+
preferredSelectionTool: {
|
|
441
|
+
type: "selection" | "lasso";
|
|
442
|
+
initialized: boolean;
|
|
443
|
+
};
|
|
435
444
|
penMode: boolean;
|
|
436
445
|
penDetected: boolean;
|
|
437
446
|
exportBackground: boolean;
|
|
@@ -464,8 +473,8 @@ export declare const actionDeleteSelected: {
|
|
|
464
473
|
zoom: Readonly<{
|
|
465
474
|
value: import("../types").NormalizedZoomValue;
|
|
466
475
|
}>;
|
|
467
|
-
openMenu: "canvas" |
|
|
468
|
-
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
476
|
+
openMenu: "canvas" | null;
|
|
477
|
+
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
|
|
469
478
|
openSidebar: {
|
|
470
479
|
name: string;
|
|
471
480
|
tab?: string | undefined;
|
|
@@ -539,7 +548,7 @@ export declare const actionDeleteSelected: {
|
|
|
539
548
|
shown: true;
|
|
540
549
|
data: import("../charts").Spreadsheet;
|
|
541
550
|
};
|
|
542
|
-
showHyperlinkPopup: false | "
|
|
551
|
+
showHyperlinkPopup: false | "info" | "editor";
|
|
543
552
|
snapLines: readonly import("../snapping").SnapLine[];
|
|
544
553
|
originSnapOffset: {
|
|
545
554
|
x: number;
|
|
@@ -562,7 +571,7 @@ export declare const actionDeleteSelected: {
|
|
|
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
|
};
|
|
@@ -70,12 +70,15 @@ export declare const actionLinkToElement: {
|
|
|
70
70
|
editingFrame: string | null;
|
|
71
71
|
elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
|
|
72
72
|
editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
73
|
-
editingLinearElement: import("@excalidraw/element").LinearElementEditor | null;
|
|
74
73
|
activeTool: {
|
|
75
74
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
76
75
|
locked: boolean;
|
|
77
76
|
fromSelection: boolean;
|
|
78
77
|
} & import("../types").ActiveTool;
|
|
78
|
+
preferredSelectionTool: {
|
|
79
|
+
type: "selection" | "lasso";
|
|
80
|
+
initialized: boolean;
|
|
81
|
+
};
|
|
79
82
|
penMode: boolean;
|
|
80
83
|
penDetected: boolean;
|
|
81
84
|
exportBackground: boolean;
|
|
@@ -108,8 +111,8 @@ export declare const actionLinkToElement: {
|
|
|
108
111
|
zoom: Readonly<{
|
|
109
112
|
value: import("../types").NormalizedZoomValue;
|
|
110
113
|
}>;
|
|
111
|
-
openMenu: "canvas" |
|
|
112
|
-
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
114
|
+
openMenu: "canvas" | null;
|
|
115
|
+
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
|
|
113
116
|
openSidebar: {
|
|
114
117
|
name: string;
|
|
115
118
|
tab?: string | undefined;
|
|
@@ -179,7 +182,7 @@ export declare const actionLinkToElement: {
|
|
|
179
182
|
shown: true;
|
|
180
183
|
data: import("../charts").Spreadsheet;
|
|
181
184
|
};
|
|
182
|
-
showHyperlinkPopup: false | "
|
|
185
|
+
showHyperlinkPopup: false | "info" | "editor";
|
|
183
186
|
selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
|
|
184
187
|
snapLines: readonly import("../snapping").SnapLine[];
|
|
185
188
|
originSnapOffset: {
|
|
@@ -52,12 +52,15 @@ export declare const actionToggleElementLock: {
|
|
|
52
52
|
editingFrame: string | null;
|
|
53
53
|
elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
|
|
54
54
|
editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
55
|
-
editingLinearElement: import("@excalidraw/element").LinearElementEditor | null;
|
|
56
55
|
activeTool: {
|
|
57
56
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
58
57
|
locked: boolean;
|
|
59
58
|
fromSelection: boolean;
|
|
60
59
|
} & import("../types").ActiveTool;
|
|
60
|
+
preferredSelectionTool: {
|
|
61
|
+
type: "selection" | "lasso";
|
|
62
|
+
initialized: boolean;
|
|
63
|
+
};
|
|
61
64
|
penMode: boolean;
|
|
62
65
|
penDetected: boolean;
|
|
63
66
|
exportBackground: boolean;
|
|
@@ -90,8 +93,8 @@ export declare const actionToggleElementLock: {
|
|
|
90
93
|
zoom: Readonly<{
|
|
91
94
|
value: import("../types").NormalizedZoomValue;
|
|
92
95
|
}>;
|
|
93
|
-
openMenu: "canvas" |
|
|
94
|
-
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
96
|
+
openMenu: "canvas" | null;
|
|
97
|
+
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
|
|
95
98
|
openSidebar: {
|
|
96
99
|
name: string;
|
|
97
100
|
tab?: string | undefined;
|
|
@@ -166,7 +169,7 @@ export declare const actionToggleElementLock: {
|
|
|
166
169
|
shown: true;
|
|
167
170
|
data: import("../charts").Spreadsheet;
|
|
168
171
|
};
|
|
169
|
-
showHyperlinkPopup: false | "
|
|
172
|
+
showHyperlinkPopup: false | "info" | "editor";
|
|
170
173
|
snapLines: readonly import("../snapping").SnapLine[];
|
|
171
174
|
originSnapOffset: {
|
|
172
175
|
x: number;
|
|
@@ -236,12 +239,15 @@ export declare const actionUnlockAllElements: {
|
|
|
236
239
|
editingFrame: string | null;
|
|
237
240
|
elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
|
|
238
241
|
editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
239
|
-
editingLinearElement: import("@excalidraw/element").LinearElementEditor | null;
|
|
240
242
|
activeTool: {
|
|
241
243
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
242
244
|
locked: boolean;
|
|
243
245
|
fromSelection: boolean;
|
|
244
246
|
} & import("../types").ActiveTool;
|
|
247
|
+
preferredSelectionTool: {
|
|
248
|
+
type: "selection" | "lasso";
|
|
249
|
+
initialized: boolean;
|
|
250
|
+
};
|
|
245
251
|
penMode: boolean;
|
|
246
252
|
penDetected: boolean;
|
|
247
253
|
exportBackground: boolean;
|
|
@@ -274,8 +280,8 @@ export declare const actionUnlockAllElements: {
|
|
|
274
280
|
zoom: Readonly<{
|
|
275
281
|
value: import("../types").NormalizedZoomValue;
|
|
276
282
|
}>;
|
|
277
|
-
openMenu: "canvas" |
|
|
278
|
-
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
283
|
+
openMenu: "canvas" | null;
|
|
284
|
+
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
|
|
279
285
|
openSidebar: {
|
|
280
286
|
name: string;
|
|
281
287
|
tab?: string | undefined;
|
|
@@ -350,7 +356,7 @@ export declare const actionUnlockAllElements: {
|
|
|
350
356
|
shown: true;
|
|
351
357
|
data: import("../charts").Spreadsheet;
|
|
352
358
|
};
|
|
353
|
-
showHyperlinkPopup: false | "
|
|
359
|
+
showHyperlinkPopup: false | "info" | "editor";
|
|
354
360
|
selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
|
|
355
361
|
snapLines: readonly import("../snapping").SnapLine[];
|
|
356
362
|
originSnapOffset: {
|
|
@@ -43,7 +43,10 @@ export declare const actionSetEmbeddableAsActiveTool: {
|
|
|
43
43
|
editingFrame: string | null;
|
|
44
44
|
elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
|
|
45
45
|
editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
46
|
-
|
|
46
|
+
preferredSelectionTool: {
|
|
47
|
+
type: "selection" | "lasso";
|
|
48
|
+
initialized: boolean;
|
|
49
|
+
};
|
|
47
50
|
penMode: boolean;
|
|
48
51
|
penDetected: boolean;
|
|
49
52
|
exportBackground: boolean;
|
|
@@ -76,8 +79,8 @@ export declare const actionSetEmbeddableAsActiveTool: {
|
|
|
76
79
|
zoom: Readonly<{
|
|
77
80
|
value: import("../types").NormalizedZoomValue;
|
|
78
81
|
}>;
|
|
79
|
-
openMenu: "canvas" |
|
|
80
|
-
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
82
|
+
openMenu: "canvas" | null;
|
|
83
|
+
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
|
|
81
84
|
openSidebar: {
|
|
82
85
|
name: string;
|
|
83
86
|
tab?: string | undefined;
|
|
@@ -158,7 +161,7 @@ export declare const actionSetEmbeddableAsActiveTool: {
|
|
|
158
161
|
shown: true;
|
|
159
162
|
data: import("../charts").Spreadsheet;
|
|
160
163
|
};
|
|
161
|
-
showHyperlinkPopup: false | "
|
|
164
|
+
showHyperlinkPopup: false | "info" | "editor";
|
|
162
165
|
selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
|
|
163
166
|
snapLines: readonly import("../snapping").SnapLine[];
|
|
164
167
|
originSnapOffset: {
|