@excalidraw/common 0.18.0-b1c6bfc → 0.18.0-b55c9ee

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 (254) hide show
  1. package/dist/dev/index.js +239 -104
  2. package/dist/dev/index.js.map +3 -3
  3. package/dist/prod/index.js +3 -3
  4. package/dist/types/common/src/colors.d.ts +23 -1
  5. package/dist/types/common/src/constants.d.ts +70 -7
  6. package/dist/types/common/src/keys.d.ts +6 -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 +13 -44
  10. package/dist/types/element/src/Scene.d.ts +7 -5
  11. package/dist/types/element/src/align.d.ts +5 -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 +90 -13
  15. package/dist/types/element/src/bounds.d.ts +28 -7
  16. package/dist/types/element/src/bucketFill.d.ts +110 -0
  17. package/dist/types/element/src/collision.d.ts +21 -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/cropElement.d.ts +36 -4
  21. package/dist/types/element/src/delta.d.ts +30 -2
  22. package/dist/types/element/src/distribute.d.ts +5 -2
  23. package/dist/types/element/src/dragElements.d.ts +34 -2
  24. package/dist/types/element/src/duplicate.d.ts +64 -3
  25. package/dist/types/element/src/elbowArrow.d.ts +5 -0
  26. package/dist/types/element/src/embeddable.d.ts +3 -2
  27. package/dist/types/element/src/flowchart.d.ts +9 -11
  28. package/dist/types/element/src/fractionalIndex.d.ts +2 -2
  29. package/dist/types/element/src/frame.d.ts +30 -11
  30. package/dist/types/element/src/groups.d.ts +10 -15
  31. package/dist/types/element/src/image.d.ts +5 -2
  32. package/dist/types/element/src/index.d.ts +7 -1
  33. package/dist/types/element/src/linearElementEditor.d.ts +31 -11
  34. package/dist/types/element/src/listMarker.d.ts +39 -0
  35. package/dist/types/element/src/mutateElement.d.ts +1 -1
  36. package/dist/types/element/src/newElement.d.ts +55 -3
  37. package/dist/types/element/src/renderElement.d.ts +31 -7
  38. package/dist/types/element/src/renderEnvironment.d.ts +66 -0
  39. package/dist/types/element/src/resizeElements.d.ts +14 -4
  40. package/dist/types/element/src/selection.d.ts +7 -13
  41. package/dist/types/element/src/shape.d.ts +29 -1
  42. package/dist/types/element/src/sizeHelpers.d.ts +6 -0
  43. package/dist/types/element/src/sortElements.d.ts +10 -0
  44. package/dist/types/element/src/stickyNote.d.ts +191 -0
  45. package/dist/types/element/src/textElement.d.ts +22 -10
  46. package/dist/types/element/src/textMeasurements.d.ts +15 -11
  47. package/dist/types/element/src/textWrapping.d.ts +3 -2
  48. package/dist/types/element/src/transform.d.ts +31 -8
  49. package/dist/types/element/src/typeChecks.d.ts +29 -27
  50. package/dist/types/element/src/types.d.ts +43 -7
  51. package/dist/types/element/src/utils.d.ts +15 -4
  52. package/dist/types/element/src/zindex.d.ts +2 -2
  53. package/dist/types/excalidraw/actions/actionAddToLibrary.d.ts +95 -18
  54. package/dist/types/excalidraw/actions/actionAlign.d.ts +6 -6
  55. package/dist/types/excalidraw/actions/actionBoundText.d.ts +78 -204
  56. package/dist/types/excalidraw/actions/actionCanvas.d.ts +299 -951
  57. package/dist/types/excalidraw/actions/actionClipboard.d.ts +66 -12
  58. package/dist/types/excalidraw/actions/actionCropEditor.d.ts +33 -6
  59. package/dist/types/excalidraw/actions/actionDeleteSelected.d.ts +4 -521
  60. package/dist/types/excalidraw/actions/actionDeselect.d.ts +34 -7
  61. package/dist/types/excalidraw/actions/actionDistribute.d.ts +2 -3
  62. package/dist/types/excalidraw/actions/actionElementLink.d.ts +33 -6
  63. package/dist/types/excalidraw/actions/actionElementLock.d.ts +67 -13
  64. package/dist/types/excalidraw/actions/actionExport.d.ts +74 -20
  65. package/dist/types/excalidraw/actions/actionFinalize.d.ts +1 -0
  66. package/dist/types/excalidraw/actions/actionFrame.d.ts +129 -652
  67. package/dist/types/excalidraw/actions/actionGroup.d.ts +81 -27
  68. package/dist/types/excalidraw/actions/actionLinearEditor.d.ts +88 -9
  69. package/dist/types/excalidraw/actions/actionLink.d.ts +34 -7
  70. package/dist/types/excalidraw/actions/actionMenu.d.ts +33 -6
  71. package/dist/types/excalidraw/actions/actionProperties.d.ts +104 -34
  72. package/dist/types/excalidraw/actions/actionSelectAll.d.ts +38 -11
  73. package/dist/types/excalidraw/actions/actionStyles.d.ts +30 -7
  74. package/dist/types/excalidraw/actions/actionTextAutoResize.d.ts +452 -6
  75. package/dist/types/excalidraw/actions/actionToggleArrowBinding.d.ts +34 -7
  76. package/dist/types/excalidraw/actions/actionToggleGridMode.d.ts +37 -11
  77. package/dist/types/excalidraw/actions/actionToggleMidpointSnapping.d.ts +34 -7
  78. package/dist/types/excalidraw/actions/actionToggleMinimap.d.ts +205 -0
  79. package/dist/types/excalidraw/actions/actionToggleObjectsSnapMode.d.ts +34 -7
  80. package/dist/types/excalidraw/actions/actionToggleSearchMenu.d.ts +37 -11
  81. package/dist/types/excalidraw/actions/actionToggleShapeSwitch.d.ts +1 -1
  82. package/dist/types/excalidraw/actions/{actionEmbeddable.d.ts → actionToggleShowHints.d.ts} +49 -19
  83. package/dist/types/excalidraw/actions/actionToggleStats.d.ts +34 -7
  84. package/dist/types/excalidraw/actions/actionToggleViewMode.d.ts +35 -8
  85. package/dist/types/excalidraw/actions/actionToggleWrap.d.ts +12 -0
  86. package/dist/types/excalidraw/actions/actionToggleZenMode.d.ts +34 -7
  87. package/dist/types/excalidraw/actions/colorTargets.d.ts +39 -0
  88. package/dist/types/excalidraw/actions/index.d.ts +4 -2
  89. package/dist/types/excalidraw/actions/manager.d.ts +1 -0
  90. package/dist/types/excalidraw/actions/shortcuts.d.ts +1 -1
  91. package/dist/types/excalidraw/actions/types.d.ts +8 -4
  92. package/dist/types/excalidraw/{animated-trail.d.ts → animatedTrail.d.ts} +4 -3
  93. package/dist/types/excalidraw/appState.d.ts +36 -12
  94. package/dist/types/excalidraw/charts/charts.bar.d.ts +2 -1
  95. package/dist/types/excalidraw/charts/charts.helpers.d.ts +6 -5
  96. package/dist/types/excalidraw/charts/charts.line.d.ts +2 -1
  97. package/dist/types/excalidraw/charts/charts.radar.d.ts +2 -1
  98. package/dist/types/excalidraw/charts/index.d.ts +2 -1
  99. package/dist/types/excalidraw/components/Actions.d.ts +26 -13
  100. package/dist/types/excalidraw/components/ActiveConfirmDialog.d.ts +1 -1
  101. package/dist/types/excalidraw/components/App.arrowText.d.ts +70 -0
  102. package/dist/types/excalidraw/components/App.bucketFill.d.ts +48 -0
  103. package/dist/types/excalidraw/components/App.clipboard.d.ts +59 -0
  104. package/dist/types/excalidraw/components/App.cursor.d.ts +38 -0
  105. package/dist/types/excalidraw/components/App.d.ts +335 -111
  106. package/dist/types/excalidraw/components/App.drawshape.d.ts +55 -0
  107. package/dist/types/excalidraw/components/App.duplicate.d.ts +101 -0
  108. package/dist/types/excalidraw/components/App.flowchart.d.ts +21 -0
  109. package/dist/types/excalidraw/components/App.host.d.ts +102 -0
  110. package/dist/types/excalidraw/components/App.modifiers.d.ts +38 -0
  111. package/dist/types/excalidraw/components/App.pan.d.ts +62 -0
  112. package/dist/types/excalidraw/components/App.selection.d.ts +265 -0
  113. package/dist/types/excalidraw/components/App.selectionTool.d.ts +94 -0
  114. package/dist/types/excalidraw/components/App.text.d.ts +194 -0
  115. package/dist/types/excalidraw/components/App.textTool.d.ts +140 -0
  116. package/dist/types/excalidraw/components/App.toolDrag.d.ts +63 -0
  117. package/dist/types/excalidraw/components/App.viewport.d.ts +133 -0
  118. package/dist/types/excalidraw/components/App.wheel.d.ts +30 -0
  119. package/dist/types/excalidraw/components/App.wrap.d.ts +39 -0
  120. package/dist/types/excalidraw/components/ColorPicker/ColorPicker.d.ts +9 -3
  121. package/dist/types/excalidraw/components/ColorPicker/CustomColorList.d.ts +3 -1
  122. package/dist/types/excalidraw/components/ColorPicker/Picker.d.ts +5 -1
  123. package/dist/types/excalidraw/components/ColorPicker/PickerColorList.d.ts +9 -2
  124. package/dist/types/excalidraw/components/ColorPicker/ShadeList.d.ts +4 -2
  125. package/dist/types/excalidraw/components/ColorPicker/TopPicks.d.ts +8 -1
  126. package/dist/types/excalidraw/components/ColorPicker/colorPickerUtils.d.ts +1 -1
  127. package/dist/types/excalidraw/components/ColorPicker/colorTopPicksDnD.d.ts +11 -0
  128. package/dist/types/excalidraw/components/ColorPicker/keyboardNavHandlers.d.ts +2 -1
  129. package/dist/types/excalidraw/components/CommandPalette/defaultCommandPaletteItems.d.ts +1 -2
  130. package/dist/types/excalidraw/components/ConvertElementTypePopup.d.ts +4 -3
  131. package/dist/types/excalidraw/components/CursorHint.d.ts +46 -0
  132. package/dist/types/excalidraw/components/EyeDropper.d.ts +1 -1
  133. package/dist/types/excalidraw/components/FileDropOverlay.d.ts +2 -0
  134. package/dist/types/excalidraw/components/FontPicker/FontPicker.d.ts +4 -1
  135. package/dist/types/excalidraw/components/FontPicker/FontPickerList.d.ts +6 -1
  136. package/dist/types/excalidraw/components/FontPicker/fontTopPicksDnD.d.ts +12 -0
  137. package/dist/types/excalidraw/components/IconButton.d.ts +48 -0
  138. package/dist/types/excalidraw/components/Island.d.ts +7 -0
  139. package/dist/types/excalidraw/components/LaserPointerButton.d.ts +2 -4
  140. package/dist/types/excalidraw/components/LayerUI.d.ts +5 -2
  141. package/dist/types/excalidraw/components/LibraryMenu.d.ts +1 -1
  142. package/dist/types/excalidraw/components/LibraryMenuSection.d.ts +6 -2
  143. package/dist/types/excalidraw/components/LibraryUnit.d.ts +7 -2
  144. package/dist/types/excalidraw/components/LockButton.d.ts +3 -4
  145. package/dist/types/excalidraw/components/MagicButton.d.ts +0 -2
  146. package/dist/types/excalidraw/components/Minimap/Minimap.d.ts +15 -0
  147. package/dist/types/excalidraw/components/Minimap/MinimapAnnouncementDot.d.ts +10 -0
  148. package/dist/types/excalidraw/components/Minimap/minimap-controller.chunk.d.ts +90 -0
  149. package/dist/types/excalidraw/components/Minimap/minimap-shared.chunk.d.ts +122 -0
  150. package/dist/types/excalidraw/components/Minimap/minimap-worker.chunk.d.ts +12 -0
  151. package/dist/types/excalidraw/components/MobileMenu.d.ts +4 -4
  152. package/dist/types/excalidraw/components/MobileToolbar.d.ts +9 -0
  153. package/dist/types/excalidraw/components/OverwriteConfirm/OverwriteConfirmState.d.ts +1 -1
  154. package/dist/types/excalidraw/components/PenModeButton.d.ts +2 -5
  155. package/dist/types/excalidraw/components/Popover.d.ts +1 -3
  156. package/dist/types/excalidraw/components/{ButtonIcon.d.ts → RadioButton.d.ts} +2 -5
  157. package/dist/types/excalidraw/components/SVGLayer.d.ts +1 -1
  158. package/dist/types/excalidraw/components/SearchMenu.d.ts +1 -1
  159. package/dist/types/excalidraw/components/Sidebar/Sidebar.d.ts +1 -1
  160. package/dist/types/excalidraw/components/Stats/Angle.d.ts +2 -2
  161. package/dist/types/excalidraw/components/Stats/Dimension.d.ts +2 -2
  162. package/dist/types/excalidraw/components/Stats/DragInput.d.ts +2 -2
  163. package/dist/types/excalidraw/components/Stats/MultiAngle.d.ts +2 -2
  164. package/dist/types/excalidraw/components/Stats/MultiDimension.d.ts +2 -2
  165. package/dist/types/excalidraw/components/Stats/MultiPosition.d.ts +2 -2
  166. package/dist/types/excalidraw/components/Stats/Position.d.ts +3 -3
  167. package/dist/types/excalidraw/components/Stats/utils.d.ts +4 -2
  168. package/dist/types/excalidraw/components/TTDDialog/MermaidToExcalidraw.d.ts +2 -1
  169. package/dist/types/excalidraw/components/TTDDialog/TTDContext.d.ts +4 -4
  170. package/dist/types/excalidraw/components/TTDDialog/TTDDialogOutput.d.ts +5 -2
  171. package/dist/types/excalidraw/components/TTDDialog/TTDPreviewPanel.d.ts +5 -2
  172. package/dist/types/excalidraw/components/TTDDialog/TextToDiagram.d.ts +2 -1
  173. package/dist/types/excalidraw/components/TTDDialog/common.d.ts +4 -1
  174. package/dist/types/excalidraw/components/TTDDialog/hooks/useTextGeneration.d.ts +3 -2
  175. package/dist/types/excalidraw/components/TTDDialog/types.d.ts +14 -1
  176. package/dist/types/excalidraw/components/TTDDialog/useTTDChatStorage.d.ts +3 -3
  177. package/dist/types/excalidraw/components/TTDDialog/utils/mermaidError.d.ts +16 -0
  178. package/dist/types/excalidraw/components/Toast.d.ts +12 -1
  179. package/dist/types/excalidraw/components/ToolPopover.d.ts +3 -6
  180. package/dist/types/excalidraw/components/Toolbar.d.ts +11 -0
  181. package/dist/types/excalidraw/components/Tools.d.ts +151 -0
  182. package/dist/types/excalidraw/components/Tooltip.d.ts +26 -2
  183. package/dist/types/excalidraw/components/TopPicksDnD/TopPicksContextMenu.d.ts +14 -0
  184. package/dist/types/excalidraw/components/TopPicksDnD/TopPicksTip.d.ts +11 -0
  185. package/dist/types/excalidraw/components/TopPicksDnD/topPicksDnD.d.ts +58 -0
  186. package/dist/types/excalidraw/components/UserList.d.ts +3 -2
  187. package/dist/types/excalidraw/components/ViewportStatusFrame/ViewportStatusFrame.d.ts +11 -0
  188. package/dist/types/excalidraw/components/canvases/InteractiveCanvas.d.ts +3 -2
  189. package/dist/types/excalidraw/components/canvases/NewElementCanvas.d.ts +3 -0
  190. package/dist/types/excalidraw/components/canvases/StaticCanvas.d.ts +1 -1
  191. package/dist/types/excalidraw/components/footer/Footer.d.ts +5 -1
  192. package/dist/types/excalidraw/components/hyperlink/Hyperlink.d.ts +3 -2
  193. package/dist/types/excalidraw/components/hyperlink/helpers.d.ts +15 -4
  194. package/dist/types/excalidraw/components/icons.d.ts +8 -1
  195. package/dist/types/excalidraw/components/main-menu/DefaultItems.d.ts +10 -4
  196. package/dist/types/excalidraw/components/positionElementBesideCursor.d.ts +26 -0
  197. package/dist/types/excalidraw/components/shapeActionPredicates.d.ts +39 -0
  198. package/dist/types/excalidraw/data/EditorLocalStorage.d.ts +8 -4
  199. package/dist/types/excalidraw/data/blob.d.ts +82 -28
  200. package/dist/types/excalidraw/data/index.d.ts +7 -7
  201. package/dist/types/excalidraw/data/json.d.ts +47 -20
  202. package/dist/types/excalidraw/data/library.d.ts +1 -1
  203. package/dist/types/excalidraw/drawShapeTrail.d.ts +16 -0
  204. package/dist/types/excalidraw/eraser/index.d.ts +2 -3
  205. package/dist/types/excalidraw/fonts/Fonts.d.ts +12 -8
  206. package/dist/types/excalidraw/history.d.ts +10 -4
  207. package/dist/types/excalidraw/hooks/useAppStateValue.d.ts +29 -0
  208. package/dist/types/excalidraw/hooks/useLibraryItemSvg.d.ts +1 -1
  209. package/dist/types/excalidraw/hooks/useTextEditorFocus.d.ts +5 -5
  210. package/dist/types/excalidraw/{laser-trails.d.ts → laserTrails.d.ts} +5 -7
  211. package/dist/types/excalidraw/lasso/index.d.ts +2 -3
  212. package/dist/types/excalidraw/lasso/utils.d.ts +2 -0
  213. package/dist/types/excalidraw/mermaid.d.ts +7 -0
  214. package/dist/types/excalidraw/reactUtils.d.ts +1 -1
  215. package/dist/types/excalidraw/renderOverrides.d.ts +9 -0
  216. package/dist/types/excalidraw/renderer/animation.d.ts +15 -4
  217. package/dist/types/excalidraw/renderer/helpers.d.ts +25 -0
  218. package/dist/types/excalidraw/renderer/interactiveScene.d.ts +2 -4
  219. package/dist/types/excalidraw/renderer/staticScene.d.ts +11 -6
  220. package/dist/types/excalidraw/scene/Renderer.d.ts +490 -21
  221. package/dist/types/excalidraw/scene/export.d.ts +344 -21
  222. package/dist/types/excalidraw/scene/index.d.ts +2 -2
  223. package/dist/types/excalidraw/scene/types.d.ts +30 -5
  224. package/dist/types/excalidraw/snapping.d.ts +7 -7
  225. package/dist/types/excalidraw/types.d.ts +612 -29
  226. package/dist/types/excalidraw/viewport.d.ts +307 -0
  227. package/dist/types/excalidraw/wysiwyg/textWysiwyg.d.ts +13 -3
  228. package/dist/types/fractional-indexing/src/index.d.ts +29 -0
  229. package/dist/types/laser-pointer/src/index.d.ts +2 -0
  230. package/dist/types/laser-pointer/src/math.d.ts +16 -0
  231. package/dist/types/laser-pointer/src/simplify.d.ts +2 -0
  232. package/dist/types/laser-pointer/src/state.d.ts +36 -0
  233. package/dist/types/math/src/constants.d.ts +0 -1
  234. package/dist/types/math/src/curve.d.ts +19 -12
  235. package/dist/types/math/src/index.d.ts +1 -0
  236. package/dist/types/math/src/pca.d.ts +79 -0
  237. package/dist/types/math/src/point.d.ts +1 -0
  238. package/dist/types/math/src/polygon.d.ts +25 -1
  239. package/dist/types/math/src/segment.d.ts +6 -0
  240. package/dist/types/utils/src/index.d.ts +4 -3
  241. package/dist/types/utils/src/shape.d.ts +2 -2
  242. package/package.json +1 -1
  243. package/dist/types/excalidraw/animation-frame-handler.d.ts +0 -16
  244. package/dist/types/excalidraw/components/FollowMode/FollowMode.d.ts +0 -10
  245. package/dist/types/excalidraw/components/HandButton.d.ts +0 -10
  246. package/dist/types/excalidraw/components/MobileToolBar.d.ts +0 -10
  247. package/dist/types/excalidraw/components/ToolButton.d.ts +0 -49
  248. package/dist/types/excalidraw/components/shapes.d.ts +0 -263
  249. package/dist/types/excalidraw/cursor.d.ts +0 -5
  250. package/dist/types/excalidraw/scene/scroll.d.ts +0 -18
  251. package/dist/types/excalidraw/scene/zoom.d.ts +0 -12
  252. package/dist/types/utils/src/bbox.d.ts +0 -9
  253. package/dist/types/utils/src/export.d.ts +0 -35
  254. package/dist/types/utils/src/withinBounds.d.ts +0 -19
@@ -60,11 +60,23 @@ export declare const actionLinkToElement: {
60
60
  boxSelectionMode: import("../types").BoxSelectionMode;
61
61
  bindingPreference: "enabled" | "disabled";
62
62
  isMidpointSnappingEnabled: boolean;
63
- startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
63
+ showHints: boolean;
64
+ inputDevice: import("../types").InputDevice;
64
65
  suggestedBinding: {
65
66
  element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
66
67
  midPoint?: import("@excalidraw/math").GlobalPoint;
67
68
  } | null;
69
+ textToolHover: {
70
+ type: "text";
71
+ elementId: import("@excalidraw/element/types").ExcalidrawElement["id"];
72
+ } | {
73
+ type: "container";
74
+ elementId: import("@excalidraw/element/types").ExcalidrawElement["id"];
75
+ } | {
76
+ type: "arrow";
77
+ elementId: import("@excalidraw/element/types").ExcalidrawArrowElement["id"];
78
+ anchor: "start" | "end" | "label";
79
+ } | null;
68
80
  frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
69
81
  frameRendering: {
70
82
  enabled: boolean;
@@ -72,8 +84,8 @@ export declare const actionLinkToElement: {
72
84
  outline: boolean;
73
85
  clip: boolean;
74
86
  };
75
- editingFrame: string | null;
76
- elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
87
+ editingFrame: import("@excalidraw/element/types").ExcalidrawFrameLikeElement["id"] | null;
88
+ elementsToHighlight: readonly import("@excalidraw/element/types").NonDeletedExcalidrawElement[] | null;
77
89
  editingTextElement: import("@excalidraw/element/types").ExcalidrawTextElement | null;
78
90
  activeTool: {
79
91
  lastActiveTool: import("../types").ActiveTool | null;
@@ -91,11 +103,14 @@ export declare const actionLinkToElement: {
91
103
  exportWithDarkMode: boolean;
92
104
  exportScale: number;
93
105
  currentItemStrokeColor: string;
106
+ currentItemStickynoteStrokeColor: string;
107
+ currentItemStickynoteBackgroundColor: string;
94
108
  currentItemBackgroundColor: string;
95
109
  currentItemFillStyle: import("@excalidraw/element/types").ExcalidrawElement["fillStyle"];
96
- currentItemStrokeWidth: number;
110
+ currentItemStrokeWidthKey: import("@excalidraw/common").StrokeWidthKey;
97
111
  currentItemStrokeStyle: import("@excalidraw/element/types").ExcalidrawElement["strokeStyle"];
98
112
  currentItemRoughness: number;
113
+ currentItemStrokeVariability: import("@excalidraw/element/types").StrokeVariability;
99
114
  currentItemOpacity: number;
100
115
  currentItemFontFamily: import("@excalidraw/element/types").FontFamilyValues;
101
116
  currentItemFontSize: number;
@@ -108,6 +123,7 @@ export declare const actionLinkToElement: {
108
123
  viewBackgroundColor: string;
109
124
  scrollX: number;
110
125
  scrollY: number;
126
+ scrollConstraints: import("../types").ScrollConstraints | null;
111
127
  cursorButton: "up" | "down";
112
128
  scrolledOutside: boolean;
113
129
  name: string | null;
@@ -137,8 +153,13 @@ export declare const actionLinkToElement: {
137
153
  message: React.ReactNode;
138
154
  closable?: boolean;
139
155
  duration?: number;
156
+ action?: {
157
+ label: string;
158
+ onClick: () => void;
159
+ };
140
160
  } | null;
141
161
  zenModeEnabled: boolean;
162
+ minimapEnabled: boolean;
142
163
  theme: import("@excalidraw/element/types").Theme;
143
164
  gridSize: number;
144
165
  gridStep: number;
@@ -166,8 +187,6 @@ export declare const actionLinkToElement: {
166
187
  y: number;
167
188
  } | null;
168
189
  objectsSnapModeEnabled: boolean;
169
- userToFollow: import("../types").UserToFollow | null;
170
- followedBy: Set<import("../types").SocketId>;
171
190
  isCropping: boolean;
172
191
  croppingElementId: import("@excalidraw/element/types").ExcalidrawElement["id"] | null;
173
192
  searchMatches: Readonly<{
@@ -179,6 +198,14 @@ export declare const actionLinkToElement: {
179
198
  [groupId: string]: true;
180
199
  };
181
200
  bindMode: import("@excalidraw/element/types").BindMode;
201
+ colorTopPicks: {
202
+ elementStroke: readonly string[] | null;
203
+ elementBackground: readonly string[] | null;
204
+ bucketFill: readonly string[] | null;
205
+ stickyNoteStroke: readonly string[] | null;
206
+ stickyNoteBackground: readonly string[] | null;
207
+ };
208
+ fontTopPicks: readonly import("@excalidraw/element/types").FontFamilyValues[] | null;
182
209
  };
183
210
  captureUpdate: "IMMEDIATELY";
184
211
  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";
@@ -42,11 +42,23 @@ export declare const actionToggleElementLock: {
42
42
  boxSelectionMode: import("../types").BoxSelectionMode;
43
43
  bindingPreference: "enabled" | "disabled";
44
44
  isMidpointSnappingEnabled: boolean;
45
- startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
45
+ showHints: boolean;
46
+ inputDevice: import("../types").InputDevice;
46
47
  suggestedBinding: {
47
48
  element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
48
49
  midPoint?: import("@excalidraw/math").GlobalPoint;
49
50
  } | null;
51
+ textToolHover: {
52
+ type: "text";
53
+ elementId: ExcalidrawElement["id"];
54
+ } | {
55
+ type: "container";
56
+ elementId: ExcalidrawElement["id"];
57
+ } | {
58
+ type: "arrow";
59
+ elementId: import("@excalidraw/element/types").ExcalidrawArrowElement["id"];
60
+ anchor: "start" | "end" | "label";
61
+ } | null;
50
62
  frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
51
63
  frameRendering: {
52
64
  enabled: boolean;
@@ -54,8 +66,8 @@ export declare const actionToggleElementLock: {
54
66
  outline: boolean;
55
67
  clip: boolean;
56
68
  };
57
- editingFrame: string | null;
58
- elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
69
+ editingFrame: import("@excalidraw/element/types").ExcalidrawFrameLikeElement["id"] | null;
70
+ elementsToHighlight: readonly import("@excalidraw/element/types").NonDeletedExcalidrawElement[] | null;
59
71
  editingTextElement: import("@excalidraw/element/types").ExcalidrawTextElement | null;
60
72
  activeTool: {
61
73
  lastActiveTool: import("../types").ActiveTool | null;
@@ -73,11 +85,14 @@ export declare const actionToggleElementLock: {
73
85
  exportWithDarkMode: boolean;
74
86
  exportScale: number;
75
87
  currentItemStrokeColor: string;
88
+ currentItemStickynoteStrokeColor: string;
89
+ currentItemStickynoteBackgroundColor: string;
76
90
  currentItemBackgroundColor: string;
77
91
  currentItemFillStyle: ExcalidrawElement["fillStyle"];
78
- currentItemStrokeWidth: number;
92
+ currentItemStrokeWidthKey: import("@excalidraw/common").StrokeWidthKey;
79
93
  currentItemStrokeStyle: ExcalidrawElement["strokeStyle"];
80
94
  currentItemRoughness: number;
95
+ currentItemStrokeVariability: import("@excalidraw/element/types").StrokeVariability;
81
96
  currentItemOpacity: number;
82
97
  currentItemFontFamily: import("@excalidraw/element/types").FontFamilyValues;
83
98
  currentItemFontSize: number;
@@ -90,6 +105,7 @@ export declare const actionToggleElementLock: {
90
105
  viewBackgroundColor: string;
91
106
  scrollX: number;
92
107
  scrollY: number;
108
+ scrollConstraints: import("../types").ScrollConstraints | null;
93
109
  cursorButton: "up" | "down";
94
110
  scrolledOutside: boolean;
95
111
  name: string | null;
@@ -133,8 +149,13 @@ export declare const actionToggleElementLock: {
133
149
  message: React.ReactNode;
134
150
  closable?: boolean;
135
151
  duration?: number;
152
+ action?: {
153
+ label: string;
154
+ onClick: () => void;
155
+ };
136
156
  } | null;
137
157
  zenModeEnabled: boolean;
158
+ minimapEnabled: boolean;
138
159
  theme: import("@excalidraw/element/types").Theme;
139
160
  gridSize: number;
140
161
  gridStep: number;
@@ -158,8 +179,6 @@ export declare const actionToggleElementLock: {
158
179
  y: number;
159
180
  } | null;
160
181
  objectsSnapModeEnabled: boolean;
161
- userToFollow: import("../types").UserToFollow | null;
162
- followedBy: Set<import("../types").SocketId>;
163
182
  isCropping: boolean;
164
183
  croppingElementId: ExcalidrawElement["id"] | null;
165
184
  searchMatches: Readonly<{
@@ -167,6 +186,14 @@ export declare const actionToggleElementLock: {
167
186
  matches: readonly import("../types").SearchMatch[];
168
187
  }> | null;
169
188
  bindMode: import("@excalidraw/element/types").BindMode;
189
+ colorTopPicks: {
190
+ elementStroke: readonly string[] | null;
191
+ elementBackground: readonly string[] | null;
192
+ bucketFill: readonly string[] | null;
193
+ stickyNoteStroke: readonly string[] | null;
194
+ stickyNoteBackground: readonly string[] | null;
195
+ };
196
+ fontTopPicks: readonly import("@excalidraw/element/types").FontFamilyValues[] | null;
170
197
  };
171
198
  captureUpdate: "IMMEDIATELY";
172
199
  };
@@ -213,11 +240,23 @@ export declare const actionUnlockAllElements: {
213
240
  boxSelectionMode: import("../types").BoxSelectionMode;
214
241
  bindingPreference: "enabled" | "disabled";
215
242
  isMidpointSnappingEnabled: boolean;
216
- startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
243
+ showHints: boolean;
244
+ inputDevice: import("../types").InputDevice;
217
245
  suggestedBinding: {
218
246
  element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
219
247
  midPoint?: import("@excalidraw/math").GlobalPoint;
220
248
  } | null;
249
+ textToolHover: {
250
+ type: "text";
251
+ elementId: ExcalidrawElement["id"];
252
+ } | {
253
+ type: "container";
254
+ elementId: ExcalidrawElement["id"];
255
+ } | {
256
+ type: "arrow";
257
+ elementId: import("@excalidraw/element/types").ExcalidrawArrowElement["id"];
258
+ anchor: "start" | "end" | "label";
259
+ } | null;
221
260
  frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
222
261
  frameRendering: {
223
262
  enabled: boolean;
@@ -225,8 +264,8 @@ export declare const actionUnlockAllElements: {
225
264
  outline: boolean;
226
265
  clip: boolean;
227
266
  };
228
- editingFrame: string | null;
229
- elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
267
+ editingFrame: import("@excalidraw/element/types").ExcalidrawFrameLikeElement["id"] | null;
268
+ elementsToHighlight: readonly import("@excalidraw/element/types").NonDeletedExcalidrawElement[] | null;
230
269
  editingTextElement: import("@excalidraw/element/types").ExcalidrawTextElement | null;
231
270
  activeTool: {
232
271
  lastActiveTool: import("../types").ActiveTool | null;
@@ -244,11 +283,14 @@ export declare const actionUnlockAllElements: {
244
283
  exportWithDarkMode: boolean;
245
284
  exportScale: number;
246
285
  currentItemStrokeColor: string;
286
+ currentItemStickynoteStrokeColor: string;
287
+ currentItemStickynoteBackgroundColor: string;
247
288
  currentItemBackgroundColor: string;
248
289
  currentItemFillStyle: ExcalidrawElement["fillStyle"];
249
- currentItemStrokeWidth: number;
290
+ currentItemStrokeWidthKey: import("@excalidraw/common").StrokeWidthKey;
250
291
  currentItemStrokeStyle: ExcalidrawElement["strokeStyle"];
251
292
  currentItemRoughness: number;
293
+ currentItemStrokeVariability: import("@excalidraw/element/types").StrokeVariability;
252
294
  currentItemOpacity: number;
253
295
  currentItemFontFamily: import("@excalidraw/element/types").FontFamilyValues;
254
296
  currentItemFontSize: number;
@@ -261,6 +303,7 @@ export declare const actionUnlockAllElements: {
261
303
  viewBackgroundColor: string;
262
304
  scrollX: number;
263
305
  scrollY: number;
306
+ scrollConstraints: import("../types").ScrollConstraints | null;
264
307
  cursorButton: "up" | "down";
265
308
  scrolledOutside: boolean;
266
309
  name: string | null;
@@ -304,8 +347,13 @@ export declare const actionUnlockAllElements: {
304
347
  message: React.ReactNode;
305
348
  closable?: boolean;
306
349
  duration?: number;
350
+ action?: {
351
+ label: string;
352
+ onClick: () => void;
353
+ };
307
354
  } | null;
308
355
  zenModeEnabled: boolean;
356
+ minimapEnabled: boolean;
309
357
  theme: import("@excalidraw/element/types").Theme;
310
358
  gridSize: number;
311
359
  gridStep: number;
@@ -330,8 +378,6 @@ export declare const actionUnlockAllElements: {
330
378
  y: number;
331
379
  } | null;
332
380
  objectsSnapModeEnabled: boolean;
333
- userToFollow: import("../types").UserToFollow | null;
334
- followedBy: Set<import("../types").SocketId>;
335
381
  isCropping: boolean;
336
382
  croppingElementId: ExcalidrawElement["id"] | null;
337
383
  searchMatches: Readonly<{
@@ -339,6 +385,14 @@ export declare const actionUnlockAllElements: {
339
385
  matches: readonly import("../types").SearchMatch[];
340
386
  }> | null;
341
387
  bindMode: import("@excalidraw/element/types").BindMode;
388
+ colorTopPicks: {
389
+ elementStroke: readonly string[] | null;
390
+ elementBackground: readonly string[] | null;
391
+ bucketFill: readonly string[] | null;
392
+ stickyNoteStroke: readonly string[] | null;
393
+ stickyNoteBackground: readonly string[] | null;
394
+ };
395
+ fontTopPicks: readonly import("@excalidraw/element/types").FontFamilyValues[] | null;
342
396
  };
343
397
  captureUpdate: "IMMEDIATELY";
344
398
  };
@@ -82,7 +82,13 @@ export declare const actionLoadScene: {
82
82
  perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: unknown, app: AppClassProperties) => Promise<false | {
83
83
  elements: import("@excalidraw/element/types").OrderedExcalidrawElement[];
84
84
  appState: {
85
+ zoom: import("../types").Zoom;
85
86
  viewModeEnabled: boolean;
87
+ activeTool: {
88
+ lastActiveTool: import("../types").ActiveTool | null;
89
+ locked: boolean;
90
+ fromSelection: boolean;
91
+ } & import("../types").ActiveTool;
86
92
  zenModeEnabled: boolean;
87
93
  gridModeEnabled: boolean;
88
94
  objectsSnapModeEnabled: boolean;
@@ -90,11 +96,8 @@ export declare const actionLoadScene: {
90
96
  name: string | null;
91
97
  currentItemArrowType: "sharp" | "round" | "elbow";
92
98
  gridSize: number;
93
- activeTool: {
94
- lastActiveTool: import("../types").ActiveTool | null;
95
- locked: boolean;
96
- fromSelection: boolean;
97
- } & import("../types").ActiveTool;
99
+ scrollX: number;
100
+ scrollY: number;
98
101
  contextMenu: {
99
102
  items: import("../components/ContextMenu").ContextMenuItems;
100
103
  top: number;
@@ -115,11 +118,23 @@ export declare const actionLoadScene: {
115
118
  boxSelectionMode: import("../types").BoxSelectionMode;
116
119
  bindingPreference: "enabled" | "disabled";
117
120
  isMidpointSnappingEnabled: boolean;
118
- startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
121
+ showHints: boolean;
122
+ inputDevice: import("../types").InputDevice;
119
123
  suggestedBinding: {
120
124
  element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
121
125
  midPoint?: import("@excalidraw/math").GlobalPoint;
122
126
  } | null;
127
+ textToolHover: {
128
+ type: "text";
129
+ elementId: ExcalidrawElement["id"];
130
+ } | {
131
+ type: "container";
132
+ elementId: ExcalidrawElement["id"];
133
+ } | {
134
+ type: "arrow";
135
+ elementId: import("@excalidraw/element/types").ExcalidrawArrowElement["id"];
136
+ anchor: "start" | "end" | "label";
137
+ } | null;
123
138
  frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
124
139
  frameRendering: {
125
140
  enabled: boolean;
@@ -127,8 +142,8 @@ export declare const actionLoadScene: {
127
142
  outline: boolean;
128
143
  clip: boolean;
129
144
  };
130
- editingFrame: string | null;
131
- elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
145
+ editingFrame: import("@excalidraw/element/types").ExcalidrawFrameLikeElement["id"] | null;
146
+ elementsToHighlight: readonly import("@excalidraw/element/types").NonDeletedExcalidrawElement[] | null;
132
147
  editingTextElement: import("@excalidraw/element/types").ExcalidrawTextElement | null;
133
148
  preferredSelectionTool: {
134
149
  type: "selection" | "lasso";
@@ -141,11 +156,14 @@ export declare const actionLoadScene: {
141
156
  exportWithDarkMode: boolean;
142
157
  exportScale: number;
143
158
  currentItemStrokeColor: string;
159
+ currentItemStickynoteStrokeColor: string;
160
+ currentItemStickynoteBackgroundColor: string;
144
161
  currentItemBackgroundColor: string;
145
162
  currentItemFillStyle: ExcalidrawElement["fillStyle"];
146
- currentItemStrokeWidth: number;
163
+ currentItemStrokeWidthKey: import("@excalidraw/common").StrokeWidthKey;
147
164
  currentItemStrokeStyle: ExcalidrawElement["strokeStyle"];
148
165
  currentItemRoughness: number;
166
+ currentItemStrokeVariability: import("@excalidraw/element/types").StrokeVariability;
149
167
  currentItemOpacity: number;
150
168
  currentItemFontFamily: import("@excalidraw/element/types").FontFamilyValues;
151
169
  currentItemFontSize: number;
@@ -155,13 +173,11 @@ export declare const actionLoadScene: {
155
173
  currentHoveredFontFamily: import("@excalidraw/element/types").FontFamilyValues | null;
156
174
  currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
157
175
  viewBackgroundColor: string;
158
- scrollX: number;
159
- scrollY: number;
176
+ scrollConstraints: import("../types").ScrollConstraints | null;
160
177
  cursorButton: "up" | "down";
161
178
  scrolledOutside: boolean;
162
179
  isResizing: boolean;
163
180
  isRotating: boolean;
164
- zoom: import("../types").Zoom;
165
181
  openMenu: "canvas" | null;
166
182
  openPopup: "canvasBackground" | "elementBackground" | "elementStroke" | "fontFamily" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
167
183
  openSidebar: {
@@ -202,7 +218,12 @@ export declare const actionLoadScene: {
202
218
  message: React.ReactNode;
203
219
  closable?: boolean;
204
220
  duration?: number;
221
+ action?: {
222
+ label: string;
223
+ onClick: () => void;
224
+ };
205
225
  } | null;
226
+ minimapEnabled: boolean;
206
227
  gridStep: number;
207
228
  selectedGroupIds: {
208
229
  [groupId: string]: boolean;
@@ -221,8 +242,6 @@ export declare const actionLoadScene: {
221
242
  x: number;
222
243
  y: number;
223
244
  } | null;
224
- userToFollow: import("../types").UserToFollow | null;
225
- followedBy: Set<import("../types").SocketId>;
226
245
  isCropping: boolean;
227
246
  croppingElementId: ExcalidrawElement["id"] | null;
228
247
  searchMatches: Readonly<{
@@ -234,6 +253,14 @@ export declare const actionLoadScene: {
234
253
  [groupId: string]: true;
235
254
  };
236
255
  bindMode: import("@excalidraw/element/types").BindMode;
256
+ colorTopPicks: {
257
+ elementStroke: readonly string[] | null;
258
+ elementBackground: readonly string[] | null;
259
+ bucketFill: readonly string[] | null;
260
+ stickyNoteStroke: readonly string[] | null;
261
+ stickyNoteBackground: readonly string[] | null;
262
+ };
263
+ fontTopPicks: readonly import("@excalidraw/element/types").FontFamilyValues[] | null;
237
264
  };
238
265
  files: BinaryFiles;
239
266
  captureUpdate: "IMMEDIATELY";
@@ -260,11 +287,23 @@ export declare const actionLoadScene: {
260
287
  boxSelectionMode: import("../types").BoxSelectionMode;
261
288
  bindingPreference: "enabled" | "disabled";
262
289
  isMidpointSnappingEnabled: boolean;
263
- startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
290
+ showHints: boolean;
291
+ inputDevice: import("../types").InputDevice;
264
292
  suggestedBinding: {
265
293
  element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
266
294
  midPoint?: import("@excalidraw/math").GlobalPoint;
267
295
  } | null;
296
+ textToolHover: {
297
+ type: "text";
298
+ elementId: ExcalidrawElement["id"];
299
+ } | {
300
+ type: "container";
301
+ elementId: ExcalidrawElement["id"];
302
+ } | {
303
+ type: "arrow";
304
+ elementId: import("@excalidraw/element/types").ExcalidrawArrowElement["id"];
305
+ anchor: "start" | "end" | "label";
306
+ } | null;
268
307
  frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
269
308
  frameRendering: {
270
309
  enabled: boolean;
@@ -272,8 +311,8 @@ export declare const actionLoadScene: {
272
311
  outline: boolean;
273
312
  clip: boolean;
274
313
  };
275
- editingFrame: string | null;
276
- elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
314
+ editingFrame: import("@excalidraw/element/types").ExcalidrawFrameLikeElement["id"] | null;
315
+ elementsToHighlight: readonly import("@excalidraw/element/types").NonDeletedExcalidrawElement[] | null;
277
316
  editingTextElement: import("@excalidraw/element/types").ExcalidrawTextElement | null;
278
317
  activeTool: {
279
318
  lastActiveTool: import("../types").ActiveTool | null;
@@ -291,11 +330,14 @@ export declare const actionLoadScene: {
291
330
  exportWithDarkMode: boolean;
292
331
  exportScale: number;
293
332
  currentItemStrokeColor: string;
333
+ currentItemStickynoteStrokeColor: string;
334
+ currentItemStickynoteBackgroundColor: string;
294
335
  currentItemBackgroundColor: string;
295
336
  currentItemFillStyle: ExcalidrawElement["fillStyle"];
296
- currentItemStrokeWidth: number;
337
+ currentItemStrokeWidthKey: import("@excalidraw/common").StrokeWidthKey;
297
338
  currentItemStrokeStyle: ExcalidrawElement["strokeStyle"];
298
339
  currentItemRoughness: number;
340
+ currentItemStrokeVariability: import("@excalidraw/element/types").StrokeVariability;
299
341
  currentItemOpacity: number;
300
342
  currentItemFontFamily: import("@excalidraw/element/types").FontFamilyValues;
301
343
  currentItemFontSize: number;
@@ -308,6 +350,7 @@ export declare const actionLoadScene: {
308
350
  viewBackgroundColor: string;
309
351
  scrollX: number;
310
352
  scrollY: number;
353
+ scrollConstraints: import("../types").ScrollConstraints | null;
311
354
  cursorButton: "up" | "down";
312
355
  scrolledOutside: boolean;
313
356
  name: string | null;
@@ -354,8 +397,13 @@ export declare const actionLoadScene: {
354
397
  message: React.ReactNode;
355
398
  closable?: boolean;
356
399
  duration?: number;
400
+ action?: {
401
+ label: string;
402
+ onClick: () => void;
403
+ };
357
404
  } | null;
358
405
  zenModeEnabled: boolean;
406
+ minimapEnabled: boolean;
359
407
  theme: Theme;
360
408
  gridSize: number;
361
409
  gridStep: number;
@@ -383,8 +431,6 @@ export declare const actionLoadScene: {
383
431
  y: number;
384
432
  } | null;
385
433
  objectsSnapModeEnabled: boolean;
386
- userToFollow: import("../types").UserToFollow | null;
387
- followedBy: Set<import("../types").SocketId>;
388
434
  isCropping: boolean;
389
435
  croppingElementId: ExcalidrawElement["id"] | null;
390
436
  searchMatches: Readonly<{
@@ -396,6 +442,14 @@ export declare const actionLoadScene: {
396
442
  [groupId: string]: true;
397
443
  };
398
444
  bindMode: import("@excalidraw/element/types").BindMode;
445
+ colorTopPicks: {
446
+ elementStroke: readonly string[] | null;
447
+ elementBackground: readonly string[] | null;
448
+ bucketFill: readonly string[] | null;
449
+ stickyNoteStroke: readonly string[] | null;
450
+ stickyNoteBackground: readonly string[] | null;
451
+ };
452
+ fontTopPicks: readonly import("@excalidraw/element/types").FontFamilyValues[] | null;
399
453
  };
400
454
  files: BinaryFiles;
401
455
  captureUpdate: "EVENTUALLY";
@@ -6,6 +6,7 @@ type FormData = {
6
6
  x: number;
7
7
  y: number;
8
8
  };
9
+ hitBoundText?: boolean;
9
10
  };
10
11
  export declare const actionFinalize: import("./types").Action<FormData> & {
11
12
  keyTest?: ((event: React.KeyboardEvent | KeyboardEvent, appState: AppState, elements: readonly ExcalidrawElement[], app: import("../types").AppClassProperties) => boolean) | undefined;