@excalidraw/common 0.18.0-4e471c107 → 0.18.0-5fffc47

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.
Files changed (82) hide show
  1. package/dist/dev/index.js +91 -25
  2. package/dist/dev/index.js.map +2 -2
  3. package/dist/prod/index.js +3 -3
  4. package/dist/types/common/src/constants.d.ts +24 -4
  5. package/dist/types/common/src/utils.d.ts +3 -0
  6. package/dist/types/element/src/Scene.d.ts +6 -2
  7. package/dist/types/element/src/align.d.ts +2 -1
  8. package/dist/types/element/src/bounds.d.ts +1 -1
  9. package/dist/types/element/src/delta.d.ts +16 -4
  10. package/dist/types/element/src/distribute.d.ts +2 -1
  11. package/dist/types/element/src/groups.d.ts +1 -0
  12. package/dist/types/element/src/index.d.ts +1 -0
  13. package/dist/types/element/src/linearElementEditor.d.ts +2 -1
  14. package/dist/types/element/src/positionElementsOnGrid.d.ts +2 -0
  15. package/dist/types/element/src/renderElement.d.ts +4 -1
  16. package/dist/types/element/src/store.d.ts +6 -1
  17. package/dist/types/element/src/textElement.d.ts +1 -1
  18. package/dist/types/excalidraw/actions/actionAddToLibrary.d.ts +21 -9
  19. package/dist/types/excalidraw/actions/actionBoundText.d.ts +14 -6
  20. package/dist/types/excalidraw/actions/actionCanvas.d.ts +94 -41
  21. package/dist/types/excalidraw/actions/actionClipboard.d.ts +45 -20
  22. package/dist/types/excalidraw/actions/actionCropEditor.d.ts +7 -3
  23. package/dist/types/excalidraw/actions/actionDeleteSelected.d.ts +24 -12
  24. package/dist/types/excalidraw/actions/actionElementLink.d.ts +7 -3
  25. package/dist/types/excalidraw/actions/actionElementLock.d.ts +14 -6
  26. package/dist/types/excalidraw/actions/actionEmbeddable.d.ts +7 -3
  27. package/dist/types/excalidraw/actions/actionExport.d.ts +63 -27
  28. package/dist/types/excalidraw/actions/actionFinalize.d.ts +16 -7
  29. package/dist/types/excalidraw/actions/actionFrame.d.ts +28 -12
  30. package/dist/types/excalidraw/actions/actionGroup.d.ts +14 -6
  31. package/dist/types/excalidraw/actions/actionLinearEditor.d.ts +41 -6
  32. package/dist/types/excalidraw/actions/actionLink.d.ts +6 -2
  33. package/dist/types/excalidraw/actions/actionMenu.d.ts +7 -371
  34. package/dist/types/excalidraw/actions/actionNavigate.d.ts +14 -6
  35. package/dist/types/excalidraw/actions/actionProperties.d.ts +122 -53
  36. package/dist/types/excalidraw/actions/actionSelectAll.d.ts +7 -3
  37. package/dist/types/excalidraw/actions/actionStyles.d.ts +7 -3
  38. package/dist/types/excalidraw/actions/actionToggleGridMode.d.ts +7 -3
  39. package/dist/types/excalidraw/actions/actionToggleObjectsSnapMode.d.ts +7 -3
  40. package/dist/types/excalidraw/actions/actionToggleSearchMenu.d.ts +7 -3
  41. package/dist/types/excalidraw/actions/actionToggleStats.d.ts +7 -3
  42. package/dist/types/excalidraw/actions/actionToggleViewMode.d.ts +7 -3
  43. package/dist/types/excalidraw/actions/actionToggleZenMode.d.ts +7 -3
  44. package/dist/types/excalidraw/actions/index.d.ts +2 -2
  45. package/dist/types/excalidraw/actions/types.d.ts +1 -1
  46. package/dist/types/excalidraw/appState.d.ts +5 -1
  47. package/dist/types/excalidraw/clipboard.d.ts +64 -1
  48. package/dist/types/excalidraw/components/Actions.d.ts +17 -7
  49. package/dist/types/excalidraw/components/App.d.ts +10 -8
  50. package/dist/types/excalidraw/components/ColorPicker/ColorPicker.d.ts +1 -0
  51. package/dist/types/excalidraw/components/ColorPicker/Picker.d.ts +2 -0
  52. package/dist/types/excalidraw/components/ColorPicker/PickerColorList.d.ts +2 -1
  53. package/dist/types/excalidraw/components/ColorPicker/ShadeList.d.ts +2 -1
  54. package/dist/types/excalidraw/components/CommandPalette/CommandPalette.d.ts +1 -0
  55. package/dist/types/excalidraw/components/Ellipsify.d.ts +4 -0
  56. package/dist/types/excalidraw/components/ExcalidrawLogo.d.ts +1 -1
  57. package/dist/types/excalidraw/components/FontPicker/FontPicker.d.ts +2 -1
  58. package/dist/types/excalidraw/components/FontPicker/FontPickerTrigger.d.ts +3 -1
  59. package/dist/types/excalidraw/components/InlineIcon.d.ts +3 -1
  60. package/dist/types/excalidraw/components/LayerUI.d.ts +2 -1
  61. package/dist/types/excalidraw/components/LibraryMenuSection.d.ts +1 -1
  62. package/dist/types/excalidraw/components/MobileMenu.d.ts +3 -5
  63. package/dist/types/excalidraw/components/MobileToolBar.d.ts +11 -0
  64. package/dist/types/excalidraw/components/PropertiesPopover.d.ts +1 -0
  65. package/dist/types/excalidraw/components/TTDDialog/TTDDialogTrigger.d.ts +1 -2
  66. package/dist/types/excalidraw/components/TextField.d.ts +1 -0
  67. package/dist/types/excalidraw/components/ToolPopover.d.ts +25 -0
  68. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenu.d.ts +4 -2
  69. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuContent.d.ts +2 -1
  70. package/dist/types/excalidraw/components/icons.d.ts +5 -0
  71. package/dist/types/excalidraw/components/shapes.d.ts +129 -1
  72. package/dist/types/excalidraw/data/blob.d.ts +3 -7
  73. package/dist/types/excalidraw/data/reconcile.d.ts +1 -0
  74. package/dist/types/excalidraw/data/restore.d.ts +6 -1
  75. package/dist/types/excalidraw/data/types.d.ts +4 -1
  76. package/dist/types/excalidraw/hooks/useLibraryItemSvg.d.ts +1 -1
  77. package/dist/types/excalidraw/hooks/useTextEditorFocus.d.ts +14 -0
  78. package/dist/types/excalidraw/index.d.ts +2 -1
  79. package/dist/types/excalidraw/renderer/staticScene.d.ts +4 -1
  80. package/dist/types/excalidraw/types.d.ts +16 -6
  81. package/dist/types/math/src/segment.d.ts +1 -0
  82. package/package.json +1 -1
@@ -38,12 +38,15 @@ export declare const actionCopy: {
38
38
  editingFrame: string | null;
39
39
  elementsToHighlight: import("../../element/src/types").NonDeleted<import("../../element/src/types").ExcalidrawElement>[] | null;
40
40
  editingTextElement: import("../../element/src/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" | "shape" | null;
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;
@@ -178,6 +181,7 @@ export declare const actionCopy: {
178
181
  lockedMultiSelections: {
179
182
  [groupId: string]: true;
180
183
  };
184
+ stylesPanelMode: "compact" | "full" | "mobile";
181
185
  };
182
186
  } | {
183
187
  captureUpdate: "EVENTUALLY";
@@ -225,12 +229,15 @@ export declare const actionPaste: {
225
229
  editingFrame: string | null;
226
230
  elementsToHighlight: import("../../element/src/types").NonDeleted<import("../../element/src/types").ExcalidrawElement>[] | null;
227
231
  editingTextElement: import("../../element/src/types").NonDeletedExcalidrawElement | null;
228
- editingLinearElement: import("@excalidraw/element").LinearElementEditor | null;
229
232
  activeTool: {
230
233
  lastActiveTool: import("../types").ActiveTool | null;
231
234
  locked: boolean;
232
235
  fromSelection: boolean;
233
236
  } & import("../types").ActiveTool;
237
+ preferredSelectionTool: {
238
+ type: "selection" | "lasso";
239
+ initialized: boolean;
240
+ };
234
241
  penMode: boolean;
235
242
  penDetected: boolean;
236
243
  exportBackground: boolean;
@@ -263,8 +270,8 @@ export declare const actionPaste: {
263
270
  zoom: Readonly<{
264
271
  value: import("../types").NormalizedZoomValue;
265
272
  }>;
266
- openMenu: "canvas" | "shape" | null;
267
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
273
+ openMenu: "canvas" | null;
274
+ openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
268
275
  openSidebar: {
269
276
  name: string;
270
277
  tab?: string | undefined;
@@ -365,6 +372,7 @@ export declare const actionPaste: {
365
372
  lockedMultiSelections: {
366
373
  [groupId: string]: true;
367
374
  };
375
+ stylesPanelMode: "compact" | "full" | "mobile";
368
376
  };
369
377
  } | {
370
378
  captureUpdate: "EVENTUALLY";
@@ -384,7 +392,7 @@ export declare const actionCut: {
384
392
  perform: (elements: readonly import("../../element/src/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, event: ClipboardEvent | null, app: import("../types").AppClassProperties) => false | {
385
393
  elements: import("../../element/src/types").OrderedExcalidrawElement[];
386
394
  appState: {
387
- editingLinearElement: null;
395
+ selectedLinearElement: null;
388
396
  contextMenu: {
389
397
  items: import("../components/ContextMenu").ContextMenuItems;
390
398
  top: number;
@@ -419,6 +427,10 @@ export declare const actionCut: {
419
427
  locked: boolean;
420
428
  fromSelection: boolean;
421
429
  } & import("../types").ActiveTool;
430
+ preferredSelectionTool: {
431
+ type: "selection" | "lasso";
432
+ initialized: boolean;
433
+ };
422
434
  penMode: boolean;
423
435
  penDetected: boolean;
424
436
  exportBackground: boolean;
@@ -451,8 +463,8 @@ export declare const actionCut: {
451
463
  zoom: Readonly<{
452
464
  value: import("../types").NormalizedZoomValue;
453
465
  }>;
454
- openMenu: "canvas" | "shape" | null;
455
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
466
+ openMenu: "canvas" | null;
467
+ openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
456
468
  openSidebar: {
457
469
  name: string;
458
470
  tab?: string | undefined;
@@ -534,7 +546,6 @@ export declare const actionCut: {
534
546
  data: import("../charts").Spreadsheet;
535
547
  };
536
548
  showHyperlinkPopup: false | "editor" | "info";
537
- selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
538
549
  snapLines: readonly import("../snapping").SnapLine[];
539
550
  originSnapOffset: {
540
551
  x: number;
@@ -553,12 +564,13 @@ export declare const actionCut: {
553
564
  lockedMultiSelections: {
554
565
  [groupId: string]: true;
555
566
  };
567
+ stylesPanelMode: "compact" | "full" | "mobile";
556
568
  };
557
569
  captureUpdate: "IMMEDIATELY";
558
570
  } | {
559
571
  elements: readonly import("../../element/src/types").OrderedExcalidrawElement[];
560
572
  appState: {
561
- editingLinearElement: {
573
+ selectedLinearElement: {
562
574
  selectedPointsIndices: number[];
563
575
  startBindingElement: import("../../element/src/types").ExcalidrawBindableElement | "keep" | null;
564
576
  endBindingElement: import("../../element/src/types").ExcalidrawBindableElement | "keep" | null;
@@ -589,6 +601,7 @@ export declare const actionCut: {
589
601
  segmentMidPointHoveredCoords: import("../../math/src").GlobalPoint | null;
590
602
  elbowed: boolean;
591
603
  customLineAngle: number | null;
604
+ isEditing: boolean;
592
605
  };
593
606
  contextMenu: {
594
607
  items: import("../components/ContextMenu").ContextMenuItems;
@@ -624,6 +637,10 @@ export declare const actionCut: {
624
637
  locked: boolean;
625
638
  fromSelection: boolean;
626
639
  } & import("../types").ActiveTool;
640
+ preferredSelectionTool: {
641
+ type: "selection" | "lasso";
642
+ initialized: boolean;
643
+ };
627
644
  penMode: boolean;
628
645
  penDetected: boolean;
629
646
  exportBackground: boolean;
@@ -656,8 +673,8 @@ export declare const actionCut: {
656
673
  zoom: Readonly<{
657
674
  value: import("../types").NormalizedZoomValue;
658
675
  }>;
659
- openMenu: "canvas" | "shape" | null;
660
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
676
+ openMenu: "canvas" | null;
677
+ openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
661
678
  openSidebar: {
662
679
  name: string;
663
680
  tab?: string | undefined;
@@ -739,7 +756,6 @@ export declare const actionCut: {
739
756
  data: import("../charts").Spreadsheet;
740
757
  };
741
758
  showHyperlinkPopup: false | "editor" | "info";
742
- selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
743
759
  snapLines: readonly import("../snapping").SnapLine[];
744
760
  originSnapOffset: {
745
761
  x: number;
@@ -758,6 +774,7 @@ export declare const actionCut: {
758
774
  lockedMultiSelections: {
759
775
  [groupId: string]: true;
760
776
  };
777
+ stylesPanelMode: "compact" | "full" | "mobile";
761
778
  };
762
779
  captureUpdate: "IMMEDIATELY";
763
780
  } | {
@@ -802,7 +819,10 @@ export declare const actionCut: {
802
819
  editingFrame: string | null;
803
820
  elementsToHighlight: import("../../element/src/types").NonDeleted<import("../../element/src/types").ExcalidrawElement>[] | null;
804
821
  editingTextElement: import("../../element/src/types").NonDeletedExcalidrawElement | null;
805
- editingLinearElement: import("@excalidraw/element").LinearElementEditor | null;
822
+ preferredSelectionTool: {
823
+ type: "selection" | "lasso";
824
+ initialized: boolean;
825
+ };
806
826
  penMode: boolean;
807
827
  penDetected: boolean;
808
828
  exportBackground: boolean;
@@ -835,8 +855,8 @@ export declare const actionCut: {
835
855
  zoom: Readonly<{
836
856
  value: import("../types").NormalizedZoomValue;
837
857
  }>;
838
- openMenu: "canvas" | "shape" | null;
839
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
858
+ openMenu: "canvas" | null;
859
+ openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
840
860
  openSidebar: {
841
861
  name: string;
842
862
  tab?: string | undefined;
@@ -929,6 +949,7 @@ export declare const actionCut: {
929
949
  lockedMultiSelections: {
930
950
  [groupId: string]: true;
931
951
  };
952
+ stylesPanelMode: "compact" | "full" | "mobile";
932
953
  };
933
954
  captureUpdate: "IMMEDIATELY" | "EVENTUALLY";
934
955
  };
@@ -1007,12 +1028,15 @@ export declare const actionCopyAsPng: {
1007
1028
  editingFrame: string | null;
1008
1029
  elementsToHighlight: import("../../element/src/types").NonDeleted<import("../../element/src/types").ExcalidrawElement>[] | null;
1009
1030
  editingTextElement: import("../../element/src/types").NonDeletedExcalidrawElement | null;
1010
- editingLinearElement: import("@excalidraw/element").LinearElementEditor | null;
1011
1031
  activeTool: {
1012
1032
  lastActiveTool: import("../types").ActiveTool | null;
1013
1033
  locked: boolean;
1014
1034
  fromSelection: boolean;
1015
1035
  } & import("../types").ActiveTool;
1036
+ preferredSelectionTool: {
1037
+ type: "selection" | "lasso";
1038
+ initialized: boolean;
1039
+ };
1016
1040
  penMode: boolean;
1017
1041
  penDetected: boolean;
1018
1042
  exportBackground: boolean;
@@ -1045,8 +1069,8 @@ export declare const actionCopyAsPng: {
1045
1069
  zoom: Readonly<{
1046
1070
  value: import("../types").NormalizedZoomValue;
1047
1071
  }>;
1048
- openMenu: "canvas" | "shape" | null;
1049
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
1072
+ openMenu: "canvas" | null;
1073
+ openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
1050
1074
  openSidebar: {
1051
1075
  name: string;
1052
1076
  tab?: string | undefined;
@@ -1147,6 +1171,7 @@ export declare const actionCopyAsPng: {
1147
1171
  lockedMultiSelections: {
1148
1172
  [groupId: string]: true;
1149
1173
  };
1174
+ stylesPanelMode: "compact" | "full" | "mobile";
1150
1175
  };
1151
1176
  captureUpdate: "EVENTUALLY";
1152
1177
  }>;
@@ -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" | "shape" | null;
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;
@@ -179,6 +182,7 @@ export declare const actionToggleCropEditor: {
179
182
  lockedMultiSelections: {
180
183
  [groupId: string]: true;
181
184
  };
185
+ stylesPanelMode: "compact" | "full" | "mobile";
182
186
  };
183
187
  captureUpdate: "IMMEDIATELY";
184
188
  };
@@ -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
- editingLinearElement: null;
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" | "shape" | null;
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;
@@ -163,7 +166,6 @@ export declare const actionDeleteSelected: {
163
166
  data: import("../charts").Spreadsheet;
164
167
  };
165
168
  showHyperlinkPopup: false | "editor" | "info";
166
- selectedLinearElement: LinearElementEditor | null;
167
169
  snapLines: readonly import("../snapping").SnapLine[];
168
170
  originSnapOffset: {
169
171
  x: number;
@@ -182,12 +184,13 @@ export declare const actionDeleteSelected: {
182
184
  lockedMultiSelections: {
183
185
  [groupId: string]: true;
184
186
  };
187
+ stylesPanelMode: "compact" | "full" | "mobile";
185
188
  };
186
189
  captureUpdate: "IMMEDIATELY";
187
190
  } | {
188
191
  elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[];
189
192
  appState: {
190
- editingLinearElement: {
193
+ selectedLinearElement: {
191
194
  selectedPointsIndices: number[];
192
195
  startBindingElement: import("@excalidraw/element/types").ExcalidrawBindableElement | "keep" | null;
193
196
  endBindingElement: import("@excalidraw/element/types").ExcalidrawBindableElement | "keep" | null;
@@ -218,6 +221,7 @@ export declare const actionDeleteSelected: {
218
221
  segmentMidPointHoveredCoords: import("../../math/src").GlobalPoint | null;
219
222
  elbowed: boolean;
220
223
  customLineAngle: number | null;
224
+ isEditing: boolean;
221
225
  };
222
226
  contextMenu: {
223
227
  items: import("../components/ContextMenu").ContextMenuItems;
@@ -253,6 +257,10 @@ export declare const actionDeleteSelected: {
253
257
  locked: boolean;
254
258
  fromSelection: boolean;
255
259
  } & import("../types").ActiveTool;
260
+ preferredSelectionTool: {
261
+ type: "selection" | "lasso";
262
+ initialized: boolean;
263
+ };
256
264
  penMode: boolean;
257
265
  penDetected: boolean;
258
266
  exportBackground: boolean;
@@ -285,8 +293,8 @@ export declare const actionDeleteSelected: {
285
293
  zoom: Readonly<{
286
294
  value: import("../types").NormalizedZoomValue;
287
295
  }>;
288
- openMenu: "canvas" | "shape" | null;
289
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
296
+ openMenu: "canvas" | null;
297
+ openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
290
298
  openSidebar: {
291
299
  name: string;
292
300
  tab?: string | undefined;
@@ -368,7 +376,6 @@ export declare const actionDeleteSelected: {
368
376
  data: import("../charts").Spreadsheet;
369
377
  };
370
378
  showHyperlinkPopup: false | "editor" | "info";
371
- selectedLinearElement: LinearElementEditor | null;
372
379
  snapLines: readonly import("../snapping").SnapLine[];
373
380
  originSnapOffset: {
374
381
  x: number;
@@ -387,6 +394,7 @@ export declare const actionDeleteSelected: {
387
394
  lockedMultiSelections: {
388
395
  [groupId: string]: true;
389
396
  };
397
+ stylesPanelMode: "compact" | "full" | "mobile";
390
398
  };
391
399
  captureUpdate: "IMMEDIATELY";
392
400
  } | {
@@ -431,7 +439,10 @@ export declare const actionDeleteSelected: {
431
439
  editingFrame: string | null;
432
440
  elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
433
441
  editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
434
- editingLinearElement: LinearElementEditor | null;
442
+ preferredSelectionTool: {
443
+ type: "selection" | "lasso";
444
+ initialized: boolean;
445
+ };
435
446
  penMode: boolean;
436
447
  penDetected: boolean;
437
448
  exportBackground: boolean;
@@ -464,8 +475,8 @@ export declare const actionDeleteSelected: {
464
475
  zoom: Readonly<{
465
476
  value: import("../types").NormalizedZoomValue;
466
477
  }>;
467
- openMenu: "canvas" | "shape" | null;
468
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
478
+ openMenu: "canvas" | null;
479
+ openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
469
480
  openSidebar: {
470
481
  name: string;
471
482
  tab?: string | undefined;
@@ -558,6 +569,7 @@ export declare const actionDeleteSelected: {
558
569
  lockedMultiSelections: {
559
570
  [groupId: string]: true;
560
571
  };
572
+ stylesPanelMode: "compact" | "full" | "mobile";
561
573
  };
562
574
  captureUpdate: "IMMEDIATELY" | "EVENTUALLY";
563
575
  };
@@ -70,12 +70,15 @@ export declare const actionLinkToElement: {
70
70
  editingFrame: string | null;
71
71
  elementsToHighlight: import("../../element/src/types").NonDeleted<import("../../element/src/types").ExcalidrawElement>[] | null;
72
72
  editingTextElement: import("../../element/src/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" | "shape" | null;
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;
@@ -199,6 +202,7 @@ export declare const actionLinkToElement: {
199
202
  lockedMultiSelections: {
200
203
  [groupId: string]: true;
201
204
  };
205
+ stylesPanelMode: "compact" | "full" | "mobile";
202
206
  };
203
207
  captureUpdate: "IMMEDIATELY";
204
208
  elements?: undefined;
@@ -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" | "shape" | null;
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;
@@ -181,6 +184,7 @@ export declare const actionToggleElementLock: {
181
184
  focusedId: string | null;
182
185
  matches: readonly import("../types").SearchMatch[];
183
186
  }> | null;
187
+ stylesPanelMode: "compact" | "full" | "mobile";
184
188
  };
185
189
  captureUpdate: "IMMEDIATELY";
186
190
  };
@@ -236,12 +240,15 @@ export declare const actionUnlockAllElements: {
236
240
  editingFrame: string | null;
237
241
  elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
238
242
  editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
239
- editingLinearElement: import("@excalidraw/element").LinearElementEditor | null;
240
243
  activeTool: {
241
244
  lastActiveTool: import("../types").ActiveTool | null;
242
245
  locked: boolean;
243
246
  fromSelection: boolean;
244
247
  } & import("../types").ActiveTool;
248
+ preferredSelectionTool: {
249
+ type: "selection" | "lasso";
250
+ initialized: boolean;
251
+ };
245
252
  penMode: boolean;
246
253
  penDetected: boolean;
247
254
  exportBackground: boolean;
@@ -274,8 +281,8 @@ export declare const actionUnlockAllElements: {
274
281
  zoom: Readonly<{
275
282
  value: import("../types").NormalizedZoomValue;
276
283
  }>;
277
- openMenu: "canvas" | "shape" | null;
278
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
284
+ openMenu: "canvas" | null;
285
+ openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
279
286
  openSidebar: {
280
287
  name: string;
281
288
  tab?: string | undefined;
@@ -366,6 +373,7 @@ export declare const actionUnlockAllElements: {
366
373
  focusedId: string | null;
367
374
  matches: readonly import("../types").SearchMatch[];
368
375
  }> | null;
376
+ stylesPanelMode: "compact" | "full" | "mobile";
369
377
  };
370
378
  captureUpdate: "IMMEDIATELY";
371
379
  };
@@ -43,7 +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
- editingLinearElement: import("@excalidraw/element").LinearElementEditor | null;
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" | "shape" | null;
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;
@@ -178,6 +181,7 @@ export declare const actionSetEmbeddableAsActiveTool: {
178
181
  lockedMultiSelections: {
179
182
  [groupId: string]: true;
180
183
  };
184
+ stylesPanelMode: "compact" | "full" | "mobile";
181
185
  };
182
186
  captureUpdate: "EVENTUALLY";
183
187
  };