@excalidraw/math 0.18.0-4a5c9e9 → 0.18.0-4ce38fb

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 (217) hide show
  1. package/dist/dev/index.js +313 -115
  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 +23 -1
  5. package/dist/types/common/src/constants.d.ts +66 -7
  6. package/dist/types/common/src/keys.d.ts +4 -0
  7. package/dist/types/common/src/points.d.ts +1 -1
  8. package/dist/types/common/src/random.d.ts +7 -0
  9. package/dist/types/common/src/utils.d.ts +6 -43
  10. package/dist/types/element/src/Scene.d.ts +7 -5
  11. package/dist/types/element/src/align.d.ts +2 -2
  12. package/dist/types/element/src/arrowEndpointText.d.ts +49 -0
  13. package/dist/types/element/src/arrows/focus.d.ts +5 -2
  14. package/dist/types/element/src/binding.d.ts +28 -13
  15. package/dist/types/element/src/bounds.d.ts +22 -7
  16. package/dist/types/element/src/bucketFill.d.ts +110 -0
  17. package/dist/types/element/src/collision.d.ts +14 -5
  18. package/dist/types/element/src/comparisons.d.ts +8 -5
  19. package/dist/types/element/src/convertToShape.d.ts +23 -0
  20. package/dist/types/element/src/delta.d.ts +23 -1
  21. package/dist/types/element/src/distribute.d.ts +2 -2
  22. package/dist/types/element/src/dragElements.d.ts +27 -0
  23. package/dist/types/element/src/duplicate.d.ts +64 -3
  24. package/dist/types/element/src/embeddable.d.ts +2 -2
  25. package/dist/types/element/src/flowchart.d.ts +11 -7
  26. package/dist/types/element/src/fractionalIndex.d.ts +2 -2
  27. package/dist/types/element/src/frame.d.ts +11 -10
  28. package/dist/types/element/src/groups.d.ts +9 -9
  29. package/dist/types/element/src/index.d.ts +6 -1
  30. package/dist/types/element/src/linearElementEditor.d.ts +27 -10
  31. package/dist/types/element/src/listMarker.d.ts +34 -0
  32. package/dist/types/element/src/mutateElement.d.ts +1 -1
  33. package/dist/types/element/src/newElement.d.ts +53 -3
  34. package/dist/types/element/src/renderElement.d.ts +21 -7
  35. package/dist/types/element/src/resizeElements.d.ts +2 -2
  36. package/dist/types/element/src/selection.d.ts +6 -6
  37. package/dist/types/element/src/shape.d.ts +27 -1
  38. package/dist/types/element/src/sizeHelpers.d.ts +6 -0
  39. package/dist/types/element/src/sortElements.d.ts +10 -0
  40. package/dist/types/element/src/stickyNote.d.ts +183 -0
  41. package/dist/types/element/src/textElement.d.ts +20 -9
  42. package/dist/types/element/src/transform.d.ts +26 -7
  43. package/dist/types/element/src/typeChecks.d.ts +29 -27
  44. package/dist/types/element/src/types.d.ts +43 -7
  45. package/dist/types/element/src/utils.d.ts +15 -4
  46. package/dist/types/element/src/zindex.d.ts +2 -2
  47. package/dist/types/excalidraw/actions/actionAddToLibrary.d.ts +87 -18
  48. package/dist/types/excalidraw/actions/actionAlign.d.ts +6 -6
  49. package/dist/types/excalidraw/actions/actionBoundText.d.ts +58 -12
  50. package/dist/types/excalidraw/actions/actionCanvas.d.ts +265 -940
  51. package/dist/types/excalidraw/actions/actionClipboard.d.ts +58 -12
  52. package/dist/types/excalidraw/actions/actionCropEditor.d.ts +29 -6
  53. package/dist/types/excalidraw/actions/actionDeleteSelected.d.ts +89 -19
  54. package/dist/types/excalidraw/actions/actionDeselect.d.ts +30 -7
  55. package/dist/types/excalidraw/actions/actionDistribute.d.ts +2 -3
  56. package/dist/types/excalidraw/actions/actionElementLink.d.ts +29 -6
  57. package/dist/types/excalidraw/actions/actionElementLock.d.ts +59 -13
  58. package/dist/types/excalidraw/actions/actionExport.d.ts +60 -14
  59. package/dist/types/excalidraw/actions/actionFinalize.d.ts +1 -0
  60. package/dist/types/excalidraw/actions/actionFrame.d.ts +150 -203
  61. package/dist/types/excalidraw/actions/actionGroup.d.ts +73 -27
  62. package/dist/types/excalidraw/actions/actionLinearEditor.d.ts +84 -9
  63. package/dist/types/excalidraw/actions/actionLink.d.ts +30 -7
  64. package/dist/types/excalidraw/actions/actionMenu.d.ts +29 -6
  65. package/dist/types/excalidraw/actions/actionProperties.d.ts +96 -34
  66. package/dist/types/excalidraw/actions/actionSelectAll.d.ts +34 -11
  67. package/dist/types/excalidraw/actions/actionStyles.d.ts +30 -7
  68. package/dist/types/excalidraw/actions/actionTextAutoResize.d.ts +1 -1
  69. package/dist/types/excalidraw/actions/actionToggleArrowBinding.d.ts +30 -7
  70. package/dist/types/excalidraw/actions/actionToggleGridMode.d.ts +33 -11
  71. package/dist/types/excalidraw/actions/actionToggleMidpointSnapping.d.ts +30 -7
  72. package/dist/types/excalidraw/actions/actionToggleObjectsSnapMode.d.ts +30 -7
  73. package/dist/types/excalidraw/actions/actionToggleSearchMenu.d.ts +33 -11
  74. package/dist/types/excalidraw/actions/actionToggleShapeSwitch.d.ts +1 -1
  75. package/dist/types/excalidraw/actions/{actionEmbeddable.d.ts → actionToggleShowHints.d.ts} +45 -19
  76. package/dist/types/excalidraw/actions/actionToggleStats.d.ts +30 -7
  77. package/dist/types/excalidraw/actions/actionToggleViewMode.d.ts +31 -8
  78. package/dist/types/excalidraw/actions/actionToggleZenMode.d.ts +30 -7
  79. package/dist/types/excalidraw/actions/colorTargets.d.ts +39 -0
  80. package/dist/types/excalidraw/actions/index.d.ts +2 -2
  81. package/dist/types/excalidraw/actions/manager.d.ts +1 -0
  82. package/dist/types/excalidraw/actions/shortcuts.d.ts +1 -1
  83. package/dist/types/excalidraw/actions/types.d.ts +8 -4
  84. package/dist/types/excalidraw/{animated-trail.d.ts → animatedTrail.d.ts} +4 -3
  85. package/dist/types/excalidraw/appState.d.ts +30 -6
  86. package/dist/types/excalidraw/components/Actions.d.ts +17 -12
  87. package/dist/types/excalidraw/components/ActiveConfirmDialog.d.ts +1 -1
  88. package/dist/types/excalidraw/components/App.arrowText.d.ts +70 -0
  89. package/dist/types/excalidraw/components/App.bucketFill.d.ts +48 -0
  90. package/dist/types/excalidraw/components/App.clipboard.d.ts +31 -0
  91. package/dist/types/excalidraw/components/App.cursor.d.ts +38 -0
  92. package/dist/types/excalidraw/components/App.d.ts +301 -93
  93. package/dist/types/excalidraw/components/App.drawshape.d.ts +55 -0
  94. package/dist/types/excalidraw/components/App.duplicate.d.ts +101 -0
  95. package/dist/types/excalidraw/components/App.flowchart.d.ts +21 -0
  96. package/dist/types/excalidraw/components/App.pan.d.ts +62 -0
  97. package/dist/types/excalidraw/components/App.text.d.ts +146 -0
  98. package/dist/types/excalidraw/components/App.textTool.d.ts +140 -0
  99. package/dist/types/excalidraw/components/App.toolDrag.d.ts +63 -0
  100. package/dist/types/excalidraw/components/App.viewport.d.ts +113 -0
  101. package/dist/types/excalidraw/components/App.wheel.d.ts +26 -0
  102. package/dist/types/excalidraw/components/ColorPicker/ColorPicker.d.ts +9 -3
  103. package/dist/types/excalidraw/components/ColorPicker/CustomColorList.d.ts +3 -1
  104. package/dist/types/excalidraw/components/ColorPicker/Picker.d.ts +5 -1
  105. package/dist/types/excalidraw/components/ColorPicker/PickerColorList.d.ts +9 -2
  106. package/dist/types/excalidraw/components/ColorPicker/ShadeList.d.ts +4 -2
  107. package/dist/types/excalidraw/components/ColorPicker/TopPicks.d.ts +8 -1
  108. package/dist/types/excalidraw/components/ColorPicker/colorPickerUtils.d.ts +1 -1
  109. package/dist/types/excalidraw/components/ColorPicker/colorTopPicksDnD.d.ts +11 -0
  110. package/dist/types/excalidraw/components/ColorPicker/keyboardNavHandlers.d.ts +2 -1
  111. package/dist/types/excalidraw/components/CommandPalette/defaultCommandPaletteItems.d.ts +1 -2
  112. package/dist/types/excalidraw/components/ConvertElementTypePopup.d.ts +2 -2
  113. package/dist/types/excalidraw/components/CursorHint.d.ts +46 -0
  114. package/dist/types/excalidraw/components/EyeDropper.d.ts +1 -1
  115. package/dist/types/excalidraw/components/FileDropOverlay.d.ts +2 -0
  116. package/dist/types/excalidraw/components/FontPicker/FontPicker.d.ts +4 -1
  117. package/dist/types/excalidraw/components/FontPicker/FontPickerList.d.ts +6 -1
  118. package/dist/types/excalidraw/components/FontPicker/fontTopPicksDnD.d.ts +12 -0
  119. package/dist/types/excalidraw/components/IconButton.d.ts +48 -0
  120. package/dist/types/excalidraw/components/Island.d.ts +7 -0
  121. package/dist/types/excalidraw/components/LaserPointerButton.d.ts +2 -4
  122. package/dist/types/excalidraw/components/LayerUI.d.ts +5 -2
  123. package/dist/types/excalidraw/components/LibraryMenu.d.ts +1 -1
  124. package/dist/types/excalidraw/components/LibraryMenuSection.d.ts +6 -2
  125. package/dist/types/excalidraw/components/LibraryUnit.d.ts +7 -2
  126. package/dist/types/excalidraw/components/LockButton.d.ts +3 -4
  127. package/dist/types/excalidraw/components/MagicButton.d.ts +0 -2
  128. package/dist/types/excalidraw/components/MobileMenu.d.ts +4 -4
  129. package/dist/types/excalidraw/components/MobileToolbar.d.ts +9 -0
  130. package/dist/types/excalidraw/components/OverwriteConfirm/OverwriteConfirmState.d.ts +1 -1
  131. package/dist/types/excalidraw/components/PenModeButton.d.ts +2 -5
  132. package/dist/types/excalidraw/components/Popover.d.ts +1 -3
  133. package/dist/types/excalidraw/components/{ButtonIcon.d.ts → RadioButton.d.ts} +2 -5
  134. package/dist/types/excalidraw/components/SVGLayer.d.ts +1 -1
  135. package/dist/types/excalidraw/components/SearchMenu.d.ts +1 -1
  136. package/dist/types/excalidraw/components/Sidebar/Sidebar.d.ts +1 -1
  137. package/dist/types/excalidraw/components/Stats/Angle.d.ts +2 -2
  138. package/dist/types/excalidraw/components/Stats/Dimension.d.ts +2 -2
  139. package/dist/types/excalidraw/components/Stats/DragInput.d.ts +2 -2
  140. package/dist/types/excalidraw/components/Stats/MultiAngle.d.ts +2 -2
  141. package/dist/types/excalidraw/components/Stats/MultiDimension.d.ts +2 -2
  142. package/dist/types/excalidraw/components/Stats/MultiPosition.d.ts +2 -2
  143. package/dist/types/excalidraw/components/Stats/Position.d.ts +3 -3
  144. package/dist/types/excalidraw/components/Stats/utils.d.ts +1 -1
  145. package/dist/types/excalidraw/components/TTDDialog/TTDContext.d.ts +4 -4
  146. package/dist/types/excalidraw/components/TTDDialog/useTTDChatStorage.d.ts +3 -3
  147. package/dist/types/excalidraw/components/ToolPopover.d.ts +3 -6
  148. package/dist/types/excalidraw/components/Toolbar.d.ts +11 -0
  149. package/dist/types/excalidraw/components/Tools.d.ts +151 -0
  150. package/dist/types/excalidraw/components/Tooltip.d.ts +15 -1
  151. package/dist/types/excalidraw/components/TopPicksDnD/TopPicksContextMenu.d.ts +14 -0
  152. package/dist/types/excalidraw/components/TopPicksDnD/TopPicksTip.d.ts +11 -0
  153. package/dist/types/excalidraw/components/TopPicksDnD/topPicksDnD.d.ts +58 -0
  154. package/dist/types/excalidraw/components/UserList.d.ts +3 -2
  155. package/dist/types/excalidraw/components/ViewportStatusFrame/ViewportStatusFrame.d.ts +11 -0
  156. package/dist/types/excalidraw/components/canvases/InteractiveCanvas.d.ts +3 -1
  157. package/dist/types/excalidraw/components/canvases/NewElementCanvas.d.ts +3 -0
  158. package/dist/types/excalidraw/components/canvases/StaticCanvas.d.ts +1 -1
  159. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuItemContentRadio.d.ts +2 -1
  160. package/dist/types/excalidraw/components/footer/Footer.d.ts +3 -1
  161. package/dist/types/excalidraw/components/hyperlink/helpers.d.ts +2 -2
  162. package/dist/types/excalidraw/components/icons.d.ts +7 -1
  163. package/dist/types/excalidraw/components/main-menu/DefaultItems.d.ts +10 -4
  164. package/dist/types/excalidraw/components/positionElementBesideCursor.d.ts +26 -0
  165. package/dist/types/excalidraw/components/shapeActionPredicates.d.ts +39 -0
  166. package/dist/types/excalidraw/data/blob.d.ts +62 -16
  167. package/dist/types/excalidraw/data/index.d.ts +4 -4
  168. package/dist/types/excalidraw/data/json.d.ts +37 -14
  169. package/dist/types/excalidraw/data/library.d.ts +1 -1
  170. package/dist/types/excalidraw/drawShapeTrail.d.ts +16 -0
  171. package/dist/types/excalidraw/eraser/index.d.ts +2 -3
  172. package/dist/types/excalidraw/fonts/Fonts.d.ts +3 -2
  173. package/dist/types/excalidraw/hooks/useAppStateValue.d.ts +29 -0
  174. package/dist/types/excalidraw/hooks/useLibraryItemSvg.d.ts +1 -1
  175. package/dist/types/excalidraw/hooks/useTextEditorFocus.d.ts +5 -5
  176. package/dist/types/excalidraw/{laser-trails.d.ts → laserTrails.d.ts} +5 -7
  177. package/dist/types/excalidraw/lasso/index.d.ts +2 -3
  178. package/dist/types/excalidraw/lasso/utils.d.ts +2 -0
  179. package/dist/types/excalidraw/renderOverrides.d.ts +9 -0
  180. package/dist/types/excalidraw/renderer/animation.d.ts +5 -1
  181. package/dist/types/excalidraw/renderer/helpers.d.ts +25 -0
  182. package/dist/types/excalidraw/renderer/interactiveScene.d.ts +2 -4
  183. package/dist/types/excalidraw/scene/Renderer.d.ts +489 -20
  184. package/dist/types/excalidraw/scene/export.d.ts +3 -3
  185. package/dist/types/excalidraw/scene/index.d.ts +2 -2
  186. package/dist/types/excalidraw/scene/types.d.ts +7 -4
  187. package/dist/types/excalidraw/snapping.d.ts +7 -7
  188. package/dist/types/excalidraw/types.d.ts +531 -29
  189. package/dist/types/excalidraw/viewport.d.ts +302 -0
  190. package/dist/types/excalidraw/wysiwyg/textWysiwyg.d.ts +13 -3
  191. package/dist/types/fractional-indexing/src/index.d.ts +29 -0
  192. package/dist/types/laser-pointer/src/index.d.ts +2 -0
  193. package/dist/types/laser-pointer/src/math.d.ts +16 -0
  194. package/dist/types/laser-pointer/src/simplify.d.ts +2 -0
  195. package/dist/types/laser-pointer/src/state.d.ts +36 -0
  196. package/dist/types/math/src/constants.d.ts +0 -1
  197. package/dist/types/math/src/curve.d.ts +23 -13
  198. package/dist/types/math/src/index.d.ts +1 -0
  199. package/dist/types/math/src/pca.d.ts +79 -0
  200. package/dist/types/math/src/point.d.ts +1 -0
  201. package/dist/types/math/src/polygon.d.ts +25 -1
  202. package/dist/types/math/src/segment.d.ts +6 -0
  203. package/dist/types/utils/src/export.d.ts +4 -3
  204. package/dist/types/utils/src/index.d.ts +1 -2
  205. package/dist/types/utils/src/shape.d.ts +2 -2
  206. package/package.json +2 -2
  207. package/dist/types/excalidraw/animation-frame-handler.d.ts +0 -16
  208. package/dist/types/excalidraw/components/FollowMode/FollowMode.d.ts +0 -10
  209. package/dist/types/excalidraw/components/HandButton.d.ts +0 -10
  210. package/dist/types/excalidraw/components/MobileToolBar.d.ts +0 -10
  211. package/dist/types/excalidraw/components/ToolButton.d.ts +0 -49
  212. package/dist/types/excalidraw/components/shapes.d.ts +0 -263
  213. package/dist/types/excalidraw/cursor.d.ts +0 -5
  214. package/dist/types/excalidraw/scene/scroll.d.ts +0 -18
  215. package/dist/types/excalidraw/scene/zoom.d.ts +0 -12
  216. package/dist/types/utils/src/bbox.d.ts +0 -9
  217. package/dist/types/utils/src/withinBounds.d.ts +0 -19
@@ -26,12 +26,25 @@ export declare const actionToggleArrowBinding: {
26
26
  resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
27
27
  multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
28
28
  selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
29
+ boxSelectionMode: import("../types").BoxSelectionMode;
29
30
  isMidpointSnappingEnabled: boolean;
30
- startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
31
+ showHints: boolean;
32
+ inputDevice: import("../types").InputDevice;
31
33
  suggestedBinding: {
32
34
  element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
33
35
  midPoint?: import("@excalidraw/math").GlobalPoint;
34
36
  } | null;
37
+ textToolHover: {
38
+ type: "text";
39
+ elementId: import("@excalidraw/element/types").ExcalidrawElement["id"];
40
+ } | {
41
+ type: "container";
42
+ elementId: import("@excalidraw/element/types").ExcalidrawElement["id"];
43
+ } | {
44
+ type: "arrow";
45
+ elementId: import("@excalidraw/element/types").ExcalidrawArrowElement["id"];
46
+ anchor: "start" | "end" | "label";
47
+ } | null;
35
48
  frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
36
49
  frameRendering: {
37
50
  enabled: boolean;
@@ -39,8 +52,8 @@ export declare const actionToggleArrowBinding: {
39
52
  outline: boolean;
40
53
  clip: boolean;
41
54
  };
42
- editingFrame: string | null;
43
- elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
55
+ editingFrame: import("@excalidraw/element/types").ExcalidrawFrameLikeElement["id"] | null;
56
+ elementsToHighlight: readonly import("@excalidraw/element/types").NonDeletedExcalidrawElement[] | null;
44
57
  editingTextElement: import("@excalidraw/element/types").ExcalidrawTextElement | null;
45
58
  activeTool: {
46
59
  lastActiveTool: import("../types").ActiveTool | null;
@@ -58,11 +71,14 @@ export declare const actionToggleArrowBinding: {
58
71
  exportWithDarkMode: boolean;
59
72
  exportScale: number;
60
73
  currentItemStrokeColor: string;
74
+ currentItemStickynoteStrokeColor: string;
75
+ currentItemStickynoteBackgroundColor: string;
61
76
  currentItemBackgroundColor: string;
62
77
  currentItemFillStyle: import("@excalidraw/element/types").ExcalidrawElement["fillStyle"];
63
- currentItemStrokeWidth: number;
78
+ currentItemStrokeWidthKey: import("@excalidraw/common").StrokeWidthKey;
64
79
  currentItemStrokeStyle: import("@excalidraw/element/types").ExcalidrawElement["strokeStyle"];
65
80
  currentItemRoughness: number;
81
+ currentItemStrokeVariability: import("@excalidraw/element/types").StrokeVariability;
66
82
  currentItemOpacity: number;
67
83
  currentItemFontFamily: import("@excalidraw/element/types").FontFamilyValues;
68
84
  currentItemFontSize: number;
@@ -75,6 +91,7 @@ export declare const actionToggleArrowBinding: {
75
91
  viewBackgroundColor: string;
76
92
  scrollX: number;
77
93
  scrollY: number;
94
+ scrollConstraints: import("../types").ScrollConstraints | null;
78
95
  cursorButton: "up" | "down";
79
96
  scrolledOutside: boolean;
80
97
  name: string | null;
@@ -150,8 +167,6 @@ export declare const actionToggleArrowBinding: {
150
167
  y: number;
151
168
  } | null;
152
169
  objectsSnapModeEnabled: boolean;
153
- userToFollow: import("../types").UserToFollow | null;
154
- followedBy: Set<import("../types").SocketId>;
155
170
  isCropping: boolean;
156
171
  croppingElementId: import("@excalidraw/element/types").ExcalidrawElement["id"] | null;
157
172
  searchMatches: Readonly<{
@@ -163,10 +178,18 @@ export declare const actionToggleArrowBinding: {
163
178
  [groupId: string]: true;
164
179
  };
165
180
  bindMode: import("@excalidraw/element/types").BindMode;
181
+ colorTopPicks: {
182
+ elementStroke: readonly string[] | null;
183
+ elementBackground: readonly string[] | null;
184
+ bucketFill: readonly string[] | null;
185
+ stickyNoteStroke: readonly string[] | null;
186
+ stickyNoteBackground: readonly string[] | null;
187
+ };
188
+ fontTopPicks: readonly import("@excalidraw/element/types").FontFamilyValues[] | null;
166
189
  };
167
190
  captureUpdate: "NEVER";
168
191
  };
169
- checked: (appState: Readonly<import("../types").AppState>) => boolean;
192
+ checked: (appState: Readonly<import("../types").UIAppState>) => boolean;
170
193
  } & {
171
194
  keyTest?: undefined;
172
195
  };
@@ -1,4 +1,3 @@
1
- import type { AppState } from "../types";
2
1
  export declare const actionToggleGridMode: {
3
2
  name: "gridMode";
4
3
  icon: import("react/jsx-runtime").JSX.Element;
@@ -7,9 +6,9 @@ export declare const actionToggleGridMode: {
7
6
  viewMode: true;
8
7
  trackEvent: {
9
8
  category: "canvas";
10
- predicate: (appState: Readonly<AppState>) => boolean;
9
+ predicate: (appState: Readonly<import("../types").AppState>) => boolean;
11
10
  };
12
- perform(elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>): {
11
+ perform(elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>): {
13
12
  appState: {
14
13
  gridModeEnabled: boolean;
15
14
  objectsSnapModeEnabled: false;
@@ -30,13 +29,26 @@ export declare const actionToggleGridMode: {
30
29
  multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
31
30
  selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
32
31
  isBindingEnabled: boolean;
32
+ boxSelectionMode: import("../types").BoxSelectionMode;
33
33
  bindingPreference: "enabled" | "disabled";
34
34
  isMidpointSnappingEnabled: boolean;
35
- startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
35
+ showHints: boolean;
36
+ inputDevice: import("../types").InputDevice;
36
37
  suggestedBinding: {
37
38
  element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
38
39
  midPoint?: import("@excalidraw/math").GlobalPoint;
39
40
  } | null;
41
+ textToolHover: {
42
+ type: "text";
43
+ elementId: import("@excalidraw/element/types").ExcalidrawElement["id"];
44
+ } | {
45
+ type: "container";
46
+ elementId: import("@excalidraw/element/types").ExcalidrawElement["id"];
47
+ } | {
48
+ type: "arrow";
49
+ elementId: import("@excalidraw/element/types").ExcalidrawArrowElement["id"];
50
+ anchor: "start" | "end" | "label";
51
+ } | null;
40
52
  frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
41
53
  frameRendering: {
42
54
  enabled: boolean;
@@ -44,8 +56,8 @@ export declare const actionToggleGridMode: {
44
56
  outline: boolean;
45
57
  clip: boolean;
46
58
  };
47
- editingFrame: string | null;
48
- elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
59
+ editingFrame: import("@excalidraw/element/types").ExcalidrawFrameLikeElement["id"] | null;
60
+ elementsToHighlight: readonly import("@excalidraw/element/types").NonDeletedExcalidrawElement[] | null;
49
61
  editingTextElement: import("@excalidraw/element/types").ExcalidrawTextElement | null;
50
62
  activeTool: {
51
63
  lastActiveTool: import("../types").ActiveTool | null;
@@ -63,11 +75,14 @@ export declare const actionToggleGridMode: {
63
75
  exportWithDarkMode: boolean;
64
76
  exportScale: number;
65
77
  currentItemStrokeColor: string;
78
+ currentItemStickynoteStrokeColor: string;
79
+ currentItemStickynoteBackgroundColor: string;
66
80
  currentItemBackgroundColor: string;
67
81
  currentItemFillStyle: import("@excalidraw/element/types").ExcalidrawElement["fillStyle"];
68
- currentItemStrokeWidth: number;
82
+ currentItemStrokeWidthKey: import("@excalidraw/common").StrokeWidthKey;
69
83
  currentItemStrokeStyle: import("@excalidraw/element/types").ExcalidrawElement["strokeStyle"];
70
84
  currentItemRoughness: number;
85
+ currentItemStrokeVariability: import("@excalidraw/element/types").StrokeVariability;
71
86
  currentItemOpacity: number;
72
87
  currentItemFontFamily: import("@excalidraw/element/types").FontFamilyValues;
73
88
  currentItemFontSize: number;
@@ -80,6 +95,7 @@ export declare const actionToggleGridMode: {
80
95
  viewBackgroundColor: string;
81
96
  scrollX: number;
82
97
  scrollY: number;
98
+ scrollConstraints: import("../types").ScrollConstraints | null;
83
99
  cursorButton: "up" | "down";
84
100
  scrolledOutside: boolean;
85
101
  name: string | null;
@@ -153,8 +169,6 @@ export declare const actionToggleGridMode: {
153
169
  x: number;
154
170
  y: number;
155
171
  } | null;
156
- userToFollow: import("../types").UserToFollow | null;
157
- followedBy: Set<import("../types").SocketId>;
158
172
  isCropping: boolean;
159
173
  croppingElementId: import("@excalidraw/element/types").ExcalidrawElement["id"] | null;
160
174
  searchMatches: Readonly<{
@@ -166,11 +180,19 @@ export declare const actionToggleGridMode: {
166
180
  [groupId: string]: true;
167
181
  };
168
182
  bindMode: import("@excalidraw/element/types").BindMode;
183
+ colorTopPicks: {
184
+ elementStroke: readonly string[] | null;
185
+ elementBackground: readonly string[] | null;
186
+ bucketFill: readonly string[] | null;
187
+ stickyNoteStroke: readonly string[] | null;
188
+ stickyNoteBackground: readonly string[] | null;
189
+ };
190
+ fontTopPicks: readonly import("@excalidraw/element/types").FontFamilyValues[] | null;
169
191
  };
170
192
  captureUpdate: "EVENTUALLY";
171
193
  };
172
- checked: (appState: AppState) => boolean;
173
- predicate: (element: readonly import("@excalidraw/element/types").ExcalidrawElement[], appState: AppState, props: import("../types").ExcalidrawProps) => boolean;
194
+ checked: (appState: Readonly<import("../types").UIAppState>) => boolean;
195
+ predicate: (element: readonly import("@excalidraw/element/types").ExcalidrawElement[], appState: import("../types").AppState, props: import("../types").ExcalidrawProps) => boolean;
174
196
  keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
175
197
  } & {
176
198
  keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
@@ -26,12 +26,25 @@ export declare const actionToggleMidpointSnapping: {
26
26
  multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
27
27
  selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
28
28
  isBindingEnabled: boolean;
29
+ boxSelectionMode: import("../types").BoxSelectionMode;
29
30
  bindingPreference: "enabled" | "disabled";
30
- startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
31
+ showHints: boolean;
32
+ inputDevice: import("../types").InputDevice;
31
33
  suggestedBinding: {
32
34
  element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
33
35
  midPoint?: import("@excalidraw/math").GlobalPoint;
34
36
  } | null;
37
+ textToolHover: {
38
+ type: "text";
39
+ elementId: import("@excalidraw/element/types").ExcalidrawElement["id"];
40
+ } | {
41
+ type: "container";
42
+ elementId: import("@excalidraw/element/types").ExcalidrawElement["id"];
43
+ } | {
44
+ type: "arrow";
45
+ elementId: import("@excalidraw/element/types").ExcalidrawArrowElement["id"];
46
+ anchor: "start" | "end" | "label";
47
+ } | null;
35
48
  frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
36
49
  frameRendering: {
37
50
  enabled: boolean;
@@ -39,8 +52,8 @@ export declare const actionToggleMidpointSnapping: {
39
52
  outline: boolean;
40
53
  clip: boolean;
41
54
  };
42
- editingFrame: string | null;
43
- elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
55
+ editingFrame: import("@excalidraw/element/types").ExcalidrawFrameLikeElement["id"] | null;
56
+ elementsToHighlight: readonly import("@excalidraw/element/types").NonDeletedExcalidrawElement[] | null;
44
57
  editingTextElement: import("@excalidraw/element/types").ExcalidrawTextElement | null;
45
58
  activeTool: {
46
59
  lastActiveTool: import("../types").ActiveTool | null;
@@ -58,11 +71,14 @@ export declare const actionToggleMidpointSnapping: {
58
71
  exportWithDarkMode: boolean;
59
72
  exportScale: number;
60
73
  currentItemStrokeColor: string;
74
+ currentItemStickynoteStrokeColor: string;
75
+ currentItemStickynoteBackgroundColor: string;
61
76
  currentItemBackgroundColor: string;
62
77
  currentItemFillStyle: import("@excalidraw/element/types").ExcalidrawElement["fillStyle"];
63
- currentItemStrokeWidth: number;
78
+ currentItemStrokeWidthKey: import("@excalidraw/common").StrokeWidthKey;
64
79
  currentItemStrokeStyle: import("@excalidraw/element/types").ExcalidrawElement["strokeStyle"];
65
80
  currentItemRoughness: number;
81
+ currentItemStrokeVariability: import("@excalidraw/element/types").StrokeVariability;
66
82
  currentItemOpacity: number;
67
83
  currentItemFontFamily: import("@excalidraw/element/types").FontFamilyValues;
68
84
  currentItemFontSize: number;
@@ -75,6 +91,7 @@ export declare const actionToggleMidpointSnapping: {
75
91
  viewBackgroundColor: string;
76
92
  scrollX: number;
77
93
  scrollY: number;
94
+ scrollConstraints: import("../types").ScrollConstraints | null;
78
95
  cursorButton: "up" | "down";
79
96
  scrolledOutside: boolean;
80
97
  name: string | null;
@@ -150,8 +167,6 @@ export declare const actionToggleMidpointSnapping: {
150
167
  y: number;
151
168
  } | null;
152
169
  objectsSnapModeEnabled: boolean;
153
- userToFollow: import("../types").UserToFollow | null;
154
- followedBy: Set<import("../types").SocketId>;
155
170
  isCropping: boolean;
156
171
  croppingElementId: import("@excalidraw/element/types").ExcalidrawElement["id"] | null;
157
172
  searchMatches: Readonly<{
@@ -163,10 +178,18 @@ export declare const actionToggleMidpointSnapping: {
163
178
  [groupId: string]: true;
164
179
  };
165
180
  bindMode: import("@excalidraw/element/types").BindMode;
181
+ colorTopPicks: {
182
+ elementStroke: readonly string[] | null;
183
+ elementBackground: readonly string[] | null;
184
+ bucketFill: readonly string[] | null;
185
+ stickyNoteStroke: readonly string[] | null;
186
+ stickyNoteBackground: readonly string[] | null;
187
+ };
188
+ fontTopPicks: readonly import("@excalidraw/element/types").FontFamilyValues[] | null;
166
189
  };
167
190
  captureUpdate: "NEVER";
168
191
  };
169
- checked: (appState: Readonly<import("../types").AppState>) => boolean;
192
+ checked: (appState: Readonly<import("../types").UIAppState>) => boolean;
170
193
  } & {
171
194
  keyTest?: undefined;
172
195
  };
@@ -28,13 +28,26 @@ export declare const actionToggleObjectsSnapMode: {
28
28
  multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
29
29
  selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
30
30
  isBindingEnabled: boolean;
31
+ boxSelectionMode: import("../types").BoxSelectionMode;
31
32
  bindingPreference: "enabled" | "disabled";
32
33
  isMidpointSnappingEnabled: boolean;
33
- startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
34
+ showHints: boolean;
35
+ inputDevice: import("../types").InputDevice;
34
36
  suggestedBinding: {
35
37
  element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
36
38
  midPoint?: import("@excalidraw/math").GlobalPoint;
37
39
  } | null;
40
+ textToolHover: {
41
+ type: "text";
42
+ elementId: import("@excalidraw/element/types").ExcalidrawElement["id"];
43
+ } | {
44
+ type: "container";
45
+ elementId: import("@excalidraw/element/types").ExcalidrawElement["id"];
46
+ } | {
47
+ type: "arrow";
48
+ elementId: import("@excalidraw/element/types").ExcalidrawArrowElement["id"];
49
+ anchor: "start" | "end" | "label";
50
+ } | null;
38
51
  frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
39
52
  frameRendering: {
40
53
  enabled: boolean;
@@ -42,8 +55,8 @@ export declare const actionToggleObjectsSnapMode: {
42
55
  outline: boolean;
43
56
  clip: boolean;
44
57
  };
45
- editingFrame: string | null;
46
- elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
58
+ editingFrame: import("@excalidraw/element/types").ExcalidrawFrameLikeElement["id"] | null;
59
+ elementsToHighlight: readonly import("@excalidraw/element/types").NonDeletedExcalidrawElement[] | null;
47
60
  editingTextElement: import("@excalidraw/element/types").ExcalidrawTextElement | null;
48
61
  activeTool: {
49
62
  lastActiveTool: import("../types").ActiveTool | null;
@@ -61,11 +74,14 @@ export declare const actionToggleObjectsSnapMode: {
61
74
  exportWithDarkMode: boolean;
62
75
  exportScale: number;
63
76
  currentItemStrokeColor: string;
77
+ currentItemStickynoteStrokeColor: string;
78
+ currentItemStickynoteBackgroundColor: string;
64
79
  currentItemBackgroundColor: string;
65
80
  currentItemFillStyle: import("@excalidraw/element/types").ExcalidrawElement["fillStyle"];
66
- currentItemStrokeWidth: number;
81
+ currentItemStrokeWidthKey: import("@excalidraw/common").StrokeWidthKey;
67
82
  currentItemStrokeStyle: import("@excalidraw/element/types").ExcalidrawElement["strokeStyle"];
68
83
  currentItemRoughness: number;
84
+ currentItemStrokeVariability: import("@excalidraw/element/types").StrokeVariability;
69
85
  currentItemOpacity: number;
70
86
  currentItemFontFamily: import("@excalidraw/element/types").FontFamilyValues;
71
87
  currentItemFontSize: number;
@@ -78,6 +94,7 @@ export declare const actionToggleObjectsSnapMode: {
78
94
  viewBackgroundColor: string;
79
95
  scrollX: number;
80
96
  scrollY: number;
97
+ scrollConstraints: import("../types").ScrollConstraints | null;
81
98
  cursorButton: "up" | "down";
82
99
  scrolledOutside: boolean;
83
100
  name: string | null;
@@ -151,8 +168,6 @@ export declare const actionToggleObjectsSnapMode: {
151
168
  x: number;
152
169
  y: number;
153
170
  } | null;
154
- userToFollow: import("../types").UserToFollow | null;
155
- followedBy: Set<import("../types").SocketId>;
156
171
  isCropping: boolean;
157
172
  croppingElementId: import("@excalidraw/element/types").ExcalidrawElement["id"] | null;
158
173
  searchMatches: Readonly<{
@@ -164,10 +179,18 @@ export declare const actionToggleObjectsSnapMode: {
164
179
  [groupId: string]: true;
165
180
  };
166
181
  bindMode: import("@excalidraw/element/types").BindMode;
182
+ colorTopPicks: {
183
+ elementStroke: readonly string[] | null;
184
+ elementBackground: readonly string[] | null;
185
+ bucketFill: readonly string[] | null;
186
+ stickyNoteStroke: readonly string[] | null;
187
+ stickyNoteBackground: readonly string[] | null;
188
+ };
189
+ fontTopPicks: readonly import("@excalidraw/element/types").FontFamilyValues[] | null;
167
190
  };
168
191
  captureUpdate: "EVENTUALLY";
169
192
  };
170
- checked: (appState: Readonly<import("../types").AppState>) => boolean;
193
+ checked: (appState: Readonly<import("../types").UIAppState>) => boolean;
171
194
  predicate: (elements: readonly import("@excalidraw/element/types").ExcalidrawElement[], appState: import("../types").AppState, appProps: import("../types").ExcalidrawProps) => boolean;
172
195
  keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
173
196
  } & {
@@ -1,4 +1,3 @@
1
- import type { AppState } from "../types";
2
1
  export declare const actionToggleSearchMenu: {
3
2
  name: "searchMenu";
4
3
  icon: import("react/jsx-runtime").JSX.Element;
@@ -8,9 +7,9 @@ export declare const actionToggleSearchMenu: {
8
7
  trackEvent: {
9
8
  category: "search_menu";
10
9
  action: string;
11
- predicate: (appState: Readonly<AppState>) => boolean;
10
+ predicate: (appState: Readonly<import("../types").AppState>) => boolean;
12
11
  };
13
- perform(elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: unknown, app: import("../types").AppClassProperties): false | {
12
+ perform(elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, _: unknown, app: import("../types").AppClassProperties): false | {
14
13
  appState: {
15
14
  openSidebar: {
16
15
  name: "default";
@@ -34,13 +33,26 @@ export declare const actionToggleSearchMenu: {
34
33
  multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
35
34
  selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
36
35
  isBindingEnabled: boolean;
36
+ boxSelectionMode: import("../types").BoxSelectionMode;
37
37
  bindingPreference: "enabled" | "disabled";
38
38
  isMidpointSnappingEnabled: boolean;
39
- startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
39
+ showHints: boolean;
40
+ inputDevice: import("../types").InputDevice;
40
41
  suggestedBinding: {
41
42
  element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
42
43
  midPoint?: import("@excalidraw/math").GlobalPoint;
43
44
  } | null;
45
+ textToolHover: {
46
+ type: "text";
47
+ elementId: import("@excalidraw/element/types").ExcalidrawElement["id"];
48
+ } | {
49
+ type: "container";
50
+ elementId: import("@excalidraw/element/types").ExcalidrawElement["id"];
51
+ } | {
52
+ type: "arrow";
53
+ elementId: import("@excalidraw/element/types").ExcalidrawArrowElement["id"];
54
+ anchor: "start" | "end" | "label";
55
+ } | null;
44
56
  frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
45
57
  frameRendering: {
46
58
  enabled: boolean;
@@ -48,8 +60,8 @@ export declare const actionToggleSearchMenu: {
48
60
  outline: boolean;
49
61
  clip: boolean;
50
62
  };
51
- editingFrame: string | null;
52
- elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
63
+ editingFrame: import("@excalidraw/element/types").ExcalidrawFrameLikeElement["id"] | null;
64
+ elementsToHighlight: readonly import("@excalidraw/element/types").NonDeletedExcalidrawElement[] | null;
53
65
  editingTextElement: import("@excalidraw/element/types").ExcalidrawTextElement | null;
54
66
  activeTool: {
55
67
  lastActiveTool: import("../types").ActiveTool | null;
@@ -67,11 +79,14 @@ export declare const actionToggleSearchMenu: {
67
79
  exportWithDarkMode: boolean;
68
80
  exportScale: number;
69
81
  currentItemStrokeColor: string;
82
+ currentItemStickynoteStrokeColor: string;
83
+ currentItemStickynoteBackgroundColor: string;
70
84
  currentItemBackgroundColor: string;
71
85
  currentItemFillStyle: import("@excalidraw/element/types").ExcalidrawElement["fillStyle"];
72
- currentItemStrokeWidth: number;
86
+ currentItemStrokeWidthKey: import("@excalidraw/common").StrokeWidthKey;
73
87
  currentItemStrokeStyle: import("@excalidraw/element/types").ExcalidrawElement["strokeStyle"];
74
88
  currentItemRoughness: number;
89
+ currentItemStrokeVariability: import("@excalidraw/element/types").StrokeVariability;
75
90
  currentItemOpacity: number;
76
91
  currentItemFontFamily: import("@excalidraw/element/types").FontFamilyValues;
77
92
  currentItemFontSize: number;
@@ -84,6 +99,7 @@ export declare const actionToggleSearchMenu: {
84
99
  viewBackgroundColor: string;
85
100
  scrollX: number;
86
101
  scrollY: number;
102
+ scrollConstraints: import("../types").ScrollConstraints | null;
87
103
  cursorButton: "up" | "down";
88
104
  scrolledOutside: boolean;
89
105
  name: string | null;
@@ -138,8 +154,6 @@ export declare const actionToggleSearchMenu: {
138
154
  y: number;
139
155
  } | null;
140
156
  objectsSnapModeEnabled: boolean;
141
- userToFollow: import("../types").UserToFollow | null;
142
- followedBy: Set<import("../types").SocketId>;
143
157
  isCropping: boolean;
144
158
  croppingElementId: import("@excalidraw/element/types").ExcalidrawElement["id"] | null;
145
159
  searchMatches: Readonly<{
@@ -151,11 +165,19 @@ export declare const actionToggleSearchMenu: {
151
165
  [groupId: string]: true;
152
166
  };
153
167
  bindMode: import("@excalidraw/element/types").BindMode;
168
+ colorTopPicks: {
169
+ elementStroke: readonly string[] | null;
170
+ elementBackground: readonly string[] | null;
171
+ bucketFill: readonly string[] | null;
172
+ stickyNoteStroke: readonly string[] | null;
173
+ stickyNoteBackground: readonly string[] | null;
174
+ };
175
+ fontTopPicks: readonly import("@excalidraw/element/types").FontFamilyValues[] | null;
154
176
  };
155
177
  captureUpdate: "EVENTUALLY";
156
178
  };
157
- checked: (appState: AppState) => boolean;
158
- predicate: (element: readonly import("@excalidraw/element/types").ExcalidrawElement[], appState: AppState, props: import("../types").ExcalidrawProps) => boolean;
179
+ checked: (appState: Readonly<import("../types").UIAppState>) => boolean;
180
+ predicate: (element: readonly import("@excalidraw/element/types").ExcalidrawElement[], appState: import("../types").AppState, props: import("../types").ExcalidrawProps) => boolean;
159
181
  keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
160
182
  } & {
161
183
  keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
@@ -12,7 +12,7 @@ export declare const actionToggleShapeSwitch: {
12
12
  perform(elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, _: unknown, app: import("../types").AppClassProperties): {
13
13
  captureUpdate: "NEVER";
14
14
  };
15
- checked: (appState: Readonly<import("../types").AppState>) => boolean;
15
+ checked: (appState: Readonly<import("../types").UIAppState>) => boolean;
16
16
  predicate: (elements: readonly ExcalidrawElement[], appState: import("../types").AppState, props: import("../types").ExcalidrawProps) => boolean;
17
17
  } & {
18
18
  keyTest?: undefined;
@@ -1,18 +1,16 @@
1
- export declare const actionSetEmbeddableAsActiveTool: {
2
- name: "setEmbeddableAsActiveTool";
1
+ export declare const actionToggleShowHints: {
2
+ name: "showHints";
3
+ label: string;
4
+ icon: import("react/jsx-runtime").JSX.Element;
5
+ keywords: string[];
6
+ viewMode: false;
3
7
  trackEvent: {
4
- category: "toolbar";
8
+ category: "canvas";
9
+ predicate: (appState: Readonly<import("../types").AppState>) => boolean;
5
10
  };
6
- target: string;
7
- label: string;
8
- perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, _: unknown, app: import("../types").AppClassProperties) => {
9
- elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[];
11
+ perform(elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>): {
10
12
  appState: {
11
- activeTool: {
12
- lastActiveTool: import("../types").ActiveTool | null;
13
- locked: boolean;
14
- fromSelection: boolean;
15
- } & import("../types").ActiveTool;
13
+ showHints: boolean;
16
14
  contextMenu: {
17
15
  items: import("../components/ContextMenu").ContextMenuItems;
18
16
  top: number;
@@ -30,13 +28,25 @@ export declare const actionSetEmbeddableAsActiveTool: {
30
28
  multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
31
29
  selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
32
30
  isBindingEnabled: boolean;
31
+ boxSelectionMode: import("../types").BoxSelectionMode;
33
32
  bindingPreference: "enabled" | "disabled";
34
33
  isMidpointSnappingEnabled: boolean;
35
- startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
34
+ inputDevice: import("../types").InputDevice;
36
35
  suggestedBinding: {
37
36
  element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
38
37
  midPoint?: import("@excalidraw/math").GlobalPoint;
39
38
  } | null;
39
+ textToolHover: {
40
+ type: "text";
41
+ elementId: import("@excalidraw/element/types").ExcalidrawElement["id"];
42
+ } | {
43
+ type: "container";
44
+ elementId: import("@excalidraw/element/types").ExcalidrawElement["id"];
45
+ } | {
46
+ type: "arrow";
47
+ elementId: import("@excalidraw/element/types").ExcalidrawArrowElement["id"];
48
+ anchor: "start" | "end" | "label";
49
+ } | null;
40
50
  frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
41
51
  frameRendering: {
42
52
  enabled: boolean;
@@ -44,9 +54,14 @@ export declare const actionSetEmbeddableAsActiveTool: {
44
54
  outline: boolean;
45
55
  clip: boolean;
46
56
  };
47
- editingFrame: string | null;
48
- elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
57
+ editingFrame: import("@excalidraw/element/types").ExcalidrawFrameLikeElement["id"] | null;
58
+ elementsToHighlight: readonly import("@excalidraw/element/types").NonDeletedExcalidrawElement[] | null;
49
59
  editingTextElement: import("@excalidraw/element/types").ExcalidrawTextElement | null;
60
+ activeTool: {
61
+ lastActiveTool: import("../types").ActiveTool | null;
62
+ locked: boolean;
63
+ fromSelection: boolean;
64
+ } & import("../types").ActiveTool;
50
65
  preferredSelectionTool: {
51
66
  type: "selection" | "lasso";
52
67
  initialized: boolean;
@@ -58,11 +73,14 @@ export declare const actionSetEmbeddableAsActiveTool: {
58
73
  exportWithDarkMode: boolean;
59
74
  exportScale: number;
60
75
  currentItemStrokeColor: string;
76
+ currentItemStickynoteStrokeColor: string;
77
+ currentItemStickynoteBackgroundColor: string;
61
78
  currentItemBackgroundColor: string;
62
79
  currentItemFillStyle: import("@excalidraw/element/types").ExcalidrawElement["fillStyle"];
63
- currentItemStrokeWidth: number;
80
+ currentItemStrokeWidthKey: import("@excalidraw/common").StrokeWidthKey;
64
81
  currentItemStrokeStyle: import("@excalidraw/element/types").ExcalidrawElement["strokeStyle"];
65
82
  currentItemRoughness: number;
83
+ currentItemStrokeVariability: import("@excalidraw/element/types").StrokeVariability;
66
84
  currentItemOpacity: number;
67
85
  currentItemFontFamily: import("@excalidraw/element/types").FontFamilyValues;
68
86
  currentItemFontSize: number;
@@ -75,6 +93,7 @@ export declare const actionSetEmbeddableAsActiveTool: {
75
93
  viewBackgroundColor: string;
76
94
  scrollX: number;
77
95
  scrollY: number;
96
+ scrollConstraints: import("../types").ScrollConstraints | null;
78
97
  cursorButton: "up" | "down";
79
98
  scrolledOutside: boolean;
80
99
  name: string | null;
@@ -150,8 +169,6 @@ export declare const actionSetEmbeddableAsActiveTool: {
150
169
  y: number;
151
170
  } | null;
152
171
  objectsSnapModeEnabled: boolean;
153
- userToFollow: import("../types").UserToFollow | null;
154
- followedBy: Set<import("../types").SocketId>;
155
172
  isCropping: boolean;
156
173
  croppingElementId: import("@excalidraw/element/types").ExcalidrawElement["id"] | null;
157
174
  searchMatches: Readonly<{
@@ -163,9 +180,18 @@ export declare const actionSetEmbeddableAsActiveTool: {
163
180
  [groupId: string]: true;
164
181
  };
165
182
  bindMode: import("@excalidraw/element/types").BindMode;
183
+ colorTopPicks: {
184
+ elementStroke: readonly string[] | null;
185
+ elementBackground: readonly string[] | null;
186
+ bucketFill: readonly string[] | null;
187
+ stickyNoteStroke: readonly string[] | null;
188
+ stickyNoteBackground: readonly string[] | null;
189
+ };
190
+ fontTopPicks: readonly import("@excalidraw/element/types").FontFamilyValues[] | null;
166
191
  };
167
- captureUpdate: "EVENTUALLY";
192
+ captureUpdate: "NEVER";
168
193
  };
194
+ checked: (appState: Readonly<import("../types").UIAppState>) => boolean;
169
195
  } & {
170
196
  keyTest?: undefined;
171
197
  };