@excalidraw/element 0.18.0-c65b684e9 → 0.18.0-d1f3982

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 (88) hide show
  1. package/dist/dev/index.js +936 -611
  2. package/dist/dev/index.js.map +4 -4
  3. package/dist/prod/index.js +14 -14
  4. package/dist/types/common/src/constants.d.ts +18 -15
  5. package/dist/types/common/src/editorInterface.d.ts +34 -0
  6. package/dist/types/common/src/index.d.ts +1 -0
  7. package/dist/types/common/src/utils.d.ts +2 -1
  8. package/dist/types/element/src/Scene.d.ts +6 -2
  9. package/dist/types/element/src/bounds.d.ts +1 -1
  10. package/dist/types/element/src/delta.d.ts +6 -4
  11. package/dist/types/element/src/index.d.ts +1 -0
  12. package/dist/types/element/src/positionElementsOnGrid.d.ts +2 -0
  13. package/dist/types/element/src/renderElement.d.ts +4 -1
  14. package/dist/types/element/src/resizeTest.d.ts +5 -4
  15. package/dist/types/element/src/store.d.ts +6 -1
  16. package/dist/types/element/src/textElement.d.ts +1 -1
  17. package/dist/types/element/src/transformHandles.d.ts +5 -4
  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 -54
  21. package/dist/types/excalidraw/actions/actionClipboard.d.ts +42 -18
  22. package/dist/types/excalidraw/actions/actionCropEditor.d.ts +7 -3
  23. package/dist/types/excalidraw/actions/actionDeleteSelected.d.ts +22 -10
  24. package/dist/types/excalidraw/actions/actionDuplicateSelection.d.ts +1 -1
  25. package/dist/types/excalidraw/actions/actionElementLink.d.ts +7 -3
  26. package/dist/types/excalidraw/actions/actionElementLock.d.ts +14 -6
  27. package/dist/types/excalidraw/actions/actionEmbeddable.d.ts +7 -3
  28. package/dist/types/excalidraw/actions/actionExport.d.ts +63 -27
  29. package/dist/types/excalidraw/actions/actionFinalize.d.ts +14 -6
  30. package/dist/types/excalidraw/actions/actionFrame.d.ts +28 -12
  31. package/dist/types/excalidraw/actions/actionGroup.d.ts +14 -6
  32. package/dist/types/excalidraw/actions/actionLinearEditor.d.ts +8 -4
  33. package/dist/types/excalidraw/actions/actionLink.d.ts +5 -1
  34. package/dist/types/excalidraw/actions/actionMenu.d.ts +7 -369
  35. package/dist/types/excalidraw/actions/actionNavigate.d.ts +14 -6
  36. package/dist/types/excalidraw/actions/actionProperties.d.ts +122 -53
  37. package/dist/types/excalidraw/actions/actionSelectAll.d.ts +7 -3
  38. package/dist/types/excalidraw/actions/actionStyles.d.ts +7 -3
  39. package/dist/types/excalidraw/actions/actionToggleGridMode.d.ts +7 -3
  40. package/dist/types/excalidraw/actions/actionToggleObjectsSnapMode.d.ts +7 -3
  41. package/dist/types/excalidraw/actions/actionToggleSearchMenu.d.ts +7 -3
  42. package/dist/types/excalidraw/actions/actionToggleStats.d.ts +7 -3
  43. package/dist/types/excalidraw/actions/actionToggleViewMode.d.ts +7 -3
  44. package/dist/types/excalidraw/actions/actionToggleZenMode.d.ts +7 -3
  45. package/dist/types/excalidraw/actions/index.d.ts +2 -2
  46. package/dist/types/excalidraw/actions/types.d.ts +1 -1
  47. package/dist/types/excalidraw/appState.d.ts +5 -1
  48. package/dist/types/excalidraw/clipboard.d.ts +64 -1
  49. package/dist/types/excalidraw/components/Actions.d.ts +17 -3
  50. package/dist/types/excalidraw/components/App.d.ts +28 -23
  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/ExcalidrawLogo.d.ts +1 -1
  56. package/dist/types/excalidraw/components/FontPicker/FontPicker.d.ts +2 -1
  57. package/dist/types/excalidraw/components/FontPicker/FontPickerTrigger.d.ts +3 -1
  58. package/dist/types/excalidraw/components/HintViewer.d.ts +4 -3
  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/Popover.d.ts +2 -1
  65. package/dist/types/excalidraw/components/PropertiesPopover.d.ts +1 -0
  66. package/dist/types/excalidraw/components/TTDDialog/TTDDialogTrigger.d.ts +1 -2
  67. package/dist/types/excalidraw/components/TextField.d.ts +1 -0
  68. package/dist/types/excalidraw/components/ToolPopover.d.ts +25 -0
  69. package/dist/types/excalidraw/components/canvases/InteractiveCanvas.d.ts +3 -2
  70. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenu.d.ts +4 -2
  71. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuContent.d.ts +2 -1
  72. package/dist/types/excalidraw/components/icons.d.ts +5 -0
  73. package/dist/types/excalidraw/components/live-collaboration/LiveCollaborationTrigger.d.ts +13 -1
  74. package/dist/types/excalidraw/components/main-menu/MainMenu.d.ts +0 -3
  75. package/dist/types/excalidraw/components/shapes.d.ts +129 -1
  76. package/dist/types/excalidraw/data/blob.d.ts +3 -7
  77. package/dist/types/excalidraw/data/reconcile.d.ts +1 -0
  78. package/dist/types/excalidraw/data/restore.d.ts +6 -1
  79. package/dist/types/excalidraw/data/types.d.ts +4 -1
  80. package/dist/types/excalidraw/hooks/useLibraryItemSvg.d.ts +1 -1
  81. package/dist/types/excalidraw/hooks/useTextEditorFocus.d.ts +14 -0
  82. package/dist/types/excalidraw/index.d.ts +3 -4
  83. package/dist/types/excalidraw/renderer/interactiveScene.d.ts +1 -1
  84. package/dist/types/excalidraw/scene/types.d.ts +3 -3
  85. package/dist/types/excalidraw/shortcut.d.ts +1 -0
  86. package/dist/types/excalidraw/types.d.ts +23 -17
  87. package/dist/types/math/src/segment.d.ts +1 -0
  88. package/package.json +3 -3
@@ -45,6 +45,10 @@ export declare const actionSelectAllElementsInFrame: {
45
45
  locked: boolean;
46
46
  fromSelection: boolean;
47
47
  } & import("../types").ActiveTool;
48
+ preferredSelectionTool: {
49
+ type: "selection" | "lasso";
50
+ initialized: boolean;
51
+ };
48
52
  penMode: boolean;
49
53
  penDetected: boolean;
50
54
  exportBackground: boolean;
@@ -77,8 +81,8 @@ export declare const actionSelectAllElementsInFrame: {
77
81
  zoom: Readonly<{
78
82
  value: import("../types").NormalizedZoomValue;
79
83
  }>;
80
- openMenu: "canvas" | "shape" | null;
81
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
84
+ openMenu: "canvas" | null;
85
+ openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
82
86
  openSidebar: {
83
87
  name: string;
84
88
  tab?: string | undefined;
@@ -156,7 +160,7 @@ export declare const actionSelectAllElementsInFrame: {
156
160
  shown: true;
157
161
  data: import("../charts").Spreadsheet;
158
162
  };
159
- showHyperlinkPopup: false | "editor" | "info";
163
+ showHyperlinkPopup: false | "info" | "editor";
160
164
  selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
161
165
  snapLines: readonly import("../snapping").SnapLine[];
162
166
  originSnapOffset: {
@@ -233,6 +237,10 @@ export declare const actionRemoveAllElementsFromFrame: {
233
237
  locked: boolean;
234
238
  fromSelection: boolean;
235
239
  } & import("../types").ActiveTool;
240
+ preferredSelectionTool: {
241
+ type: "selection" | "lasso";
242
+ initialized: boolean;
243
+ };
236
244
  penMode: boolean;
237
245
  penDetected: boolean;
238
246
  exportBackground: boolean;
@@ -265,8 +273,8 @@ export declare const actionRemoveAllElementsFromFrame: {
265
273
  zoom: Readonly<{
266
274
  value: import("../types").NormalizedZoomValue;
267
275
  }>;
268
- openMenu: "canvas" | "shape" | null;
269
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
276
+ openMenu: "canvas" | null;
277
+ openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
270
278
  openSidebar: {
271
279
  name: string;
272
280
  tab?: string | undefined;
@@ -344,7 +352,7 @@ export declare const actionRemoveAllElementsFromFrame: {
344
352
  shown: true;
345
353
  data: import("../charts").Spreadsheet;
346
354
  };
347
- showHyperlinkPopup: false | "editor" | "info";
355
+ showHyperlinkPopup: false | "info" | "editor";
348
356
  selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
349
357
  snapLines: readonly import("../snapping").SnapLine[];
350
358
  originSnapOffset: {
@@ -419,6 +427,10 @@ export declare const actionupdateFrameRendering: {
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 actionupdateFrameRendering: {
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;
@@ -533,7 +545,7 @@ export declare const actionupdateFrameRendering: {
533
545
  shown: true;
534
546
  data: import("../charts").Spreadsheet;
535
547
  };
536
- showHyperlinkPopup: false | "editor" | "info";
548
+ showHyperlinkPopup: false | "info" | "editor";
537
549
  selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
538
550
  snapLines: readonly import("../snapping").SnapLine[];
539
551
  originSnapOffset: {
@@ -605,6 +617,10 @@ export declare const actionSetFrameAsActiveTool: {
605
617
  editingFrame: string | null;
606
618
  elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
607
619
  editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
620
+ preferredSelectionTool: {
621
+ type: "selection" | "lasso";
622
+ initialized: boolean;
623
+ };
608
624
  penMode: boolean;
609
625
  penDetected: boolean;
610
626
  exportBackground: boolean;
@@ -637,8 +653,8 @@ export declare const actionSetFrameAsActiveTool: {
637
653
  zoom: Readonly<{
638
654
  value: import("../types").NormalizedZoomValue;
639
655
  }>;
640
- openMenu: "canvas" | "shape" | null;
641
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
656
+ openMenu: "canvas" | null;
657
+ openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
642
658
  openSidebar: {
643
659
  name: string;
644
660
  tab?: string | undefined;
@@ -719,7 +735,7 @@ export declare const actionSetFrameAsActiveTool: {
719
735
  shown: true;
720
736
  data: import("../charts").Spreadsheet;
721
737
  };
722
- showHyperlinkPopup: false | "editor" | "info";
738
+ showHyperlinkPopup: false | "info" | "editor";
723
739
  selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
724
740
  snapLines: readonly import("../snapping").SnapLine[];
725
741
  originSnapOffset: {
@@ -55,6 +55,10 @@ export declare const actionGroup: {
55
55
  locked: boolean;
56
56
  fromSelection: boolean;
57
57
  } & import("../types").ActiveTool;
58
+ preferredSelectionTool: {
59
+ type: "selection" | "lasso";
60
+ initialized: boolean;
61
+ };
58
62
  penMode: boolean;
59
63
  penDetected: boolean;
60
64
  exportBackground: boolean;
@@ -87,8 +91,8 @@ export declare const actionGroup: {
87
91
  zoom: Readonly<{
88
92
  value: import("../types").NormalizedZoomValue;
89
93
  }>;
90
- openMenu: "canvas" | "shape" | null;
91
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
94
+ openMenu: "canvas" | null;
95
+ openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
92
96
  openSidebar: {
93
97
  name: string;
94
98
  tab?: string | undefined;
@@ -162,7 +166,7 @@ export declare const actionGroup: {
162
166
  shown: true;
163
167
  data: import("../charts").Spreadsheet;
164
168
  };
165
- showHyperlinkPopup: false | "editor" | "info";
169
+ showHyperlinkPopup: false | "info" | "editor";
166
170
  selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
167
171
  snapLines: readonly import("../snapping").SnapLine[];
168
172
  originSnapOffset: {
@@ -246,6 +250,10 @@ export declare const actionUngroup: {
246
250
  locked: boolean;
247
251
  fromSelection: boolean;
248
252
  } & import("../types").ActiveTool;
253
+ preferredSelectionTool: {
254
+ type: "selection" | "lasso";
255
+ initialized: boolean;
256
+ };
249
257
  penMode: boolean;
250
258
  penDetected: boolean;
251
259
  exportBackground: boolean;
@@ -278,8 +286,8 @@ export declare const actionUngroup: {
278
286
  zoom: Readonly<{
279
287
  value: import("../types").NormalizedZoomValue;
280
288
  }>;
281
- openMenu: "canvas" | "shape" | null;
282
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
289
+ openMenu: "canvas" | null;
290
+ openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
283
291
  openSidebar: {
284
292
  name: string;
285
293
  tab?: string | undefined;
@@ -353,7 +361,7 @@ export declare const actionUngroup: {
353
361
  shown: true;
354
362
  data: import("../charts").Spreadsheet;
355
363
  };
356
- showHyperlinkPopup: false | "editor" | "info";
364
+ showHyperlinkPopup: false | "info" | "editor";
357
365
  selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
358
366
  snapLines: readonly import("../snapping").SnapLine[];
359
367
  originSnapOffset: {
@@ -78,6 +78,10 @@ export declare const actionToggleLinearEditor: {
78
78
  locked: boolean;
79
79
  fromSelection: boolean;
80
80
  } & import("../types").ActiveTool;
81
+ preferredSelectionTool: {
82
+ type: "selection" | "lasso";
83
+ initialized: boolean;
84
+ };
81
85
  penMode: boolean;
82
86
  penDetected: boolean;
83
87
  exportBackground: boolean;
@@ -110,8 +114,8 @@ export declare const actionToggleLinearEditor: {
110
114
  zoom: Readonly<{
111
115
  value: import("../types").NormalizedZoomValue;
112
116
  }>;
113
- openMenu: "canvas" | "shape" | null;
114
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
117
+ openMenu: "canvas" | null;
118
+ openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
115
119
  openSidebar: {
116
120
  name: string;
117
121
  tab?: string | undefined;
@@ -192,7 +196,7 @@ export declare const actionToggleLinearEditor: {
192
196
  shown: true;
193
197
  data: import("../charts").Spreadsheet;
194
198
  };
195
- showHyperlinkPopup: false | "editor" | "info";
199
+ showHyperlinkPopup: false | "info" | "editor";
196
200
  snapLines: readonly import("../snapping").SnapLine[];
197
201
  originSnapOffset: {
198
202
  x: number;
@@ -214,7 +218,7 @@ export declare const actionToggleLinearEditor: {
214
218
  };
215
219
  captureUpdate: "IMMEDIATELY";
216
220
  };
217
- PanelComponent: ({ appState, updateData, app }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
221
+ PanelComponent: ({ appState, updateData, app }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element | null;
218
222
  } & {
219
223
  keyTest?: undefined;
220
224
  };
@@ -42,6 +42,10 @@ export declare const actionLink: {
42
42
  locked: boolean;
43
43
  fromSelection: boolean;
44
44
  } & import("../types").ActiveTool;
45
+ preferredSelectionTool: {
46
+ type: "selection" | "lasso";
47
+ initialized: boolean;
48
+ };
45
49
  penMode: boolean;
46
50
  penDetected: boolean;
47
51
  exportBackground: boolean;
@@ -74,7 +78,7 @@ export declare const actionLink: {
74
78
  zoom: Readonly<{
75
79
  value: import("../types").NormalizedZoomValue;
76
80
  }>;
77
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
81
+ openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
78
82
  openSidebar: {
79
83
  name: string;
80
84
  tab?: string | undefined;
@@ -1,370 +1,4 @@
1
1
  /// <reference types="react" />
2
- export declare const actionToggleCanvasMenu: {
3
- name: "toggleCanvasMenu";
4
- label: string;
5
- trackEvent: {
6
- category: "menu";
7
- };
8
- perform: (_: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>) => {
9
- appState: {
10
- openMenu: "canvas" | null;
11
- contextMenu: {
12
- items: import("../components/ContextMenu").ContextMenuItems;
13
- top: number;
14
- left: number;
15
- } | null;
16
- showWelcomeScreen: boolean;
17
- isLoading: boolean;
18
- errorMessage: import("react").ReactNode;
19
- activeEmbeddable: {
20
- element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
21
- state: "active" | "hover";
22
- } | null;
23
- newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
24
- resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
25
- multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
26
- selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
27
- isBindingEnabled: boolean;
28
- startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
29
- suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
30
- frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
31
- frameRendering: {
32
- enabled: boolean;
33
- name: boolean;
34
- outline: boolean;
35
- clip: boolean;
36
- };
37
- editingFrame: string | null;
38
- elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
39
- editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
40
- activeTool: {
41
- lastActiveTool: import("../types").ActiveTool | null;
42
- locked: boolean;
43
- fromSelection: boolean;
44
- } & import("../types").ActiveTool;
45
- penMode: boolean;
46
- penDetected: boolean;
47
- exportBackground: boolean;
48
- exportEmbedScene: boolean;
49
- exportWithDarkMode: boolean;
50
- exportScale: number;
51
- currentItemStrokeColor: string;
52
- currentItemBackgroundColor: string;
53
- currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
54
- currentItemStrokeWidth: number;
55
- currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
56
- currentItemRoughness: number;
57
- currentItemOpacity: number;
58
- currentItemFontFamily: number;
59
- currentItemFontSize: number;
60
- currentItemTextAlign: string;
61
- currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
62
- currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
63
- currentHoveredFontFamily: number | null;
64
- currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
65
- currentItemArrowType: "round" | "sharp" | "elbow";
66
- viewBackgroundColor: string;
67
- scrollX: number;
68
- scrollY: number;
69
- cursorButton: "up" | "down";
70
- scrolledOutside: boolean;
71
- name: string | null;
72
- isResizing: boolean;
73
- isRotating: boolean;
74
- zoom: Readonly<{
75
- value: import("../types").NormalizedZoomValue;
76
- }>;
77
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
78
- openSidebar: {
79
- name: string;
80
- tab?: string | undefined;
81
- } | null;
82
- openDialog: {
83
- name: "imageExport" | "help" | "jsonExport";
84
- } | {
85
- name: "ttd";
86
- tab: "mermaid" | "text-to-diagram";
87
- } | {
88
- name: "commandPalette";
89
- } | {
90
- name: "elementLinkSelector";
91
- sourceElementId: string;
92
- } | null;
93
- defaultSidebarDockedPreference: boolean;
94
- lastPointerDownWith: import("@excalidraw/element/types").PointerType;
95
- selectedElementIds: Readonly<{
96
- [id: string]: true;
97
- }>;
98
- hoveredElementIds: Readonly<{
99
- [id: string]: true;
100
- }>;
101
- previousSelectedElementIds: {
102
- [id: string]: true;
103
- };
104
- selectedElementsAreBeingDragged: boolean;
105
- shouldCacheIgnoreZoom: boolean;
106
- toast: {
107
- message: string;
108
- closable?: boolean | undefined;
109
- duration?: number | undefined;
110
- } | null;
111
- zenModeEnabled: boolean;
112
- theme: import("@excalidraw/element/types").Theme;
113
- gridSize: number;
114
- gridStep: number;
115
- gridModeEnabled: boolean;
116
- viewModeEnabled: boolean;
117
- selectedGroupIds: {
118
- [groupId: string]: boolean;
119
- };
120
- editingGroupId: string | null;
121
- width: number;
122
- height: number;
123
- offsetTop: number;
124
- offsetLeft: number;
125
- fileHandle: import("browser-fs-access").FileSystemHandle | null;
126
- collaborators: Map<import("../types").SocketId, Readonly<{
127
- pointer?: import("../types").CollaboratorPointer | undefined;
128
- button?: "up" | "down" | undefined;
129
- selectedElementIds?: Readonly<{
130
- [id: string]: true;
131
- }> | undefined;
132
- username?: string | null | undefined;
133
- userState?: import("@excalidraw/common").UserIdleState | undefined;
134
- color?: {
135
- background: string;
136
- stroke: string;
137
- } | undefined;
138
- avatarUrl?: string | undefined;
139
- id?: string | undefined;
140
- socketId?: import("../types").SocketId | undefined;
141
- isCurrentUser?: boolean | undefined;
142
- isInCall?: boolean | undefined;
143
- isSpeaking?: boolean | undefined;
144
- isMuted?: boolean | undefined;
145
- }>>;
146
- stats: {
147
- open: boolean;
148
- panels: number;
149
- };
150
- currentChartType: import("@excalidraw/element/types").ChartType;
151
- pasteDialog: {
152
- shown: false;
153
- data: null;
154
- } | {
155
- shown: true;
156
- data: import("../charts").Spreadsheet;
157
- };
158
- showHyperlinkPopup: false | "editor" | "info";
159
- selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
160
- snapLines: readonly import("../snapping").SnapLine[];
161
- originSnapOffset: {
162
- x: number;
163
- y: number;
164
- } | null;
165
- objectsSnapModeEnabled: boolean;
166
- userToFollow: import("../types").UserToFollow | null;
167
- followedBy: Set<import("../types").SocketId>;
168
- isCropping: boolean;
169
- croppingElementId: string | null;
170
- searchMatches: Readonly<{
171
- focusedId: string | null;
172
- matches: readonly import("../types").SearchMatch[];
173
- }> | null;
174
- activeLockedId: string | null;
175
- lockedMultiSelections: {
176
- [groupId: string]: true;
177
- };
178
- };
179
- captureUpdate: "EVENTUALLY";
180
- };
181
- PanelComponent: ({ appState, updateData }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
182
- } & {
183
- keyTest?: undefined;
184
- };
185
- export declare const actionToggleEditMenu: {
186
- name: "toggleEditMenu";
187
- label: string;
188
- trackEvent: {
189
- category: "menu";
190
- };
191
- perform: (_elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>) => {
192
- appState: {
193
- openMenu: "shape" | null;
194
- contextMenu: {
195
- items: import("../components/ContextMenu").ContextMenuItems;
196
- top: number;
197
- left: number;
198
- } | null;
199
- showWelcomeScreen: boolean;
200
- isLoading: boolean;
201
- errorMessage: import("react").ReactNode;
202
- activeEmbeddable: {
203
- element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
204
- state: "active" | "hover";
205
- } | null;
206
- newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
207
- resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
208
- multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
209
- selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
210
- isBindingEnabled: boolean;
211
- startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
212
- suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
213
- frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
214
- frameRendering: {
215
- enabled: boolean;
216
- name: boolean;
217
- outline: boolean;
218
- clip: boolean;
219
- };
220
- editingFrame: string | null;
221
- elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
222
- editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
223
- activeTool: {
224
- lastActiveTool: import("../types").ActiveTool | null;
225
- locked: boolean;
226
- fromSelection: boolean;
227
- } & import("../types").ActiveTool;
228
- penMode: boolean;
229
- penDetected: boolean;
230
- exportBackground: boolean;
231
- exportEmbedScene: boolean;
232
- exportWithDarkMode: boolean;
233
- exportScale: number;
234
- currentItemStrokeColor: string;
235
- currentItemBackgroundColor: string;
236
- currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
237
- currentItemStrokeWidth: number;
238
- currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
239
- currentItemRoughness: number;
240
- currentItemOpacity: number;
241
- currentItemFontFamily: number;
242
- currentItemFontSize: number;
243
- currentItemTextAlign: string;
244
- currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
245
- currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
246
- currentHoveredFontFamily: number | null;
247
- currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
248
- currentItemArrowType: "round" | "sharp" | "elbow";
249
- viewBackgroundColor: string;
250
- scrollX: number;
251
- scrollY: number;
252
- cursorButton: "up" | "down";
253
- scrolledOutside: boolean;
254
- name: string | null;
255
- isResizing: boolean;
256
- isRotating: boolean;
257
- zoom: Readonly<{
258
- value: import("../types").NormalizedZoomValue;
259
- }>;
260
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
261
- openSidebar: {
262
- name: string;
263
- tab?: string | undefined;
264
- } | null;
265
- openDialog: {
266
- name: "imageExport" | "help" | "jsonExport";
267
- } | {
268
- name: "ttd";
269
- tab: "mermaid" | "text-to-diagram";
270
- } | {
271
- name: "commandPalette";
272
- } | {
273
- name: "elementLinkSelector";
274
- sourceElementId: string;
275
- } | null;
276
- defaultSidebarDockedPreference: boolean;
277
- lastPointerDownWith: import("@excalidraw/element/types").PointerType;
278
- selectedElementIds: Readonly<{
279
- [id: string]: true;
280
- }>;
281
- hoveredElementIds: Readonly<{
282
- [id: string]: true;
283
- }>;
284
- previousSelectedElementIds: {
285
- [id: string]: true;
286
- };
287
- selectedElementsAreBeingDragged: boolean;
288
- shouldCacheIgnoreZoom: boolean;
289
- toast: {
290
- message: string;
291
- closable?: boolean | undefined;
292
- duration?: number | undefined;
293
- } | null;
294
- zenModeEnabled: boolean;
295
- theme: import("@excalidraw/element/types").Theme;
296
- gridSize: number;
297
- gridStep: number;
298
- gridModeEnabled: boolean;
299
- viewModeEnabled: boolean;
300
- selectedGroupIds: {
301
- [groupId: string]: boolean;
302
- };
303
- editingGroupId: string | null;
304
- width: number;
305
- height: number;
306
- offsetTop: number;
307
- offsetLeft: number;
308
- fileHandle: import("browser-fs-access").FileSystemHandle | null;
309
- collaborators: Map<import("../types").SocketId, Readonly<{
310
- pointer?: import("../types").CollaboratorPointer | undefined;
311
- button?: "up" | "down" | undefined;
312
- selectedElementIds?: Readonly<{
313
- [id: string]: true;
314
- }> | undefined;
315
- username?: string | null | undefined;
316
- userState?: import("@excalidraw/common").UserIdleState | undefined;
317
- color?: {
318
- background: string;
319
- stroke: string;
320
- } | undefined;
321
- avatarUrl?: string | undefined;
322
- id?: string | undefined;
323
- socketId?: import("../types").SocketId | undefined;
324
- isCurrentUser?: boolean | undefined;
325
- isInCall?: boolean | undefined;
326
- isSpeaking?: boolean | undefined;
327
- isMuted?: boolean | undefined;
328
- }>>;
329
- stats: {
330
- open: boolean;
331
- panels: number;
332
- };
333
- currentChartType: import("@excalidraw/element/types").ChartType;
334
- pasteDialog: {
335
- shown: false;
336
- data: null;
337
- } | {
338
- shown: true;
339
- data: import("../charts").Spreadsheet;
340
- };
341
- showHyperlinkPopup: false | "editor" | "info";
342
- selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
343
- snapLines: readonly import("../snapping").SnapLine[];
344
- originSnapOffset: {
345
- x: number;
346
- y: number;
347
- } | null;
348
- objectsSnapModeEnabled: boolean;
349
- userToFollow: import("../types").UserToFollow | null;
350
- followedBy: Set<import("../types").SocketId>;
351
- isCropping: boolean;
352
- croppingElementId: string | null;
353
- searchMatches: Readonly<{
354
- focusedId: string | null;
355
- matches: readonly import("../types").SearchMatch[];
356
- }> | null;
357
- activeLockedId: string | null;
358
- lockedMultiSelections: {
359
- [groupId: string]: true;
360
- };
361
- };
362
- captureUpdate: "EVENTUALLY";
363
- };
364
- PanelComponent: ({ elements, appState, updateData }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
365
- } & {
366
- keyTest?: undefined;
367
- };
368
2
  export declare const actionShortcuts: {
369
3
  name: "toggleShortcuts";
370
4
  label: string;
@@ -379,6 +13,8 @@ export declare const actionShortcuts: {
379
13
  openDialog: {
380
14
  name: "help";
381
15
  } | null;
16
+ openMenu: null;
17
+ openPopup: null;
382
18
  contextMenu: {
383
19
  items: import("../components/ContextMenu").ContextMenuItems;
384
20
  top: number;
@@ -413,6 +49,10 @@ export declare const actionShortcuts: {
413
49
  locked: boolean;
414
50
  fromSelection: boolean;
415
51
  } & import("../types").ActiveTool;
52
+ preferredSelectionTool: {
53
+ type: "selection" | "lasso";
54
+ initialized: boolean;
55
+ };
416
56
  penMode: boolean;
417
57
  penDetected: boolean;
418
58
  exportBackground: boolean;
@@ -445,8 +85,6 @@ export declare const actionShortcuts: {
445
85
  zoom: Readonly<{
446
86
  value: import("../types").NormalizedZoomValue;
447
87
  }>;
448
- openMenu: "canvas" | "shape" | null;
449
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
450
88
  openSidebar: {
451
89
  name: string;
452
90
  tab?: string | undefined;
@@ -516,7 +154,7 @@ export declare const actionShortcuts: {
516
154
  shown: true;
517
155
  data: import("../charts").Spreadsheet;
518
156
  };
519
- showHyperlinkPopup: false | "editor" | "info";
157
+ showHyperlinkPopup: false | "info" | "editor";
520
158
  selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
521
159
  snapLines: readonly import("../snapping").SnapLine[];
522
160
  originSnapOffset: {