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