@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
@@ -57,13 +57,17 @@ export declare const actionLinkToElement: {
57
57
  multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
58
58
  selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
59
59
  isBindingEnabled: boolean;
60
+ boxSelectionMode: import("../types").BoxSelectionMode;
60
61
  bindingPreference: "enabled" | "disabled";
61
62
  isMidpointSnappingEnabled: boolean;
62
- startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
63
63
  suggestedBinding: {
64
64
  element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
65
65
  midPoint?: import("@excalidraw/math").GlobalPoint;
66
66
  } | null;
67
+ hoveredArrowTextAnchor: {
68
+ elementId: import("@excalidraw/element/types").ExcalidrawArrowElement["id"];
69
+ anchor: "start" | "end" | "label";
70
+ } | null;
67
71
  frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
68
72
  frameRendering: {
69
73
  enabled: boolean;
@@ -71,8 +75,8 @@ export declare const actionLinkToElement: {
71
75
  outline: boolean;
72
76
  clip: boolean;
73
77
  };
74
- editingFrame: string | null;
75
- elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
78
+ editingFrame: import("@excalidraw/element/types").ExcalidrawFrameLikeElement["id"] | null;
79
+ elementsToHighlight: readonly import("@excalidraw/element/types").NonDeletedExcalidrawElement[] | null;
76
80
  editingTextElement: import("@excalidraw/element/types").ExcalidrawTextElement | null;
77
81
  activeTool: {
78
82
  lastActiveTool: import("../types").ActiveTool | null;
@@ -92,9 +96,10 @@ export declare const actionLinkToElement: {
92
96
  currentItemStrokeColor: string;
93
97
  currentItemBackgroundColor: string;
94
98
  currentItemFillStyle: import("@excalidraw/element/types").ExcalidrawElement["fillStyle"];
95
- currentItemStrokeWidth: number;
99
+ currentItemStrokeWidthKey: import("@excalidraw/common").StrokeWidthKey;
96
100
  currentItemStrokeStyle: import("@excalidraw/element/types").ExcalidrawElement["strokeStyle"];
97
101
  currentItemRoughness: number;
102
+ currentItemStrokeVariability: import("@excalidraw/element/types").StrokeVariability;
98
103
  currentItemOpacity: number;
99
104
  currentItemFontFamily: import("@excalidraw/element/types").FontFamilyValues;
100
105
  currentItemFontSize: number;
@@ -107,6 +112,7 @@ export declare const actionLinkToElement: {
107
112
  viewBackgroundColor: string;
108
113
  scrollX: number;
109
114
  scrollY: number;
115
+ scrollConstraints: import("../types").ScrollConstraints | null;
110
116
  cursorButton: "up" | "down";
111
117
  scrolledOutside: boolean;
112
118
  name: string | null;
@@ -165,8 +171,6 @@ export declare const actionLinkToElement: {
165
171
  y: number;
166
172
  } | null;
167
173
  objectsSnapModeEnabled: boolean;
168
- userToFollow: import("../types").UserToFollow | null;
169
- followedBy: Set<import("../types").SocketId>;
170
174
  isCropping: boolean;
171
175
  croppingElementId: import("@excalidraw/element/types").ExcalidrawElement["id"] | null;
172
176
  searchMatches: Readonly<{
@@ -178,6 +182,11 @@ export declare const actionLinkToElement: {
178
182
  [groupId: string]: true;
179
183
  };
180
184
  bindMode: import("@excalidraw/element/types").BindMode;
185
+ colorTopPicks: {
186
+ elementStroke: readonly string[] | null;
187
+ elementBackground: readonly string[] | null;
188
+ bucketFill: readonly string[] | null;
189
+ };
181
190
  };
182
191
  captureUpdate: "IMMEDIATELY";
183
192
  elements?: undefined;
@@ -2,7 +2,7 @@ import type { ExcalidrawElement } from "@excalidraw/element/types";
2
2
  import type { AppState } from "../types";
3
3
  export declare const actionToggleElementLock: {
4
4
  name: "toggleElementLock";
5
- label: (elements: readonly ExcalidrawElement[], appState: Readonly<AppState>, app: import("../types").AppClassProperties) => "labels.elementLock.lock" | "labels.elementLock.unlock";
5
+ label: (elements: readonly ExcalidrawElement[], appState: Readonly<import("../types").UIAppState>, app: import("../types").AppClassProperties) => "labels.elementLock.lock" | "labels.elementLock.unlock";
6
6
  icon: (appState: import("../types").UIAppState, elements: readonly ExcalidrawElement[]) => import("react/jsx-runtime").JSX.Element;
7
7
  trackEvent: {
8
8
  category: "element";
@@ -39,13 +39,17 @@ export declare const actionToggleElementLock: {
39
39
  multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
40
40
  selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
41
41
  isBindingEnabled: boolean;
42
+ boxSelectionMode: import("../types").BoxSelectionMode;
42
43
  bindingPreference: "enabled" | "disabled";
43
44
  isMidpointSnappingEnabled: boolean;
44
- startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
45
45
  suggestedBinding: {
46
46
  element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
47
47
  midPoint?: import("@excalidraw/math").GlobalPoint;
48
48
  } | null;
49
+ hoveredArrowTextAnchor: {
50
+ elementId: import("@excalidraw/element/types").ExcalidrawArrowElement["id"];
51
+ anchor: "start" | "end" | "label";
52
+ } | null;
49
53
  frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
50
54
  frameRendering: {
51
55
  enabled: boolean;
@@ -53,8 +57,8 @@ export declare const actionToggleElementLock: {
53
57
  outline: boolean;
54
58
  clip: boolean;
55
59
  };
56
- editingFrame: string | null;
57
- elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
60
+ editingFrame: import("@excalidraw/element/types").ExcalidrawFrameLikeElement["id"] | null;
61
+ elementsToHighlight: readonly import("@excalidraw/element/types").NonDeletedExcalidrawElement[] | null;
58
62
  editingTextElement: import("@excalidraw/element/types").ExcalidrawTextElement | null;
59
63
  activeTool: {
60
64
  lastActiveTool: import("../types").ActiveTool | null;
@@ -74,9 +78,10 @@ export declare const actionToggleElementLock: {
74
78
  currentItemStrokeColor: string;
75
79
  currentItemBackgroundColor: string;
76
80
  currentItemFillStyle: ExcalidrawElement["fillStyle"];
77
- currentItemStrokeWidth: number;
81
+ currentItemStrokeWidthKey: import("@excalidraw/common").StrokeWidthKey;
78
82
  currentItemStrokeStyle: ExcalidrawElement["strokeStyle"];
79
83
  currentItemRoughness: number;
84
+ currentItemStrokeVariability: import("@excalidraw/element/types").StrokeVariability;
80
85
  currentItemOpacity: number;
81
86
  currentItemFontFamily: import("@excalidraw/element/types").FontFamilyValues;
82
87
  currentItemFontSize: number;
@@ -89,6 +94,7 @@ export declare const actionToggleElementLock: {
89
94
  viewBackgroundColor: string;
90
95
  scrollX: number;
91
96
  scrollY: number;
97
+ scrollConstraints: import("../types").ScrollConstraints | null;
92
98
  cursorButton: "up" | "down";
93
99
  scrolledOutside: boolean;
94
100
  name: string | null;
@@ -157,8 +163,6 @@ export declare const actionToggleElementLock: {
157
163
  y: number;
158
164
  } | null;
159
165
  objectsSnapModeEnabled: boolean;
160
- userToFollow: import("../types").UserToFollow | null;
161
- followedBy: Set<import("../types").SocketId>;
162
166
  isCropping: boolean;
163
167
  croppingElementId: ExcalidrawElement["id"] | null;
164
168
  searchMatches: Readonly<{
@@ -166,6 +170,11 @@ export declare const actionToggleElementLock: {
166
170
  matches: readonly import("../types").SearchMatch[];
167
171
  }> | null;
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
  };
@@ -209,13 +218,17 @@ export declare const actionUnlockAllElements: {
209
218
  multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
210
219
  selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
211
220
  isBindingEnabled: boolean;
221
+ boxSelectionMode: import("../types").BoxSelectionMode;
212
222
  bindingPreference: "enabled" | "disabled";
213
223
  isMidpointSnappingEnabled: boolean;
214
- startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
215
224
  suggestedBinding: {
216
225
  element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
217
226
  midPoint?: import("@excalidraw/math").GlobalPoint;
218
227
  } | null;
228
+ hoveredArrowTextAnchor: {
229
+ elementId: import("@excalidraw/element/types").ExcalidrawArrowElement["id"];
230
+ anchor: "start" | "end" | "label";
231
+ } | null;
219
232
  frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
220
233
  frameRendering: {
221
234
  enabled: boolean;
@@ -223,8 +236,8 @@ export declare const actionUnlockAllElements: {
223
236
  outline: boolean;
224
237
  clip: boolean;
225
238
  };
226
- editingFrame: string | null;
227
- elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
239
+ editingFrame: import("@excalidraw/element/types").ExcalidrawFrameLikeElement["id"] | null;
240
+ elementsToHighlight: readonly import("@excalidraw/element/types").NonDeletedExcalidrawElement[] | null;
228
241
  editingTextElement: import("@excalidraw/element/types").ExcalidrawTextElement | null;
229
242
  activeTool: {
230
243
  lastActiveTool: import("../types").ActiveTool | null;
@@ -244,9 +257,10 @@ export declare const actionUnlockAllElements: {
244
257
  currentItemStrokeColor: string;
245
258
  currentItemBackgroundColor: string;
246
259
  currentItemFillStyle: ExcalidrawElement["fillStyle"];
247
- currentItemStrokeWidth: number;
260
+ currentItemStrokeWidthKey: import("@excalidraw/common").StrokeWidthKey;
248
261
  currentItemStrokeStyle: ExcalidrawElement["strokeStyle"];
249
262
  currentItemRoughness: number;
263
+ currentItemStrokeVariability: import("@excalidraw/element/types").StrokeVariability;
250
264
  currentItemOpacity: number;
251
265
  currentItemFontFamily: import("@excalidraw/element/types").FontFamilyValues;
252
266
  currentItemFontSize: number;
@@ -259,6 +273,7 @@ export declare const actionUnlockAllElements: {
259
273
  viewBackgroundColor: string;
260
274
  scrollX: number;
261
275
  scrollY: number;
276
+ scrollConstraints: import("../types").ScrollConstraints | null;
262
277
  cursorButton: "up" | "down";
263
278
  scrolledOutside: boolean;
264
279
  name: string | null;
@@ -328,8 +343,6 @@ export declare const actionUnlockAllElements: {
328
343
  y: number;
329
344
  } | null;
330
345
  objectsSnapModeEnabled: boolean;
331
- userToFollow: import("../types").UserToFollow | null;
332
- followedBy: Set<import("../types").SocketId>;
333
346
  isCropping: boolean;
334
347
  croppingElementId: ExcalidrawElement["id"] | null;
335
348
  searchMatches: Readonly<{
@@ -337,6 +350,11 @@ export declare const actionUnlockAllElements: {
337
350
  matches: readonly import("../types").SearchMatch[];
338
351
  }> | null;
339
352
  bindMode: import("@excalidraw/element/types").BindMode;
353
+ colorTopPicks: {
354
+ elementStroke: readonly string[] | null;
355
+ elementBackground: readonly string[] | null;
356
+ bucketFill: readonly string[] | null;
357
+ };
340
358
  };
341
359
  captureUpdate: "IMMEDIATELY";
342
360
  };
@@ -135,12 +135,17 @@ export declare const actionLoadScene: {
135
135
  newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
136
136
  isBindingEnabled: boolean;
137
137
  isMidpointSnappingEnabled: boolean;
138
+ gridModeEnabled: boolean;
138
139
  suggestedBinding: {
139
140
  element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
140
141
  midPoint?: import("@excalidraw/math").GlobalPoint;
141
142
  } | null;
143
+ hoveredArrowTextAnchor: {
144
+ elementId: import("@excalidraw/element/types").ExcalidrawArrowElement["id"];
145
+ anchor: "start" | "end" | "label";
146
+ } | null;
142
147
  isRotating: boolean;
143
- elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
148
+ elementsToHighlight: readonly import("@excalidraw/element/types").NonDeletedExcalidrawElement[] | null;
144
149
  collaborators: Map<import("../types").SocketId, import("../types").Collaborator>;
145
150
  snapLines: readonly import("../snapping").SnapLine[];
146
151
  zenModeEnabled: boolean;
@@ -158,8 +163,8 @@ export declare const actionLoadScene: {
158
163
  shouldCacheIgnoreZoom: boolean;
159
164
  exportScale: number;
160
165
  currentItemArrowType: "sharp" | "round" | "elbow";
161
- bindMode: import("@excalidraw/element/types").BindMode;
162
166
  gridSize: number;
167
+ bindMode: import("@excalidraw/element/types").BindMode;
163
168
  contextMenu: {
164
169
  items: import("../components/ContextMenu").ContextMenuItems;
165
170
  top: number;
@@ -169,9 +174,9 @@ export declare const actionLoadScene: {
169
174
  isLoading: boolean;
170
175
  errorMessage: React.ReactNode;
171
176
  resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
177
+ boxSelectionMode: import("../types").BoxSelectionMode;
172
178
  bindingPreference: "enabled" | "disabled";
173
- startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
174
- editingFrame: string | null;
179
+ editingFrame: import("@excalidraw/element/types").ExcalidrawFrameLikeElement["id"] | null;
175
180
  preferredSelectionTool: {
176
181
  type: "selection" | "lasso";
177
182
  initialized: boolean;
@@ -184,9 +189,10 @@ export declare const actionLoadScene: {
184
189
  currentItemStrokeColor: string;
185
190
  currentItemBackgroundColor: string;
186
191
  currentItemFillStyle: ExcalidrawElement["fillStyle"];
187
- currentItemStrokeWidth: number;
192
+ currentItemStrokeWidthKey: import("@excalidraw/common").StrokeWidthKey;
188
193
  currentItemStrokeStyle: ExcalidrawElement["strokeStyle"];
189
194
  currentItemRoughness: number;
195
+ currentItemStrokeVariability: import("@excalidraw/element/types").StrokeVariability;
190
196
  currentItemOpacity: number;
191
197
  currentItemFontFamily: import("@excalidraw/element/types").FontFamilyValues;
192
198
  currentItemFontSize: number;
@@ -195,6 +201,7 @@ export declare const actionLoadScene: {
195
201
  currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
196
202
  currentHoveredFontFamily: import("@excalidraw/element/types").FontFamilyValues | null;
197
203
  currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
204
+ scrollConstraints: import("../types").ScrollConstraints | null;
198
205
  cursorButton: "up" | "down";
199
206
  scrolledOutside: boolean;
200
207
  isResizing: boolean;
@@ -216,7 +223,6 @@ export declare const actionLoadScene: {
216
223
  duration?: number;
217
224
  } | null;
218
225
  gridStep: number;
219
- gridModeEnabled: boolean;
220
226
  fileHandle: FileSystemFileHandle | null;
221
227
  stats: {
222
228
  open: boolean;
@@ -228,11 +234,14 @@ export declare const actionLoadScene: {
228
234
  y: number;
229
235
  } | null;
230
236
  objectsSnapModeEnabled: boolean;
231
- userToFollow: import("../types").UserToFollow | null;
232
- followedBy: Set<import("../types").SocketId>;
233
237
  lockedMultiSelections: {
234
238
  [groupId: string]: true;
235
239
  };
240
+ colorTopPicks: {
241
+ elementStroke: readonly string[] | null;
242
+ elementBackground: readonly string[] | null;
243
+ bucketFill: readonly string[] | null;
244
+ };
236
245
  };
237
246
  files: BinaryFiles;
238
247
  captureUpdate: "IMMEDIATELY";
@@ -256,13 +265,17 @@ export declare const actionLoadScene: {
256
265
  multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
257
266
  selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
258
267
  isBindingEnabled: boolean;
268
+ boxSelectionMode: import("../types").BoxSelectionMode;
259
269
  bindingPreference: "enabled" | "disabled";
260
270
  isMidpointSnappingEnabled: boolean;
261
- startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
262
271
  suggestedBinding: {
263
272
  element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
264
273
  midPoint?: import("@excalidraw/math").GlobalPoint;
265
274
  } | null;
275
+ hoveredArrowTextAnchor: {
276
+ elementId: import("@excalidraw/element/types").ExcalidrawArrowElement["id"];
277
+ anchor: "start" | "end" | "label";
278
+ } | null;
266
279
  frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
267
280
  frameRendering: {
268
281
  enabled: boolean;
@@ -270,8 +283,8 @@ export declare const actionLoadScene: {
270
283
  outline: boolean;
271
284
  clip: boolean;
272
285
  };
273
- editingFrame: string | null;
274
- elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
286
+ editingFrame: import("@excalidraw/element/types").ExcalidrawFrameLikeElement["id"] | null;
287
+ elementsToHighlight: readonly import("@excalidraw/element/types").NonDeletedExcalidrawElement[] | null;
275
288
  editingTextElement: import("@excalidraw/element/types").ExcalidrawTextElement | null;
276
289
  activeTool: {
277
290
  lastActiveTool: import("../types").ActiveTool | null;
@@ -291,9 +304,10 @@ export declare const actionLoadScene: {
291
304
  currentItemStrokeColor: string;
292
305
  currentItemBackgroundColor: string;
293
306
  currentItemFillStyle: ExcalidrawElement["fillStyle"];
294
- currentItemStrokeWidth: number;
307
+ currentItemStrokeWidthKey: import("@excalidraw/common").StrokeWidthKey;
295
308
  currentItemStrokeStyle: ExcalidrawElement["strokeStyle"];
296
309
  currentItemRoughness: number;
310
+ currentItemStrokeVariability: import("@excalidraw/element/types").StrokeVariability;
297
311
  currentItemOpacity: number;
298
312
  currentItemFontFamily: import("@excalidraw/element/types").FontFamilyValues;
299
313
  currentItemFontSize: number;
@@ -306,6 +320,7 @@ export declare const actionLoadScene: {
306
320
  viewBackgroundColor: string;
307
321
  scrollX: number;
308
322
  scrollY: number;
323
+ scrollConstraints: import("../types").ScrollConstraints | null;
309
324
  cursorButton: "up" | "down";
310
325
  scrolledOutside: boolean;
311
326
  name: string | null;
@@ -381,8 +396,6 @@ export declare const actionLoadScene: {
381
396
  y: number;
382
397
  } | null;
383
398
  objectsSnapModeEnabled: boolean;
384
- userToFollow: import("../types").UserToFollow | null;
385
- followedBy: Set<import("../types").SocketId>;
386
399
  isCropping: boolean;
387
400
  croppingElementId: ExcalidrawElement["id"] | null;
388
401
  searchMatches: Readonly<{
@@ -394,6 +407,11 @@ export declare const actionLoadScene: {
394
407
  [groupId: string]: true;
395
408
  };
396
409
  bindMode: import("@excalidraw/element/types").BindMode;
410
+ colorTopPicks: {
411
+ elementStroke: readonly string[] | null;
412
+ elementBackground: readonly string[] | null;
413
+ bucketFill: readonly string[] | null;
414
+ };
397
415
  };
398
416
  files: BinaryFiles;
399
417
  captureUpdate: "EVENTUALLY";