@excalidraw/common 0.18.0-d9e8a33 → 0.18.0-dabd83c

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