@excalidraw/math 0.18.0-9ba0f5d → 0.18.0-9fbeaed

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