@excalidraw/math 0.18.0-a9ca16e → 0.18.0-ab0255f

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 (175) 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 +17 -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/textElement.d.ts +12 -9
  35. package/dist/types/element/src/transform.d.ts +2 -2
  36. package/dist/types/element/src/typeChecks.d.ts +26 -25
  37. package/dist/types/element/src/types.d.ts +8 -1
  38. package/dist/types/element/src/utils.d.ts +1 -1
  39. package/dist/types/element/src/zindex.d.ts +2 -2
  40. package/dist/types/excalidraw/actions/actionAddToLibrary.d.ts +30 -12
  41. package/dist/types/excalidraw/actions/actionAlign.d.ts +6 -6
  42. package/dist/types/excalidraw/actions/actionBoundText.d.ts +20 -8
  43. package/dist/types/excalidraw/actions/actionCanvas.d.ts +132 -926
  44. package/dist/types/excalidraw/actions/actionClipboard.d.ts +20 -8
  45. package/dist/types/excalidraw/actions/actionCropEditor.d.ts +10 -4
  46. package/dist/types/excalidraw/actions/actionDeleteSelected.d.ts +32 -13
  47. package/dist/types/excalidraw/actions/{actionEmbeddable.d.ts → actionDeselect.d.ts} +24 -33
  48. package/dist/types/excalidraw/actions/actionDistribute.d.ts +2 -3
  49. package/dist/types/excalidraw/actions/actionElementLink.d.ts +10 -4
  50. package/dist/types/excalidraw/actions/actionElementLock.d.ts +21 -9
  51. package/dist/types/excalidraw/actions/actionExport.d.ts +22 -10
  52. package/dist/types/excalidraw/actions/actionFrame.d.ts +42 -196
  53. package/dist/types/excalidraw/actions/actionGroup.d.ts +35 -23
  54. package/dist/types/excalidraw/actions/actionLinearEditor.d.ts +14 -6
  55. package/dist/types/excalidraw/actions/actionLink.d.ts +11 -5
  56. package/dist/types/excalidraw/actions/actionMenu.d.ts +10 -4
  57. package/dist/types/excalidraw/actions/actionProperties.d.ts +50 -26
  58. package/dist/types/excalidraw/actions/actionSelectAll.d.ts +15 -9
  59. package/dist/types/excalidraw/actions/actionStyles.d.ts +10 -4
  60. package/dist/types/excalidraw/actions/actionTextAutoResize.d.ts +1 -1
  61. package/dist/types/excalidraw/actions/actionToggleArrowBinding.d.ts +11 -5
  62. package/dist/types/excalidraw/actions/actionToggleGridMode.d.ts +14 -9
  63. package/dist/types/excalidraw/actions/actionToggleMidpointSnapping.d.ts +11 -5
  64. package/dist/types/excalidraw/actions/actionToggleObjectsSnapMode.d.ts +11 -5
  65. package/dist/types/excalidraw/actions/actionToggleSearchMenu.d.ts +14 -9
  66. package/dist/types/excalidraw/actions/actionToggleShapeSwitch.d.ts +1 -1
  67. package/dist/types/excalidraw/actions/actionToggleStats.d.ts +11 -5
  68. package/dist/types/excalidraw/actions/actionToggleViewMode.d.ts +12 -6
  69. package/dist/types/excalidraw/actions/actionToggleZenMode.d.ts +11 -5
  70. package/dist/types/excalidraw/actions/index.d.ts +2 -2
  71. package/dist/types/excalidraw/actions/manager.d.ts +1 -0
  72. package/dist/types/excalidraw/actions/shortcuts.d.ts +1 -1
  73. package/dist/types/excalidraw/actions/types.d.ts +8 -4
  74. package/dist/types/excalidraw/{animated-trail.d.ts → animatedTrail.d.ts} +4 -3
  75. package/dist/types/excalidraw/appState.d.ts +7 -5
  76. package/dist/types/excalidraw/components/Actions.d.ts +17 -12
  77. package/dist/types/excalidraw/components/ActiveConfirmDialog.d.ts +1 -1
  78. package/dist/types/excalidraw/components/App.arrowText.d.ts +72 -0
  79. package/dist/types/excalidraw/components/App.bucketFill.d.ts +34 -0
  80. package/dist/types/excalidraw/components/App.cursor.d.ts +31 -0
  81. package/dist/types/excalidraw/components/App.d.ts +355 -65
  82. package/dist/types/excalidraw/components/App.drawshape.d.ts +55 -0
  83. package/dist/types/excalidraw/components/App.flowchart.d.ts +21 -0
  84. package/dist/types/excalidraw/components/App.viewport.d.ts +73 -0
  85. package/dist/types/excalidraw/components/ColorPicker/ColorPicker.d.ts +5 -3
  86. package/dist/types/excalidraw/components/ColorPicker/Picker.d.ts +1 -0
  87. package/dist/types/excalidraw/components/ColorPicker/PickerColorList.d.ts +6 -1
  88. package/dist/types/excalidraw/components/ColorPicker/colorPickerUtils.d.ts +1 -1
  89. package/dist/types/excalidraw/components/ColorPicker/keyboardNavHandlers.d.ts +2 -1
  90. package/dist/types/excalidraw/components/CommandPalette/defaultCommandPaletteItems.d.ts +1 -2
  91. package/dist/types/excalidraw/components/ConvertElementTypePopup.d.ts +2 -2
  92. package/dist/types/excalidraw/components/CursorHint.d.ts +46 -0
  93. package/dist/types/excalidraw/components/EyeDropper.d.ts +1 -1
  94. package/dist/types/excalidraw/components/{ToolButton.d.ts → IconButton.d.ts} +16 -19
  95. package/dist/types/excalidraw/components/Island.d.ts +7 -0
  96. package/dist/types/excalidraw/components/LaserPointerButton.d.ts +2 -4
  97. package/dist/types/excalidraw/components/LayerUI.d.ts +4 -2
  98. package/dist/types/excalidraw/components/LibraryMenu.d.ts +1 -1
  99. package/dist/types/excalidraw/components/LockButton.d.ts +3 -4
  100. package/dist/types/excalidraw/components/MagicButton.d.ts +0 -2
  101. package/dist/types/excalidraw/components/MobileMenu.d.ts +4 -4
  102. package/dist/types/excalidraw/components/MobileToolbar.d.ts +9 -0
  103. package/dist/types/excalidraw/components/OverwriteConfirm/OverwriteConfirmState.d.ts +1 -1
  104. package/dist/types/excalidraw/components/PenModeButton.d.ts +2 -5
  105. package/dist/types/excalidraw/components/Popover.d.ts +1 -3
  106. package/dist/types/excalidraw/components/{ButtonIcon.d.ts → RadioButton.d.ts} +2 -5
  107. package/dist/types/excalidraw/components/SVGLayer.d.ts +1 -1
  108. package/dist/types/excalidraw/components/SearchMenu.d.ts +1 -1
  109. package/dist/types/excalidraw/components/Sidebar/Sidebar.d.ts +1 -1
  110. package/dist/types/excalidraw/components/Stats/Angle.d.ts +2 -2
  111. package/dist/types/excalidraw/components/Stats/Dimension.d.ts +2 -2
  112. package/dist/types/excalidraw/components/Stats/DragInput.d.ts +2 -2
  113. package/dist/types/excalidraw/components/Stats/MultiAngle.d.ts +2 -2
  114. package/dist/types/excalidraw/components/Stats/MultiDimension.d.ts +2 -2
  115. package/dist/types/excalidraw/components/Stats/MultiPosition.d.ts +2 -2
  116. package/dist/types/excalidraw/components/Stats/Position.d.ts +3 -3
  117. package/dist/types/excalidraw/components/Stats/utils.d.ts +1 -1
  118. package/dist/types/excalidraw/components/TTDDialog/TTDContext.d.ts +4 -4
  119. package/dist/types/excalidraw/components/TTDDialog/useTTDChatStorage.d.ts +3 -3
  120. package/dist/types/excalidraw/components/ToolPopover.d.ts +3 -6
  121. package/dist/types/excalidraw/components/Toolbar.d.ts +11 -0
  122. package/dist/types/excalidraw/components/Tools.d.ts +146 -0
  123. package/dist/types/excalidraw/components/canvases/InteractiveCanvas.d.ts +3 -1
  124. package/dist/types/excalidraw/components/canvases/NewElementCanvas.d.ts +1 -0
  125. package/dist/types/excalidraw/components/canvases/StaticCanvas.d.ts +1 -1
  126. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuItemContentRadio.d.ts +2 -1
  127. package/dist/types/excalidraw/components/footer/Footer.d.ts +3 -1
  128. package/dist/types/excalidraw/components/hyperlink/helpers.d.ts +2 -2
  129. package/dist/types/excalidraw/components/icons.d.ts +3 -1
  130. package/dist/types/excalidraw/components/main-menu/DefaultItems.d.ts +8 -4
  131. package/dist/types/excalidraw/components/positionElementBesideCursor.d.ts +26 -0
  132. package/dist/types/excalidraw/components/shapeActionPredicates.d.ts +39 -0
  133. package/dist/types/excalidraw/data/blob.d.ts +24 -12
  134. package/dist/types/excalidraw/data/index.d.ts +4 -4
  135. package/dist/types/excalidraw/data/json.d.ts +18 -12
  136. package/dist/types/excalidraw/data/library.d.ts +1 -1
  137. package/dist/types/excalidraw/drawShapeTrail.d.ts +16 -0
  138. package/dist/types/excalidraw/eraser/index.d.ts +2 -3
  139. package/dist/types/excalidraw/hooks/useAppStateValue.d.ts +29 -0
  140. package/dist/types/excalidraw/hooks/useLibraryItemSvg.d.ts +1 -1
  141. package/dist/types/excalidraw/{laser-trails.d.ts → laserTrails.d.ts} +5 -7
  142. package/dist/types/excalidraw/lasso/index.d.ts +2 -3
  143. package/dist/types/excalidraw/renderer/animation.d.ts +5 -1
  144. package/dist/types/excalidraw/renderer/interactiveScene.d.ts +1 -3
  145. package/dist/types/excalidraw/scene/Renderer.d.ts +426 -19
  146. package/dist/types/excalidraw/scene/export.d.ts +3 -3
  147. package/dist/types/excalidraw/scene/index.d.ts +2 -2
  148. package/dist/types/excalidraw/scene/types.d.ts +4 -3
  149. package/dist/types/excalidraw/snapping.d.ts +7 -7
  150. package/dist/types/excalidraw/types.d.ts +368 -19
  151. package/dist/types/excalidraw/viewport.d.ts +272 -0
  152. package/dist/types/excalidraw/wysiwyg/textWysiwyg.d.ts +2 -3
  153. package/dist/types/fractional-indexing/src/index.d.ts +29 -0
  154. package/dist/types/laser-pointer/src/index.d.ts +2 -0
  155. package/dist/types/laser-pointer/src/math.d.ts +16 -0
  156. package/dist/types/laser-pointer/src/simplify.d.ts +2 -0
  157. package/dist/types/laser-pointer/src/state.d.ts +36 -0
  158. package/dist/types/math/src/constants.d.ts +0 -1
  159. package/dist/types/math/src/curve.d.ts +4 -1
  160. package/dist/types/math/src/index.d.ts +1 -0
  161. package/dist/types/math/src/pca.d.ts +79 -0
  162. package/dist/types/math/src/point.d.ts +1 -0
  163. package/dist/types/math/src/polygon.d.ts +25 -1
  164. package/dist/types/utils/src/export.d.ts +3 -3
  165. package/dist/types/utils/src/index.d.ts +1 -2
  166. package/package.json +2 -2
  167. package/dist/types/excalidraw/animation-frame-handler.d.ts +0 -16
  168. package/dist/types/excalidraw/components/HandButton.d.ts +0 -10
  169. package/dist/types/excalidraw/components/MobileToolBar.d.ts +0 -10
  170. package/dist/types/excalidraw/components/shapes.d.ts +0 -263
  171. package/dist/types/excalidraw/cursor.d.ts +0 -5
  172. package/dist/types/excalidraw/scene/scroll.d.ts +0 -18
  173. package/dist/types/excalidraw/scene/zoom.d.ts +0 -12
  174. package/dist/types/utils/src/bbox.d.ts +0 -9
  175. package/dist/types/utils/src/withinBounds.d.ts +0 -19
@@ -1,21 +1,21 @@
1
1
  import type { ExcalidrawElement, ExcalidrawTextElement, OrderedExcalidrawElement } from "@excalidraw/element/types";
2
- import type { AppClassProperties, AppState } from "../types";
2
+ import type { AppClassProperties, UIAppState } from "../types";
3
3
  export declare const actionGroup: {
4
4
  name: "group";
5
5
  label: string;
6
- icon: (appState: import("../types").UIAppState) => import("react/jsx-runtime").JSX.Element;
6
+ icon: (appState: UIAppState) => import("react/jsx-runtime").JSX.Element;
7
7
  trackEvent: {
8
8
  category: "element";
9
9
  };
10
- perform: (elements: readonly OrderedExcalidrawElement[], appState: Readonly<AppState>, _: unknown, app: AppClassProperties) => {
11
- appState: Readonly<AppState>;
10
+ perform: (elements: readonly OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, _: unknown, app: AppClassProperties) => {
11
+ appState: Readonly<import("../types").AppState>;
12
12
  elements: readonly OrderedExcalidrawElement[];
13
13
  captureUpdate: "EVENTUALLY";
14
14
  } | {
15
15
  appState: {
16
- editingGroupId: AppState["editingGroupId"];
17
- selectedElementIds: AppState["selectedElementIds"];
18
- selectedGroupIds: AppState["selectedGroupIds"];
16
+ editingGroupId: import("../types").AppState["editingGroupId"];
17
+ selectedElementIds: import("../types").AppState["selectedElementIds"];
18
+ selectedGroupIds: import("../types").AppState["selectedGroupIds"];
19
19
  contextMenu: {
20
20
  items: import("../components/ContextMenu").ContextMenuItems;
21
21
  top: number;
@@ -33,13 +33,17 @@ export declare const actionGroup: {
33
33
  multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
34
34
  selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
35
35
  isBindingEnabled: boolean;
36
+ boxSelectionMode: import("../types").BoxSelectionMode;
36
37
  bindingPreference: "enabled" | "disabled";
37
38
  isMidpointSnappingEnabled: boolean;
38
- startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
39
39
  suggestedBinding: {
40
40
  element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
41
41
  midPoint?: import("@excalidraw/math").GlobalPoint;
42
42
  } | null;
43
+ hoveredArrowTextAnchor: {
44
+ elementId: import("@excalidraw/element/types").ExcalidrawArrowElement["id"];
45
+ anchor: "start" | "end" | "label";
46
+ } | null;
43
47
  frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
44
48
  frameRendering: {
45
49
  enabled: boolean;
@@ -47,8 +51,8 @@ export declare const actionGroup: {
47
51
  outline: boolean;
48
52
  clip: boolean;
49
53
  };
50
- editingFrame: string | null;
51
- elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
54
+ editingFrame: import("@excalidraw/element/types").ExcalidrawFrameLikeElement["id"] | null;
55
+ elementsToHighlight: readonly import("@excalidraw/element/types").NonDeletedExcalidrawElement[] | null;
52
56
  editingTextElement: ExcalidrawTextElement | null;
53
57
  activeTool: {
54
58
  lastActiveTool: import("../types").ActiveTool | null;
@@ -68,9 +72,10 @@ export declare const actionGroup: {
68
72
  currentItemStrokeColor: string;
69
73
  currentItemBackgroundColor: string;
70
74
  currentItemFillStyle: ExcalidrawElement["fillStyle"];
71
- currentItemStrokeWidth: number;
75
+ currentItemStrokeWidthKey: import("@excalidraw/common").StrokeWidthKey;
72
76
  currentItemStrokeStyle: ExcalidrawElement["strokeStyle"];
73
77
  currentItemRoughness: number;
78
+ currentItemStrokeVariability: import("@excalidraw/element/types").StrokeVariability;
74
79
  currentItemOpacity: number;
75
80
  currentItemFontFamily: import("@excalidraw/element/types").FontFamilyValues;
76
81
  currentItemFontSize: number;
@@ -83,6 +88,7 @@ export declare const actionGroup: {
83
88
  viewBackgroundColor: string;
84
89
  scrollX: number;
85
90
  scrollY: number;
91
+ scrollConstraints: import("../types").ScrollConstraints | null;
86
92
  cursorButton: "up" | "down";
87
93
  scrolledOutside: boolean;
88
94
  name: string | null;
@@ -168,7 +174,7 @@ export declare const actionGroup: {
168
174
  elements: OrderedExcalidrawElement[];
169
175
  captureUpdate: "IMMEDIATELY";
170
176
  };
171
- predicate: (elements: readonly ExcalidrawElement[], appState: AppState, _: import("../types").ExcalidrawProps, app: AppClassProperties) => boolean;
177
+ predicate: (elements: readonly ExcalidrawElement[], appState: import("../types").AppState, _: import("../types").ExcalidrawProps, app: AppClassProperties) => boolean;
172
178
  keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
173
179
  PanelComponent: ({ elements, appState, updateData, app }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
174
180
  } & {
@@ -177,19 +183,19 @@ export declare const actionGroup: {
177
183
  export declare const actionUngroup: {
178
184
  name: "ungroup";
179
185
  label: string;
180
- icon: (appState: import("../types").UIAppState) => import("react/jsx-runtime").JSX.Element;
186
+ icon: (appState: UIAppState) => import("react/jsx-runtime").JSX.Element;
181
187
  trackEvent: {
182
188
  category: "element";
183
189
  };
184
- perform: (elements: readonly OrderedExcalidrawElement[], appState: Readonly<AppState>, _: unknown, app: AppClassProperties) => {
185
- appState: Readonly<AppState>;
190
+ perform: (elements: readonly OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, _: unknown, app: AppClassProperties) => {
191
+ appState: Readonly<import("../types").AppState>;
186
192
  elements: readonly OrderedExcalidrawElement[];
187
193
  captureUpdate: "EVENTUALLY";
188
194
  } | {
189
195
  appState: {
190
- editingGroupId: AppState["editingGroupId"];
191
- selectedElementIds: AppState["selectedElementIds"];
192
- selectedGroupIds: AppState["selectedGroupIds"];
196
+ editingGroupId: import("../types").AppState["editingGroupId"];
197
+ selectedElementIds: import("../types").AppState["selectedElementIds"];
198
+ selectedGroupIds: import("../types").AppState["selectedGroupIds"];
193
199
  contextMenu: {
194
200
  items: import("../components/ContextMenu").ContextMenuItems;
195
201
  top: number;
@@ -207,13 +213,17 @@ export declare const actionUngroup: {
207
213
  multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
208
214
  selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
209
215
  isBindingEnabled: boolean;
216
+ boxSelectionMode: import("../types").BoxSelectionMode;
210
217
  bindingPreference: "enabled" | "disabled";
211
218
  isMidpointSnappingEnabled: boolean;
212
- startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
213
219
  suggestedBinding: {
214
220
  element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
215
221
  midPoint?: import("@excalidraw/math").GlobalPoint;
216
222
  } | null;
223
+ hoveredArrowTextAnchor: {
224
+ elementId: import("@excalidraw/element/types").ExcalidrawArrowElement["id"];
225
+ anchor: "start" | "end" | "label";
226
+ } | null;
217
227
  frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
218
228
  frameRendering: {
219
229
  enabled: boolean;
@@ -221,8 +231,8 @@ export declare const actionUngroup: {
221
231
  outline: boolean;
222
232
  clip: boolean;
223
233
  };
224
- editingFrame: string | null;
225
- elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
234
+ editingFrame: import("@excalidraw/element/types").ExcalidrawFrameLikeElement["id"] | null;
235
+ elementsToHighlight: readonly import("@excalidraw/element/types").NonDeletedExcalidrawElement[] | null;
226
236
  editingTextElement: ExcalidrawTextElement | null;
227
237
  activeTool: {
228
238
  lastActiveTool: import("../types").ActiveTool | null;
@@ -242,9 +252,10 @@ export declare const actionUngroup: {
242
252
  currentItemStrokeColor: string;
243
253
  currentItemBackgroundColor: string;
244
254
  currentItemFillStyle: ExcalidrawElement["fillStyle"];
245
- currentItemStrokeWidth: number;
255
+ currentItemStrokeWidthKey: import("@excalidraw/common").StrokeWidthKey;
246
256
  currentItemStrokeStyle: ExcalidrawElement["strokeStyle"];
247
257
  currentItemRoughness: number;
258
+ currentItemStrokeVariability: import("@excalidraw/element/types").StrokeVariability;
248
259
  currentItemOpacity: number;
249
260
  currentItemFontFamily: import("@excalidraw/element/types").FontFamilyValues;
250
261
  currentItemFontSize: number;
@@ -257,6 +268,7 @@ export declare const actionUngroup: {
257
268
  viewBackgroundColor: string;
258
269
  scrollX: number;
259
270
  scrollY: number;
271
+ scrollConstraints: import("../types").ScrollConstraints | null;
260
272
  cursorButton: "up" | "down";
261
273
  scrolledOutside: boolean;
262
274
  name: string | null;
@@ -343,7 +355,7 @@ export declare const actionUngroup: {
343
355
  captureUpdate: "IMMEDIATELY";
344
356
  };
345
357
  keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
346
- predicate: (elements: readonly ExcalidrawElement[], appState: AppState) => boolean;
358
+ predicate: (elements: readonly ExcalidrawElement[], appState: import("../types").AppState) => boolean;
347
359
  PanelComponent: ({ elements, appState, updateData }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
348
360
  } & {
349
361
  keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
@@ -2,7 +2,7 @@ import type { ExcalidrawLinearElement } from "@excalidraw/element/types";
2
2
  export declare const actionToggleLinearEditor: {
3
3
  name: "toggleLinearEditor";
4
4
  category: string;
5
- label: (elements: readonly import("@excalidraw/element/types").ExcalidrawElement[], appState: Readonly<import("../types").AppState>, app: import("../types").AppClassProperties) => "labels.lineEditor.editArrow" | "labels.lineEditor.edit";
5
+ label: (elements: readonly import("@excalidraw/element/types").ExcalidrawElement[], appState: Readonly<import("../types").UIAppState>, app: import("../types").AppClassProperties) => "labels.lineEditor.editArrow" | "labels.lineEditor.edit";
6
6
  keywords: string[];
7
7
  trackEvent: {
8
8
  category: "element";
@@ -27,6 +27,7 @@ export declare const actionToggleLinearEditor: {
27
27
  };
28
28
  arrowStartIsInside: boolean;
29
29
  altFocusPoint: Readonly<import("@excalidraw/math").GlobalPoint> | null;
30
+ arrowOtherEndpointInitialBinding: import("@excalidraw/element/types").FixedPointBinding | null;
30
31
  }>;
31
32
  isDragging: boolean;
32
33
  lastUncommittedPoint: import("@excalidraw/math").LocalPoint | null;
@@ -60,13 +61,17 @@ export declare const actionToggleLinearEditor: {
60
61
  multiElement: import("@excalidraw/element/types").NonDeleted<ExcalidrawLinearElement> | null;
61
62
  selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
62
63
  isBindingEnabled: boolean;
64
+ boxSelectionMode: import("../types").BoxSelectionMode;
63
65
  bindingPreference: "enabled" | "disabled";
64
66
  isMidpointSnappingEnabled: boolean;
65
- startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
66
67
  suggestedBinding: {
67
68
  element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
68
69
  midPoint?: import("@excalidraw/math").GlobalPoint;
69
70
  } | null;
71
+ hoveredArrowTextAnchor: {
72
+ elementId: import("@excalidraw/element/types").ExcalidrawArrowElement["id"];
73
+ anchor: "start" | "end" | "label";
74
+ } | null;
70
75
  frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
71
76
  frameRendering: {
72
77
  enabled: boolean;
@@ -74,8 +79,8 @@ export declare const actionToggleLinearEditor: {
74
79
  outline: boolean;
75
80
  clip: boolean;
76
81
  };
77
- editingFrame: string | null;
78
- elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
82
+ editingFrame: import("@excalidraw/element/types").ExcalidrawFrameLikeElement["id"] | null;
83
+ elementsToHighlight: readonly import("@excalidraw/element/types").NonDeletedExcalidrawElement[] | null;
79
84
  editingTextElement: import("@excalidraw/element/types").ExcalidrawTextElement | null;
80
85
  activeTool: {
81
86
  lastActiveTool: import("../types").ActiveTool | null;
@@ -95,9 +100,10 @@ export declare const actionToggleLinearEditor: {
95
100
  currentItemStrokeColor: string;
96
101
  currentItemBackgroundColor: string;
97
102
  currentItemFillStyle: import("@excalidraw/element/types").ExcalidrawElement["fillStyle"];
98
- currentItemStrokeWidth: number;
103
+ currentItemStrokeWidthKey: import("@excalidraw/common").StrokeWidthKey;
99
104
  currentItemStrokeStyle: import("@excalidraw/element/types").ExcalidrawElement["strokeStyle"];
100
105
  currentItemRoughness: number;
106
+ currentItemStrokeVariability: import("@excalidraw/element/types").StrokeVariability;
101
107
  currentItemOpacity: number;
102
108
  currentItemFontFamily: import("@excalidraw/element/types").FontFamilyValues;
103
109
  currentItemFontSize: number;
@@ -110,6 +116,7 @@ export declare const actionToggleLinearEditor: {
110
116
  viewBackgroundColor: string;
111
117
  scrollX: number;
112
118
  scrollY: number;
119
+ scrollConstraints: import("../types").ScrollConstraints | null;
113
120
  cursorButton: "up" | "down";
114
121
  scrolledOutside: boolean;
115
122
  name: string | null;
@@ -209,7 +216,7 @@ export declare const actionTogglePolygon: {
209
216
  category: string;
210
217
  icon: import("react/jsx-runtime").JSX.Element;
211
218
  keywords: string[];
212
- label: (elements: readonly import("@excalidraw/element/types").ExcalidrawElement[], appState: Readonly<import("../types").AppState>, app: import("../types").AppClassProperties) => "labels.polygon.breakPolygon" | "labels.polygon.convertToPolygon";
219
+ label: (elements: readonly import("@excalidraw/element/types").ExcalidrawElement[], appState: Readonly<import("../types").UIAppState>, app: import("../types").AppClassProperties) => "labels.polygon.breakPolygon" | "labels.polygon.convertToPolygon";
213
220
  trackEvent: {
214
221
  category: "element";
215
222
  };
@@ -649,6 +656,7 @@ export declare const actionTogglePolygon: {
649
656
  points: readonly import("@excalidraw/math").LocalPoint[];
650
657
  pressures: readonly number[];
651
658
  simulatePressure: boolean;
659
+ strokeOptions: import("@excalidraw/element/types").StrokeOptions;
652
660
  }> & {
653
661
  index: import("@excalidraw/element/types").FractionalIndex;
654
662
  }))[];
@@ -1,6 +1,6 @@
1
1
  export declare const actionLink: {
2
2
  name: "hyperlink";
3
- label: (elements: readonly import("@excalidraw/element/types").ExcalidrawElement[], appState: Readonly<import("../types").AppState>) => "labels.link.editEmbed" | "labels.link.edit" | "labels.link.create";
3
+ label: (elements: readonly import("@excalidraw/element/types").ExcalidrawElement[], appState: Readonly<import("../types").UIAppState>) => "labels.link.editEmbed" | "labels.link.edit" | "labels.link.create";
4
4
  icon: import("react/jsx-runtime").JSX.Element;
5
5
  perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>) => false | {
6
6
  elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[];
@@ -24,13 +24,17 @@ export declare const actionLink: {
24
24
  multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
25
25
  selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
26
26
  isBindingEnabled: boolean;
27
+ boxSelectionMode: import("../types").BoxSelectionMode;
27
28
  bindingPreference: "enabled" | "disabled";
28
29
  isMidpointSnappingEnabled: boolean;
29
- startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
30
30
  suggestedBinding: {
31
31
  element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
32
32
  midPoint?: import("@excalidraw/math").GlobalPoint;
33
33
  } | null;
34
+ hoveredArrowTextAnchor: {
35
+ elementId: import("@excalidraw/element/types").ExcalidrawArrowElement["id"];
36
+ anchor: "start" | "end" | "label";
37
+ } | null;
34
38
  frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
35
39
  frameRendering: {
36
40
  enabled: boolean;
@@ -38,8 +42,8 @@ export declare const actionLink: {
38
42
  outline: boolean;
39
43
  clip: boolean;
40
44
  };
41
- editingFrame: string | null;
42
- elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
45
+ editingFrame: import("@excalidraw/element/types").ExcalidrawFrameLikeElement["id"] | null;
46
+ elementsToHighlight: readonly import("@excalidraw/element/types").NonDeletedExcalidrawElement[] | null;
43
47
  editingTextElement: import("@excalidraw/element/types").ExcalidrawTextElement | null;
44
48
  activeTool: {
45
49
  lastActiveTool: import("../types").ActiveTool | null;
@@ -59,9 +63,10 @@ export declare const actionLink: {
59
63
  currentItemStrokeColor: string;
60
64
  currentItemBackgroundColor: string;
61
65
  currentItemFillStyle: import("@excalidraw/element/types").ExcalidrawElement["fillStyle"];
62
- currentItemStrokeWidth: number;
66
+ currentItemStrokeWidthKey: import("@excalidraw/common").StrokeWidthKey;
63
67
  currentItemStrokeStyle: import("@excalidraw/element/types").ExcalidrawElement["strokeStyle"];
64
68
  currentItemRoughness: number;
69
+ currentItemStrokeVariability: import("@excalidraw/element/types").StrokeVariability;
65
70
  currentItemOpacity: number;
66
71
  currentItemFontFamily: import("@excalidraw/element/types").FontFamilyValues;
67
72
  currentItemFontSize: number;
@@ -74,6 +79,7 @@ export declare const actionLink: {
74
79
  viewBackgroundColor: string;
75
80
  scrollX: number;
76
81
  scrollY: number;
82
+ scrollConstraints: import("../types").ScrollConstraints | null;
77
83
  cursorButton: "up" | "down";
78
84
  scrolledOutside: boolean;
79
85
  name: string | null;
@@ -31,13 +31,17 @@ export declare const actionShortcuts: {
31
31
  multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
32
32
  selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
33
33
  isBindingEnabled: boolean;
34
+ boxSelectionMode: import("../types").BoxSelectionMode;
34
35
  bindingPreference: "enabled" | "disabled";
35
36
  isMidpointSnappingEnabled: boolean;
36
- startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
37
37
  suggestedBinding: {
38
38
  element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
39
39
  midPoint?: import("@excalidraw/math").GlobalPoint;
40
40
  } | null;
41
+ hoveredArrowTextAnchor: {
42
+ elementId: import("@excalidraw/element/types").ExcalidrawArrowElement["id"];
43
+ anchor: "start" | "end" | "label";
44
+ } | null;
41
45
  frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
42
46
  frameRendering: {
43
47
  enabled: boolean;
@@ -45,8 +49,8 @@ export declare const actionShortcuts: {
45
49
  outline: boolean;
46
50
  clip: boolean;
47
51
  };
48
- editingFrame: string | null;
49
- elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
52
+ editingFrame: import("@excalidraw/element/types").ExcalidrawFrameLikeElement["id"] | null;
53
+ elementsToHighlight: readonly import("@excalidraw/element/types").NonDeletedExcalidrawElement[] | null;
50
54
  editingTextElement: import("@excalidraw/element/types").ExcalidrawTextElement | null;
51
55
  activeTool: {
52
56
  lastActiveTool: import("../types").ActiveTool | null;
@@ -66,9 +70,10 @@ export declare const actionShortcuts: {
66
70
  currentItemStrokeColor: string;
67
71
  currentItemBackgroundColor: string;
68
72
  currentItemFillStyle: import("@excalidraw/element/types").ExcalidrawElement["fillStyle"];
69
- currentItemStrokeWidth: number;
73
+ currentItemStrokeWidthKey: import("@excalidraw/common").StrokeWidthKey;
70
74
  currentItemStrokeStyle: import("@excalidraw/element/types").ExcalidrawElement["strokeStyle"];
71
75
  currentItemRoughness: number;
76
+ currentItemStrokeVariability: import("@excalidraw/element/types").StrokeVariability;
72
77
  currentItemOpacity: number;
73
78
  currentItemFontFamily: import("@excalidraw/element/types").FontFamilyValues;
74
79
  currentItemFontSize: number;
@@ -81,6 +86,7 @@ export declare const actionShortcuts: {
81
86
  viewBackgroundColor: string;
82
87
  scrollX: number;
83
88
  scrollY: number;
89
+ scrollConstraints: import("../types").ScrollConstraints | null;
84
90
  cursorButton: "up" | "down";
85
91
  scrolledOutside: boolean;
86
92
  name: string | null;
@@ -1,23 +1,35 @@
1
+ import { type StrokeWidthKey } from "@excalidraw/common";
1
2
  import { LinearElementEditor } from "@excalidraw/element";
2
- import type { Arrowhead, ExcalidrawBindableElement, ExcalidrawElement, ExcalidrawLinearElement, ExcalidrawTextElement, FontFamilyValues, TextAlign } from "@excalidraw/element/types";
3
+ import type { Arrowhead, ExcalidrawBindableElement, ExcalidrawElement, ExcalidrawLinearElement, ExcalidrawTextElement, FontFamilyValues, StrokeVariability, NonDeleted, NonDeletedExcalidrawElement, TextAlign } from "@excalidraw/element/types";
3
4
  import type { AppClassProperties, AppState, Primitive } from "../types";
4
- export declare const changeProperty: (elements: readonly ExcalidrawElement[], appState: AppState, callback: (element: ExcalidrawElement) => ExcalidrawElement, includeBoundText?: boolean) => ExcalidrawElement[];
5
- export declare const getFormValue: <T extends Primitive>(elements: readonly ExcalidrawElement[], app: AppClassProperties, getAttribute: (element: ExcalidrawElement) => T, elementPredicate: true | ((element: ExcalidrawElement) => boolean), defaultValue: T | ((isSomeElementSelected: boolean) => T)) => T;
5
+ export declare const changeProperty: (elements: readonly ExcalidrawElement[], appState: AppState, callback: (element: NonDeletedExcalidrawElement) => ExcalidrawElement, includeBoundText?: boolean) => ExcalidrawElement[];
6
+ export declare const getFormValue: <T extends Primitive>(elements: readonly ExcalidrawElement[], app: AppClassProperties,
7
+ /**
8
+ * input value (usually the element attribute value,
9
+ * but depends on what the action's PanelComponent input expects)
10
+ */
11
+ getValue: (element: ExcalidrawElement) => T, elementPredicate: true | ((element: ExcalidrawElement) => boolean), defaultValue: T | ((isSomeElementSelected: boolean) => T)) => T;
6
12
  export declare const actionChangeStrokeColor: import("./types").Action<Pick<AppState, "currentItemStrokeColor">> & {
7
13
  keyTest?: ((event: React.KeyboardEvent | KeyboardEvent, appState: AppState, elements: readonly ExcalidrawElement[], app: AppClassProperties) => boolean) | undefined;
8
14
  };
9
15
  export declare const actionChangeBackgroundColor: import("./types").Action<Pick<AppState, "viewBackgroundColor" | "currentItemBackgroundColor">> & {
10
16
  keyTest?: ((event: React.KeyboardEvent | KeyboardEvent, appState: AppState, elements: readonly ExcalidrawElement[], app: AppClassProperties) => boolean) | undefined;
11
17
  };
18
+ export declare const actionChangeBucketFillBackgroundColor: import("./types").Action<Pick<AppState, "currentItemBackgroundColor">> & {
19
+ keyTest?: ((event: React.KeyboardEvent | KeyboardEvent, appState: AppState, elements: readonly ExcalidrawElement[], app: AppClassProperties) => boolean) | undefined;
20
+ };
12
21
  export declare const actionChangeFillStyle: import("./types").Action<import("@excalidraw/element/types").FillStyle> & {
13
22
  keyTest?: ((event: React.KeyboardEvent | KeyboardEvent, appState: AppState, elements: readonly ExcalidrawElement[], app: AppClassProperties) => boolean) | undefined;
14
23
  };
15
- export declare const actionChangeStrokeWidth: import("./types").Action<number> & {
24
+ export declare const actionChangeStrokeWidth: import("./types").Action<StrokeWidthKey> & {
16
25
  keyTest?: ((event: React.KeyboardEvent | KeyboardEvent, appState: AppState, elements: readonly ExcalidrawElement[], app: AppClassProperties) => boolean) | undefined;
17
26
  };
18
27
  export declare const actionChangeSloppiness: import("./types").Action<number> & {
19
28
  keyTest?: ((event: React.KeyboardEvent | KeyboardEvent, appState: AppState, elements: readonly ExcalidrawElement[], app: AppClassProperties) => boolean) | undefined;
20
29
  };
30
+ export declare const actionChangeFreedrawMode: import("./types").Action<StrokeVariability> & {
31
+ keyTest?: ((event: React.KeyboardEvent | KeyboardEvent, appState: AppState, elements: readonly ExcalidrawElement[], app: AppClassProperties) => boolean) | undefined;
32
+ };
21
33
  export declare const actionChangeStrokeStyle: import("./types").Action<import("@excalidraw/element/types").StrokeStyle> & {
22
34
  keyTest?: ((event: React.KeyboardEvent | KeyboardEvent, appState: AppState, elements: readonly ExcalidrawElement[], app: AppClassProperties) => boolean) | undefined;
23
35
  };
@@ -45,30 +57,34 @@ export declare const actionDecreaseFontSize: {
45
57
  isLoading: boolean;
46
58
  errorMessage: React.ReactNode;
47
59
  activeEmbeddable: {
48
- element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
60
+ element: NonDeletedExcalidrawElement;
49
61
  state: "hover" | "active";
50
62
  } | null;
51
- newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
52
- resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
53
- multiElement: import("@excalidraw/element/types").NonDeleted<ExcalidrawLinearElement> | null;
54
- selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
63
+ newElement: NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
64
+ resizingElement: NonDeletedExcalidrawElement | null;
65
+ multiElement: NonDeleted<ExcalidrawLinearElement> | null;
66
+ selectionElement: NonDeletedExcalidrawElement | null;
55
67
  isBindingEnabled: boolean;
68
+ boxSelectionMode: import("../types").BoxSelectionMode;
56
69
  bindingPreference: "enabled" | "disabled";
57
70
  isMidpointSnappingEnabled: boolean;
58
- startBoundElement: import("@excalidraw/element/types").NonDeleted<ExcalidrawBindableElement> | null;
59
71
  suggestedBinding: {
60
- element: import("@excalidraw/element/types").NonDeleted<ExcalidrawBindableElement>;
72
+ element: NonDeleted<ExcalidrawBindableElement>;
61
73
  midPoint?: import("@excalidraw/math").GlobalPoint;
62
74
  } | null;
63
- frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
75
+ hoveredArrowTextAnchor: {
76
+ elementId: import("@excalidraw/element/types").ExcalidrawArrowElement["id"];
77
+ anchor: "start" | "end" | "label";
78
+ } | null;
79
+ frameToHighlight: NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
64
80
  frameRendering: {
65
81
  enabled: boolean;
66
82
  name: boolean;
67
83
  outline: boolean;
68
84
  clip: boolean;
69
85
  };
70
- editingFrame: string | null;
71
- elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
86
+ editingFrame: import("@excalidraw/element/types").ExcalidrawFrameLikeElement["id"] | null;
87
+ elementsToHighlight: readonly NonDeletedExcalidrawElement[] | null;
72
88
  editingTextElement: ExcalidrawTextElement | null;
73
89
  activeTool: {
74
90
  lastActiveTool: import("../types").ActiveTool | null;
@@ -88,9 +104,10 @@ export declare const actionDecreaseFontSize: {
88
104
  currentItemStrokeColor: string;
89
105
  currentItemBackgroundColor: string;
90
106
  currentItemFillStyle: ExcalidrawElement["fillStyle"];
91
- currentItemStrokeWidth: number;
107
+ currentItemStrokeWidthKey: StrokeWidthKey;
92
108
  currentItemStrokeStyle: ExcalidrawElement["strokeStyle"];
93
109
  currentItemRoughness: number;
110
+ currentItemStrokeVariability: StrokeVariability;
94
111
  currentItemOpacity: number;
95
112
  currentItemFontFamily: FontFamilyValues;
96
113
  currentItemTextAlign: TextAlign;
@@ -102,6 +119,7 @@ export declare const actionDecreaseFontSize: {
102
119
  viewBackgroundColor: string;
103
120
  scrollX: number;
104
121
  scrollY: number;
122
+ scrollConstraints: import("../types").ScrollConstraints | null;
105
123
  cursorButton: "up" | "down";
106
124
  scrolledOutside: boolean;
107
125
  name: string | null;
@@ -215,30 +233,34 @@ export declare const actionIncreaseFontSize: {
215
233
  isLoading: boolean;
216
234
  errorMessage: React.ReactNode;
217
235
  activeEmbeddable: {
218
- element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
236
+ element: NonDeletedExcalidrawElement;
219
237
  state: "hover" | "active";
220
238
  } | null;
221
- newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
222
- resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
223
- multiElement: import("@excalidraw/element/types").NonDeleted<ExcalidrawLinearElement> | null;
224
- selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
239
+ newElement: NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
240
+ resizingElement: NonDeletedExcalidrawElement | null;
241
+ multiElement: NonDeleted<ExcalidrawLinearElement> | null;
242
+ selectionElement: NonDeletedExcalidrawElement | null;
225
243
  isBindingEnabled: boolean;
244
+ boxSelectionMode: import("../types").BoxSelectionMode;
226
245
  bindingPreference: "enabled" | "disabled";
227
246
  isMidpointSnappingEnabled: boolean;
228
- startBoundElement: import("@excalidraw/element/types").NonDeleted<ExcalidrawBindableElement> | null;
229
247
  suggestedBinding: {
230
- element: import("@excalidraw/element/types").NonDeleted<ExcalidrawBindableElement>;
248
+ element: NonDeleted<ExcalidrawBindableElement>;
231
249
  midPoint?: import("@excalidraw/math").GlobalPoint;
232
250
  } | null;
233
- frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
251
+ hoveredArrowTextAnchor: {
252
+ elementId: import("@excalidraw/element/types").ExcalidrawArrowElement["id"];
253
+ anchor: "start" | "end" | "label";
254
+ } | null;
255
+ frameToHighlight: NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
234
256
  frameRendering: {
235
257
  enabled: boolean;
236
258
  name: boolean;
237
259
  outline: boolean;
238
260
  clip: boolean;
239
261
  };
240
- editingFrame: string | null;
241
- elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
262
+ editingFrame: import("@excalidraw/element/types").ExcalidrawFrameLikeElement["id"] | null;
263
+ elementsToHighlight: readonly NonDeletedExcalidrawElement[] | null;
242
264
  editingTextElement: ExcalidrawTextElement | null;
243
265
  activeTool: {
244
266
  lastActiveTool: import("../types").ActiveTool | null;
@@ -258,9 +280,10 @@ export declare const actionIncreaseFontSize: {
258
280
  currentItemStrokeColor: string;
259
281
  currentItemBackgroundColor: string;
260
282
  currentItemFillStyle: ExcalidrawElement["fillStyle"];
261
- currentItemStrokeWidth: number;
283
+ currentItemStrokeWidthKey: StrokeWidthKey;
262
284
  currentItemStrokeStyle: ExcalidrawElement["strokeStyle"];
263
285
  currentItemRoughness: number;
286
+ currentItemStrokeVariability: StrokeVariability;
264
287
  currentItemOpacity: number;
265
288
  currentItemFontFamily: FontFamilyValues;
266
289
  currentItemTextAlign: TextAlign;
@@ -272,6 +295,7 @@ export declare const actionIncreaseFontSize: {
272
295
  viewBackgroundColor: string;
273
296
  scrollX: number;
274
297
  scrollY: number;
298
+ scrollConstraints: import("../types").ScrollConstraints | null;
275
299
  cursorButton: "up" | "down";
276
300
  scrolledOutside: boolean;
277
301
  name: string | null;
@@ -1,5 +1,5 @@
1
1
  import { LinearElementEditor } from "@excalidraw/element";
2
- import type { ExcalidrawElement } from "@excalidraw/element/types";
2
+ import type { ExcalidrawElement, ExcalidrawLinearElement, NonDeleted } from "@excalidraw/element/types";
3
3
  export declare const actionSelectAll: {
4
4
  name: "selectAll";
5
5
  label: string;
@@ -26,27 +26,31 @@ export declare const actionSelectAll: {
26
26
  element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
27
27
  state: "hover" | "active";
28
28
  } | null;
29
- newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
29
+ newElement: NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
30
30
  resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
31
- multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
31
+ multiElement: NonDeleted<ExcalidrawLinearElement> | null;
32
32
  selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
33
33
  isBindingEnabled: boolean;
34
+ boxSelectionMode: import("../types").BoxSelectionMode;
34
35
  bindingPreference: "enabled" | "disabled";
35
36
  isMidpointSnappingEnabled: boolean;
36
- startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
37
37
  suggestedBinding: {
38
- element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
38
+ element: NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
39
39
  midPoint?: import("@excalidraw/math").GlobalPoint;
40
40
  } | null;
41
- frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
41
+ hoveredArrowTextAnchor: {
42
+ elementId: import("@excalidraw/element/types").ExcalidrawArrowElement["id"];
43
+ anchor: "start" | "end" | "label";
44
+ } | null;
45
+ frameToHighlight: NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
42
46
  frameRendering: {
43
47
  enabled: boolean;
44
48
  name: boolean;
45
49
  outline: boolean;
46
50
  clip: boolean;
47
51
  };
48
- editingFrame: string | null;
49
- elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
52
+ editingFrame: import("@excalidraw/element/types").ExcalidrawFrameLikeElement["id"] | null;
53
+ elementsToHighlight: readonly import("@excalidraw/element/types").NonDeletedExcalidrawElement[] | null;
50
54
  editingTextElement: import("@excalidraw/element/types").ExcalidrawTextElement | null;
51
55
  activeTool: {
52
56
  lastActiveTool: import("../types").ActiveTool | null;
@@ -66,9 +70,10 @@ export declare const actionSelectAll: {
66
70
  currentItemStrokeColor: string;
67
71
  currentItemBackgroundColor: string;
68
72
  currentItemFillStyle: ExcalidrawElement["fillStyle"];
69
- currentItemStrokeWidth: number;
73
+ currentItemStrokeWidthKey: import("@excalidraw/common").StrokeWidthKey;
70
74
  currentItemStrokeStyle: ExcalidrawElement["strokeStyle"];
71
75
  currentItemRoughness: number;
76
+ currentItemStrokeVariability: import("@excalidraw/element/types").StrokeVariability;
72
77
  currentItemOpacity: number;
73
78
  currentItemFontFamily: import("@excalidraw/element/types").FontFamilyValues;
74
79
  currentItemFontSize: number;
@@ -81,6 +86,7 @@ export declare const actionSelectAll: {
81
86
  viewBackgroundColor: string;
82
87
  scrollX: number;
83
88
  scrollY: number;
89
+ scrollConstraints: import("../types").ScrollConstraints | null;
84
90
  cursorButton: "up" | "down";
85
91
  scrolledOutside: boolean;
86
92
  name: string | null;