@excalidraw/math 0.18.0-2b0e4c9 → 0.18.0-2c3dcc0

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 (255) hide show
  1. package/dist/dev/index.js +319 -116
  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 +68 -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 +31 -8
  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 +11 -13
  41. package/dist/types/element/src/shape.d.ts +30 -2
  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 +23 -11
  46. package/dist/types/element/src/textMeasurements.d.ts +15 -11
  47. package/dist/types/element/src/textWrapping.d.ts +28 -1
  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 +93 -21
  54. package/dist/types/excalidraw/actions/actionAlign.d.ts +6 -6
  55. package/dist/types/excalidraw/actions/actionBoundText.d.ts +76 -204
  56. package/dist/types/excalidraw/actions/actionCanvas.d.ts +288 -956
  57. package/dist/types/excalidraw/actions/actionClipboard.d.ts +62 -14
  58. package/dist/types/excalidraw/actions/actionCropEditor.d.ts +31 -7
  59. package/dist/types/excalidraw/actions/actionDeleteSelected.d.ts +4 -518
  60. package/dist/types/excalidraw/actions/actionDeselect.d.ts +183 -0
  61. package/dist/types/excalidraw/actions/actionDistribute.d.ts +2 -3
  62. package/dist/types/excalidraw/actions/actionElementLink.d.ts +31 -7
  63. package/dist/types/excalidraw/actions/actionElementLock.d.ts +63 -15
  64. package/dist/types/excalidraw/actions/actionExport.d.ts +70 -22
  65. package/dist/types/excalidraw/actions/actionFinalize.d.ts +1 -0
  66. package/dist/types/excalidraw/actions/actionFrame.d.ts +122 -653
  67. package/dist/types/excalidraw/actions/actionGroup.d.ts +78 -30
  68. package/dist/types/excalidraw/actions/actionLinearEditor.d.ts +86 -10
  69. package/dist/types/excalidraw/actions/actionLink.d.ts +32 -8
  70. package/dist/types/excalidraw/actions/actionMenu.d.ts +31 -7
  71. package/dist/types/excalidraw/actions/actionProperties.d.ts +100 -36
  72. package/dist/types/excalidraw/actions/actionSelectAll.d.ts +37 -13
  73. package/dist/types/excalidraw/actions/actionStyles.d.ts +33 -8
  74. package/dist/types/excalidraw/actions/actionTextAutoResize.d.ts +452 -6
  75. package/dist/types/excalidraw/actions/actionToggleArrowBinding.d.ts +32 -8
  76. package/dist/types/excalidraw/actions/actionToggleGridMode.d.ts +35 -12
  77. package/dist/types/excalidraw/actions/actionToggleMidpointSnapping.d.ts +32 -8
  78. package/dist/types/excalidraw/actions/actionToggleMinimap.d.ts +201 -0
  79. package/dist/types/excalidraw/actions/actionToggleObjectsSnapMode.d.ts +32 -8
  80. package/dist/types/excalidraw/actions/actionToggleSearchMenu.d.ts +35 -12
  81. package/dist/types/excalidraw/actions/actionToggleShapeSwitch.d.ts +1 -1
  82. package/dist/types/excalidraw/actions/{actionEmbeddable.d.ts → actionToggleShowHints.d.ts} +47 -20
  83. package/dist/types/excalidraw/actions/actionToggleStats.d.ts +32 -8
  84. package/dist/types/excalidraw/actions/actionToggleViewMode.d.ts +33 -9
  85. package/dist/types/excalidraw/actions/actionToggleWrap.d.ts +12 -0
  86. package/dist/types/excalidraw/actions/actionToggleZenMode.d.ts +32 -8
  87. package/dist/types/excalidraw/actions/colorTargets.d.ts +39 -0
  88. package/dist/types/excalidraw/actions/index.d.ts +5 -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 +37 -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 +31 -0
  104. package/dist/types/excalidraw/components/App.cursor.d.ts +38 -0
  105. package/dist/types/excalidraw/components/App.d.ts +340 -106
  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/Range.d.ts +10 -4
  158. package/dist/types/excalidraw/components/SVGLayer.d.ts +1 -1
  159. package/dist/types/excalidraw/components/SearchMenu.d.ts +1 -1
  160. package/dist/types/excalidraw/components/Sidebar/Sidebar.d.ts +1 -1
  161. package/dist/types/excalidraw/components/Stats/Angle.d.ts +2 -2
  162. package/dist/types/excalidraw/components/Stats/Dimension.d.ts +2 -2
  163. package/dist/types/excalidraw/components/Stats/DragInput.d.ts +2 -2
  164. package/dist/types/excalidraw/components/Stats/MultiAngle.d.ts +2 -2
  165. package/dist/types/excalidraw/components/Stats/MultiDimension.d.ts +2 -2
  166. package/dist/types/excalidraw/components/Stats/MultiPosition.d.ts +2 -2
  167. package/dist/types/excalidraw/components/Stats/Position.d.ts +3 -3
  168. package/dist/types/excalidraw/components/Stats/utils.d.ts +4 -2
  169. package/dist/types/excalidraw/components/TTDDialog/MermaidToExcalidraw.d.ts +2 -1
  170. package/dist/types/excalidraw/components/TTDDialog/TTDContext.d.ts +4 -4
  171. package/dist/types/excalidraw/components/TTDDialog/TTDDialogOutput.d.ts +5 -2
  172. package/dist/types/excalidraw/components/TTDDialog/TTDPreviewPanel.d.ts +5 -2
  173. package/dist/types/excalidraw/components/TTDDialog/TextToDiagram.d.ts +2 -1
  174. package/dist/types/excalidraw/components/TTDDialog/common.d.ts +4 -1
  175. package/dist/types/excalidraw/components/TTDDialog/hooks/useTextGeneration.d.ts +3 -2
  176. package/dist/types/excalidraw/components/TTDDialog/types.d.ts +14 -1
  177. package/dist/types/excalidraw/components/TTDDialog/useTTDChatStorage.d.ts +3 -3
  178. package/dist/types/excalidraw/components/TTDDialog/utils/mermaidError.d.ts +16 -0
  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 +4 -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/dropdownMenu/DropdownMenuItemContentRadio.d.ts +2 -1
  192. package/dist/types/excalidraw/components/footer/Footer.d.ts +5 -1
  193. package/dist/types/excalidraw/components/hyperlink/Hyperlink.d.ts +3 -2
  194. package/dist/types/excalidraw/components/hyperlink/helpers.d.ts +15 -4
  195. package/dist/types/excalidraw/components/icons.d.ts +8 -1
  196. package/dist/types/excalidraw/components/main-menu/DefaultItems.d.ts +11 -4
  197. package/dist/types/excalidraw/components/positionElementBesideCursor.d.ts +26 -0
  198. package/dist/types/excalidraw/components/shapeActionPredicates.d.ts +39 -0
  199. package/dist/types/excalidraw/data/blob.d.ts +78 -30
  200. package/dist/types/excalidraw/data/index.d.ts +7 -7
  201. package/dist/types/excalidraw/data/json.d.ts +45 -21
  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/textAutoResizeHandle.d.ts +15 -0
  226. package/dist/types/excalidraw/types.d.ts +611 -30
  227. package/dist/types/excalidraw/viewport.d.ts +303 -0
  228. package/dist/types/excalidraw/wysiwyg/textWysiwyg.d.ts +17 -3
  229. package/dist/types/fractional-indexing/src/index.d.ts +29 -0
  230. package/dist/types/laser-pointer/src/index.d.ts +2 -0
  231. package/dist/types/laser-pointer/src/math.d.ts +16 -0
  232. package/dist/types/laser-pointer/src/simplify.d.ts +2 -0
  233. package/dist/types/laser-pointer/src/state.d.ts +36 -0
  234. package/dist/types/math/src/constants.d.ts +0 -1
  235. package/dist/types/math/src/curve.d.ts +23 -13
  236. package/dist/types/math/src/index.d.ts +1 -0
  237. package/dist/types/math/src/pca.d.ts +79 -0
  238. package/dist/types/math/src/point.d.ts +2 -1
  239. package/dist/types/math/src/polygon.d.ts +25 -1
  240. package/dist/types/math/src/segment.d.ts +6 -0
  241. package/dist/types/utils/src/index.d.ts +4 -3
  242. package/dist/types/utils/src/shape.d.ts +2 -2
  243. package/package.json +2 -2
  244. package/dist/types/excalidraw/animation-frame-handler.d.ts +0 -16
  245. package/dist/types/excalidraw/components/FollowMode/FollowMode.d.ts +0 -10
  246. package/dist/types/excalidraw/components/HandButton.d.ts +0 -10
  247. package/dist/types/excalidraw/components/MobileToolBar.d.ts +0 -10
  248. package/dist/types/excalidraw/components/ToolButton.d.ts +0 -49
  249. package/dist/types/excalidraw/components/shapes.d.ts +0 -263
  250. package/dist/types/excalidraw/cursor.d.ts +0 -5
  251. package/dist/types/excalidraw/scene/scroll.d.ts +0 -18
  252. package/dist/types/excalidraw/scene/zoom.d.ts +0 -12
  253. package/dist/types/utils/src/bbox.d.ts +0 -9
  254. package/dist/types/utils/src/export.d.ts +0 -35
  255. package/dist/types/utils/src/withinBounds.d.ts +0 -19
@@ -1,8 +1,6 @@
1
- import { type SceneBounds } from "@excalidraw/element";
2
- import type { ExcalidrawElement } from "@excalidraw/element/types";
3
- import type { AppState, Offsets } from "../types";
1
+ import type { AppState } from "../types";
4
2
  export declare const actionChangeViewBackgroundColor: import("./types").Action<Partial<AppState>> & {
5
- keyTest?: ((event: React.KeyboardEvent | KeyboardEvent, appState: AppState, elements: readonly ExcalidrawElement[], app: import("../types").AppClassProperties) => boolean) | undefined;
3
+ keyTest?: ((event: React.KeyboardEvent | KeyboardEvent, appState: AppState, elements: readonly import("@excalidraw/element/types").ExcalidrawElement[], app: import("../types").AppClassProperties) => boolean) | undefined;
6
4
  };
7
5
  export declare const actionClearCanvas: {
8
6
  name: "clearCanvas";
@@ -11,7 +9,7 @@ export declare const actionClearCanvas: {
11
9
  trackEvent: {
12
10
  category: "canvas";
13
11
  };
14
- predicate: (elements: readonly ExcalidrawElement[], appState: AppState, props: import("../types").ExcalidrawProps, app: import("../types").AppClassProperties) => boolean;
12
+ predicate: (elements: readonly import("@excalidraw/element/types").ExcalidrawElement[], appState: AppState, props: import("../types").ExcalidrawProps, app: import("../types").AppClassProperties) => boolean;
15
13
  perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: unknown, app: import("../types").AppClassProperties) => {
16
14
  elements: import("@excalidraw/element/types").OrderedExcalidrawElement[];
17
15
  appState: {
@@ -28,6 +26,14 @@ export declare const actionClearCanvas: {
28
26
  open: boolean;
29
27
  panels: number;
30
28
  };
29
+ colorTopPicks: {
30
+ elementStroke: readonly string[] | null;
31
+ elementBackground: readonly string[] | null;
32
+ bucketFill: readonly string[] | null;
33
+ stickyNoteStroke: readonly string[] | null;
34
+ stickyNoteBackground: readonly string[] | null;
35
+ };
36
+ fontTopPicks: readonly number[] | null;
31
37
  activeTool: {
32
38
  lastActiveTool: import("../types").ActiveTool | null;
33
39
  locked: boolean;
@@ -42,6 +48,11 @@ export declare const actionClearCanvas: {
42
48
  };
43
49
  name: string | null;
44
50
  zoom: import("../types").Zoom;
51
+ isBindingEnabled: boolean;
52
+ isMidpointSnappingEnabled: boolean;
53
+ selectedElementIds: Readonly<{
54
+ [id: string]: true;
55
+ }>;
45
56
  scrollX: number;
46
57
  scrollY: number;
47
58
  viewModeEnabled: boolean;
@@ -56,16 +67,13 @@ export declare const actionClearCanvas: {
56
67
  name: "settings";
57
68
  } | {
58
69
  name: "elementLinkSelector";
59
- sourceElementId: ExcalidrawElement["id"];
70
+ sourceElementId: import("@excalidraw/element/types").ExcalidrawElement["id"];
60
71
  } | {
61
72
  name: "charts";
62
73
  data: import("../charts").Spreadsheet;
63
74
  rawText: string;
64
75
  };
65
76
  editingGroupId: import("@excalidraw/element/types").GroupId | null;
66
- selectedElementIds: Readonly<{
67
- [id: string]: true;
68
- }>;
69
77
  frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
70
78
  activeEmbeddable: {
71
79
  element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
@@ -78,22 +86,31 @@ export declare const actionClearCanvas: {
78
86
  selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
79
87
  multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
80
88
  newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
81
- isBindingEnabled: boolean;
82
- isMidpointSnappingEnabled: boolean;
83
89
  suggestedBinding: {
84
90
  element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
85
91
  midPoint?: import("@excalidraw/math").GlobalPoint;
86
92
  } | null;
93
+ textToolHover: {
94
+ type: "text";
95
+ elementId: import("@excalidraw/element/types").ExcalidrawElement["id"];
96
+ } | {
97
+ type: "container";
98
+ elementId: import("@excalidraw/element/types").ExcalidrawElement["id"];
99
+ } | {
100
+ type: "arrow";
101
+ elementId: import("@excalidraw/element/types").ExcalidrawArrowElement["id"];
102
+ anchor: "start" | "end" | "label";
103
+ } | null;
87
104
  isRotating: boolean;
88
- elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
105
+ elementsToHighlight: readonly import("@excalidraw/element/types").NonDeletedExcalidrawElement[] | null;
89
106
  collaborators: Map<import("../types").SocketId, import("../types").Collaborator>;
90
107
  snapLines: readonly import("../snapping").SnapLine[];
91
108
  zenModeEnabled: boolean;
92
- editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
109
+ editingTextElement: import("@excalidraw/element/types").ExcalidrawTextElement | null;
93
110
  isCropping: boolean;
94
- croppingElementId: ExcalidrawElement["id"] | null;
111
+ croppingElementId: import("@excalidraw/element/types").ExcalidrawElement["id"] | null;
95
112
  searchMatches: Readonly<{
96
- focusedId: ExcalidrawElement["id"] | null;
113
+ focusedId: import("@excalidraw/element/types").ExcalidrawElement["id"] | null;
97
114
  matches: readonly import("../types").SearchMatch[];
98
115
  }> | null;
99
116
  activeLockedId: string | null;
@@ -103,7 +120,6 @@ export declare const actionClearCanvas: {
103
120
  shouldCacheIgnoreZoom: boolean;
104
121
  exportScale: number;
105
122
  currentItemArrowType: "sharp" | "round" | "elbow";
106
- bindMode: import("@excalidraw/element/types").BindMode;
107
123
  contextMenu: {
108
124
  items: import("../components/ContextMenu").ContextMenuItems;
109
125
  top: number;
@@ -113,20 +129,25 @@ export declare const actionClearCanvas: {
113
129
  isLoading: boolean;
114
130
  errorMessage: React.ReactNode;
115
131
  resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
132
+ boxSelectionMode: import("../types").BoxSelectionMode;
116
133
  bindingPreference: "enabled" | "disabled";
117
- startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
118
- editingFrame: string | null;
134
+ showHints: boolean;
135
+ inputDevice: import("../types").InputDevice;
136
+ editingFrame: import("@excalidraw/element/types").ExcalidrawFrameLikeElement["id"] | null;
119
137
  preferredSelectionTool: {
120
138
  type: "selection" | "lasso";
121
139
  initialized: boolean;
122
140
  };
123
141
  exportWithDarkMode: boolean;
124
142
  currentItemStrokeColor: string;
143
+ currentItemStickynoteStrokeColor: string;
144
+ currentItemStickynoteBackgroundColor: string;
125
145
  currentItemBackgroundColor: string;
126
- currentItemFillStyle: ExcalidrawElement["fillStyle"];
127
- currentItemStrokeWidth: number;
128
- currentItemStrokeStyle: ExcalidrawElement["strokeStyle"];
146
+ currentItemFillStyle: import("@excalidraw/element/types").ExcalidrawElement["fillStyle"];
147
+ currentItemStrokeWidthKey: import("@excalidraw/common").StrokeWidthKey;
148
+ currentItemStrokeStyle: import("@excalidraw/element/types").ExcalidrawElement["strokeStyle"];
129
149
  currentItemRoughness: number;
150
+ currentItemStrokeVariability: import("@excalidraw/element/types").StrokeVariability;
130
151
  currentItemOpacity: number;
131
152
  currentItemFontFamily: import("@excalidraw/element/types").FontFamilyValues;
132
153
  currentItemFontSize: number;
@@ -135,6 +156,7 @@ export declare const actionClearCanvas: {
135
156
  currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
136
157
  currentHoveredFontFamily: import("@excalidraw/element/types").FontFamilyValues | null;
137
158
  currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
159
+ scrollConstraints: import("../types").ScrollConstraints | null;
138
160
  cursorButton: "up" | "down";
139
161
  scrolledOutside: boolean;
140
162
  isResizing: boolean;
@@ -155,6 +177,7 @@ export declare const actionClearCanvas: {
155
177
  closable?: boolean;
156
178
  duration?: number;
157
179
  } | null;
180
+ minimapEnabled: boolean;
158
181
  fileHandle: FileSystemFileHandle | null;
159
182
  showHyperlinkPopup: false | "info" | "editor";
160
183
  originSnapOffset: {
@@ -162,11 +185,10 @@ export declare const actionClearCanvas: {
162
185
  y: number;
163
186
  } | null;
164
187
  objectsSnapModeEnabled: boolean;
165
- userToFollow: import("../types").UserToFollow | null;
166
- followedBy: Set<import("../types").SocketId>;
167
188
  lockedMultiSelections: {
168
189
  [groupId: string]: true;
169
190
  };
191
+ bindMode: import("@excalidraw/element/types").BindMode;
170
192
  };
171
193
  captureUpdate: "IMMEDIATELY";
172
194
  };
@@ -177,18 +199,17 @@ export declare const actionZoomIn: {
177
199
  name: "zoomIn";
178
200
  label: string;
179
201
  viewMode: true;
202
+ navigation: true;
180
203
  icon: import("react/jsx-runtime").JSX.Element;
181
204
  trackEvent: {
182
205
  category: "canvas";
183
206
  };
184
- perform: (_elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: unknown, app: import("../types").AppClassProperties) => {
207
+ predicate: (elements: readonly import("@excalidraw/element/types").ExcalidrawElement[], appState: AppState, appProps: import("../types").ExcalidrawProps, app: import("../types").AppClassProperties) => boolean;
208
+ perform: (_elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, anchor: unknown, app: import("../types").AppClassProperties) => {
185
209
  appState: {
186
- userToFollow: null;
210
+ zoom: import("../types").Zoom;
187
211
  scrollX: number;
188
212
  scrollY: number;
189
- zoom: {
190
- value: import("../types").NormalizedZoomValue;
191
- };
192
213
  contextMenu: {
193
214
  items: import("../components/ContextMenu").ContextMenuItems;
194
215
  top: number;
@@ -206,13 +227,26 @@ export declare const actionZoomIn: {
206
227
  multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
207
228
  selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
208
229
  isBindingEnabled: boolean;
230
+ boxSelectionMode: import("../types").BoxSelectionMode;
209
231
  bindingPreference: "enabled" | "disabled";
210
232
  isMidpointSnappingEnabled: boolean;
211
- startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
233
+ showHints: boolean;
234
+ inputDevice: import("../types").InputDevice;
212
235
  suggestedBinding: {
213
236
  element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
214
237
  midPoint?: import("@excalidraw/math").GlobalPoint;
215
238
  } | null;
239
+ textToolHover: {
240
+ type: "text";
241
+ elementId: import("@excalidraw/element/types").ExcalidrawElement["id"];
242
+ } | {
243
+ type: "container";
244
+ elementId: import("@excalidraw/element/types").ExcalidrawElement["id"];
245
+ } | {
246
+ type: "arrow";
247
+ elementId: import("@excalidraw/element/types").ExcalidrawArrowElement["id"];
248
+ anchor: "start" | "end" | "label";
249
+ } | null;
216
250
  frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
217
251
  frameRendering: {
218
252
  enabled: boolean;
@@ -220,9 +254,9 @@ export declare const actionZoomIn: {
220
254
  outline: boolean;
221
255
  clip: boolean;
222
256
  };
223
- editingFrame: string | null;
224
- elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
225
- editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
257
+ editingFrame: import("@excalidraw/element/types").ExcalidrawFrameLikeElement["id"] | null;
258
+ elementsToHighlight: readonly import("@excalidraw/element/types").NonDeletedExcalidrawElement[] | null;
259
+ editingTextElement: import("@excalidraw/element/types").ExcalidrawTextElement | null;
226
260
  activeTool: {
227
261
  lastActiveTool: import("../types").ActiveTool | null;
228
262
  locked: boolean;
@@ -239,11 +273,14 @@ export declare const actionZoomIn: {
239
273
  exportWithDarkMode: boolean;
240
274
  exportScale: number;
241
275
  currentItemStrokeColor: string;
276
+ currentItemStickynoteStrokeColor: string;
277
+ currentItemStickynoteBackgroundColor: string;
242
278
  currentItemBackgroundColor: string;
243
- currentItemFillStyle: ExcalidrawElement["fillStyle"];
244
- currentItemStrokeWidth: number;
245
- currentItemStrokeStyle: ExcalidrawElement["strokeStyle"];
279
+ currentItemFillStyle: import("@excalidraw/element/types").ExcalidrawElement["fillStyle"];
280
+ currentItemStrokeWidthKey: import("@excalidraw/common").StrokeWidthKey;
281
+ currentItemStrokeStyle: import("@excalidraw/element/types").ExcalidrawElement["strokeStyle"];
246
282
  currentItemRoughness: number;
283
+ currentItemStrokeVariability: import("@excalidraw/element/types").StrokeVariability;
247
284
  currentItemOpacity: number;
248
285
  currentItemFontFamily: import("@excalidraw/element/types").FontFamilyValues;
249
286
  currentItemFontSize: number;
@@ -254,6 +291,7 @@ export declare const actionZoomIn: {
254
291
  currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
255
292
  currentItemArrowType: "sharp" | "round" | "elbow";
256
293
  viewBackgroundColor: string;
294
+ scrollConstraints: import("../types").ScrollConstraints | null;
257
295
  cursorButton: "up" | "down";
258
296
  scrolledOutside: boolean;
259
297
  name: string | null;
@@ -276,7 +314,7 @@ export declare const actionZoomIn: {
276
314
  name: "settings";
277
315
  } | {
278
316
  name: "elementLinkSelector";
279
- sourceElementId: ExcalidrawElement["id"];
317
+ sourceElementId: import("@excalidraw/element/types").ExcalidrawElement["id"];
280
318
  } | {
281
319
  name: "charts";
282
320
  data: import("../charts").Spreadsheet;
@@ -301,6 +339,7 @@ export declare const actionZoomIn: {
301
339
  duration?: number;
302
340
  } | null;
303
341
  zenModeEnabled: boolean;
342
+ minimapEnabled: boolean;
304
343
  theme: import("@excalidraw/element/types").Theme;
305
344
  gridSize: number;
306
345
  gridStep: number;
@@ -328,11 +367,10 @@ export declare const actionZoomIn: {
328
367
  y: number;
329
368
  } | null;
330
369
  objectsSnapModeEnabled: boolean;
331
- followedBy: Set<import("../types").SocketId>;
332
370
  isCropping: boolean;
333
- croppingElementId: ExcalidrawElement["id"] | null;
371
+ croppingElementId: import("@excalidraw/element/types").ExcalidrawElement["id"] | null;
334
372
  searchMatches: Readonly<{
335
- focusedId: ExcalidrawElement["id"] | null;
373
+ focusedId: import("@excalidraw/element/types").ExcalidrawElement["id"] | null;
336
374
  matches: readonly import("../types").SearchMatch[];
337
375
  }> | null;
338
376
  activeLockedId: string | null;
@@ -340,10 +378,18 @@ export declare const actionZoomIn: {
340
378
  [groupId: string]: true;
341
379
  };
342
380
  bindMode: import("@excalidraw/element/types").BindMode;
381
+ colorTopPicks: {
382
+ elementStroke: readonly string[] | null;
383
+ elementBackground: readonly string[] | null;
384
+ bucketFill: readonly string[] | null;
385
+ stickyNoteStroke: readonly string[] | null;
386
+ stickyNoteBackground: readonly string[] | null;
387
+ };
388
+ fontTopPicks: readonly import("@excalidraw/element/types").FontFamilyValues[] | null;
343
389
  };
344
390
  captureUpdate: "EVENTUALLY";
345
391
  };
346
- PanelComponent: ({ updateData, appState }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
392
+ PanelComponent: ({ updateData }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
347
393
  keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
348
394
  } & {
349
395
  keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
@@ -353,17 +399,16 @@ export declare const actionZoomOut: {
353
399
  label: string;
354
400
  icon: import("react/jsx-runtime").JSX.Element;
355
401
  viewMode: true;
402
+ navigation: true;
356
403
  trackEvent: {
357
404
  category: "canvas";
358
405
  };
359
- perform: (_elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: unknown, app: import("../types").AppClassProperties) => {
406
+ predicate: (elements: readonly import("@excalidraw/element/types").ExcalidrawElement[], appState: AppState, appProps: import("../types").ExcalidrawProps, app: import("../types").AppClassProperties) => boolean;
407
+ perform: (_elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, anchor: unknown, app: import("../types").AppClassProperties) => {
360
408
  appState: {
361
- userToFollow: null;
409
+ zoom: import("../types").Zoom;
362
410
  scrollX: number;
363
411
  scrollY: number;
364
- zoom: {
365
- value: import("../types").NormalizedZoomValue;
366
- };
367
412
  contextMenu: {
368
413
  items: import("../components/ContextMenu").ContextMenuItems;
369
414
  top: number;
@@ -381,13 +426,26 @@ export declare const actionZoomOut: {
381
426
  multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
382
427
  selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
383
428
  isBindingEnabled: boolean;
429
+ boxSelectionMode: import("../types").BoxSelectionMode;
384
430
  bindingPreference: "enabled" | "disabled";
385
431
  isMidpointSnappingEnabled: boolean;
386
- startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
432
+ showHints: boolean;
433
+ inputDevice: import("../types").InputDevice;
387
434
  suggestedBinding: {
388
435
  element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
389
436
  midPoint?: import("@excalidraw/math").GlobalPoint;
390
437
  } | null;
438
+ textToolHover: {
439
+ type: "text";
440
+ elementId: import("@excalidraw/element/types").ExcalidrawElement["id"];
441
+ } | {
442
+ type: "container";
443
+ elementId: import("@excalidraw/element/types").ExcalidrawElement["id"];
444
+ } | {
445
+ type: "arrow";
446
+ elementId: import("@excalidraw/element/types").ExcalidrawArrowElement["id"];
447
+ anchor: "start" | "end" | "label";
448
+ } | null;
391
449
  frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
392
450
  frameRendering: {
393
451
  enabled: boolean;
@@ -395,9 +453,9 @@ export declare const actionZoomOut: {
395
453
  outline: boolean;
396
454
  clip: boolean;
397
455
  };
398
- editingFrame: string | null;
399
- elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
400
- editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
456
+ editingFrame: import("@excalidraw/element/types").ExcalidrawFrameLikeElement["id"] | null;
457
+ elementsToHighlight: readonly import("@excalidraw/element/types").NonDeletedExcalidrawElement[] | null;
458
+ editingTextElement: import("@excalidraw/element/types").ExcalidrawTextElement | null;
401
459
  activeTool: {
402
460
  lastActiveTool: import("../types").ActiveTool | null;
403
461
  locked: boolean;
@@ -414,11 +472,14 @@ export declare const actionZoomOut: {
414
472
  exportWithDarkMode: boolean;
415
473
  exportScale: number;
416
474
  currentItemStrokeColor: string;
475
+ currentItemStickynoteStrokeColor: string;
476
+ currentItemStickynoteBackgroundColor: string;
417
477
  currentItemBackgroundColor: string;
418
- currentItemFillStyle: ExcalidrawElement["fillStyle"];
419
- currentItemStrokeWidth: number;
420
- currentItemStrokeStyle: ExcalidrawElement["strokeStyle"];
478
+ currentItemFillStyle: import("@excalidraw/element/types").ExcalidrawElement["fillStyle"];
479
+ currentItemStrokeWidthKey: import("@excalidraw/common").StrokeWidthKey;
480
+ currentItemStrokeStyle: import("@excalidraw/element/types").ExcalidrawElement["strokeStyle"];
421
481
  currentItemRoughness: number;
482
+ currentItemStrokeVariability: import("@excalidraw/element/types").StrokeVariability;
422
483
  currentItemOpacity: number;
423
484
  currentItemFontFamily: import("@excalidraw/element/types").FontFamilyValues;
424
485
  currentItemFontSize: number;
@@ -429,6 +490,7 @@ export declare const actionZoomOut: {
429
490
  currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
430
491
  currentItemArrowType: "sharp" | "round" | "elbow";
431
492
  viewBackgroundColor: string;
493
+ scrollConstraints: import("../types").ScrollConstraints | null;
432
494
  cursorButton: "up" | "down";
433
495
  scrolledOutside: boolean;
434
496
  name: string | null;
@@ -451,7 +513,7 @@ export declare const actionZoomOut: {
451
513
  name: "settings";
452
514
  } | {
453
515
  name: "elementLinkSelector";
454
- sourceElementId: ExcalidrawElement["id"];
516
+ sourceElementId: import("@excalidraw/element/types").ExcalidrawElement["id"];
455
517
  } | {
456
518
  name: "charts";
457
519
  data: import("../charts").Spreadsheet;
@@ -476,6 +538,7 @@ export declare const actionZoomOut: {
476
538
  duration?: number;
477
539
  } | null;
478
540
  zenModeEnabled: boolean;
541
+ minimapEnabled: boolean;
479
542
  theme: import("@excalidraw/element/types").Theme;
480
543
  gridSize: number;
481
544
  gridStep: number;
@@ -503,11 +566,10 @@ export declare const actionZoomOut: {
503
566
  y: number;
504
567
  } | null;
505
568
  objectsSnapModeEnabled: boolean;
506
- followedBy: Set<import("../types").SocketId>;
507
569
  isCropping: boolean;
508
- croppingElementId: ExcalidrawElement["id"] | null;
570
+ croppingElementId: import("@excalidraw/element/types").ExcalidrawElement["id"] | null;
509
571
  searchMatches: Readonly<{
510
- focusedId: ExcalidrawElement["id"] | null;
572
+ focusedId: import("@excalidraw/element/types").ExcalidrawElement["id"] | null;
511
573
  matches: readonly import("../types").SearchMatch[];
512
574
  }> | null;
513
575
  activeLockedId: string | null;
@@ -515,10 +577,18 @@ export declare const actionZoomOut: {
515
577
  [groupId: string]: true;
516
578
  };
517
579
  bindMode: import("@excalidraw/element/types").BindMode;
580
+ colorTopPicks: {
581
+ elementStroke: readonly string[] | null;
582
+ elementBackground: readonly string[] | null;
583
+ bucketFill: readonly string[] | null;
584
+ stickyNoteStroke: readonly string[] | null;
585
+ stickyNoteBackground: readonly string[] | null;
586
+ };
587
+ fontTopPicks: readonly import("@excalidraw/element/types").FontFamilyValues[] | null;
518
588
  };
519
589
  captureUpdate: "EVENTUALLY";
520
590
  };
521
- PanelComponent: ({ updateData, appState }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
591
+ PanelComponent: ({ updateData }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
522
592
  keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
523
593
  } & {
524
594
  keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
@@ -528,17 +598,16 @@ export declare const actionResetZoom: {
528
598
  label: string;
529
599
  icon: import("react/jsx-runtime").JSX.Element;
530
600
  viewMode: true;
601
+ navigation: true;
531
602
  trackEvent: {
532
603
  category: "canvas";
533
604
  };
534
- perform: (_elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: unknown, app: import("../types").AppClassProperties) => {
605
+ predicate: (elements: readonly import("@excalidraw/element/types").ExcalidrawElement[], appState: AppState, appProps: import("../types").ExcalidrawProps, app: import("../types").AppClassProperties) => boolean;
606
+ perform: (_elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, anchor: unknown, app: import("../types").AppClassProperties) => {
535
607
  appState: {
536
- userToFollow: null;
608
+ zoom: import("../types").Zoom;
537
609
  scrollX: number;
538
610
  scrollY: number;
539
- zoom: {
540
- value: import("../types").NormalizedZoomValue;
541
- };
542
611
  contextMenu: {
543
612
  items: import("../components/ContextMenu").ContextMenuItems;
544
613
  top: number;
@@ -556,13 +625,26 @@ export declare const actionResetZoom: {
556
625
  multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
557
626
  selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
558
627
  isBindingEnabled: boolean;
628
+ boxSelectionMode: import("../types").BoxSelectionMode;
559
629
  bindingPreference: "enabled" | "disabled";
560
630
  isMidpointSnappingEnabled: boolean;
561
- startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
631
+ showHints: boolean;
632
+ inputDevice: import("../types").InputDevice;
562
633
  suggestedBinding: {
563
634
  element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
564
635
  midPoint?: import("@excalidraw/math").GlobalPoint;
565
636
  } | null;
637
+ textToolHover: {
638
+ type: "text";
639
+ elementId: import("@excalidraw/element/types").ExcalidrawElement["id"];
640
+ } | {
641
+ type: "container";
642
+ elementId: import("@excalidraw/element/types").ExcalidrawElement["id"];
643
+ } | {
644
+ type: "arrow";
645
+ elementId: import("@excalidraw/element/types").ExcalidrawArrowElement["id"];
646
+ anchor: "start" | "end" | "label";
647
+ } | null;
566
648
  frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
567
649
  frameRendering: {
568
650
  enabled: boolean;
@@ -570,9 +652,9 @@ export declare const actionResetZoom: {
570
652
  outline: boolean;
571
653
  clip: boolean;
572
654
  };
573
- editingFrame: string | null;
574
- elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
575
- editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
655
+ editingFrame: import("@excalidraw/element/types").ExcalidrawFrameLikeElement["id"] | null;
656
+ elementsToHighlight: readonly import("@excalidraw/element/types").NonDeletedExcalidrawElement[] | null;
657
+ editingTextElement: import("@excalidraw/element/types").ExcalidrawTextElement | null;
576
658
  activeTool: {
577
659
  lastActiveTool: import("../types").ActiveTool | null;
578
660
  locked: boolean;
@@ -589,11 +671,14 @@ export declare const actionResetZoom: {
589
671
  exportWithDarkMode: boolean;
590
672
  exportScale: number;
591
673
  currentItemStrokeColor: string;
674
+ currentItemStickynoteStrokeColor: string;
675
+ currentItemStickynoteBackgroundColor: string;
592
676
  currentItemBackgroundColor: string;
593
- currentItemFillStyle: ExcalidrawElement["fillStyle"];
594
- currentItemStrokeWidth: number;
595
- currentItemStrokeStyle: ExcalidrawElement["strokeStyle"];
677
+ currentItemFillStyle: import("@excalidraw/element/types").ExcalidrawElement["fillStyle"];
678
+ currentItemStrokeWidthKey: import("@excalidraw/common").StrokeWidthKey;
679
+ currentItemStrokeStyle: import("@excalidraw/element/types").ExcalidrawElement["strokeStyle"];
596
680
  currentItemRoughness: number;
681
+ currentItemStrokeVariability: import("@excalidraw/element/types").StrokeVariability;
597
682
  currentItemOpacity: number;
598
683
  currentItemFontFamily: import("@excalidraw/element/types").FontFamilyValues;
599
684
  currentItemFontSize: number;
@@ -604,6 +689,7 @@ export declare const actionResetZoom: {
604
689
  currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
605
690
  currentItemArrowType: "sharp" | "round" | "elbow";
606
691
  viewBackgroundColor: string;
692
+ scrollConstraints: import("../types").ScrollConstraints | null;
607
693
  cursorButton: "up" | "down";
608
694
  scrolledOutside: boolean;
609
695
  name: string | null;
@@ -626,7 +712,7 @@ export declare const actionResetZoom: {
626
712
  name: "settings";
627
713
  } | {
628
714
  name: "elementLinkSelector";
629
- sourceElementId: ExcalidrawElement["id"];
715
+ sourceElementId: import("@excalidraw/element/types").ExcalidrawElement["id"];
630
716
  } | {
631
717
  name: "charts";
632
718
  data: import("../charts").Spreadsheet;
@@ -651,6 +737,7 @@ export declare const actionResetZoom: {
651
737
  duration?: number;
652
738
  } | null;
653
739
  zenModeEnabled: boolean;
740
+ minimapEnabled: boolean;
654
741
  theme: import("@excalidraw/element/types").Theme;
655
742
  gridSize: number;
656
743
  gridStep: number;
@@ -678,11 +765,10 @@ export declare const actionResetZoom: {
678
765
  y: number;
679
766
  } | null;
680
767
  objectsSnapModeEnabled: boolean;
681
- followedBy: Set<import("../types").SocketId>;
682
768
  isCropping: boolean;
683
- croppingElementId: ExcalidrawElement["id"] | null;
769
+ croppingElementId: import("@excalidraw/element/types").ExcalidrawElement["id"] | null;
684
770
  searchMatches: Readonly<{
685
- focusedId: ExcalidrawElement["id"] | null;
771
+ focusedId: import("@excalidraw/element/types").ExcalidrawElement["id"] | null;
686
772
  matches: readonly import("../types").SearchMatch[];
687
773
  }> | null;
688
774
  activeLockedId: string | null;
@@ -690,372 +776,37 @@ export declare const actionResetZoom: {
690
776
  [groupId: string]: true;
691
777
  };
692
778
  bindMode: import("@excalidraw/element/types").BindMode;
779
+ colorTopPicks: {
780
+ elementStroke: readonly string[] | null;
781
+ elementBackground: readonly string[] | null;
782
+ bucketFill: readonly string[] | null;
783
+ stickyNoteStroke: readonly string[] | null;
784
+ stickyNoteBackground: readonly string[] | null;
785
+ };
786
+ fontTopPicks: readonly import("@excalidraw/element/types").FontFamilyValues[] | null;
693
787
  };
694
788
  captureUpdate: "EVENTUALLY";
695
789
  };
696
- PanelComponent: ({ updateData, appState }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
790
+ PanelComponent: ({ updateData }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
697
791
  keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
698
792
  } & {
699
793
  keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
700
794
  };
701
- export declare const zoomToFitBounds: ({ bounds, appState, canvasOffsets, fitToViewport, viewportZoomFactor, minZoom, maxZoom, }: {
702
- bounds: SceneBounds;
703
- canvasOffsets?: Offsets;
704
- appState: Readonly<AppState>;
705
- /** whether to fit content to viewport (beyond >100%) */
706
- fitToViewport: boolean;
707
- /** zoom content to cover X of the viewport, when fitToViewport=true */
708
- viewportZoomFactor?: number;
709
- minZoom?: number;
710
- maxZoom?: number;
711
- }) => {
712
- appState: {
713
- scrollX: number;
714
- scrollY: number;
715
- zoom: {
716
- value: import("../types").NormalizedZoomValue;
717
- };
718
- contextMenu: {
719
- items: import("../components/ContextMenu").ContextMenuItems;
720
- top: number;
721
- left: number;
722
- } | null;
723
- showWelcomeScreen: boolean;
724
- isLoading: boolean;
725
- errorMessage: React.ReactNode;
726
- activeEmbeddable: {
727
- element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
728
- state: "hover" | "active";
729
- } | null;
730
- newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
731
- resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
732
- multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
733
- selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
734
- isBindingEnabled: boolean;
735
- bindingPreference: "enabled" | "disabled";
736
- isMidpointSnappingEnabled: boolean;
737
- startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
738
- suggestedBinding: {
739
- element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
740
- midPoint?: import("@excalidraw/math").GlobalPoint;
741
- } | null;
742
- frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
743
- frameRendering: {
744
- enabled: boolean;
745
- name: boolean;
746
- outline: boolean;
747
- clip: boolean;
748
- };
749
- editingFrame: string | null;
750
- elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
751
- editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
752
- activeTool: {
753
- lastActiveTool: import("../types").ActiveTool | null;
754
- locked: boolean;
755
- fromSelection: boolean;
756
- } & import("../types").ActiveTool;
757
- preferredSelectionTool: {
758
- type: "selection" | "lasso";
759
- initialized: boolean;
760
- };
761
- penMode: boolean;
762
- penDetected: boolean;
763
- exportBackground: boolean;
764
- exportEmbedScene: boolean;
765
- exportWithDarkMode: boolean;
766
- exportScale: number;
767
- currentItemStrokeColor: string;
768
- currentItemBackgroundColor: string;
769
- currentItemFillStyle: ExcalidrawElement["fillStyle"];
770
- currentItemStrokeWidth: number;
771
- currentItemStrokeStyle: ExcalidrawElement["strokeStyle"];
772
- currentItemRoughness: number;
773
- currentItemOpacity: number;
774
- currentItemFontFamily: import("@excalidraw/element/types").FontFamilyValues;
775
- currentItemFontSize: number;
776
- currentItemTextAlign: import("@excalidraw/element/types").TextAlign;
777
- currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
778
- currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
779
- currentHoveredFontFamily: import("@excalidraw/element/types").FontFamilyValues | null;
780
- currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
781
- currentItemArrowType: "sharp" | "round" | "elbow";
782
- viewBackgroundColor: string;
783
- cursorButton: "up" | "down";
784
- scrolledOutside: boolean;
785
- name: string | null;
786
- isResizing: boolean;
787
- isRotating: boolean;
788
- openMenu: "canvas" | null;
789
- openPopup: "canvasBackground" | "elementBackground" | "elementStroke" | "fontFamily" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
790
- openSidebar: {
791
- name: import("../types").SidebarName;
792
- tab?: import("../types").SidebarTabName;
793
- } | null;
794
- openDialog: null | {
795
- name: "imageExport" | "help" | "jsonExport";
796
- } | {
797
- name: "ttd";
798
- tab: "text-to-diagram" | "mermaid";
799
- } | {
800
- name: "commandPalette";
801
- } | {
802
- name: "settings";
803
- } | {
804
- name: "elementLinkSelector";
805
- sourceElementId: ExcalidrawElement["id"];
806
- } | {
807
- name: "charts";
808
- data: import("../charts").Spreadsheet;
809
- rawText: string;
810
- };
811
- defaultSidebarDockedPreference: boolean;
812
- lastPointerDownWith: import("@excalidraw/element/types").PointerType;
813
- selectedElementIds: Readonly<{
814
- [id: string]: true;
815
- }>;
816
- hoveredElementIds: Readonly<{
817
- [id: string]: true;
818
- }>;
819
- previousSelectedElementIds: {
820
- [id: string]: true;
821
- };
822
- selectedElementsAreBeingDragged: boolean;
823
- shouldCacheIgnoreZoom: boolean;
824
- toast: {
825
- message: React.ReactNode;
826
- closable?: boolean;
827
- duration?: number;
828
- } | null;
829
- zenModeEnabled: boolean;
830
- theme: import("@excalidraw/element/types").Theme;
831
- gridSize: number;
832
- gridStep: number;
833
- gridModeEnabled: boolean;
834
- viewModeEnabled: boolean;
835
- selectedGroupIds: {
836
- [groupId: string]: boolean;
837
- };
838
- editingGroupId: import("@excalidraw/element/types").GroupId | null;
839
- width: number;
840
- height: number;
841
- offsetTop: number;
842
- offsetLeft: number;
843
- fileHandle: FileSystemFileHandle | null;
844
- collaborators: Map<import("../types").SocketId, import("../types").Collaborator>;
845
- stats: {
846
- open: boolean;
847
- panels: number;
848
- };
849
- showHyperlinkPopup: false | "info" | "editor";
850
- selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
851
- snapLines: readonly import("../snapping").SnapLine[];
852
- originSnapOffset: {
853
- x: number;
854
- y: number;
855
- } | null;
856
- objectsSnapModeEnabled: boolean;
857
- userToFollow: import("../types").UserToFollow | null;
858
- followedBy: Set<import("../types").SocketId>;
859
- isCropping: boolean;
860
- croppingElementId: ExcalidrawElement["id"] | null;
861
- searchMatches: Readonly<{
862
- focusedId: ExcalidrawElement["id"] | null;
863
- matches: readonly import("../types").SearchMatch[];
864
- }> | null;
865
- activeLockedId: string | null;
866
- lockedMultiSelections: {
867
- [groupId: string]: true;
868
- };
869
- bindMode: import("@excalidraw/element/types").BindMode;
870
- };
871
- captureUpdate: "EVENTUALLY";
872
- };
873
- export declare const zoomToFit: ({ canvasOffsets, targetElements, appState, fitToViewport, viewportZoomFactor, minZoom, maxZoom, }: {
874
- canvasOffsets?: Offsets;
875
- targetElements: readonly ExcalidrawElement[];
876
- appState: Readonly<AppState>;
877
- /** whether to fit content to viewport (beyond >100%) */
878
- fitToViewport: boolean;
879
- /** zoom content to cover X of the viewport, when fitToViewport=true */
880
- viewportZoomFactor?: number;
881
- minZoom?: number;
882
- maxZoom?: number;
883
- }) => {
884
- appState: {
885
- scrollX: number;
886
- scrollY: number;
887
- zoom: {
888
- value: import("../types").NormalizedZoomValue;
889
- };
890
- contextMenu: {
891
- items: import("../components/ContextMenu").ContextMenuItems;
892
- top: number;
893
- left: number;
894
- } | null;
895
- showWelcomeScreen: boolean;
896
- isLoading: boolean;
897
- errorMessage: React.ReactNode;
898
- activeEmbeddable: {
899
- element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
900
- state: "hover" | "active";
901
- } | null;
902
- newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
903
- resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
904
- multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
905
- selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
906
- isBindingEnabled: boolean;
907
- bindingPreference: "enabled" | "disabled";
908
- isMidpointSnappingEnabled: boolean;
909
- startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
910
- suggestedBinding: {
911
- element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
912
- midPoint?: import("@excalidraw/math").GlobalPoint;
913
- } | null;
914
- frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
915
- frameRendering: {
916
- enabled: boolean;
917
- name: boolean;
918
- outline: boolean;
919
- clip: boolean;
920
- };
921
- editingFrame: string | null;
922
- elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
923
- editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
924
- activeTool: {
925
- lastActiveTool: import("../types").ActiveTool | null;
926
- locked: boolean;
927
- fromSelection: boolean;
928
- } & import("../types").ActiveTool;
929
- preferredSelectionTool: {
930
- type: "selection" | "lasso";
931
- initialized: boolean;
932
- };
933
- penMode: boolean;
934
- penDetected: boolean;
935
- exportBackground: boolean;
936
- exportEmbedScene: boolean;
937
- exportWithDarkMode: boolean;
938
- exportScale: number;
939
- currentItemStrokeColor: string;
940
- currentItemBackgroundColor: string;
941
- currentItemFillStyle: ExcalidrawElement["fillStyle"];
942
- currentItemStrokeWidth: number;
943
- currentItemStrokeStyle: ExcalidrawElement["strokeStyle"];
944
- currentItemRoughness: number;
945
- currentItemOpacity: number;
946
- currentItemFontFamily: import("@excalidraw/element/types").FontFamilyValues;
947
- currentItemFontSize: number;
948
- currentItemTextAlign: import("@excalidraw/element/types").TextAlign;
949
- currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
950
- currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
951
- currentHoveredFontFamily: import("@excalidraw/element/types").FontFamilyValues | null;
952
- currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
953
- currentItemArrowType: "sharp" | "round" | "elbow";
954
- viewBackgroundColor: string;
955
- cursorButton: "up" | "down";
956
- scrolledOutside: boolean;
957
- name: string | null;
958
- isResizing: boolean;
959
- isRotating: boolean;
960
- openMenu: "canvas" | null;
961
- openPopup: "canvasBackground" | "elementBackground" | "elementStroke" | "fontFamily" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
962
- openSidebar: {
963
- name: import("../types").SidebarName;
964
- tab?: import("../types").SidebarTabName;
965
- } | null;
966
- openDialog: null | {
967
- name: "imageExport" | "help" | "jsonExport";
968
- } | {
969
- name: "ttd";
970
- tab: "text-to-diagram" | "mermaid";
971
- } | {
972
- name: "commandPalette";
973
- } | {
974
- name: "settings";
975
- } | {
976
- name: "elementLinkSelector";
977
- sourceElementId: ExcalidrawElement["id"];
978
- } | {
979
- name: "charts";
980
- data: import("../charts").Spreadsheet;
981
- rawText: string;
982
- };
983
- defaultSidebarDockedPreference: boolean;
984
- lastPointerDownWith: import("@excalidraw/element/types").PointerType;
985
- selectedElementIds: Readonly<{
986
- [id: string]: true;
987
- }>;
988
- hoveredElementIds: Readonly<{
989
- [id: string]: true;
990
- }>;
991
- previousSelectedElementIds: {
992
- [id: string]: true;
993
- };
994
- selectedElementsAreBeingDragged: boolean;
995
- shouldCacheIgnoreZoom: boolean;
996
- toast: {
997
- message: React.ReactNode;
998
- closable?: boolean;
999
- duration?: number;
1000
- } | null;
1001
- zenModeEnabled: boolean;
1002
- theme: import("@excalidraw/element/types").Theme;
1003
- gridSize: number;
1004
- gridStep: number;
1005
- gridModeEnabled: boolean;
1006
- viewModeEnabled: boolean;
1007
- selectedGroupIds: {
1008
- [groupId: string]: boolean;
1009
- };
1010
- editingGroupId: import("@excalidraw/element/types").GroupId | null;
1011
- width: number;
1012
- height: number;
1013
- offsetTop: number;
1014
- offsetLeft: number;
1015
- fileHandle: FileSystemFileHandle | null;
1016
- collaborators: Map<import("../types").SocketId, import("../types").Collaborator>;
1017
- stats: {
1018
- open: boolean;
1019
- panels: number;
1020
- };
1021
- showHyperlinkPopup: false | "info" | "editor";
1022
- selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
1023
- snapLines: readonly import("../snapping").SnapLine[];
1024
- originSnapOffset: {
1025
- x: number;
1026
- y: number;
1027
- } | null;
1028
- objectsSnapModeEnabled: boolean;
1029
- userToFollow: import("../types").UserToFollow | null;
1030
- followedBy: Set<import("../types").SocketId>;
1031
- isCropping: boolean;
1032
- croppingElementId: ExcalidrawElement["id"] | null;
1033
- searchMatches: Readonly<{
1034
- focusedId: ExcalidrawElement["id"] | null;
1035
- matches: readonly import("../types").SearchMatch[];
1036
- }> | null;
1037
- activeLockedId: string | null;
1038
- lockedMultiSelections: {
1039
- [groupId: string]: true;
1040
- };
1041
- bindMode: import("@excalidraw/element/types").BindMode;
1042
- };
1043
- captureUpdate: "EVENTUALLY";
1044
- };
1045
795
  export declare const actionZoomToFitSelectionInViewport: {
1046
796
  name: "zoomToFitSelectionInViewport";
1047
797
  label: string;
1048
798
  icon: import("react/jsx-runtime").JSX.Element;
799
+ viewMode: true;
800
+ navigation: true;
1049
801
  trackEvent: {
1050
802
  category: "canvas";
1051
803
  };
804
+ predicate: (elements: readonly import("@excalidraw/element/types").ExcalidrawElement[], appState: AppState, appProps: import("../types").ExcalidrawProps, app: import("../types").AppClassProperties) => boolean;
1052
805
  perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: unknown, app: import("../types").AppClassProperties) => {
1053
806
  appState: {
807
+ zoom: import("../types").Zoom;
1054
808
  scrollX: number;
1055
809
  scrollY: number;
1056
- zoom: {
1057
- value: import("../types").NormalizedZoomValue;
1058
- };
1059
810
  contextMenu: {
1060
811
  items: import("../components/ContextMenu").ContextMenuItems;
1061
812
  top: number;
@@ -1073,13 +824,26 @@ export declare const actionZoomToFitSelectionInViewport: {
1073
824
  multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
1074
825
  selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
1075
826
  isBindingEnabled: boolean;
827
+ boxSelectionMode: import("../types").BoxSelectionMode;
1076
828
  bindingPreference: "enabled" | "disabled";
1077
829
  isMidpointSnappingEnabled: boolean;
1078
- startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
830
+ showHints: boolean;
831
+ inputDevice: import("../types").InputDevice;
1079
832
  suggestedBinding: {
1080
833
  element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
1081
834
  midPoint?: import("@excalidraw/math").GlobalPoint;
1082
835
  } | null;
836
+ textToolHover: {
837
+ type: "text";
838
+ elementId: import("@excalidraw/element/types").ExcalidrawElement["id"];
839
+ } | {
840
+ type: "container";
841
+ elementId: import("@excalidraw/element/types").ExcalidrawElement["id"];
842
+ } | {
843
+ type: "arrow";
844
+ elementId: import("@excalidraw/element/types").ExcalidrawArrowElement["id"];
845
+ anchor: "start" | "end" | "label";
846
+ } | null;
1083
847
  frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
1084
848
  frameRendering: {
1085
849
  enabled: boolean;
@@ -1087,9 +851,9 @@ export declare const actionZoomToFitSelectionInViewport: {
1087
851
  outline: boolean;
1088
852
  clip: boolean;
1089
853
  };
1090
- editingFrame: string | null;
1091
- elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
1092
- editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
854
+ editingFrame: import("@excalidraw/element/types").ExcalidrawFrameLikeElement["id"] | null;
855
+ elementsToHighlight: readonly import("@excalidraw/element/types").NonDeletedExcalidrawElement[] | null;
856
+ editingTextElement: import("@excalidraw/element/types").ExcalidrawTextElement | null;
1093
857
  activeTool: {
1094
858
  lastActiveTool: import("../types").ActiveTool | null;
1095
859
  locked: boolean;
@@ -1106,11 +870,14 @@ export declare const actionZoomToFitSelectionInViewport: {
1106
870
  exportWithDarkMode: boolean;
1107
871
  exportScale: number;
1108
872
  currentItemStrokeColor: string;
873
+ currentItemStickynoteStrokeColor: string;
874
+ currentItemStickynoteBackgroundColor: string;
1109
875
  currentItemBackgroundColor: string;
1110
- currentItemFillStyle: ExcalidrawElement["fillStyle"];
1111
- currentItemStrokeWidth: number;
1112
- currentItemStrokeStyle: ExcalidrawElement["strokeStyle"];
876
+ currentItemFillStyle: import("@excalidraw/element/types").ExcalidrawElement["fillStyle"];
877
+ currentItemStrokeWidthKey: import("@excalidraw/common").StrokeWidthKey;
878
+ currentItemStrokeStyle: import("@excalidraw/element/types").ExcalidrawElement["strokeStyle"];
1113
879
  currentItemRoughness: number;
880
+ currentItemStrokeVariability: import("@excalidraw/element/types").StrokeVariability;
1114
881
  currentItemOpacity: number;
1115
882
  currentItemFontFamily: import("@excalidraw/element/types").FontFamilyValues;
1116
883
  currentItemFontSize: number;
@@ -1121,6 +888,7 @@ export declare const actionZoomToFitSelectionInViewport: {
1121
888
  currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
1122
889
  currentItemArrowType: "sharp" | "round" | "elbow";
1123
890
  viewBackgroundColor: string;
891
+ scrollConstraints: import("../types").ScrollConstraints | null;
1124
892
  cursorButton: "up" | "down";
1125
893
  scrolledOutside: boolean;
1126
894
  name: string | null;
@@ -1143,7 +911,7 @@ export declare const actionZoomToFitSelectionInViewport: {
1143
911
  name: "settings";
1144
912
  } | {
1145
913
  name: "elementLinkSelector";
1146
- sourceElementId: ExcalidrawElement["id"];
914
+ sourceElementId: import("@excalidraw/element/types").ExcalidrawElement["id"];
1147
915
  } | {
1148
916
  name: "charts";
1149
917
  data: import("../charts").Spreadsheet;
@@ -1168,6 +936,7 @@ export declare const actionZoomToFitSelectionInViewport: {
1168
936
  duration?: number;
1169
937
  } | null;
1170
938
  zenModeEnabled: boolean;
939
+ minimapEnabled: boolean;
1171
940
  theme: import("@excalidraw/element/types").Theme;
1172
941
  gridSize: number;
1173
942
  gridStep: number;
@@ -1195,12 +964,10 @@ export declare const actionZoomToFitSelectionInViewport: {
1195
964
  y: number;
1196
965
  } | null;
1197
966
  objectsSnapModeEnabled: boolean;
1198
- userToFollow: import("../types").UserToFollow | null;
1199
- followedBy: Set<import("../types").SocketId>;
1200
967
  isCropping: boolean;
1201
- croppingElementId: ExcalidrawElement["id"] | null;
968
+ croppingElementId: import("@excalidraw/element/types").ExcalidrawElement["id"] | null;
1202
969
  searchMatches: Readonly<{
1203
- focusedId: ExcalidrawElement["id"] | null;
970
+ focusedId: import("@excalidraw/element/types").ExcalidrawElement["id"] | null;
1204
971
  matches: readonly import("../types").SearchMatch[];
1205
972
  }> | null;
1206
973
  activeLockedId: string | null;
@@ -1208,6 +975,14 @@ export declare const actionZoomToFitSelectionInViewport: {
1208
975
  [groupId: string]: true;
1209
976
  };
1210
977
  bindMode: import("@excalidraw/element/types").BindMode;
978
+ colorTopPicks: {
979
+ elementStroke: readonly string[] | null;
980
+ elementBackground: readonly string[] | null;
981
+ bucketFill: readonly string[] | null;
982
+ stickyNoteStroke: readonly string[] | null;
983
+ stickyNoteBackground: readonly string[] | null;
984
+ };
985
+ fontTopPicks: readonly import("@excalidraw/element/types").FontFamilyValues[] | null;
1211
986
  };
1212
987
  captureUpdate: "EVENTUALLY";
1213
988
  };
@@ -1219,16 +994,17 @@ export declare const actionZoomToFitSelection: {
1219
994
  name: "zoomToFitSelection";
1220
995
  label: string;
1221
996
  icon: import("react/jsx-runtime").JSX.Element;
997
+ viewMode: true;
998
+ navigation: true;
1222
999
  trackEvent: {
1223
1000
  category: "canvas";
1224
1001
  };
1002
+ predicate: (elements: readonly import("@excalidraw/element/types").ExcalidrawElement[], appState: AppState, appProps: import("../types").ExcalidrawProps, app: import("../types").AppClassProperties) => boolean;
1225
1003
  perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: unknown, app: import("../types").AppClassProperties) => {
1226
1004
  appState: {
1005
+ zoom: import("../types").Zoom;
1227
1006
  scrollX: number;
1228
1007
  scrollY: number;
1229
- zoom: {
1230
- value: import("../types").NormalizedZoomValue;
1231
- };
1232
1008
  contextMenu: {
1233
1009
  items: import("../components/ContextMenu").ContextMenuItems;
1234
1010
  top: number;
@@ -1246,13 +1022,26 @@ export declare const actionZoomToFitSelection: {
1246
1022
  multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
1247
1023
  selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
1248
1024
  isBindingEnabled: boolean;
1025
+ boxSelectionMode: import("../types").BoxSelectionMode;
1249
1026
  bindingPreference: "enabled" | "disabled";
1250
1027
  isMidpointSnappingEnabled: boolean;
1251
- startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
1028
+ showHints: boolean;
1029
+ inputDevice: import("../types").InputDevice;
1252
1030
  suggestedBinding: {
1253
1031
  element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
1254
1032
  midPoint?: import("@excalidraw/math").GlobalPoint;
1255
1033
  } | null;
1034
+ textToolHover: {
1035
+ type: "text";
1036
+ elementId: import("@excalidraw/element/types").ExcalidrawElement["id"];
1037
+ } | {
1038
+ type: "container";
1039
+ elementId: import("@excalidraw/element/types").ExcalidrawElement["id"];
1040
+ } | {
1041
+ type: "arrow";
1042
+ elementId: import("@excalidraw/element/types").ExcalidrawArrowElement["id"];
1043
+ anchor: "start" | "end" | "label";
1044
+ } | null;
1256
1045
  frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
1257
1046
  frameRendering: {
1258
1047
  enabled: boolean;
@@ -1260,9 +1049,9 @@ export declare const actionZoomToFitSelection: {
1260
1049
  outline: boolean;
1261
1050
  clip: boolean;
1262
1051
  };
1263
- editingFrame: string | null;
1264
- elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
1265
- editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
1052
+ editingFrame: import("@excalidraw/element/types").ExcalidrawFrameLikeElement["id"] | null;
1053
+ elementsToHighlight: readonly import("@excalidraw/element/types").NonDeletedExcalidrawElement[] | null;
1054
+ editingTextElement: import("@excalidraw/element/types").ExcalidrawTextElement | null;
1266
1055
  activeTool: {
1267
1056
  lastActiveTool: import("../types").ActiveTool | null;
1268
1057
  locked: boolean;
@@ -1279,11 +1068,14 @@ export declare const actionZoomToFitSelection: {
1279
1068
  exportWithDarkMode: boolean;
1280
1069
  exportScale: number;
1281
1070
  currentItemStrokeColor: string;
1071
+ currentItemStickynoteStrokeColor: string;
1072
+ currentItemStickynoteBackgroundColor: string;
1282
1073
  currentItemBackgroundColor: string;
1283
- currentItemFillStyle: ExcalidrawElement["fillStyle"];
1284
- currentItemStrokeWidth: number;
1285
- currentItemStrokeStyle: ExcalidrawElement["strokeStyle"];
1074
+ currentItemFillStyle: import("@excalidraw/element/types").ExcalidrawElement["fillStyle"];
1075
+ currentItemStrokeWidthKey: import("@excalidraw/common").StrokeWidthKey;
1076
+ currentItemStrokeStyle: import("@excalidraw/element/types").ExcalidrawElement["strokeStyle"];
1286
1077
  currentItemRoughness: number;
1078
+ currentItemStrokeVariability: import("@excalidraw/element/types").StrokeVariability;
1287
1079
  currentItemOpacity: number;
1288
1080
  currentItemFontFamily: import("@excalidraw/element/types").FontFamilyValues;
1289
1081
  currentItemFontSize: number;
@@ -1294,6 +1086,7 @@ export declare const actionZoomToFitSelection: {
1294
1086
  currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
1295
1087
  currentItemArrowType: "sharp" | "round" | "elbow";
1296
1088
  viewBackgroundColor: string;
1089
+ scrollConstraints: import("../types").ScrollConstraints | null;
1297
1090
  cursorButton: "up" | "down";
1298
1091
  scrolledOutside: boolean;
1299
1092
  name: string | null;
@@ -1316,7 +1109,7 @@ export declare const actionZoomToFitSelection: {
1316
1109
  name: "settings";
1317
1110
  } | {
1318
1111
  name: "elementLinkSelector";
1319
- sourceElementId: ExcalidrawElement["id"];
1112
+ sourceElementId: import("@excalidraw/element/types").ExcalidrawElement["id"];
1320
1113
  } | {
1321
1114
  name: "charts";
1322
1115
  data: import("../charts").Spreadsheet;
@@ -1341,6 +1134,7 @@ export declare const actionZoomToFitSelection: {
1341
1134
  duration?: number;
1342
1135
  } | null;
1343
1136
  zenModeEnabled: boolean;
1137
+ minimapEnabled: boolean;
1344
1138
  theme: import("@excalidraw/element/types").Theme;
1345
1139
  gridSize: number;
1346
1140
  gridStep: number;
@@ -1368,12 +1162,10 @@ export declare const actionZoomToFitSelection: {
1368
1162
  y: number;
1369
1163
  } | null;
1370
1164
  objectsSnapModeEnabled: boolean;
1371
- userToFollow: import("../types").UserToFollow | null;
1372
- followedBy: Set<import("../types").SocketId>;
1373
1165
  isCropping: boolean;
1374
- croppingElementId: ExcalidrawElement["id"] | null;
1166
+ croppingElementId: import("@excalidraw/element/types").ExcalidrawElement["id"] | null;
1375
1167
  searchMatches: Readonly<{
1376
- focusedId: ExcalidrawElement["id"] | null;
1168
+ focusedId: import("@excalidraw/element/types").ExcalidrawElement["id"] | null;
1377
1169
  matches: readonly import("../types").SearchMatch[];
1378
1170
  }> | null;
1379
1171
  activeLockedId: string | null;
@@ -1381,6 +1173,14 @@ export declare const actionZoomToFitSelection: {
1381
1173
  [groupId: string]: true;
1382
1174
  };
1383
1175
  bindMode: import("@excalidraw/element/types").BindMode;
1176
+ colorTopPicks: {
1177
+ elementStroke: readonly string[] | null;
1178
+ elementBackground: readonly string[] | null;
1179
+ bucketFill: readonly string[] | null;
1180
+ stickyNoteStroke: readonly string[] | null;
1181
+ stickyNoteBackground: readonly string[] | null;
1182
+ };
1183
+ fontTopPicks: readonly import("@excalidraw/element/types").FontFamilyValues[] | null;
1384
1184
  };
1385
1185
  captureUpdate: "EVENTUALLY";
1386
1186
  };
@@ -1393,16 +1193,16 @@ export declare const actionZoomToFit: {
1393
1193
  label: string;
1394
1194
  icon: import("react/jsx-runtime").JSX.Element;
1395
1195
  viewMode: true;
1196
+ navigation: true;
1396
1197
  trackEvent: {
1397
1198
  category: "canvas";
1398
1199
  };
1200
+ predicate: (elements: readonly import("@excalidraw/element/types").ExcalidrawElement[], appState: AppState, appProps: import("../types").ExcalidrawProps, app: import("../types").AppClassProperties) => boolean;
1399
1201
  perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: unknown, app: import("../types").AppClassProperties) => {
1400
1202
  appState: {
1203
+ zoom: import("../types").Zoom;
1401
1204
  scrollX: number;
1402
1205
  scrollY: number;
1403
- zoom: {
1404
- value: import("../types").NormalizedZoomValue;
1405
- };
1406
1206
  contextMenu: {
1407
1207
  items: import("../components/ContextMenu").ContextMenuItems;
1408
1208
  top: number;
@@ -1420,13 +1220,26 @@ export declare const actionZoomToFit: {
1420
1220
  multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
1421
1221
  selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
1422
1222
  isBindingEnabled: boolean;
1223
+ boxSelectionMode: import("../types").BoxSelectionMode;
1423
1224
  bindingPreference: "enabled" | "disabled";
1424
1225
  isMidpointSnappingEnabled: boolean;
1425
- startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
1226
+ showHints: boolean;
1227
+ inputDevice: import("../types").InputDevice;
1426
1228
  suggestedBinding: {
1427
1229
  element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
1428
1230
  midPoint?: import("@excalidraw/math").GlobalPoint;
1429
1231
  } | null;
1232
+ textToolHover: {
1233
+ type: "text";
1234
+ elementId: import("@excalidraw/element/types").ExcalidrawElement["id"];
1235
+ } | {
1236
+ type: "container";
1237
+ elementId: import("@excalidraw/element/types").ExcalidrawElement["id"];
1238
+ } | {
1239
+ type: "arrow";
1240
+ elementId: import("@excalidraw/element/types").ExcalidrawArrowElement["id"];
1241
+ anchor: "start" | "end" | "label";
1242
+ } | null;
1430
1243
  frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
1431
1244
  frameRendering: {
1432
1245
  enabled: boolean;
@@ -1434,9 +1247,9 @@ export declare const actionZoomToFit: {
1434
1247
  outline: boolean;
1435
1248
  clip: boolean;
1436
1249
  };
1437
- editingFrame: string | null;
1438
- elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
1439
- editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
1250
+ editingFrame: import("@excalidraw/element/types").ExcalidrawFrameLikeElement["id"] | null;
1251
+ elementsToHighlight: readonly import("@excalidraw/element/types").NonDeletedExcalidrawElement[] | null;
1252
+ editingTextElement: import("@excalidraw/element/types").ExcalidrawTextElement | null;
1440
1253
  activeTool: {
1441
1254
  lastActiveTool: import("../types").ActiveTool | null;
1442
1255
  locked: boolean;
@@ -1453,11 +1266,14 @@ export declare const actionZoomToFit: {
1453
1266
  exportWithDarkMode: boolean;
1454
1267
  exportScale: number;
1455
1268
  currentItemStrokeColor: string;
1269
+ currentItemStickynoteStrokeColor: string;
1270
+ currentItemStickynoteBackgroundColor: string;
1456
1271
  currentItemBackgroundColor: string;
1457
- currentItemFillStyle: ExcalidrawElement["fillStyle"];
1458
- currentItemStrokeWidth: number;
1459
- currentItemStrokeStyle: ExcalidrawElement["strokeStyle"];
1272
+ currentItemFillStyle: import("@excalidraw/element/types").ExcalidrawElement["fillStyle"];
1273
+ currentItemStrokeWidthKey: import("@excalidraw/common").StrokeWidthKey;
1274
+ currentItemStrokeStyle: import("@excalidraw/element/types").ExcalidrawElement["strokeStyle"];
1460
1275
  currentItemRoughness: number;
1276
+ currentItemStrokeVariability: import("@excalidraw/element/types").StrokeVariability;
1461
1277
  currentItemOpacity: number;
1462
1278
  currentItemFontFamily: import("@excalidraw/element/types").FontFamilyValues;
1463
1279
  currentItemFontSize: number;
@@ -1468,6 +1284,7 @@ export declare const actionZoomToFit: {
1468
1284
  currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
1469
1285
  currentItemArrowType: "sharp" | "round" | "elbow";
1470
1286
  viewBackgroundColor: string;
1287
+ scrollConstraints: import("../types").ScrollConstraints | null;
1471
1288
  cursorButton: "up" | "down";
1472
1289
  scrolledOutside: boolean;
1473
1290
  name: string | null;
@@ -1490,7 +1307,7 @@ export declare const actionZoomToFit: {
1490
1307
  name: "settings";
1491
1308
  } | {
1492
1309
  name: "elementLinkSelector";
1493
- sourceElementId: ExcalidrawElement["id"];
1310
+ sourceElementId: import("@excalidraw/element/types").ExcalidrawElement["id"];
1494
1311
  } | {
1495
1312
  name: "charts";
1496
1313
  data: import("../charts").Spreadsheet;
@@ -1515,6 +1332,7 @@ export declare const actionZoomToFit: {
1515
1332
  duration?: number;
1516
1333
  } | null;
1517
1334
  zenModeEnabled: boolean;
1335
+ minimapEnabled: boolean;
1518
1336
  theme: import("@excalidraw/element/types").Theme;
1519
1337
  gridSize: number;
1520
1338
  gridStep: number;
@@ -1542,12 +1360,10 @@ export declare const actionZoomToFit: {
1542
1360
  y: number;
1543
1361
  } | null;
1544
1362
  objectsSnapModeEnabled: boolean;
1545
- userToFollow: import("../types").UserToFollow | null;
1546
- followedBy: Set<import("../types").SocketId>;
1547
1363
  isCropping: boolean;
1548
- croppingElementId: ExcalidrawElement["id"] | null;
1364
+ croppingElementId: import("@excalidraw/element/types").ExcalidrawElement["id"] | null;
1549
1365
  searchMatches: Readonly<{
1550
- focusedId: ExcalidrawElement["id"] | null;
1366
+ focusedId: import("@excalidraw/element/types").ExcalidrawElement["id"] | null;
1551
1367
  matches: readonly import("../types").SearchMatch[];
1552
1368
  }> | null;
1553
1369
  activeLockedId: string | null;
@@ -1555,6 +1371,14 @@ export declare const actionZoomToFit: {
1555
1371
  [groupId: string]: true;
1556
1372
  };
1557
1373
  bindMode: import("@excalidraw/element/types").BindMode;
1374
+ colorTopPicks: {
1375
+ elementStroke: readonly string[] | null;
1376
+ elementBackground: readonly string[] | null;
1377
+ bucketFill: readonly string[] | null;
1378
+ stickyNoteStroke: readonly string[] | null;
1379
+ stickyNoteBackground: readonly string[] | null;
1380
+ };
1381
+ fontTopPicks: readonly import("@excalidraw/element/types").FontFamilyValues[] | null;
1558
1382
  };
1559
1383
  captureUpdate: "EVENTUALLY";
1560
1384
  };
@@ -1563,497 +1387,5 @@ export declare const actionZoomToFit: {
1563
1387
  keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
1564
1388
  };
1565
1389
  export declare const actionToggleTheme: import("./types").Action<import("@excalidraw/element/types").Theme> & {
1566
- keyTest?: ((event: React.KeyboardEvent | KeyboardEvent, appState: AppState, elements: readonly ExcalidrawElement[], app: import("../types").AppClassProperties) => boolean) | undefined;
1567
- };
1568
- export declare const actionToggleEraserTool: {
1569
- name: "toggleEraserTool";
1570
- label: string;
1571
- trackEvent: {
1572
- category: "toolbar";
1573
- };
1574
- perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: unknown, app: import("../types").AppClassProperties) => {
1575
- appState: {
1576
- selectedElementIds: {};
1577
- selectedGroupIds: {};
1578
- activeEmbeddable: null;
1579
- activeTool: {
1580
- lastActiveTool: import("../types").ActiveTool | null;
1581
- locked: boolean;
1582
- fromSelection: boolean;
1583
- } & import("../types").ActiveTool;
1584
- contextMenu: {
1585
- items: import("../components/ContextMenu").ContextMenuItems;
1586
- top: number;
1587
- left: number;
1588
- } | null;
1589
- showWelcomeScreen: boolean;
1590
- isLoading: boolean;
1591
- errorMessage: React.ReactNode;
1592
- newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
1593
- resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
1594
- multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
1595
- selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
1596
- isBindingEnabled: boolean;
1597
- bindingPreference: "enabled" | "disabled";
1598
- isMidpointSnappingEnabled: boolean;
1599
- startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
1600
- suggestedBinding: {
1601
- element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
1602
- midPoint?: import("@excalidraw/math").GlobalPoint;
1603
- } | null;
1604
- frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
1605
- frameRendering: {
1606
- enabled: boolean;
1607
- name: boolean;
1608
- outline: boolean;
1609
- clip: boolean;
1610
- };
1611
- editingFrame: string | null;
1612
- elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
1613
- editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
1614
- preferredSelectionTool: {
1615
- type: "selection" | "lasso";
1616
- initialized: boolean;
1617
- };
1618
- penMode: boolean;
1619
- penDetected: boolean;
1620
- exportBackground: boolean;
1621
- exportEmbedScene: boolean;
1622
- exportWithDarkMode: boolean;
1623
- exportScale: number;
1624
- currentItemStrokeColor: string;
1625
- currentItemBackgroundColor: string;
1626
- currentItemFillStyle: ExcalidrawElement["fillStyle"];
1627
- currentItemStrokeWidth: number;
1628
- currentItemStrokeStyle: ExcalidrawElement["strokeStyle"];
1629
- currentItemRoughness: number;
1630
- currentItemOpacity: number;
1631
- currentItemFontFamily: import("@excalidraw/element/types").FontFamilyValues;
1632
- currentItemFontSize: number;
1633
- currentItemTextAlign: import("@excalidraw/element/types").TextAlign;
1634
- currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
1635
- currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
1636
- currentHoveredFontFamily: import("@excalidraw/element/types").FontFamilyValues | null;
1637
- currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
1638
- currentItemArrowType: "sharp" | "round" | "elbow";
1639
- viewBackgroundColor: string;
1640
- scrollX: number;
1641
- scrollY: number;
1642
- cursorButton: "up" | "down";
1643
- scrolledOutside: boolean;
1644
- name: string | null;
1645
- isResizing: boolean;
1646
- isRotating: boolean;
1647
- zoom: import("../types").Zoom;
1648
- openMenu: "canvas" | null;
1649
- openPopup: "canvasBackground" | "elementBackground" | "elementStroke" | "fontFamily" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
1650
- openSidebar: {
1651
- name: import("../types").SidebarName;
1652
- tab?: import("../types").SidebarTabName;
1653
- } | null;
1654
- openDialog: null | {
1655
- name: "imageExport" | "help" | "jsonExport";
1656
- } | {
1657
- name: "ttd";
1658
- tab: "text-to-diagram" | "mermaid";
1659
- } | {
1660
- name: "commandPalette";
1661
- } | {
1662
- name: "settings";
1663
- } | {
1664
- name: "elementLinkSelector";
1665
- sourceElementId: ExcalidrawElement["id"];
1666
- } | {
1667
- name: "charts";
1668
- data: import("../charts").Spreadsheet;
1669
- rawText: string;
1670
- };
1671
- defaultSidebarDockedPreference: boolean;
1672
- lastPointerDownWith: import("@excalidraw/element/types").PointerType;
1673
- hoveredElementIds: Readonly<{
1674
- [id: string]: true;
1675
- }>;
1676
- previousSelectedElementIds: {
1677
- [id: string]: true;
1678
- };
1679
- selectedElementsAreBeingDragged: boolean;
1680
- shouldCacheIgnoreZoom: boolean;
1681
- toast: {
1682
- message: React.ReactNode;
1683
- closable?: boolean;
1684
- duration?: number;
1685
- } | null;
1686
- zenModeEnabled: boolean;
1687
- theme: import("@excalidraw/element/types").Theme;
1688
- gridSize: number;
1689
- gridStep: number;
1690
- gridModeEnabled: boolean;
1691
- viewModeEnabled: boolean;
1692
- editingGroupId: import("@excalidraw/element/types").GroupId | null;
1693
- width: number;
1694
- height: number;
1695
- offsetTop: number;
1696
- offsetLeft: number;
1697
- fileHandle: FileSystemFileHandle | null;
1698
- collaborators: Map<import("../types").SocketId, import("../types").Collaborator>;
1699
- stats: {
1700
- open: boolean;
1701
- panels: number;
1702
- };
1703
- showHyperlinkPopup: false | "info" | "editor";
1704
- selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
1705
- snapLines: readonly import("../snapping").SnapLine[];
1706
- originSnapOffset: {
1707
- x: number;
1708
- y: number;
1709
- } | null;
1710
- objectsSnapModeEnabled: boolean;
1711
- userToFollow: import("../types").UserToFollow | null;
1712
- followedBy: Set<import("../types").SocketId>;
1713
- isCropping: boolean;
1714
- croppingElementId: ExcalidrawElement["id"] | null;
1715
- searchMatches: Readonly<{
1716
- focusedId: ExcalidrawElement["id"] | null;
1717
- matches: readonly import("../types").SearchMatch[];
1718
- }> | null;
1719
- activeLockedId: string | null;
1720
- lockedMultiSelections: {
1721
- [groupId: string]: true;
1722
- };
1723
- bindMode: import("@excalidraw/element/types").BindMode;
1724
- };
1725
- captureUpdate: "IMMEDIATELY";
1726
- };
1727
- keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
1728
- } & {
1729
- keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
1730
- };
1731
- export declare const actionToggleLassoTool: {
1732
- name: "toggleLassoTool";
1733
- label: string;
1734
- icon: import("react/jsx-runtime").JSX.Element;
1735
- trackEvent: {
1736
- category: "toolbar";
1737
- };
1738
- predicate: (elements: readonly ExcalidrawElement[], appState: AppState, props: import("../types").ExcalidrawProps, app: import("../types").AppClassProperties) => boolean;
1739
- perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: unknown, app: import("../types").AppClassProperties) => {
1740
- appState: {
1741
- selectedElementIds: {};
1742
- selectedGroupIds: {};
1743
- activeEmbeddable: null;
1744
- activeTool: {
1745
- lastActiveTool: import("../types").ActiveTool | null;
1746
- locked: boolean;
1747
- fromSelection: boolean;
1748
- } & import("../types").ActiveTool;
1749
- contextMenu: {
1750
- items: import("../components/ContextMenu").ContextMenuItems;
1751
- top: number;
1752
- left: number;
1753
- } | null;
1754
- showWelcomeScreen: boolean;
1755
- isLoading: boolean;
1756
- errorMessage: React.ReactNode;
1757
- newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
1758
- resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
1759
- multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
1760
- selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
1761
- isBindingEnabled: boolean;
1762
- bindingPreference: "enabled" | "disabled";
1763
- isMidpointSnappingEnabled: boolean;
1764
- startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
1765
- suggestedBinding: {
1766
- element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
1767
- midPoint?: import("@excalidraw/math").GlobalPoint;
1768
- } | null;
1769
- frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
1770
- frameRendering: {
1771
- enabled: boolean;
1772
- name: boolean;
1773
- outline: boolean;
1774
- clip: boolean;
1775
- };
1776
- editingFrame: string | null;
1777
- elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
1778
- editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
1779
- preferredSelectionTool: {
1780
- type: "selection" | "lasso";
1781
- initialized: boolean;
1782
- };
1783
- penMode: boolean;
1784
- penDetected: boolean;
1785
- exportBackground: boolean;
1786
- exportEmbedScene: boolean;
1787
- exportWithDarkMode: boolean;
1788
- exportScale: number;
1789
- currentItemStrokeColor: string;
1790
- currentItemBackgroundColor: string;
1791
- currentItemFillStyle: ExcalidrawElement["fillStyle"];
1792
- currentItemStrokeWidth: number;
1793
- currentItemStrokeStyle: ExcalidrawElement["strokeStyle"];
1794
- currentItemRoughness: number;
1795
- currentItemOpacity: number;
1796
- currentItemFontFamily: import("@excalidraw/element/types").FontFamilyValues;
1797
- currentItemFontSize: number;
1798
- currentItemTextAlign: import("@excalidraw/element/types").TextAlign;
1799
- currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
1800
- currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
1801
- currentHoveredFontFamily: import("@excalidraw/element/types").FontFamilyValues | null;
1802
- currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
1803
- currentItemArrowType: "sharp" | "round" | "elbow";
1804
- viewBackgroundColor: string;
1805
- scrollX: number;
1806
- scrollY: number;
1807
- cursorButton: "up" | "down";
1808
- scrolledOutside: boolean;
1809
- name: string | null;
1810
- isResizing: boolean;
1811
- isRotating: boolean;
1812
- zoom: import("../types").Zoom;
1813
- openMenu: "canvas" | null;
1814
- openPopup: "canvasBackground" | "elementBackground" | "elementStroke" | "fontFamily" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
1815
- openSidebar: {
1816
- name: import("../types").SidebarName;
1817
- tab?: import("../types").SidebarTabName;
1818
- } | null;
1819
- openDialog: null | {
1820
- name: "imageExport" | "help" | "jsonExport";
1821
- } | {
1822
- name: "ttd";
1823
- tab: "text-to-diagram" | "mermaid";
1824
- } | {
1825
- name: "commandPalette";
1826
- } | {
1827
- name: "settings";
1828
- } | {
1829
- name: "elementLinkSelector";
1830
- sourceElementId: ExcalidrawElement["id"];
1831
- } | {
1832
- name: "charts";
1833
- data: import("../charts").Spreadsheet;
1834
- rawText: string;
1835
- };
1836
- defaultSidebarDockedPreference: boolean;
1837
- lastPointerDownWith: import("@excalidraw/element/types").PointerType;
1838
- hoveredElementIds: Readonly<{
1839
- [id: string]: true;
1840
- }>;
1841
- previousSelectedElementIds: {
1842
- [id: string]: true;
1843
- };
1844
- selectedElementsAreBeingDragged: boolean;
1845
- shouldCacheIgnoreZoom: boolean;
1846
- toast: {
1847
- message: React.ReactNode;
1848
- closable?: boolean;
1849
- duration?: number;
1850
- } | null;
1851
- zenModeEnabled: boolean;
1852
- theme: import("@excalidraw/element/types").Theme;
1853
- gridSize: number;
1854
- gridStep: number;
1855
- gridModeEnabled: boolean;
1856
- viewModeEnabled: boolean;
1857
- editingGroupId: import("@excalidraw/element/types").GroupId | null;
1858
- width: number;
1859
- height: number;
1860
- offsetTop: number;
1861
- offsetLeft: number;
1862
- fileHandle: FileSystemFileHandle | null;
1863
- collaborators: Map<import("../types").SocketId, import("../types").Collaborator>;
1864
- stats: {
1865
- open: boolean;
1866
- panels: number;
1867
- };
1868
- showHyperlinkPopup: false | "info" | "editor";
1869
- selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
1870
- snapLines: readonly import("../snapping").SnapLine[];
1871
- originSnapOffset: {
1872
- x: number;
1873
- y: number;
1874
- } | null;
1875
- objectsSnapModeEnabled: boolean;
1876
- userToFollow: import("../types").UserToFollow | null;
1877
- followedBy: Set<import("../types").SocketId>;
1878
- isCropping: boolean;
1879
- croppingElementId: ExcalidrawElement["id"] | null;
1880
- searchMatches: Readonly<{
1881
- focusedId: ExcalidrawElement["id"] | null;
1882
- matches: readonly import("../types").SearchMatch[];
1883
- }> | null;
1884
- activeLockedId: string | null;
1885
- lockedMultiSelections: {
1886
- [groupId: string]: true;
1887
- };
1888
- bindMode: import("@excalidraw/element/types").BindMode;
1889
- };
1890
- captureUpdate: "NEVER";
1891
- };
1892
- } & {
1893
- keyTest?: undefined;
1894
- };
1895
- export declare const actionToggleHandTool: {
1896
- name: "toggleHandTool";
1897
- label: string;
1898
- trackEvent: {
1899
- category: "toolbar";
1900
- };
1901
- icon: import("react/jsx-runtime").JSX.Element;
1902
- viewMode: false;
1903
- perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: unknown, app: import("../types").AppClassProperties) => {
1904
- appState: {
1905
- selectedElementIds: {};
1906
- selectedGroupIds: {};
1907
- activeEmbeddable: null;
1908
- activeTool: {
1909
- lastActiveTool: import("../types").ActiveTool | null;
1910
- locked: boolean;
1911
- fromSelection: boolean;
1912
- } & import("../types").ActiveTool;
1913
- contextMenu: {
1914
- items: import("../components/ContextMenu").ContextMenuItems;
1915
- top: number;
1916
- left: number;
1917
- } | null;
1918
- showWelcomeScreen: boolean;
1919
- isLoading: boolean;
1920
- errorMessage: React.ReactNode;
1921
- newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
1922
- resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
1923
- multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
1924
- selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
1925
- isBindingEnabled: boolean;
1926
- bindingPreference: "enabled" | "disabled";
1927
- isMidpointSnappingEnabled: boolean;
1928
- startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
1929
- suggestedBinding: {
1930
- element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
1931
- midPoint?: import("@excalidraw/math").GlobalPoint;
1932
- } | null;
1933
- frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
1934
- frameRendering: {
1935
- enabled: boolean;
1936
- name: boolean;
1937
- outline: boolean;
1938
- clip: boolean;
1939
- };
1940
- editingFrame: string | null;
1941
- elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
1942
- editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
1943
- preferredSelectionTool: {
1944
- type: "selection" | "lasso";
1945
- initialized: boolean;
1946
- };
1947
- penMode: boolean;
1948
- penDetected: boolean;
1949
- exportBackground: boolean;
1950
- exportEmbedScene: boolean;
1951
- exportWithDarkMode: boolean;
1952
- exportScale: number;
1953
- currentItemStrokeColor: string;
1954
- currentItemBackgroundColor: string;
1955
- currentItemFillStyle: ExcalidrawElement["fillStyle"];
1956
- currentItemStrokeWidth: number;
1957
- currentItemStrokeStyle: ExcalidrawElement["strokeStyle"];
1958
- currentItemRoughness: number;
1959
- currentItemOpacity: number;
1960
- currentItemFontFamily: import("@excalidraw/element/types").FontFamilyValues;
1961
- currentItemFontSize: number;
1962
- currentItemTextAlign: import("@excalidraw/element/types").TextAlign;
1963
- currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
1964
- currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
1965
- currentHoveredFontFamily: import("@excalidraw/element/types").FontFamilyValues | null;
1966
- currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
1967
- currentItemArrowType: "sharp" | "round" | "elbow";
1968
- viewBackgroundColor: string;
1969
- scrollX: number;
1970
- scrollY: number;
1971
- cursorButton: "up" | "down";
1972
- scrolledOutside: boolean;
1973
- name: string | null;
1974
- isResizing: boolean;
1975
- isRotating: boolean;
1976
- zoom: import("../types").Zoom;
1977
- openMenu: "canvas" | null;
1978
- openPopup: "canvasBackground" | "elementBackground" | "elementStroke" | "fontFamily" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
1979
- openSidebar: {
1980
- name: import("../types").SidebarName;
1981
- tab?: import("../types").SidebarTabName;
1982
- } | null;
1983
- openDialog: null | {
1984
- name: "imageExport" | "help" | "jsonExport";
1985
- } | {
1986
- name: "ttd";
1987
- tab: "text-to-diagram" | "mermaid";
1988
- } | {
1989
- name: "commandPalette";
1990
- } | {
1991
- name: "settings";
1992
- } | {
1993
- name: "elementLinkSelector";
1994
- sourceElementId: ExcalidrawElement["id"];
1995
- } | {
1996
- name: "charts";
1997
- data: import("../charts").Spreadsheet;
1998
- rawText: string;
1999
- };
2000
- defaultSidebarDockedPreference: boolean;
2001
- lastPointerDownWith: import("@excalidraw/element/types").PointerType;
2002
- hoveredElementIds: Readonly<{
2003
- [id: string]: true;
2004
- }>;
2005
- previousSelectedElementIds: {
2006
- [id: string]: true;
2007
- };
2008
- selectedElementsAreBeingDragged: boolean;
2009
- shouldCacheIgnoreZoom: boolean;
2010
- toast: {
2011
- message: React.ReactNode;
2012
- closable?: boolean;
2013
- duration?: number;
2014
- } | null;
2015
- zenModeEnabled: boolean;
2016
- theme: import("@excalidraw/element/types").Theme;
2017
- gridSize: number;
2018
- gridStep: number;
2019
- gridModeEnabled: boolean;
2020
- viewModeEnabled: boolean;
2021
- editingGroupId: import("@excalidraw/element/types").GroupId | null;
2022
- width: number;
2023
- height: number;
2024
- offsetTop: number;
2025
- offsetLeft: number;
2026
- fileHandle: FileSystemFileHandle | null;
2027
- collaborators: Map<import("../types").SocketId, import("../types").Collaborator>;
2028
- stats: {
2029
- open: boolean;
2030
- panels: number;
2031
- };
2032
- showHyperlinkPopup: false | "info" | "editor";
2033
- selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
2034
- snapLines: readonly import("../snapping").SnapLine[];
2035
- originSnapOffset: {
2036
- x: number;
2037
- y: number;
2038
- } | null;
2039
- objectsSnapModeEnabled: boolean;
2040
- userToFollow: import("../types").UserToFollow | null;
2041
- followedBy: Set<import("../types").SocketId>;
2042
- isCropping: boolean;
2043
- croppingElementId: ExcalidrawElement["id"] | null;
2044
- searchMatches: Readonly<{
2045
- focusedId: ExcalidrawElement["id"] | null;
2046
- matches: readonly import("../types").SearchMatch[];
2047
- }> | null;
2048
- activeLockedId: string | null;
2049
- lockedMultiSelections: {
2050
- [groupId: string]: true;
2051
- };
2052
- bindMode: import("@excalidraw/element/types").BindMode;
2053
- };
2054
- captureUpdate: "IMMEDIATELY";
2055
- };
2056
- keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
2057
- } & {
2058
- keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
1390
+ keyTest?: ((event: React.KeyboardEvent | KeyboardEvent, appState: AppState, elements: readonly import("@excalidraw/element/types").ExcalidrawElement[], app: import("../types").AppClassProperties) => boolean) | undefined;
2059
1391
  };