@excalidraw/math 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 +58 -61
  2. package/dist/dev/index.js.map +3 -3
  3. package/dist/prod/index.js +1 -1
  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 +2 -2
@@ -44,6 +44,10 @@ export declare const actionGoToCollaborator: {
44
44
  locked: boolean;
45
45
  fromSelection: boolean;
46
46
  } & import("../types").ActiveTool;
47
+ preferredSelectionTool: {
48
+ type: "selection" | "lasso";
49
+ initialized: boolean;
50
+ };
47
51
  penMode: boolean;
48
52
  penDetected: boolean;
49
53
  exportBackground: boolean;
@@ -76,8 +80,8 @@ export declare const actionGoToCollaborator: {
76
80
  zoom: Readonly<{
77
81
  value: import("../types").NormalizedZoomValue;
78
82
  }>;
79
- openMenu: "canvas" | "shape" | null;
80
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
83
+ openMenu: "canvas" | null;
84
+ openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
81
85
  openSidebar: {
82
86
  name: string;
83
87
  tab?: string | undefined;
@@ -158,7 +162,7 @@ export declare const actionGoToCollaborator: {
158
162
  shown: true;
159
163
  data: import("../charts").Spreadsheet;
160
164
  };
161
- showHyperlinkPopup: false | "editor" | "info";
165
+ showHyperlinkPopup: false | "info" | "editor";
162
166
  selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
163
167
  snapLines: readonly import("../snapping").SnapLine[];
164
168
  originSnapOffset: {
@@ -185,7 +189,7 @@ export declare const actionGoToCollaborator: {
185
189
  socketId: import("../types").SocketId;
186
190
  username: string;
187
191
  };
188
- openMenu: "shape" | null;
192
+ openMenu: null;
189
193
  contextMenu: {
190
194
  items: import("../components/ContextMenu").ContextMenuItems;
191
195
  top: number;
@@ -220,6 +224,10 @@ export declare const actionGoToCollaborator: {
220
224
  locked: boolean;
221
225
  fromSelection: boolean;
222
226
  } & import("../types").ActiveTool;
227
+ preferredSelectionTool: {
228
+ type: "selection" | "lasso";
229
+ initialized: boolean;
230
+ };
223
231
  penMode: boolean;
224
232
  penDetected: boolean;
225
233
  exportBackground: boolean;
@@ -252,7 +260,7 @@ export declare const actionGoToCollaborator: {
252
260
  zoom: Readonly<{
253
261
  value: import("../types").NormalizedZoomValue;
254
262
  }>;
255
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
263
+ openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
256
264
  openSidebar: {
257
265
  name: string;
258
266
  tab?: string | undefined;
@@ -333,7 +341,7 @@ export declare const actionGoToCollaborator: {
333
341
  shown: true;
334
342
  data: import("../charts").Spreadsheet;
335
343
  };
336
- showHyperlinkPopup: false | "editor" | "info";
344
+ showHyperlinkPopup: false | "info" | "editor";
337
345
  selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
338
346
  snapLines: readonly import("../snapping").SnapLine[];
339
347
  originSnapOffset: {
@@ -9,7 +9,7 @@ export declare const actionChangeStrokeColor: {
9
9
  label: string;
10
10
  trackEvent: false;
11
11
  perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, value: any) => any;
12
- PanelComponent: ({ elements, appState, updateData, app }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
12
+ PanelComponent: ({ elements, appState, updateData, app, data }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
13
13
  } & {
14
14
  keyTest?: undefined;
15
15
  };
@@ -26,7 +26,7 @@ export declare const actionChangeBackgroundColor: {
26
26
  appState: any;
27
27
  captureUpdate: "IMMEDIATELY";
28
28
  };
29
- PanelComponent: ({ elements, appState, updateData, app }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
29
+ PanelComponent: ({ elements, appState, updateData, app, data }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
30
30
  } & {
31
31
  keyTest?: undefined;
32
32
  };
@@ -72,6 +72,10 @@ export declare const actionChangeFillStyle: {
72
72
  locked: boolean;
73
73
  fromSelection: boolean;
74
74
  } & import("../types").ActiveTool;
75
+ preferredSelectionTool: {
76
+ type: "selection" | "lasso";
77
+ initialized: boolean;
78
+ };
75
79
  penMode: boolean;
76
80
  penDetected: boolean;
77
81
  exportBackground: boolean;
@@ -103,8 +107,8 @@ export declare const actionChangeFillStyle: {
103
107
  zoom: Readonly<{
104
108
  value: import("../types").NormalizedZoomValue;
105
109
  }>;
106
- openMenu: "canvas" | "shape" | null;
107
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
110
+ openMenu: "canvas" | null;
111
+ openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
108
112
  openSidebar: {
109
113
  name: string;
110
114
  tab?: string | undefined;
@@ -185,7 +189,7 @@ export declare const actionChangeFillStyle: {
185
189
  shown: true;
186
190
  data: import("../charts").Spreadsheet;
187
191
  };
188
- showHyperlinkPopup: false | "editor" | "info";
192
+ showHyperlinkPopup: false | "info" | "editor";
189
193
  selectedLinearElement: LinearElementEditor | null;
190
194
  snapLines: readonly import("../snapping").SnapLine[];
191
195
  originSnapOffset: {
@@ -254,6 +258,10 @@ export declare const actionChangeStrokeWidth: {
254
258
  locked: boolean;
255
259
  fromSelection: boolean;
256
260
  } & import("../types").ActiveTool;
261
+ preferredSelectionTool: {
262
+ type: "selection" | "lasso";
263
+ initialized: boolean;
264
+ };
257
265
  penMode: boolean;
258
266
  penDetected: boolean;
259
267
  exportBackground: boolean;
@@ -285,8 +293,8 @@ export declare const actionChangeStrokeWidth: {
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;
@@ -367,7 +375,7 @@ export declare const actionChangeStrokeWidth: {
367
375
  shown: true;
368
376
  data: import("../charts").Spreadsheet;
369
377
  };
370
- showHyperlinkPopup: false | "editor" | "info";
378
+ showHyperlinkPopup: false | "info" | "editor";
371
379
  selectedLinearElement: LinearElementEditor | null;
372
380
  snapLines: readonly import("../snapping").SnapLine[];
373
381
  originSnapOffset: {
@@ -390,7 +398,7 @@ export declare const actionChangeStrokeWidth: {
390
398
  };
391
399
  captureUpdate: "IMMEDIATELY";
392
400
  };
393
- PanelComponent: ({ elements, appState, updateData, app }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
401
+ PanelComponent: ({ elements, appState, updateData, app, data }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
394
402
  } & {
395
403
  keyTest?: undefined;
396
404
  };
@@ -436,6 +444,10 @@ export declare const actionChangeSloppiness: {
436
444
  locked: boolean;
437
445
  fromSelection: boolean;
438
446
  } & import("../types").ActiveTool;
447
+ preferredSelectionTool: {
448
+ type: "selection" | "lasso";
449
+ initialized: boolean;
450
+ };
439
451
  penMode: boolean;
440
452
  penDetected: boolean;
441
453
  exportBackground: boolean;
@@ -467,8 +479,8 @@ export declare const actionChangeSloppiness: {
467
479
  zoom: Readonly<{
468
480
  value: import("../types").NormalizedZoomValue;
469
481
  }>;
470
- openMenu: "canvas" | "shape" | null;
471
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
482
+ openMenu: "canvas" | null;
483
+ openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
472
484
  openSidebar: {
473
485
  name: string;
474
486
  tab?: string | undefined;
@@ -549,7 +561,7 @@ export declare const actionChangeSloppiness: {
549
561
  shown: true;
550
562
  data: import("../charts").Spreadsheet;
551
563
  };
552
- showHyperlinkPopup: false | "editor" | "info";
564
+ showHyperlinkPopup: false | "info" | "editor";
553
565
  selectedLinearElement: LinearElementEditor | null;
554
566
  snapLines: readonly import("../snapping").SnapLine[];
555
567
  originSnapOffset: {
@@ -572,7 +584,7 @@ export declare const actionChangeSloppiness: {
572
584
  };
573
585
  captureUpdate: "IMMEDIATELY";
574
586
  };
575
- PanelComponent: ({ elements, appState, updateData, app }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
587
+ PanelComponent: ({ elements, appState, updateData, app, data }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
576
588
  } & {
577
589
  keyTest?: undefined;
578
590
  };
@@ -618,6 +630,10 @@ export declare const actionChangeStrokeStyle: {
618
630
  locked: boolean;
619
631
  fromSelection: boolean;
620
632
  } & import("../types").ActiveTool;
633
+ preferredSelectionTool: {
634
+ type: "selection" | "lasso";
635
+ initialized: boolean;
636
+ };
621
637
  penMode: boolean;
622
638
  penDetected: boolean;
623
639
  exportBackground: boolean;
@@ -649,8 +665,8 @@ export declare const actionChangeStrokeStyle: {
649
665
  zoom: Readonly<{
650
666
  value: import("../types").NormalizedZoomValue;
651
667
  }>;
652
- openMenu: "canvas" | "shape" | null;
653
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
668
+ openMenu: "canvas" | null;
669
+ openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
654
670
  openSidebar: {
655
671
  name: string;
656
672
  tab?: string | undefined;
@@ -731,7 +747,7 @@ export declare const actionChangeStrokeStyle: {
731
747
  shown: true;
732
748
  data: import("../charts").Spreadsheet;
733
749
  };
734
- showHyperlinkPopup: false | "editor" | "info";
750
+ showHyperlinkPopup: false | "info" | "editor";
735
751
  selectedLinearElement: LinearElementEditor | null;
736
752
  snapLines: readonly import("../snapping").SnapLine[];
737
753
  originSnapOffset: {
@@ -754,7 +770,7 @@ export declare const actionChangeStrokeStyle: {
754
770
  };
755
771
  captureUpdate: "IMMEDIATELY";
756
772
  };
757
- PanelComponent: ({ elements, appState, updateData, app }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
773
+ PanelComponent: ({ elements, appState, updateData, app, data }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
758
774
  } & {
759
775
  keyTest?: undefined;
760
776
  };
@@ -800,6 +816,10 @@ export declare const actionChangeOpacity: {
800
816
  locked: boolean;
801
817
  fromSelection: boolean;
802
818
  } & import("../types").ActiveTool;
819
+ preferredSelectionTool: {
820
+ type: "selection" | "lasso";
821
+ initialized: boolean;
822
+ };
803
823
  penMode: boolean;
804
824
  penDetected: boolean;
805
825
  exportBackground: boolean;
@@ -831,8 +851,8 @@ export declare const actionChangeOpacity: {
831
851
  zoom: Readonly<{
832
852
  value: import("../types").NormalizedZoomValue;
833
853
  }>;
834
- openMenu: "canvas" | "shape" | null;
835
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
854
+ openMenu: "canvas" | null;
855
+ openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
836
856
  openSidebar: {
837
857
  name: string;
838
858
  tab?: string | undefined;
@@ -913,7 +933,7 @@ export declare const actionChangeOpacity: {
913
933
  shown: true;
914
934
  data: import("../charts").Spreadsheet;
915
935
  };
916
- showHyperlinkPopup: false | "editor" | "info";
936
+ showHyperlinkPopup: false | "info" | "editor";
917
937
  selectedLinearElement: LinearElementEditor | null;
918
938
  snapLines: readonly import("../snapping").SnapLine[];
919
939
  originSnapOffset: {
@@ -982,6 +1002,10 @@ export declare const actionChangeFontSize: {
982
1002
  locked: boolean;
983
1003
  fromSelection: boolean;
984
1004
  } & import("../types").ActiveTool;
1005
+ preferredSelectionTool: {
1006
+ type: "selection" | "lasso";
1007
+ initialized: boolean;
1008
+ };
985
1009
  penMode: boolean;
986
1010
  penDetected: boolean;
987
1011
  exportBackground: boolean;
@@ -1013,8 +1037,8 @@ export declare const actionChangeFontSize: {
1013
1037
  zoom: Readonly<{
1014
1038
  value: import("../types").NormalizedZoomValue;
1015
1039
  }>;
1016
- openMenu: "canvas" | "shape" | null;
1017
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
1040
+ openMenu: "canvas" | null;
1041
+ openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
1018
1042
  openSidebar: {
1019
1043
  name: string;
1020
1044
  tab?: string | undefined;
@@ -1095,7 +1119,7 @@ export declare const actionChangeFontSize: {
1095
1119
  shown: true;
1096
1120
  data: import("../charts").Spreadsheet;
1097
1121
  };
1098
- showHyperlinkPopup: false | "editor" | "info";
1122
+ showHyperlinkPopup: false | "info" | "editor";
1099
1123
  selectedLinearElement: LinearElementEditor | null;
1100
1124
  snapLines: readonly import("../snapping").SnapLine[];
1101
1125
  originSnapOffset: {
@@ -1118,7 +1142,7 @@ export declare const actionChangeFontSize: {
1118
1142
  };
1119
1143
  captureUpdate: "IMMEDIATELY";
1120
1144
  };
1121
- PanelComponent: ({ elements, appState, updateData, app }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
1145
+ PanelComponent: ({ elements, appState, updateData, app, data }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
1122
1146
  } & {
1123
1147
  keyTest?: undefined;
1124
1148
  };
@@ -1165,6 +1189,10 @@ export declare const actionDecreaseFontSize: {
1165
1189
  locked: boolean;
1166
1190
  fromSelection: boolean;
1167
1191
  } & import("../types").ActiveTool;
1192
+ preferredSelectionTool: {
1193
+ type: "selection" | "lasso";
1194
+ initialized: boolean;
1195
+ };
1168
1196
  penMode: boolean;
1169
1197
  penDetected: boolean;
1170
1198
  exportBackground: boolean;
@@ -1196,8 +1224,8 @@ export declare const actionDecreaseFontSize: {
1196
1224
  zoom: Readonly<{
1197
1225
  value: import("../types").NormalizedZoomValue;
1198
1226
  }>;
1199
- openMenu: "canvas" | "shape" | null;
1200
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
1227
+ openMenu: "canvas" | null;
1228
+ openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
1201
1229
  openSidebar: {
1202
1230
  name: string;
1203
1231
  tab?: string | undefined;
@@ -1278,7 +1306,7 @@ export declare const actionDecreaseFontSize: {
1278
1306
  shown: true;
1279
1307
  data: import("../charts").Spreadsheet;
1280
1308
  };
1281
- showHyperlinkPopup: false | "editor" | "info";
1309
+ showHyperlinkPopup: false | "info" | "editor";
1282
1310
  selectedLinearElement: LinearElementEditor | null;
1283
1311
  snapLines: readonly import("../snapping").SnapLine[];
1284
1312
  originSnapOffset: {
@@ -1348,6 +1376,10 @@ export declare const actionIncreaseFontSize: {
1348
1376
  locked: boolean;
1349
1377
  fromSelection: boolean;
1350
1378
  } & import("../types").ActiveTool;
1379
+ preferredSelectionTool: {
1380
+ type: "selection" | "lasso";
1381
+ initialized: boolean;
1382
+ };
1351
1383
  penMode: boolean;
1352
1384
  penDetected: boolean;
1353
1385
  exportBackground: boolean;
@@ -1379,8 +1411,8 @@ export declare const actionIncreaseFontSize: {
1379
1411
  zoom: Readonly<{
1380
1412
  value: import("../types").NormalizedZoomValue;
1381
1413
  }>;
1382
- openMenu: "canvas" | "shape" | null;
1383
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
1414
+ openMenu: "canvas" | null;
1415
+ openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
1384
1416
  openSidebar: {
1385
1417
  name: string;
1386
1418
  tab?: string | undefined;
@@ -1461,7 +1493,7 @@ export declare const actionIncreaseFontSize: {
1461
1493
  shown: true;
1462
1494
  data: import("../charts").Spreadsheet;
1463
1495
  };
1464
- showHyperlinkPopup: false | "editor" | "info";
1496
+ showHyperlinkPopup: false | "info" | "editor";
1465
1497
  selectedLinearElement: LinearElementEditor | null;
1466
1498
  snapLines: readonly import("../snapping").SnapLine[];
1467
1499
  originSnapOffset: {
@@ -1496,7 +1528,7 @@ export declare const actionChangeFontFamily: {
1496
1528
  appState: {
1497
1529
  currentItemFontFamily: number;
1498
1530
  currentHoveredFontFamily: number | null;
1499
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
1531
+ openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
1500
1532
  contextMenu: {
1501
1533
  items: import("../components/ContextMenu").ContextMenuItems;
1502
1534
  top: number;
@@ -1531,6 +1563,10 @@ export declare const actionChangeFontFamily: {
1531
1563
  locked: boolean;
1532
1564
  fromSelection: boolean;
1533
1565
  } & import("../types").ActiveTool;
1566
+ preferredSelectionTool: {
1567
+ type: "selection" | "lasso";
1568
+ initialized: boolean;
1569
+ };
1534
1570
  penMode: boolean;
1535
1571
  penDetected: boolean;
1536
1572
  exportBackground: boolean;
@@ -1561,7 +1597,7 @@ export declare const actionChangeFontFamily: {
1561
1597
  zoom: Readonly<{
1562
1598
  value: import("../types").NormalizedZoomValue;
1563
1599
  }>;
1564
- openMenu: "canvas" | "shape" | null;
1600
+ openMenu: "canvas" | null;
1565
1601
  openSidebar: {
1566
1602
  name: string;
1567
1603
  tab?: string | undefined;
@@ -1642,7 +1678,7 @@ export declare const actionChangeFontFamily: {
1642
1678
  shown: true;
1643
1679
  data: import("../charts").Spreadsheet;
1644
1680
  };
1645
- showHyperlinkPopup: false | "editor" | "info";
1681
+ showHyperlinkPopup: false | "info" | "editor";
1646
1682
  selectedLinearElement: LinearElementEditor | null;
1647
1683
  snapLines: readonly import("../snapping").SnapLine[];
1648
1684
  originSnapOffset: {
@@ -1669,7 +1705,7 @@ export declare const actionChangeFontFamily: {
1669
1705
  appState: {
1670
1706
  currentItemFontFamily: number;
1671
1707
  currentHoveredFontFamily: number | null;
1672
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
1708
+ openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
1673
1709
  contextMenu: {
1674
1710
  items: import("../components/ContextMenu").ContextMenuItems;
1675
1711
  top: number;
@@ -1704,6 +1740,10 @@ export declare const actionChangeFontFamily: {
1704
1740
  locked: boolean;
1705
1741
  fromSelection: boolean;
1706
1742
  } & import("../types").ActiveTool;
1743
+ preferredSelectionTool: {
1744
+ type: "selection" | "lasso";
1745
+ initialized: boolean;
1746
+ };
1707
1747
  penMode: boolean;
1708
1748
  penDetected: boolean;
1709
1749
  exportBackground: boolean;
@@ -1734,7 +1774,7 @@ export declare const actionChangeFontFamily: {
1734
1774
  zoom: Readonly<{
1735
1775
  value: import("../types").NormalizedZoomValue;
1736
1776
  }>;
1737
- openMenu: "canvas" | "shape" | null;
1777
+ openMenu: "canvas" | null;
1738
1778
  openSidebar: {
1739
1779
  name: string;
1740
1780
  tab?: string | undefined;
@@ -1815,7 +1855,7 @@ export declare const actionChangeFontFamily: {
1815
1855
  shown: true;
1816
1856
  data: import("../charts").Spreadsheet;
1817
1857
  };
1818
- showHyperlinkPopup: false | "editor" | "info";
1858
+ showHyperlinkPopup: false | "info" | "editor";
1819
1859
  selectedLinearElement: LinearElementEditor | null;
1820
1860
  snapLines: readonly import("../snapping").SnapLine[];
1821
1861
  originSnapOffset: {
@@ -1884,6 +1924,10 @@ export declare const actionChangeTextAlign: {
1884
1924
  locked: boolean;
1885
1925
  fromSelection: boolean;
1886
1926
  } & import("../types").ActiveTool;
1927
+ preferredSelectionTool: {
1928
+ type: "selection" | "lasso";
1929
+ initialized: boolean;
1930
+ };
1887
1931
  penMode: boolean;
1888
1932
  penDetected: boolean;
1889
1933
  exportBackground: boolean;
@@ -1915,8 +1959,8 @@ export declare const actionChangeTextAlign: {
1915
1959
  zoom: Readonly<{
1916
1960
  value: import("../types").NormalizedZoomValue;
1917
1961
  }>;
1918
- openMenu: "canvas" | "shape" | null;
1919
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
1962
+ openMenu: "canvas" | null;
1963
+ openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
1920
1964
  openSidebar: {
1921
1965
  name: string;
1922
1966
  tab?: string | undefined;
@@ -1997,7 +2041,7 @@ export declare const actionChangeTextAlign: {
1997
2041
  shown: true;
1998
2042
  data: import("../charts").Spreadsheet;
1999
2043
  };
2000
- showHyperlinkPopup: false | "editor" | "info";
2044
+ showHyperlinkPopup: false | "info" | "editor";
2001
2045
  selectedLinearElement: LinearElementEditor | null;
2002
2046
  snapLines: readonly import("../snapping").SnapLine[];
2003
2047
  originSnapOffset: {
@@ -2020,7 +2064,7 @@ export declare const actionChangeTextAlign: {
2020
2064
  };
2021
2065
  captureUpdate: "IMMEDIATELY";
2022
2066
  };
2023
- PanelComponent: ({ elements, appState, updateData, app }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
2067
+ PanelComponent: ({ elements, appState, updateData, app, data }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
2024
2068
  } & {
2025
2069
  keyTest?: undefined;
2026
2070
  };
@@ -2067,6 +2111,10 @@ export declare const actionChangeVerticalAlign: {
2067
2111
  locked: boolean;
2068
2112
  fromSelection: boolean;
2069
2113
  } & import("../types").ActiveTool;
2114
+ preferredSelectionTool: {
2115
+ type: "selection" | "lasso";
2116
+ initialized: boolean;
2117
+ };
2070
2118
  penMode: boolean;
2071
2119
  penDetected: boolean;
2072
2120
  exportBackground: boolean;
@@ -2099,8 +2147,8 @@ export declare const actionChangeVerticalAlign: {
2099
2147
  zoom: Readonly<{
2100
2148
  value: import("../types").NormalizedZoomValue;
2101
2149
  }>;
2102
- openMenu: "canvas" | "shape" | null;
2103
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
2150
+ openMenu: "canvas" | null;
2151
+ openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
2104
2152
  openSidebar: {
2105
2153
  name: string;
2106
2154
  tab?: string | undefined;
@@ -2181,7 +2229,7 @@ export declare const actionChangeVerticalAlign: {
2181
2229
  shown: true;
2182
2230
  data: import("../charts").Spreadsheet;
2183
2231
  };
2184
- showHyperlinkPopup: false | "editor" | "info";
2232
+ showHyperlinkPopup: false | "info" | "editor";
2185
2233
  selectedLinearElement: LinearElementEditor | null;
2186
2234
  snapLines: readonly import("../snapping").SnapLine[];
2187
2235
  originSnapOffset: {
@@ -2204,7 +2252,7 @@ export declare const actionChangeVerticalAlign: {
2204
2252
  };
2205
2253
  captureUpdate: "IMMEDIATELY";
2206
2254
  };
2207
- PanelComponent: ({ elements, appState, updateData, app }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
2255
+ PanelComponent: ({ elements, appState, updateData, app, data }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
2208
2256
  } & {
2209
2257
  keyTest?: undefined;
2210
2258
  };
@@ -2250,6 +2298,10 @@ export declare const actionChangeRoundness: {
2250
2298
  locked: boolean;
2251
2299
  fromSelection: boolean;
2252
2300
  } & import("../types").ActiveTool;
2301
+ preferredSelectionTool: {
2302
+ type: "selection" | "lasso";
2303
+ initialized: boolean;
2304
+ };
2253
2305
  penMode: boolean;
2254
2306
  penDetected: boolean;
2255
2307
  exportBackground: boolean;
@@ -2281,8 +2333,8 @@ export declare const actionChangeRoundness: {
2281
2333
  zoom: Readonly<{
2282
2334
  value: import("../types").NormalizedZoomValue;
2283
2335
  }>;
2284
- openMenu: "canvas" | "shape" | null;
2285
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
2336
+ openMenu: "canvas" | null;
2337
+ openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
2286
2338
  openSidebar: {
2287
2339
  name: string;
2288
2340
  tab?: string | undefined;
@@ -2363,7 +2415,7 @@ export declare const actionChangeRoundness: {
2363
2415
  shown: true;
2364
2416
  data: import("../charts").Spreadsheet;
2365
2417
  };
2366
- showHyperlinkPopup: false | "editor" | "info";
2418
+ showHyperlinkPopup: false | "info" | "editor";
2367
2419
  selectedLinearElement: LinearElementEditor | null;
2368
2420
  snapLines: readonly import("../snapping").SnapLine[];
2369
2421
  originSnapOffset: {
@@ -2434,6 +2486,10 @@ export declare const actionChangeArrowhead: {
2434
2486
  locked: boolean;
2435
2487
  fromSelection: boolean;
2436
2488
  } & import("../types").ActiveTool;
2489
+ preferredSelectionTool: {
2490
+ type: "selection" | "lasso";
2491
+ initialized: boolean;
2492
+ };
2437
2493
  penMode: boolean;
2438
2494
  penDetected: boolean;
2439
2495
  exportBackground: boolean;
@@ -2466,8 +2522,8 @@ export declare const actionChangeArrowhead: {
2466
2522
  zoom: Readonly<{
2467
2523
  value: import("../types").NormalizedZoomValue;
2468
2524
  }>;
2469
- openMenu: "canvas" | "shape" | null;
2470
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
2525
+ openMenu: "canvas" | null;
2526
+ openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
2471
2527
  openSidebar: {
2472
2528
  name: string;
2473
2529
  tab?: string | undefined;
@@ -2548,7 +2604,7 @@ export declare const actionChangeArrowhead: {
2548
2604
  shown: true;
2549
2605
  data: import("../charts").Spreadsheet;
2550
2606
  };
2551
- showHyperlinkPopup: false | "editor" | "info";
2607
+ showHyperlinkPopup: false | "info" | "editor";
2552
2608
  selectedLinearElement: LinearElementEditor | null;
2553
2609
  snapLines: readonly import("../snapping").SnapLine[];
2554
2610
  originSnapOffset: {
@@ -2575,6 +2631,15 @@ export declare const actionChangeArrowhead: {
2575
2631
  } & {
2576
2632
  keyTest?: undefined;
2577
2633
  };
2634
+ export declare const actionChangeArrowProperties: {
2635
+ name: "changeArrowProperties";
2636
+ label: string;
2637
+ trackEvent: false;
2638
+ perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, value: any, app: AppClassProperties) => false;
2639
+ PanelComponent: ({ elements, appState, updateData, app, renderAction }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
2640
+ } & {
2641
+ keyTest?: undefined;
2642
+ };
2578
2643
  export declare const actionChangeArrowType: {
2579
2644
  name: "changeArrowType";
2580
2645
  label: string;
@@ -2617,6 +2682,10 @@ export declare const actionChangeArrowType: {
2617
2682
  locked: boolean;
2618
2683
  fromSelection: boolean;
2619
2684
  } & import("../types").ActiveTool;
2685
+ preferredSelectionTool: {
2686
+ type: "selection" | "lasso";
2687
+ initialized: boolean;
2688
+ };
2620
2689
  penMode: boolean;
2621
2690
  penDetected: boolean;
2622
2691
  exportBackground: boolean;
@@ -2648,8 +2717,8 @@ export declare const actionChangeArrowType: {
2648
2717
  zoom: Readonly<{
2649
2718
  value: import("../types").NormalizedZoomValue;
2650
2719
  }>;
2651
- openMenu: "canvas" | "shape" | null;
2652
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
2720
+ openMenu: "canvas" | null;
2721
+ openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
2653
2722
  openSidebar: {
2654
2723
  name: string;
2655
2724
  tab?: string | undefined;
@@ -2730,7 +2799,7 @@ export declare const actionChangeArrowType: {
2730
2799
  shown: true;
2731
2800
  data: import("../charts").Spreadsheet;
2732
2801
  };
2733
- showHyperlinkPopup: false | "editor" | "info";
2802
+ showHyperlinkPopup: false | "info" | "editor";
2734
2803
  selectedLinearElement: LinearElementEditor | null;
2735
2804
  snapLines: readonly import("../snapping").SnapLine[];
2736
2805
  originSnapOffset: {
@@ -53,6 +53,10 @@ export declare const actionSelectAll: {
53
53
  locked: boolean;
54
54
  fromSelection: boolean;
55
55
  } & import("../types").ActiveTool;
56
+ preferredSelectionTool: {
57
+ type: "selection" | "lasso";
58
+ initialized: boolean;
59
+ };
56
60
  penMode: boolean;
57
61
  penDetected: boolean;
58
62
  exportBackground: boolean;
@@ -85,8 +89,8 @@ export declare const actionSelectAll: {
85
89
  zoom: Readonly<{
86
90
  value: import("../types").NormalizedZoomValue;
87
91
  }>;
88
- openMenu: "canvas" | "shape" | null;
89
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
92
+ openMenu: "canvas" | null;
93
+ openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
90
94
  openSidebar: {
91
95
  name: string;
92
96
  tab?: string | undefined;
@@ -160,7 +164,7 @@ export declare const actionSelectAll: {
160
164
  shown: true;
161
165
  data: import("../charts").Spreadsheet;
162
166
  };
163
- showHyperlinkPopup: false | "editor" | "info";
167
+ showHyperlinkPopup: false | "info" | "editor";
164
168
  snapLines: readonly import("../snapping").SnapLine[];
165
169
  originSnapOffset: {
166
170
  x: number;