@excalidraw/math 0.18.0-a9ca16e → 0.18.0-abeeaeb

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 (184) hide show
  1. package/dist/dev/index.js +297 -99
  2. package/dist/dev/index.js.map +4 -4
  3. package/dist/prod/index.js +1 -1
  4. package/dist/types/common/src/colors.d.ts +15 -1
  5. package/dist/types/common/src/constants.d.ts +12 -7
  6. package/dist/types/common/src/keys.d.ts +2 -0
  7. package/dist/types/common/src/points.d.ts +1 -1
  8. package/dist/types/common/src/utils.d.ts +1 -43
  9. package/dist/types/element/src/Scene.d.ts +6 -4
  10. package/dist/types/element/src/align.d.ts +2 -2
  11. package/dist/types/element/src/arrowEndpointText.d.ts +49 -0
  12. package/dist/types/element/src/arrows/focus.d.ts +5 -2
  13. package/dist/types/element/src/binding.d.ts +17 -8
  14. package/dist/types/element/src/bounds.d.ts +22 -7
  15. package/dist/types/element/src/bucketFill.d.ts +110 -0
  16. package/dist/types/element/src/collision.d.ts +1 -1
  17. package/dist/types/element/src/comparisons.d.ts +5 -4
  18. package/dist/types/element/src/convertToShape.d.ts +23 -0
  19. package/dist/types/element/src/distribute.d.ts +2 -2
  20. package/dist/types/element/src/dragElements.d.ts +27 -0
  21. package/dist/types/element/src/duplicate.d.ts +4 -3
  22. package/dist/types/element/src/embeddable.d.ts +2 -2
  23. package/dist/types/element/src/flowchart.d.ts +7 -7
  24. package/dist/types/element/src/fractionalIndex.d.ts +2 -2
  25. package/dist/types/element/src/frame.d.ts +9 -8
  26. package/dist/types/element/src/groups.d.ts +9 -9
  27. package/dist/types/element/src/index.d.ts +4 -1
  28. package/dist/types/element/src/linearElementEditor.d.ts +17 -10
  29. package/dist/types/element/src/newElement.d.ts +14 -0
  30. package/dist/types/element/src/renderElement.d.ts +0 -3
  31. package/dist/types/element/src/resizeElements.d.ts +2 -2
  32. package/dist/types/element/src/selection.d.ts +6 -6
  33. package/dist/types/element/src/shape.d.ts +13 -1
  34. package/dist/types/element/src/sortElements.d.ts +10 -0
  35. package/dist/types/element/src/textElement.d.ts +12 -9
  36. package/dist/types/element/src/transform.d.ts +2 -2
  37. package/dist/types/element/src/typeChecks.d.ts +26 -25
  38. package/dist/types/element/src/types.d.ts +8 -1
  39. package/dist/types/element/src/utils.d.ts +1 -1
  40. package/dist/types/element/src/zindex.d.ts +2 -2
  41. package/dist/types/excalidraw/actions/actionAddToLibrary.d.ts +45 -18
  42. package/dist/types/excalidraw/actions/actionAlign.d.ts +6 -6
  43. package/dist/types/excalidraw/actions/actionBoundText.d.ts +30 -12
  44. package/dist/types/excalidraw/actions/actionCanvas.d.ts +167 -940
  45. package/dist/types/excalidraw/actions/actionClipboard.d.ts +30 -12
  46. package/dist/types/excalidraw/actions/actionCropEditor.d.ts +15 -6
  47. package/dist/types/excalidraw/actions/actionDeleteSelected.d.ts +47 -19
  48. package/dist/types/excalidraw/actions/{actionEmbeddable.d.ts → actionDeselect.d.ts} +29 -35
  49. package/dist/types/excalidraw/actions/actionDistribute.d.ts +2 -3
  50. package/dist/types/excalidraw/actions/actionElementLink.d.ts +15 -6
  51. package/dist/types/excalidraw/actions/actionElementLock.d.ts +31 -13
  52. package/dist/types/excalidraw/actions/actionExport.d.ts +32 -14
  53. package/dist/types/excalidraw/actions/actionFrame.d.ts +57 -202
  54. package/dist/types/excalidraw/actions/actionGroup.d.ts +45 -27
  55. package/dist/types/excalidraw/actions/actionLinearEditor.d.ts +19 -8
  56. package/dist/types/excalidraw/actions/actionLink.d.ts +16 -7
  57. package/dist/types/excalidraw/actions/actionMenu.d.ts +15 -6
  58. package/dist/types/excalidraw/actions/actionProperties.d.ts +60 -30
  59. package/dist/types/excalidraw/actions/actionSelectAll.d.ts +20 -11
  60. package/dist/types/excalidraw/actions/actionStyles.d.ts +15 -6
  61. package/dist/types/excalidraw/actions/actionTextAutoResize.d.ts +1 -1
  62. package/dist/types/excalidraw/actions/actionToggleArrowBinding.d.ts +16 -7
  63. package/dist/types/excalidraw/actions/actionToggleGridMode.d.ts +19 -11
  64. package/dist/types/excalidraw/actions/actionToggleMidpointSnapping.d.ts +16 -7
  65. package/dist/types/excalidraw/actions/actionToggleObjectsSnapMode.d.ts +16 -7
  66. package/dist/types/excalidraw/actions/actionToggleSearchMenu.d.ts +19 -11
  67. package/dist/types/excalidraw/actions/actionToggleShapeSwitch.d.ts +1 -1
  68. package/dist/types/excalidraw/actions/actionToggleStats.d.ts +16 -7
  69. package/dist/types/excalidraw/actions/actionToggleViewMode.d.ts +17 -8
  70. package/dist/types/excalidraw/actions/actionToggleZenMode.d.ts +16 -7
  71. package/dist/types/excalidraw/actions/index.d.ts +2 -2
  72. package/dist/types/excalidraw/actions/manager.d.ts +1 -0
  73. package/dist/types/excalidraw/actions/shortcuts.d.ts +1 -1
  74. package/dist/types/excalidraw/actions/types.d.ts +8 -4
  75. package/dist/types/excalidraw/{animated-trail.d.ts → animatedTrail.d.ts} +4 -3
  76. package/dist/types/excalidraw/appState.d.ts +12 -5
  77. package/dist/types/excalidraw/components/Actions.d.ts +17 -12
  78. package/dist/types/excalidraw/components/ActiveConfirmDialog.d.ts +1 -1
  79. package/dist/types/excalidraw/components/App.arrowText.d.ts +72 -0
  80. package/dist/types/excalidraw/components/App.bucketFill.d.ts +48 -0
  81. package/dist/types/excalidraw/components/App.cursor.d.ts +30 -0
  82. package/dist/types/excalidraw/components/App.d.ts +363 -66
  83. package/dist/types/excalidraw/components/App.drawshape.d.ts +55 -0
  84. package/dist/types/excalidraw/components/App.flowchart.d.ts +21 -0
  85. package/dist/types/excalidraw/components/App.viewport.d.ts +73 -0
  86. package/dist/types/excalidraw/components/ColorPicker/ColorPicker.d.ts +9 -3
  87. package/dist/types/excalidraw/components/ColorPicker/CustomColorList.d.ts +3 -1
  88. package/dist/types/excalidraw/components/ColorPicker/Picker.d.ts +3 -1
  89. package/dist/types/excalidraw/components/ColorPicker/PickerColorList.d.ts +9 -2
  90. package/dist/types/excalidraw/components/ColorPicker/ShadeList.d.ts +4 -2
  91. package/dist/types/excalidraw/components/ColorPicker/TopPicks.d.ts +8 -1
  92. package/dist/types/excalidraw/components/ColorPicker/colorPickerUtils.d.ts +1 -1
  93. package/dist/types/excalidraw/components/ColorPicker/keyboardNavHandlers.d.ts +2 -1
  94. package/dist/types/excalidraw/components/ColorPicker/topPicksDnD.d.ts +31 -0
  95. package/dist/types/excalidraw/components/CommandPalette/defaultCommandPaletteItems.d.ts +1 -2
  96. package/dist/types/excalidraw/components/ConvertElementTypePopup.d.ts +2 -2
  97. package/dist/types/excalidraw/components/CursorHint.d.ts +46 -0
  98. package/dist/types/excalidraw/components/EyeDropper.d.ts +1 -1
  99. package/dist/types/excalidraw/components/{ToolButton.d.ts → IconButton.d.ts} +16 -19
  100. package/dist/types/excalidraw/components/Island.d.ts +7 -0
  101. package/dist/types/excalidraw/components/LaserPointerButton.d.ts +2 -4
  102. package/dist/types/excalidraw/components/LayerUI.d.ts +5 -2
  103. package/dist/types/excalidraw/components/LibraryMenu.d.ts +1 -1
  104. package/dist/types/excalidraw/components/LockButton.d.ts +3 -4
  105. package/dist/types/excalidraw/components/MagicButton.d.ts +0 -2
  106. package/dist/types/excalidraw/components/MobileMenu.d.ts +4 -4
  107. package/dist/types/excalidraw/components/MobileToolbar.d.ts +9 -0
  108. package/dist/types/excalidraw/components/OverwriteConfirm/OverwriteConfirmState.d.ts +1 -1
  109. package/dist/types/excalidraw/components/PenModeButton.d.ts +2 -5
  110. package/dist/types/excalidraw/components/Popover.d.ts +1 -3
  111. package/dist/types/excalidraw/components/{ButtonIcon.d.ts → RadioButton.d.ts} +2 -5
  112. package/dist/types/excalidraw/components/SVGLayer.d.ts +1 -1
  113. package/dist/types/excalidraw/components/SearchMenu.d.ts +1 -1
  114. package/dist/types/excalidraw/components/Sidebar/Sidebar.d.ts +1 -1
  115. package/dist/types/excalidraw/components/Stats/Angle.d.ts +2 -2
  116. package/dist/types/excalidraw/components/Stats/Dimension.d.ts +2 -2
  117. package/dist/types/excalidraw/components/Stats/DragInput.d.ts +2 -2
  118. package/dist/types/excalidraw/components/Stats/MultiAngle.d.ts +2 -2
  119. package/dist/types/excalidraw/components/Stats/MultiDimension.d.ts +2 -2
  120. package/dist/types/excalidraw/components/Stats/MultiPosition.d.ts +2 -2
  121. package/dist/types/excalidraw/components/Stats/Position.d.ts +3 -3
  122. package/dist/types/excalidraw/components/Stats/utils.d.ts +1 -1
  123. package/dist/types/excalidraw/components/TTDDialog/TTDContext.d.ts +4 -4
  124. package/dist/types/excalidraw/components/TTDDialog/useTTDChatStorage.d.ts +3 -3
  125. package/dist/types/excalidraw/components/ToolPopover.d.ts +3 -6
  126. package/dist/types/excalidraw/components/Toolbar.d.ts +11 -0
  127. package/dist/types/excalidraw/components/Tools.d.ts +146 -0
  128. package/dist/types/excalidraw/components/UserList.d.ts +3 -2
  129. package/dist/types/excalidraw/components/ViewportStatusFrame/ViewportStatusFrame.d.ts +11 -0
  130. package/dist/types/excalidraw/components/canvases/InteractiveCanvas.d.ts +3 -1
  131. package/dist/types/excalidraw/components/canvases/NewElementCanvas.d.ts +1 -0
  132. package/dist/types/excalidraw/components/canvases/StaticCanvas.d.ts +1 -1
  133. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuItemContentRadio.d.ts +2 -1
  134. package/dist/types/excalidraw/components/footer/Footer.d.ts +3 -1
  135. package/dist/types/excalidraw/components/hyperlink/helpers.d.ts +2 -2
  136. package/dist/types/excalidraw/components/icons.d.ts +6 -1
  137. package/dist/types/excalidraw/components/main-menu/DefaultItems.d.ts +8 -4
  138. package/dist/types/excalidraw/components/positionElementBesideCursor.d.ts +26 -0
  139. package/dist/types/excalidraw/components/shapeActionPredicates.d.ts +39 -0
  140. package/dist/types/excalidraw/data/blob.d.ts +34 -16
  141. package/dist/types/excalidraw/data/index.d.ts +4 -4
  142. package/dist/types/excalidraw/data/json.d.ts +23 -14
  143. package/dist/types/excalidraw/data/library.d.ts +1 -1
  144. package/dist/types/excalidraw/drawShapeTrail.d.ts +16 -0
  145. package/dist/types/excalidraw/eraser/index.d.ts +2 -3
  146. package/dist/types/excalidraw/hooks/useAppStateValue.d.ts +29 -0
  147. package/dist/types/excalidraw/hooks/useLibraryItemSvg.d.ts +1 -1
  148. package/dist/types/excalidraw/{laser-trails.d.ts → laserTrails.d.ts} +5 -7
  149. package/dist/types/excalidraw/lasso/index.d.ts +2 -3
  150. package/dist/types/excalidraw/lasso/utils.d.ts +2 -0
  151. package/dist/types/excalidraw/renderer/animation.d.ts +5 -1
  152. package/dist/types/excalidraw/renderer/interactiveScene.d.ts +1 -3
  153. package/dist/types/excalidraw/scene/Renderer.d.ts +426 -19
  154. package/dist/types/excalidraw/scene/export.d.ts +3 -3
  155. package/dist/types/excalidraw/scene/index.d.ts +2 -2
  156. package/dist/types/excalidraw/scene/types.d.ts +4 -3
  157. package/dist/types/excalidraw/snapping.d.ts +7 -7
  158. package/dist/types/excalidraw/types.d.ts +415 -23
  159. package/dist/types/excalidraw/viewport.d.ts +275 -0
  160. package/dist/types/excalidraw/wysiwyg/textWysiwyg.d.ts +2 -3
  161. package/dist/types/fractional-indexing/src/index.d.ts +29 -0
  162. package/dist/types/laser-pointer/src/index.d.ts +2 -0
  163. package/dist/types/laser-pointer/src/math.d.ts +16 -0
  164. package/dist/types/laser-pointer/src/simplify.d.ts +2 -0
  165. package/dist/types/laser-pointer/src/state.d.ts +36 -0
  166. package/dist/types/math/src/constants.d.ts +0 -1
  167. package/dist/types/math/src/curve.d.ts +4 -1
  168. package/dist/types/math/src/index.d.ts +1 -0
  169. package/dist/types/math/src/pca.d.ts +79 -0
  170. package/dist/types/math/src/point.d.ts +1 -0
  171. package/dist/types/math/src/polygon.d.ts +25 -1
  172. package/dist/types/utils/src/export.d.ts +3 -3
  173. package/dist/types/utils/src/index.d.ts +1 -2
  174. package/package.json +2 -2
  175. package/dist/types/excalidraw/animation-frame-handler.d.ts +0 -16
  176. package/dist/types/excalidraw/components/FollowMode/FollowMode.d.ts +0 -10
  177. package/dist/types/excalidraw/components/HandButton.d.ts +0 -10
  178. package/dist/types/excalidraw/components/MobileToolBar.d.ts +0 -10
  179. package/dist/types/excalidraw/components/shapes.d.ts +0 -263
  180. package/dist/types/excalidraw/cursor.d.ts +0 -5
  181. package/dist/types/excalidraw/scene/scroll.d.ts +0 -18
  182. package/dist/types/excalidraw/scene/zoom.d.ts +0 -12
  183. package/dist/types/utils/src/bbox.d.ts +0 -9
  184. package/dist/types/utils/src/withinBounds.d.ts +0 -19
@@ -27,13 +27,17 @@ export declare const actionPaste: {
27
27
  multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
28
28
  selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
29
29
  isBindingEnabled: boolean;
30
+ boxSelectionMode: import("../types").BoxSelectionMode;
30
31
  bindingPreference: "enabled" | "disabled";
31
32
  isMidpointSnappingEnabled: boolean;
32
- startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
33
33
  suggestedBinding: {
34
34
  element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
35
35
  midPoint?: import("@excalidraw/math").GlobalPoint;
36
36
  } | null;
37
+ hoveredArrowTextAnchor: {
38
+ elementId: import("@excalidraw/element/types").ExcalidrawArrowElement["id"];
39
+ anchor: "start" | "end" | "label";
40
+ } | null;
37
41
  frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
38
42
  frameRendering: {
39
43
  enabled: boolean;
@@ -41,8 +45,8 @@ export declare const actionPaste: {
41
45
  outline: boolean;
42
46
  clip: boolean;
43
47
  };
44
- editingFrame: string | null;
45
- elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
48
+ editingFrame: import("@excalidraw/element/types").ExcalidrawFrameLikeElement["id"] | null;
49
+ elementsToHighlight: readonly import("@excalidraw/element/types").NonDeletedExcalidrawElement[] | null;
46
50
  editingTextElement: import("@excalidraw/element/types").ExcalidrawTextElement | null;
47
51
  activeTool: {
48
52
  lastActiveTool: import("../types").ActiveTool | null;
@@ -62,9 +66,10 @@ export declare const actionPaste: {
62
66
  currentItemStrokeColor: string;
63
67
  currentItemBackgroundColor: string;
64
68
  currentItemFillStyle: import("@excalidraw/element/types").ExcalidrawElement["fillStyle"];
65
- currentItemStrokeWidth: number;
69
+ currentItemStrokeWidthKey: import("@excalidraw/common").StrokeWidthKey;
66
70
  currentItemStrokeStyle: import("@excalidraw/element/types").ExcalidrawElement["strokeStyle"];
67
71
  currentItemRoughness: number;
72
+ currentItemStrokeVariability: import("@excalidraw/element/types").StrokeVariability;
68
73
  currentItemOpacity: number;
69
74
  currentItemFontFamily: import("@excalidraw/element/types").FontFamilyValues;
70
75
  currentItemFontSize: number;
@@ -77,6 +82,7 @@ export declare const actionPaste: {
77
82
  viewBackgroundColor: string;
78
83
  scrollX: number;
79
84
  scrollY: number;
85
+ scrollConstraints: import("../types").ScrollConstraints | null;
80
86
  cursorButton: "up" | "down";
81
87
  scrolledOutside: boolean;
82
88
  name: string | null;
@@ -152,8 +158,6 @@ export declare const actionPaste: {
152
158
  y: number;
153
159
  } | null;
154
160
  objectsSnapModeEnabled: boolean;
155
- userToFollow: import("../types").UserToFollow | null;
156
- followedBy: Set<import("../types").SocketId>;
157
161
  isCropping: boolean;
158
162
  croppingElementId: import("@excalidraw/element/types").ExcalidrawElement["id"] | null;
159
163
  searchMatches: Readonly<{
@@ -165,6 +169,11 @@ export declare const actionPaste: {
165
169
  [groupId: string]: true;
166
170
  };
167
171
  bindMode: import("@excalidraw/element/types").BindMode;
172
+ colorTopPicks: {
173
+ elementStroke: readonly string[] | null;
174
+ elementBackground: readonly string[] | null;
175
+ bucketFill: readonly string[] | null;
176
+ };
168
177
  };
169
178
  } | {
170
179
  captureUpdate: "EVENTUALLY";
@@ -236,13 +245,17 @@ export declare const actionCopyAsPng: {
236
245
  multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
237
246
  selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
238
247
  isBindingEnabled: boolean;
248
+ boxSelectionMode: import("../types").BoxSelectionMode;
239
249
  bindingPreference: "enabled" | "disabled";
240
250
  isMidpointSnappingEnabled: boolean;
241
- startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
242
251
  suggestedBinding: {
243
252
  element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
244
253
  midPoint?: import("@excalidraw/math").GlobalPoint;
245
254
  } | null;
255
+ hoveredArrowTextAnchor: {
256
+ elementId: import("@excalidraw/element/types").ExcalidrawArrowElement["id"];
257
+ anchor: "start" | "end" | "label";
258
+ } | null;
246
259
  frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
247
260
  frameRendering: {
248
261
  enabled: boolean;
@@ -250,8 +263,8 @@ export declare const actionCopyAsPng: {
250
263
  outline: boolean;
251
264
  clip: boolean;
252
265
  };
253
- editingFrame: string | null;
254
- elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
266
+ editingFrame: import("@excalidraw/element/types").ExcalidrawFrameLikeElement["id"] | null;
267
+ elementsToHighlight: readonly import("@excalidraw/element/types").NonDeletedExcalidrawElement[] | null;
255
268
  editingTextElement: import("@excalidraw/element/types").ExcalidrawTextElement | null;
256
269
  activeTool: {
257
270
  lastActiveTool: import("../types").ActiveTool | null;
@@ -271,9 +284,10 @@ export declare const actionCopyAsPng: {
271
284
  currentItemStrokeColor: string;
272
285
  currentItemBackgroundColor: string;
273
286
  currentItemFillStyle: import("@excalidraw/element/types").ExcalidrawElement["fillStyle"];
274
- currentItemStrokeWidth: number;
287
+ currentItemStrokeWidthKey: import("@excalidraw/common").StrokeWidthKey;
275
288
  currentItemStrokeStyle: import("@excalidraw/element/types").ExcalidrawElement["strokeStyle"];
276
289
  currentItemRoughness: number;
290
+ currentItemStrokeVariability: import("@excalidraw/element/types").StrokeVariability;
277
291
  currentItemOpacity: number;
278
292
  currentItemFontFamily: import("@excalidraw/element/types").FontFamilyValues;
279
293
  currentItemFontSize: number;
@@ -286,6 +300,7 @@ export declare const actionCopyAsPng: {
286
300
  viewBackgroundColor: string;
287
301
  scrollX: number;
288
302
  scrollY: number;
303
+ scrollConstraints: import("../types").ScrollConstraints | null;
289
304
  cursorButton: "up" | "down";
290
305
  scrolledOutside: boolean;
291
306
  name: string | null;
@@ -361,8 +376,6 @@ export declare const actionCopyAsPng: {
361
376
  y: number;
362
377
  } | null;
363
378
  objectsSnapModeEnabled: boolean;
364
- userToFollow: import("../types").UserToFollow | null;
365
- followedBy: Set<import("../types").SocketId>;
366
379
  isCropping: boolean;
367
380
  croppingElementId: import("@excalidraw/element/types").ExcalidrawElement["id"] | null;
368
381
  searchMatches: Readonly<{
@@ -374,6 +387,11 @@ export declare const actionCopyAsPng: {
374
387
  [groupId: string]: true;
375
388
  };
376
389
  bindMode: import("@excalidraw/element/types").BindMode;
390
+ colorTopPicks: {
391
+ elementStroke: readonly string[] | null;
392
+ elementBackground: readonly string[] | null;
393
+ bucketFill: readonly string[] | null;
394
+ };
377
395
  };
378
396
  captureUpdate: "EVENTUALLY";
379
397
  }>;
@@ -28,13 +28,17 @@ export declare const actionToggleCropEditor: {
28
28
  multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
29
29
  selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
30
30
  isBindingEnabled: boolean;
31
+ boxSelectionMode: import("../types").BoxSelectionMode;
31
32
  bindingPreference: "enabled" | "disabled";
32
33
  isMidpointSnappingEnabled: boolean;
33
- startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
34
34
  suggestedBinding: {
35
35
  element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
36
36
  midPoint?: import("@excalidraw/math").GlobalPoint;
37
37
  } | null;
38
+ hoveredArrowTextAnchor: {
39
+ elementId: import("@excalidraw/element/types").ExcalidrawArrowElement["id"];
40
+ anchor: "start" | "end" | "label";
41
+ } | null;
38
42
  frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
39
43
  frameRendering: {
40
44
  enabled: boolean;
@@ -42,8 +46,8 @@ export declare const actionToggleCropEditor: {
42
46
  outline: boolean;
43
47
  clip: boolean;
44
48
  };
45
- editingFrame: string | null;
46
- elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
49
+ editingFrame: import("@excalidraw/element/types").ExcalidrawFrameLikeElement["id"] | null;
50
+ elementsToHighlight: readonly import("@excalidraw/element/types").NonDeletedExcalidrawElement[] | null;
47
51
  editingTextElement: import("@excalidraw/element/types").ExcalidrawTextElement | null;
48
52
  activeTool: {
49
53
  lastActiveTool: import("../types").ActiveTool | null;
@@ -63,9 +67,10 @@ export declare const actionToggleCropEditor: {
63
67
  currentItemStrokeColor: string;
64
68
  currentItemBackgroundColor: string;
65
69
  currentItemFillStyle: import("@excalidraw/element/types").ExcalidrawElement["fillStyle"];
66
- currentItemStrokeWidth: number;
70
+ currentItemStrokeWidthKey: import("@excalidraw/common").StrokeWidthKey;
67
71
  currentItemStrokeStyle: import("@excalidraw/element/types").ExcalidrawElement["strokeStyle"];
68
72
  currentItemRoughness: number;
73
+ currentItemStrokeVariability: import("@excalidraw/element/types").StrokeVariability;
69
74
  currentItemOpacity: number;
70
75
  currentItemFontFamily: import("@excalidraw/element/types").FontFamilyValues;
71
76
  currentItemFontSize: number;
@@ -78,6 +83,7 @@ export declare const actionToggleCropEditor: {
78
83
  viewBackgroundColor: string;
79
84
  scrollX: number;
80
85
  scrollY: number;
86
+ scrollConstraints: import("../types").ScrollConstraints | null;
81
87
  cursorButton: "up" | "down";
82
88
  scrolledOutside: boolean;
83
89
  name: string | null;
@@ -153,8 +159,6 @@ export declare const actionToggleCropEditor: {
153
159
  y: number;
154
160
  } | null;
155
161
  objectsSnapModeEnabled: boolean;
156
- userToFollow: import("../types").UserToFollow | null;
157
- followedBy: Set<import("../types").SocketId>;
158
162
  searchMatches: Readonly<{
159
163
  focusedId: import("@excalidraw/element/types").ExcalidrawElement["id"] | null;
160
164
  matches: readonly import("../types").SearchMatch[];
@@ -164,6 +168,11 @@ export declare const actionToggleCropEditor: {
164
168
  [groupId: string]: true;
165
169
  };
166
170
  bindMode: import("@excalidraw/element/types").BindMode;
171
+ colorTopPicks: {
172
+ elementStroke: readonly string[] | null;
173
+ elementBackground: readonly string[] | null;
174
+ bucketFill: readonly string[] | null;
175
+ };
167
176
  };
168
177
  captureUpdate: "IMMEDIATELY";
169
178
  };
@@ -29,13 +29,17 @@ export declare const actionDeleteSelected: {
29
29
  multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
30
30
  selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
31
31
  isBindingEnabled: boolean;
32
+ boxSelectionMode: import("../types").BoxSelectionMode;
32
33
  bindingPreference: "enabled" | "disabled";
33
34
  isMidpointSnappingEnabled: boolean;
34
- startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
35
35
  suggestedBinding: {
36
36
  element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
37
37
  midPoint?: import("@excalidraw/math").GlobalPoint;
38
38
  } | null;
39
+ hoveredArrowTextAnchor: {
40
+ elementId: import("@excalidraw/element/types").ExcalidrawArrowElement["id"];
41
+ anchor: "start" | "end" | "label";
42
+ } | null;
39
43
  frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
40
44
  frameRendering: {
41
45
  enabled: boolean;
@@ -43,8 +47,8 @@ export declare const actionDeleteSelected: {
43
47
  outline: boolean;
44
48
  clip: boolean;
45
49
  };
46
- editingFrame: string | null;
47
- elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
50
+ editingFrame: import("@excalidraw/element/types").ExcalidrawFrameLikeElement["id"] | null;
51
+ elementsToHighlight: readonly import("@excalidraw/element/types").NonDeletedExcalidrawElement[] | null;
48
52
  editingTextElement: import("@excalidraw/element/types").ExcalidrawTextElement | null;
49
53
  activeTool: {
50
54
  lastActiveTool: import("../types").ActiveTool | null;
@@ -64,9 +68,10 @@ export declare const actionDeleteSelected: {
64
68
  currentItemStrokeColor: string;
65
69
  currentItemBackgroundColor: string;
66
70
  currentItemFillStyle: ExcalidrawElement["fillStyle"];
67
- currentItemStrokeWidth: number;
71
+ currentItemStrokeWidthKey: import("@excalidraw/common").StrokeWidthKey;
68
72
  currentItemStrokeStyle: ExcalidrawElement["strokeStyle"];
69
73
  currentItemRoughness: number;
74
+ currentItemStrokeVariability: import("@excalidraw/element/types").StrokeVariability;
70
75
  currentItemOpacity: number;
71
76
  currentItemFontFamily: import("@excalidraw/element/types").FontFamilyValues;
72
77
  currentItemFontSize: number;
@@ -79,6 +84,7 @@ export declare const actionDeleteSelected: {
79
84
  viewBackgroundColor: string;
80
85
  scrollX: number;
81
86
  scrollY: number;
87
+ scrollConstraints: import("../types").ScrollConstraints | null;
82
88
  cursorButton: "up" | "down";
83
89
  scrolledOutside: boolean;
84
90
  name: string | null;
@@ -153,8 +159,6 @@ export declare const actionDeleteSelected: {
153
159
  y: number;
154
160
  } | null;
155
161
  objectsSnapModeEnabled: boolean;
156
- userToFollow: import("../types").UserToFollow | null;
157
- followedBy: Set<import("../types").SocketId>;
158
162
  isCropping: boolean;
159
163
  croppingElementId: ExcalidrawElement["id"] | null;
160
164
  searchMatches: Readonly<{
@@ -166,6 +170,11 @@ export declare const actionDeleteSelected: {
166
170
  [groupId: string]: true;
167
171
  };
168
172
  bindMode: import("@excalidraw/element/types").BindMode;
173
+ colorTopPicks: {
174
+ elementStroke: readonly string[] | null;
175
+ elementBackground: readonly string[] | null;
176
+ bucketFill: readonly string[] | null;
177
+ };
169
178
  };
170
179
  captureUpdate: "IMMEDIATELY";
171
180
  } | {
@@ -187,6 +196,7 @@ export declare const actionDeleteSelected: {
187
196
  };
188
197
  arrowStartIsInside: boolean;
189
198
  altFocusPoint: Readonly<import("@excalidraw/math").GlobalPoint> | null;
199
+ arrowOtherEndpointInitialBinding: import("@excalidraw/element/types").FixedPointBinding | null;
190
200
  }>;
191
201
  isDragging: boolean;
192
202
  lastUncommittedPoint: import("@excalidraw/math").LocalPoint | null;
@@ -221,13 +231,17 @@ export declare const actionDeleteSelected: {
221
231
  multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
222
232
  selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
223
233
  isBindingEnabled: boolean;
234
+ boxSelectionMode: import("../types").BoxSelectionMode;
224
235
  bindingPreference: "enabled" | "disabled";
225
236
  isMidpointSnappingEnabled: boolean;
226
- startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
227
237
  suggestedBinding: {
228
238
  element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
229
239
  midPoint?: import("@excalidraw/math").GlobalPoint;
230
240
  } | null;
241
+ hoveredArrowTextAnchor: {
242
+ elementId: import("@excalidraw/element/types").ExcalidrawArrowElement["id"];
243
+ anchor: "start" | "end" | "label";
244
+ } | null;
231
245
  frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
232
246
  frameRendering: {
233
247
  enabled: boolean;
@@ -235,8 +249,8 @@ export declare const actionDeleteSelected: {
235
249
  outline: boolean;
236
250
  clip: boolean;
237
251
  };
238
- editingFrame: string | null;
239
- elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
252
+ editingFrame: import("@excalidraw/element/types").ExcalidrawFrameLikeElement["id"] | null;
253
+ elementsToHighlight: readonly import("@excalidraw/element/types").NonDeletedExcalidrawElement[] | null;
240
254
  editingTextElement: import("@excalidraw/element/types").ExcalidrawTextElement | null;
241
255
  activeTool: {
242
256
  lastActiveTool: import("../types").ActiveTool | null;
@@ -256,9 +270,10 @@ export declare const actionDeleteSelected: {
256
270
  currentItemStrokeColor: string;
257
271
  currentItemBackgroundColor: string;
258
272
  currentItemFillStyle: ExcalidrawElement["fillStyle"];
259
- currentItemStrokeWidth: number;
273
+ currentItemStrokeWidthKey: import("@excalidraw/common").StrokeWidthKey;
260
274
  currentItemStrokeStyle: ExcalidrawElement["strokeStyle"];
261
275
  currentItemRoughness: number;
276
+ currentItemStrokeVariability: import("@excalidraw/element/types").StrokeVariability;
262
277
  currentItemOpacity: number;
263
278
  currentItemFontFamily: import("@excalidraw/element/types").FontFamilyValues;
264
279
  currentItemFontSize: number;
@@ -271,6 +286,7 @@ export declare const actionDeleteSelected: {
271
286
  viewBackgroundColor: string;
272
287
  scrollX: number;
273
288
  scrollY: number;
289
+ scrollConstraints: import("../types").ScrollConstraints | null;
274
290
  cursorButton: "up" | "down";
275
291
  scrolledOutside: boolean;
276
292
  name: string | null;
@@ -345,8 +361,6 @@ export declare const actionDeleteSelected: {
345
361
  y: number;
346
362
  } | null;
347
363
  objectsSnapModeEnabled: boolean;
348
- userToFollow: import("../types").UserToFollow | null;
349
- followedBy: Set<import("../types").SocketId>;
350
364
  isCropping: boolean;
351
365
  croppingElementId: ExcalidrawElement["id"] | null;
352
366
  searchMatches: Readonly<{
@@ -358,10 +372,15 @@ export declare const actionDeleteSelected: {
358
372
  [groupId: string]: true;
359
373
  };
360
374
  bindMode: import("@excalidraw/element/types").BindMode;
375
+ colorTopPicks: {
376
+ elementStroke: readonly string[] | null;
377
+ elementBackground: readonly string[] | null;
378
+ bucketFill: readonly string[] | null;
379
+ };
361
380
  };
362
381
  captureUpdate: "IMMEDIATELY";
363
382
  } | {
364
- elements: ExcalidrawElement[];
383
+ elements: (import("@excalidraw/element/types").ExcalidrawLinearElement | import("@excalidraw/element/types").ExcalidrawSelectionElement | import("@excalidraw/element/types").ExcalidrawRectangleElement | import("@excalidraw/element/types").ExcalidrawDiamondElement | import("@excalidraw/element/types").ExcalidrawEllipseElement | import("@excalidraw/element/types").ExcalidrawEmbeddableElement | import("@excalidraw/element/types").ExcalidrawIframeElement | import("@excalidraw/element/types").ExcalidrawImageElement | import("@excalidraw/element/types").ExcalidrawFrameElement | import("@excalidraw/element/types").ExcalidrawMagicFrameElement | import("@excalidraw/element/types").ExcalidrawTextElement | import("@excalidraw/element/types").ExcalidrawFreeDrawElement)[];
365
384
  appState: {
366
385
  activeTool: {
367
386
  lastActiveTool: import("../types").ActiveTool | null;
@@ -386,13 +405,17 @@ export declare const actionDeleteSelected: {
386
405
  resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
387
406
  selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
388
407
  isBindingEnabled: boolean;
408
+ boxSelectionMode: import("../types").BoxSelectionMode;
389
409
  bindingPreference: "enabled" | "disabled";
390
410
  isMidpointSnappingEnabled: boolean;
391
- startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
392
411
  suggestedBinding: {
393
412
  element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
394
413
  midPoint?: import("@excalidraw/math").GlobalPoint;
395
414
  } | null;
415
+ hoveredArrowTextAnchor: {
416
+ elementId: import("@excalidraw/element/types").ExcalidrawArrowElement["id"];
417
+ anchor: "start" | "end" | "label";
418
+ } | null;
396
419
  frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
397
420
  frameRendering: {
398
421
  enabled: boolean;
@@ -400,8 +423,8 @@ export declare const actionDeleteSelected: {
400
423
  outline: boolean;
401
424
  clip: boolean;
402
425
  };
403
- editingFrame: string | null;
404
- elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
426
+ editingFrame: import("@excalidraw/element/types").ExcalidrawFrameLikeElement["id"] | null;
427
+ elementsToHighlight: readonly import("@excalidraw/element/types").NonDeletedExcalidrawElement[] | null;
405
428
  editingTextElement: import("@excalidraw/element/types").ExcalidrawTextElement | null;
406
429
  preferredSelectionTool: {
407
430
  type: "selection" | "lasso";
@@ -416,9 +439,10 @@ export declare const actionDeleteSelected: {
416
439
  currentItemStrokeColor: string;
417
440
  currentItemBackgroundColor: string;
418
441
  currentItemFillStyle: ExcalidrawElement["fillStyle"];
419
- currentItemStrokeWidth: number;
442
+ currentItemStrokeWidthKey: import("@excalidraw/common").StrokeWidthKey;
420
443
  currentItemStrokeStyle: ExcalidrawElement["strokeStyle"];
421
444
  currentItemRoughness: number;
445
+ currentItemStrokeVariability: import("@excalidraw/element/types").StrokeVariability;
422
446
  currentItemOpacity: number;
423
447
  currentItemFontFamily: import("@excalidraw/element/types").FontFamilyValues;
424
448
  currentItemFontSize: number;
@@ -431,6 +455,7 @@ export declare const actionDeleteSelected: {
431
455
  viewBackgroundColor: string;
432
456
  scrollX: number;
433
457
  scrollY: number;
458
+ scrollConstraints: import("../types").ScrollConstraints | null;
434
459
  cursorButton: "up" | "down";
435
460
  scrolledOutside: boolean;
436
461
  name: string | null;
@@ -498,8 +523,6 @@ export declare const actionDeleteSelected: {
498
523
  y: number;
499
524
  } | null;
500
525
  objectsSnapModeEnabled: boolean;
501
- userToFollow: import("../types").UserToFollow | null;
502
- followedBy: Set<import("../types").SocketId>;
503
526
  isCropping: boolean;
504
527
  croppingElementId: ExcalidrawElement["id"] | null;
505
528
  searchMatches: Readonly<{
@@ -511,6 +534,11 @@ export declare const actionDeleteSelected: {
511
534
  [groupId: string]: true;
512
535
  };
513
536
  bindMode: import("@excalidraw/element/types").BindMode;
537
+ colorTopPicks: {
538
+ elementStroke: readonly string[] | null;
539
+ elementBackground: readonly string[] | null;
540
+ bucketFill: readonly string[] | null;
541
+ };
514
542
  };
515
543
  captureUpdate: "IMMEDIATELY" | "EVENTUALLY";
516
544
  };
@@ -1,18 +1,25 @@
1
- export declare const actionSetEmbeddableAsActiveTool: {
2
- name: "setEmbeddableAsActiveTool";
3
- trackEvent: {
4
- category: "toolbar";
5
- };
6
- target: string;
1
+ import type { AppClassProperties, AppState } from "../types";
2
+ export declare const actionDeselect: {
3
+ name: "deselect";
7
4
  label: string;
8
- perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, _: unknown, app: import("../types").AppClassProperties) => {
9
- elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[];
5
+ trackEvent: false;
6
+ perform: (_elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: unknown, app: AppClassProperties) => {
10
7
  appState: {
8
+ activeEmbeddable: null;
11
9
  activeTool: {
12
10
  lastActiveTool: import("../types").ActiveTool | null;
13
11
  locked: boolean;
14
12
  fromSelection: boolean;
15
13
  } & import("../types").ActiveTool;
14
+ selectedLinearElement: null;
15
+ selectionElement: null;
16
+ showHyperlinkPopup: false;
17
+ suggestedBinding: null;
18
+ hoveredArrowTextAnchor: null;
19
+ frameToHighlight: null;
20
+ editingGroupId: AppState["editingGroupId"];
21
+ selectedElementIds: AppState["selectedElementIds"];
22
+ selectedGroupIds: AppState["selectedGroupIds"];
16
23
  contextMenu: {
17
24
  items: import("../components/ContextMenu").ContextMenuItems;
18
25
  top: number;
@@ -21,31 +28,21 @@ export declare const actionSetEmbeddableAsActiveTool: {
21
28
  showWelcomeScreen: boolean;
22
29
  isLoading: boolean;
23
30
  errorMessage: React.ReactNode;
24
- activeEmbeddable: {
25
- element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
26
- state: "hover" | "active";
27
- } | null;
28
31
  newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
29
32
  resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
30
33
  multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
31
- selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
32
34
  isBindingEnabled: boolean;
35
+ boxSelectionMode: import("../types").BoxSelectionMode;
33
36
  bindingPreference: "enabled" | "disabled";
34
37
  isMidpointSnappingEnabled: boolean;
35
- startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
36
- suggestedBinding: {
37
- element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
38
- midPoint?: import("@excalidraw/math").GlobalPoint;
39
- } | null;
40
- frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
41
38
  frameRendering: {
42
39
  enabled: boolean;
43
40
  name: boolean;
44
41
  outline: boolean;
45
42
  clip: boolean;
46
43
  };
47
- editingFrame: string | null;
48
- elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
44
+ editingFrame: import("@excalidraw/element/types").ExcalidrawFrameLikeElement["id"] | null;
45
+ elementsToHighlight: readonly import("@excalidraw/element/types").NonDeletedExcalidrawElement[] | null;
49
46
  editingTextElement: import("@excalidraw/element/types").ExcalidrawTextElement | null;
50
47
  preferredSelectionTool: {
51
48
  type: "selection" | "lasso";
@@ -60,9 +57,10 @@ export declare const actionSetEmbeddableAsActiveTool: {
60
57
  currentItemStrokeColor: string;
61
58
  currentItemBackgroundColor: string;
62
59
  currentItemFillStyle: import("@excalidraw/element/types").ExcalidrawElement["fillStyle"];
63
- currentItemStrokeWidth: number;
60
+ currentItemStrokeWidthKey: import("@excalidraw/common").StrokeWidthKey;
64
61
  currentItemStrokeStyle: import("@excalidraw/element/types").ExcalidrawElement["strokeStyle"];
65
62
  currentItemRoughness: number;
63
+ currentItemStrokeVariability: import("@excalidraw/element/types").StrokeVariability;
66
64
  currentItemOpacity: number;
67
65
  currentItemFontFamily: import("@excalidraw/element/types").FontFamilyValues;
68
66
  currentItemFontSize: number;
@@ -75,6 +73,7 @@ export declare const actionSetEmbeddableAsActiveTool: {
75
73
  viewBackgroundColor: string;
76
74
  scrollX: number;
77
75
  scrollY: number;
76
+ scrollConstraints: import("../types").ScrollConstraints | null;
78
77
  cursorButton: "up" | "down";
79
78
  scrolledOutside: boolean;
80
79
  name: string | null;
@@ -106,9 +105,6 @@ export declare const actionSetEmbeddableAsActiveTool: {
106
105
  };
107
106
  defaultSidebarDockedPreference: boolean;
108
107
  lastPointerDownWith: import("@excalidraw/element/types").PointerType;
109
- selectedElementIds: Readonly<{
110
- [id: string]: true;
111
- }>;
112
108
  hoveredElementIds: Readonly<{
113
109
  [id: string]: true;
114
110
  }>;
@@ -128,10 +124,6 @@ export declare const actionSetEmbeddableAsActiveTool: {
128
124
  gridStep: number;
129
125
  gridModeEnabled: boolean;
130
126
  viewModeEnabled: boolean;
131
- selectedGroupIds: {
132
- [groupId: string]: boolean;
133
- };
134
- editingGroupId: import("@excalidraw/element/types").GroupId | null;
135
127
  width: number;
136
128
  height: number;
137
129
  offsetTop: number;
@@ -142,16 +134,12 @@ export declare const actionSetEmbeddableAsActiveTool: {
142
134
  open: boolean;
143
135
  panels: number;
144
136
  };
145
- showHyperlinkPopup: false | "info" | "editor";
146
- selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
147
137
  snapLines: readonly import("../snapping").SnapLine[];
148
138
  originSnapOffset: {
149
139
  x: number;
150
140
  y: number;
151
141
  } | null;
152
142
  objectsSnapModeEnabled: boolean;
153
- userToFollow: import("../types").UserToFollow | null;
154
- followedBy: Set<import("../types").SocketId>;
155
143
  isCropping: boolean;
156
144
  croppingElementId: import("@excalidraw/element/types").ExcalidrawElement["id"] | null;
157
145
  searchMatches: Readonly<{
@@ -163,9 +151,15 @@ export declare const actionSetEmbeddableAsActiveTool: {
163
151
  [groupId: string]: true;
164
152
  };
165
153
  bindMode: import("@excalidraw/element/types").BindMode;
154
+ colorTopPicks: {
155
+ elementStroke: readonly string[] | null;
156
+ elementBackground: readonly string[] | null;
157
+ bucketFill: readonly string[] | null;
158
+ };
166
159
  };
167
- captureUpdate: "EVENTUALLY";
160
+ captureUpdate: "IMMEDIATELY";
168
161
  };
162
+ keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>, appState: AppState, _: readonly import("@excalidraw/element/types").ExcalidrawElement[], app: AppClassProperties) => boolean;
169
163
  } & {
170
- keyTest?: undefined;
164
+ keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>, appState: AppState, _: readonly import("@excalidraw/element/types").ExcalidrawElement[], app: AppClassProperties) => boolean) | undefined;
171
165
  };
@@ -1,4 +1,3 @@
1
- import type { ExcalidrawElement } from "@excalidraw/element/types";
2
1
  import type { AppClassProperties, AppState } from "../types";
3
2
  export declare const distributeHorizontally: {
4
3
  name: "distributeHorizontally";
@@ -8,7 +7,7 @@ export declare const distributeHorizontally: {
8
7
  };
9
8
  perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: unknown, app: AppClassProperties) => {
10
9
  appState: Readonly<AppState>;
11
- elements: ExcalidrawElement[];
10
+ elements: (import("@excalidraw/element/types").ExcalidrawLinearElement | import("@excalidraw/element/types").ExcalidrawSelectionElement | import("@excalidraw/element/types").ExcalidrawRectangleElement | import("@excalidraw/element/types").ExcalidrawDiamondElement | import("@excalidraw/element/types").ExcalidrawEllipseElement | import("@excalidraw/element/types").ExcalidrawEmbeddableElement | import("@excalidraw/element/types").ExcalidrawIframeElement | import("@excalidraw/element/types").ExcalidrawImageElement | import("@excalidraw/element/types").ExcalidrawFrameElement | import("@excalidraw/element/types").ExcalidrawMagicFrameElement | import("@excalidraw/element/types").ExcalidrawTextElement | import("@excalidraw/element/types").ExcalidrawFreeDrawElement)[];
12
11
  captureUpdate: "IMMEDIATELY";
13
12
  };
14
13
  keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
@@ -24,7 +23,7 @@ export declare const distributeVertically: {
24
23
  };
25
24
  perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: unknown, app: AppClassProperties) => {
26
25
  appState: Readonly<AppState>;
27
- elements: ExcalidrawElement[];
26
+ elements: (import("@excalidraw/element/types").ExcalidrawLinearElement | import("@excalidraw/element/types").ExcalidrawSelectionElement | import("@excalidraw/element/types").ExcalidrawRectangleElement | import("@excalidraw/element/types").ExcalidrawDiamondElement | import("@excalidraw/element/types").ExcalidrawEllipseElement | import("@excalidraw/element/types").ExcalidrawEmbeddableElement | import("@excalidraw/element/types").ExcalidrawIframeElement | import("@excalidraw/element/types").ExcalidrawImageElement | import("@excalidraw/element/types").ExcalidrawFrameElement | import("@excalidraw/element/types").ExcalidrawMagicFrameElement | import("@excalidraw/element/types").ExcalidrawTextElement | import("@excalidraw/element/types").ExcalidrawFreeDrawElement)[];
28
27
  captureUpdate: "IMMEDIATELY";
29
28
  };
30
29
  keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;