@excalidraw/element 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 (185) hide show
  1. package/dist/dev/index.js +5224 -3095
  2. package/dist/dev/index.js.map +4 -4
  3. package/dist/prod/index.js +19 -19
  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/visualdebug.d.ts +1 -2
  41. package/dist/types/element/src/zindex.d.ts +2 -2
  42. package/dist/types/excalidraw/actions/actionAddToLibrary.d.ts +45 -18
  43. package/dist/types/excalidraw/actions/actionAlign.d.ts +6 -6
  44. package/dist/types/excalidraw/actions/actionBoundText.d.ts +30 -12
  45. package/dist/types/excalidraw/actions/actionCanvas.d.ts +167 -940
  46. package/dist/types/excalidraw/actions/actionClipboard.d.ts +30 -12
  47. package/dist/types/excalidraw/actions/actionCropEditor.d.ts +15 -6
  48. package/dist/types/excalidraw/actions/actionDeleteSelected.d.ts +47 -19
  49. package/dist/types/excalidraw/actions/{actionEmbeddable.d.ts → actionDeselect.d.ts} +29 -35
  50. package/dist/types/excalidraw/actions/actionDistribute.d.ts +2 -3
  51. package/dist/types/excalidraw/actions/actionElementLink.d.ts +15 -6
  52. package/dist/types/excalidraw/actions/actionElementLock.d.ts +31 -13
  53. package/dist/types/excalidraw/actions/actionExport.d.ts +32 -14
  54. package/dist/types/excalidraw/actions/actionFrame.d.ts +57 -202
  55. package/dist/types/excalidraw/actions/actionGroup.d.ts +45 -27
  56. package/dist/types/excalidraw/actions/actionLinearEditor.d.ts +19 -8
  57. package/dist/types/excalidraw/actions/actionLink.d.ts +16 -7
  58. package/dist/types/excalidraw/actions/actionMenu.d.ts +15 -6
  59. package/dist/types/excalidraw/actions/actionProperties.d.ts +60 -30
  60. package/dist/types/excalidraw/actions/actionSelectAll.d.ts +20 -11
  61. package/dist/types/excalidraw/actions/actionStyles.d.ts +15 -6
  62. package/dist/types/excalidraw/actions/actionTextAutoResize.d.ts +1 -1
  63. package/dist/types/excalidraw/actions/actionToggleArrowBinding.d.ts +16 -7
  64. package/dist/types/excalidraw/actions/actionToggleGridMode.d.ts +19 -11
  65. package/dist/types/excalidraw/actions/actionToggleMidpointSnapping.d.ts +16 -7
  66. package/dist/types/excalidraw/actions/actionToggleObjectsSnapMode.d.ts +16 -7
  67. package/dist/types/excalidraw/actions/actionToggleSearchMenu.d.ts +19 -11
  68. package/dist/types/excalidraw/actions/actionToggleShapeSwitch.d.ts +1 -1
  69. package/dist/types/excalidraw/actions/actionToggleStats.d.ts +16 -7
  70. package/dist/types/excalidraw/actions/actionToggleViewMode.d.ts +17 -8
  71. package/dist/types/excalidraw/actions/actionToggleZenMode.d.ts +16 -7
  72. package/dist/types/excalidraw/actions/index.d.ts +2 -2
  73. package/dist/types/excalidraw/actions/manager.d.ts +1 -0
  74. package/dist/types/excalidraw/actions/shortcuts.d.ts +1 -1
  75. package/dist/types/excalidraw/actions/types.d.ts +8 -4
  76. package/dist/types/excalidraw/{animated-trail.d.ts → animatedTrail.d.ts} +4 -3
  77. package/dist/types/excalidraw/appState.d.ts +12 -5
  78. package/dist/types/excalidraw/components/Actions.d.ts +17 -12
  79. package/dist/types/excalidraw/components/ActiveConfirmDialog.d.ts +1 -1
  80. package/dist/types/excalidraw/components/App.arrowText.d.ts +72 -0
  81. package/dist/types/excalidraw/components/App.bucketFill.d.ts +48 -0
  82. package/dist/types/excalidraw/components/App.cursor.d.ts +30 -0
  83. package/dist/types/excalidraw/components/App.d.ts +363 -66
  84. package/dist/types/excalidraw/components/App.drawshape.d.ts +55 -0
  85. package/dist/types/excalidraw/components/App.flowchart.d.ts +21 -0
  86. package/dist/types/excalidraw/components/App.viewport.d.ts +73 -0
  87. package/dist/types/excalidraw/components/ColorPicker/ColorPicker.d.ts +9 -3
  88. package/dist/types/excalidraw/components/ColorPicker/CustomColorList.d.ts +3 -1
  89. package/dist/types/excalidraw/components/ColorPicker/Picker.d.ts +3 -1
  90. package/dist/types/excalidraw/components/ColorPicker/PickerColorList.d.ts +9 -2
  91. package/dist/types/excalidraw/components/ColorPicker/ShadeList.d.ts +4 -2
  92. package/dist/types/excalidraw/components/ColorPicker/TopPicks.d.ts +8 -1
  93. package/dist/types/excalidraw/components/ColorPicker/colorPickerUtils.d.ts +1 -1
  94. package/dist/types/excalidraw/components/ColorPicker/keyboardNavHandlers.d.ts +2 -1
  95. package/dist/types/excalidraw/components/ColorPicker/topPicksDnD.d.ts +31 -0
  96. package/dist/types/excalidraw/components/CommandPalette/defaultCommandPaletteItems.d.ts +1 -2
  97. package/dist/types/excalidraw/components/ConvertElementTypePopup.d.ts +2 -2
  98. package/dist/types/excalidraw/components/CursorHint.d.ts +46 -0
  99. package/dist/types/excalidraw/components/EyeDropper.d.ts +1 -1
  100. package/dist/types/excalidraw/components/{ToolButton.d.ts → IconButton.d.ts} +16 -19
  101. package/dist/types/excalidraw/components/Island.d.ts +7 -0
  102. package/dist/types/excalidraw/components/LaserPointerButton.d.ts +2 -4
  103. package/dist/types/excalidraw/components/LayerUI.d.ts +5 -2
  104. package/dist/types/excalidraw/components/LibraryMenu.d.ts +1 -1
  105. package/dist/types/excalidraw/components/LockButton.d.ts +3 -4
  106. package/dist/types/excalidraw/components/MagicButton.d.ts +0 -2
  107. package/dist/types/excalidraw/components/MobileMenu.d.ts +4 -4
  108. package/dist/types/excalidraw/components/MobileToolbar.d.ts +9 -0
  109. package/dist/types/excalidraw/components/OverwriteConfirm/OverwriteConfirmState.d.ts +1 -1
  110. package/dist/types/excalidraw/components/PenModeButton.d.ts +2 -5
  111. package/dist/types/excalidraw/components/Popover.d.ts +1 -3
  112. package/dist/types/excalidraw/components/{ButtonIcon.d.ts → RadioButton.d.ts} +2 -5
  113. package/dist/types/excalidraw/components/SVGLayer.d.ts +1 -1
  114. package/dist/types/excalidraw/components/SearchMenu.d.ts +1 -1
  115. package/dist/types/excalidraw/components/Sidebar/Sidebar.d.ts +1 -1
  116. package/dist/types/excalidraw/components/Stats/Angle.d.ts +2 -2
  117. package/dist/types/excalidraw/components/Stats/Dimension.d.ts +2 -2
  118. package/dist/types/excalidraw/components/Stats/DragInput.d.ts +2 -2
  119. package/dist/types/excalidraw/components/Stats/MultiAngle.d.ts +2 -2
  120. package/dist/types/excalidraw/components/Stats/MultiDimension.d.ts +2 -2
  121. package/dist/types/excalidraw/components/Stats/MultiPosition.d.ts +2 -2
  122. package/dist/types/excalidraw/components/Stats/Position.d.ts +3 -3
  123. package/dist/types/excalidraw/components/Stats/utils.d.ts +1 -1
  124. package/dist/types/excalidraw/components/TTDDialog/TTDContext.d.ts +4 -4
  125. package/dist/types/excalidraw/components/TTDDialog/useTTDChatStorage.d.ts +3 -3
  126. package/dist/types/excalidraw/components/ToolPopover.d.ts +3 -6
  127. package/dist/types/excalidraw/components/Toolbar.d.ts +11 -0
  128. package/dist/types/excalidraw/components/Tools.d.ts +146 -0
  129. package/dist/types/excalidraw/components/UserList.d.ts +3 -2
  130. package/dist/types/excalidraw/components/ViewportStatusFrame/ViewportStatusFrame.d.ts +11 -0
  131. package/dist/types/excalidraw/components/canvases/InteractiveCanvas.d.ts +3 -1
  132. package/dist/types/excalidraw/components/canvases/NewElementCanvas.d.ts +1 -0
  133. package/dist/types/excalidraw/components/canvases/StaticCanvas.d.ts +1 -1
  134. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuItemContentRadio.d.ts +2 -1
  135. package/dist/types/excalidraw/components/footer/Footer.d.ts +3 -1
  136. package/dist/types/excalidraw/components/hyperlink/helpers.d.ts +2 -2
  137. package/dist/types/excalidraw/components/icons.d.ts +6 -1
  138. package/dist/types/excalidraw/components/main-menu/DefaultItems.d.ts +8 -4
  139. package/dist/types/excalidraw/components/positionElementBesideCursor.d.ts +26 -0
  140. package/dist/types/excalidraw/components/shapeActionPredicates.d.ts +39 -0
  141. package/dist/types/excalidraw/data/blob.d.ts +34 -16
  142. package/dist/types/excalidraw/data/index.d.ts +4 -4
  143. package/dist/types/excalidraw/data/json.d.ts +23 -14
  144. package/dist/types/excalidraw/data/library.d.ts +1 -1
  145. package/dist/types/excalidraw/drawShapeTrail.d.ts +16 -0
  146. package/dist/types/excalidraw/eraser/index.d.ts +2 -3
  147. package/dist/types/excalidraw/hooks/useAppStateValue.d.ts +29 -0
  148. package/dist/types/excalidraw/hooks/useLibraryItemSvg.d.ts +1 -1
  149. package/dist/types/excalidraw/{laser-trails.d.ts → laserTrails.d.ts} +5 -7
  150. package/dist/types/excalidraw/lasso/index.d.ts +2 -3
  151. package/dist/types/excalidraw/lasso/utils.d.ts +2 -0
  152. package/dist/types/excalidraw/renderer/animation.d.ts +5 -1
  153. package/dist/types/excalidraw/renderer/interactiveScene.d.ts +1 -3
  154. package/dist/types/excalidraw/scene/Renderer.d.ts +426 -19
  155. package/dist/types/excalidraw/scene/export.d.ts +3 -3
  156. package/dist/types/excalidraw/scene/index.d.ts +2 -2
  157. package/dist/types/excalidraw/scene/types.d.ts +4 -3
  158. package/dist/types/excalidraw/snapping.d.ts +7 -7
  159. package/dist/types/excalidraw/types.d.ts +415 -23
  160. package/dist/types/excalidraw/viewport.d.ts +275 -0
  161. package/dist/types/excalidraw/wysiwyg/textWysiwyg.d.ts +2 -3
  162. package/dist/types/fractional-indexing/src/index.d.ts +29 -0
  163. package/dist/types/laser-pointer/src/index.d.ts +2 -0
  164. package/dist/types/laser-pointer/src/math.d.ts +16 -0
  165. package/dist/types/laser-pointer/src/simplify.d.ts +2 -0
  166. package/dist/types/laser-pointer/src/state.d.ts +36 -0
  167. package/dist/types/math/src/constants.d.ts +0 -1
  168. package/dist/types/math/src/curve.d.ts +4 -1
  169. package/dist/types/math/src/index.d.ts +1 -0
  170. package/dist/types/math/src/pca.d.ts +79 -0
  171. package/dist/types/math/src/point.d.ts +1 -0
  172. package/dist/types/math/src/polygon.d.ts +25 -1
  173. package/dist/types/utils/src/export.d.ts +3 -3
  174. package/dist/types/utils/src/index.d.ts +1 -2
  175. package/package.json +4 -3
  176. package/dist/types/excalidraw/animation-frame-handler.d.ts +0 -16
  177. package/dist/types/excalidraw/components/FollowMode/FollowMode.d.ts +0 -10
  178. package/dist/types/excalidraw/components/HandButton.d.ts +0 -10
  179. package/dist/types/excalidraw/components/MobileToolBar.d.ts +0 -10
  180. package/dist/types/excalidraw/components/shapes.d.ts +0 -263
  181. package/dist/types/excalidraw/cursor.d.ts +0 -5
  182. package/dist/types/excalidraw/scene/scroll.d.ts +0 -18
  183. package/dist/types/excalidraw/scene/zoom.d.ts +0 -12
  184. package/dist/types/utils/src/bbox.d.ts +0 -9
  185. 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) => false | {
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;
@@ -151,8 +157,6 @@ export declare const actionGroup: {
151
157
  y: number;
152
158
  } | null;
153
159
  objectsSnapModeEnabled: boolean;
154
- userToFollow: import("../types").UserToFollow | null;
155
- followedBy: Set<import("../types").SocketId>;
156
160
  isCropping: boolean;
157
161
  croppingElementId: ExcalidrawElement["id"] | null;
158
162
  searchMatches: Readonly<{
@@ -164,11 +168,16 @@ export declare const actionGroup: {
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
  elements: OrderedExcalidrawElement[];
169
178
  captureUpdate: "IMMEDIATELY";
170
179
  };
171
- predicate: (elements: readonly ExcalidrawElement[], appState: AppState, _: import("../types").ExcalidrawProps, app: AppClassProperties) => boolean;
180
+ predicate: (elements: readonly ExcalidrawElement[], appState: import("../types").AppState, _: import("../types").ExcalidrawProps, app: AppClassProperties) => boolean;
172
181
  keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
173
182
  PanelComponent: ({ elements, appState, updateData, app }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
174
183
  } & {
@@ -177,19 +186,19 @@ export declare const actionGroup: {
177
186
  export declare const actionUngroup: {
178
187
  name: "ungroup";
179
188
  label: string;
180
- icon: (appState: import("../types").UIAppState) => import("react/jsx-runtime").JSX.Element;
189
+ icon: (appState: UIAppState) => import("react/jsx-runtime").JSX.Element;
181
190
  trackEvent: {
182
191
  category: "element";
183
192
  };
184
- perform: (elements: readonly OrderedExcalidrawElement[], appState: Readonly<AppState>, _: unknown, app: AppClassProperties) => {
185
- appState: Readonly<AppState>;
193
+ perform: (elements: readonly OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, _: unknown, app: AppClassProperties) => {
194
+ appState: Readonly<import("../types").AppState>;
186
195
  elements: readonly OrderedExcalidrawElement[];
187
196
  captureUpdate: "EVENTUALLY";
188
197
  } | {
189
198
  appState: {
190
- editingGroupId: AppState["editingGroupId"];
191
- selectedElementIds: AppState["selectedElementIds"];
192
- selectedGroupIds: AppState["selectedGroupIds"];
199
+ editingGroupId: import("../types").AppState["editingGroupId"];
200
+ selectedElementIds: import("../types").AppState["selectedElementIds"];
201
+ selectedGroupIds: import("../types").AppState["selectedGroupIds"];
193
202
  contextMenu: {
194
203
  items: import("../components/ContextMenu").ContextMenuItems;
195
204
  top: number;
@@ -207,13 +216,17 @@ export declare const actionUngroup: {
207
216
  multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
208
217
  selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
209
218
  isBindingEnabled: boolean;
219
+ boxSelectionMode: import("../types").BoxSelectionMode;
210
220
  bindingPreference: "enabled" | "disabled";
211
221
  isMidpointSnappingEnabled: boolean;
212
- startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
213
222
  suggestedBinding: {
214
223
  element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
215
224
  midPoint?: import("@excalidraw/math").GlobalPoint;
216
225
  } | null;
226
+ hoveredArrowTextAnchor: {
227
+ elementId: import("@excalidraw/element/types").ExcalidrawArrowElement["id"];
228
+ anchor: "start" | "end" | "label";
229
+ } | null;
217
230
  frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
218
231
  frameRendering: {
219
232
  enabled: boolean;
@@ -221,8 +234,8 @@ export declare const actionUngroup: {
221
234
  outline: boolean;
222
235
  clip: boolean;
223
236
  };
224
- editingFrame: string | null;
225
- elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
237
+ editingFrame: import("@excalidraw/element/types").ExcalidrawFrameLikeElement["id"] | null;
238
+ elementsToHighlight: readonly import("@excalidraw/element/types").NonDeletedExcalidrawElement[] | null;
226
239
  editingTextElement: ExcalidrawTextElement | null;
227
240
  activeTool: {
228
241
  lastActiveTool: import("../types").ActiveTool | null;
@@ -242,9 +255,10 @@ export declare const actionUngroup: {
242
255
  currentItemStrokeColor: string;
243
256
  currentItemBackgroundColor: string;
244
257
  currentItemFillStyle: ExcalidrawElement["fillStyle"];
245
- currentItemStrokeWidth: number;
258
+ currentItemStrokeWidthKey: import("@excalidraw/common").StrokeWidthKey;
246
259
  currentItemStrokeStyle: ExcalidrawElement["strokeStyle"];
247
260
  currentItemRoughness: number;
261
+ currentItemStrokeVariability: import("@excalidraw/element/types").StrokeVariability;
248
262
  currentItemOpacity: number;
249
263
  currentItemFontFamily: import("@excalidraw/element/types").FontFamilyValues;
250
264
  currentItemFontSize: number;
@@ -257,6 +271,7 @@ export declare const actionUngroup: {
257
271
  viewBackgroundColor: string;
258
272
  scrollX: number;
259
273
  scrollY: number;
274
+ scrollConstraints: import("../types").ScrollConstraints | null;
260
275
  cursorButton: "up" | "down";
261
276
  scrolledOutside: boolean;
262
277
  name: string | null;
@@ -325,8 +340,6 @@ export declare const actionUngroup: {
325
340
  y: number;
326
341
  } | null;
327
342
  objectsSnapModeEnabled: boolean;
328
- userToFollow: import("../types").UserToFollow | null;
329
- followedBy: Set<import("../types").SocketId>;
330
343
  isCropping: boolean;
331
344
  croppingElementId: ExcalidrawElement["id"] | null;
332
345
  searchMatches: Readonly<{
@@ -338,12 +351,17 @@ export declare const actionUngroup: {
338
351
  [groupId: string]: true;
339
352
  };
340
353
  bindMode: import("@excalidraw/element/types").BindMode;
354
+ colorTopPicks: {
355
+ elementStroke: readonly string[] | null;
356
+ elementBackground: readonly string[] | null;
357
+ bucketFill: readonly string[] | null;
358
+ };
341
359
  };
342
360
  elements: OrderedExcalidrawElement[];
343
361
  captureUpdate: "IMMEDIATELY";
344
362
  };
345
363
  keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
346
- predicate: (elements: readonly ExcalidrawElement[], appState: AppState) => boolean;
364
+ predicate: (elements: readonly ExcalidrawElement[], appState: import("../types").AppState) => boolean;
347
365
  PanelComponent: ({ elements, appState, updateData }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
348
366
  } & {
349
367
  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;
@@ -184,8 +191,6 @@ export declare const actionToggleLinearEditor: {
184
191
  y: number;
185
192
  } | null;
186
193
  objectsSnapModeEnabled: boolean;
187
- userToFollow: import("../types").UserToFollow | null;
188
- followedBy: Set<import("../types").SocketId>;
189
194
  isCropping: boolean;
190
195
  croppingElementId: import("@excalidraw/element/types").ExcalidrawElement["id"] | null;
191
196
  searchMatches: Readonly<{
@@ -197,6 +202,11 @@ export declare const actionToggleLinearEditor: {
197
202
  [groupId: string]: true;
198
203
  };
199
204
  bindMode: import("@excalidraw/element/types").BindMode;
205
+ colorTopPicks: {
206
+ elementStroke: readonly string[] | null;
207
+ elementBackground: readonly string[] | null;
208
+ bucketFill: readonly string[] | null;
209
+ };
200
210
  };
201
211
  captureUpdate: "IMMEDIATELY";
202
212
  };
@@ -209,7 +219,7 @@ export declare const actionTogglePolygon: {
209
219
  category: string;
210
220
  icon: import("react/jsx-runtime").JSX.Element;
211
221
  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";
222
+ label: (elements: readonly import("@excalidraw/element/types").ExcalidrawElement[], appState: Readonly<import("../types").UIAppState>, app: import("../types").AppClassProperties) => "labels.polygon.breakPolygon" | "labels.polygon.convertToPolygon";
213
223
  trackEvent: {
214
224
  category: "element";
215
225
  };
@@ -649,6 +659,7 @@ export declare const actionTogglePolygon: {
649
659
  points: readonly import("@excalidraw/math").LocalPoint[];
650
660
  pressures: readonly number[];
651
661
  simulatePressure: boolean;
662
+ strokeOptions: import("@excalidraw/element/types").StrokeOptions;
652
663
  }> & {
653
664
  index: import("@excalidraw/element/types").FractionalIndex;
654
665
  }))[];
@@ -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;
@@ -147,8 +153,6 @@ export declare const actionLink: {
147
153
  y: number;
148
154
  } | null;
149
155
  objectsSnapModeEnabled: boolean;
150
- userToFollow: import("../types").UserToFollow | null;
151
- followedBy: Set<import("../types").SocketId>;
152
156
  isCropping: boolean;
153
157
  croppingElementId: import("@excalidraw/element/types").ExcalidrawElement["id"] | null;
154
158
  searchMatches: Readonly<{
@@ -160,6 +164,11 @@ export declare const actionLink: {
160
164
  [groupId: string]: true;
161
165
  };
162
166
  bindMode: import("@excalidraw/element/types").BindMode;
167
+ colorTopPicks: {
168
+ elementStroke: readonly string[] | null;
169
+ elementBackground: readonly string[] | null;
170
+ bucketFill: readonly string[] | null;
171
+ };
163
172
  };
164
173
  captureUpdate: "IMMEDIATELY";
165
174
  };
@@ -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;
@@ -137,8 +143,6 @@ export declare const actionShortcuts: {
137
143
  y: number;
138
144
  } | null;
139
145
  objectsSnapModeEnabled: boolean;
140
- userToFollow: import("../types").UserToFollow | null;
141
- followedBy: Set<import("../types").SocketId>;
142
146
  isCropping: boolean;
143
147
  croppingElementId: import("@excalidraw/element/types").ExcalidrawElement["id"] | null;
144
148
  searchMatches: Readonly<{
@@ -150,6 +154,11 @@ export declare const actionShortcuts: {
150
154
  [groupId: string]: true;
151
155
  };
152
156
  bindMode: import("@excalidraw/element/types").BindMode;
157
+ colorTopPicks: {
158
+ elementStroke: readonly string[] | null;
159
+ elementBackground: readonly string[] | null;
160
+ bucketFill: readonly string[] | null;
161
+ };
153
162
  };
154
163
  captureUpdate: "EVENTUALLY";
155
164
  };