@excalidraw/math 0.18.0-4e0441e → 0.18.0-4e758db

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 (344) hide show
  1. package/dist/dev/index.js +313 -116
  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/bounds.d.ts +10 -0
  7. package/dist/types/common/src/colors.d.ts +81 -39
  8. package/dist/types/common/src/constants.d.ts +75 -34
  9. package/dist/types/common/src/editorInterface.d.ts +34 -0
  10. package/dist/types/common/src/font-metadata.d.ts +1 -3
  11. package/dist/types/common/src/index.d.ts +5 -0
  12. package/dist/types/common/src/keys.d.ts +5 -1
  13. package/dist/types/common/src/points.d.ts +1 -1
  14. package/dist/types/common/src/random.d.ts +7 -0
  15. package/dist/types/common/src/utility-types.d.ts +0 -1
  16. package/dist/types/common/src/utils.d.ts +45 -77
  17. package/dist/types/common/src/versionedSnapshotStore.d.ts +17 -0
  18. package/dist/types/element/src/Scene.d.ts +12 -8
  19. package/dist/types/element/src/align.d.ts +2 -2
  20. package/dist/types/element/src/arrowEndpointText.d.ts +49 -0
  21. package/dist/types/element/src/arrowheads.d.ts +3 -0
  22. package/dist/types/element/src/arrows/focus.d.ts +30 -0
  23. package/dist/types/element/src/arrows/helpers.d.ts +5 -0
  24. package/dist/types/element/src/binding.d.ts +79 -51
  25. package/dist/types/element/src/bounds.d.ts +25 -18
  26. package/dist/types/element/src/bucketFill.d.ts +110 -0
  27. package/dist/types/element/src/collision.d.ts +7 -2
  28. package/dist/types/element/src/comparisons.d.ts +10 -7
  29. package/dist/types/element/src/convertToShape.d.ts +23 -0
  30. package/dist/types/element/src/delta.d.ts +23 -1
  31. package/dist/types/element/src/distribute.d.ts +3 -2
  32. package/dist/types/element/src/dragElements.d.ts +30 -3
  33. package/dist/types/element/src/duplicate.d.ts +7 -6
  34. package/dist/types/element/src/elbowArrow.d.ts +2 -0
  35. package/dist/types/element/src/embeddable.d.ts +2 -2
  36. package/dist/types/element/src/flowchart.d.ts +11 -7
  37. package/dist/types/element/src/fractionalIndex.d.ts +4 -4
  38. package/dist/types/element/src/frame.d.ts +16 -11
  39. package/dist/types/element/src/groups.d.ts +9 -9
  40. package/dist/types/element/src/heading.d.ts +2 -1
  41. package/dist/types/element/src/image.d.ts +1 -11
  42. package/dist/types/element/src/index.d.ts +9 -4
  43. package/dist/types/element/src/linearElementEditor.d.ts +48 -30
  44. package/dist/types/element/src/mutateElement.d.ts +6 -2
  45. package/dist/types/element/src/newElement.d.ts +44 -8
  46. package/dist/types/element/src/renderElement.d.ts +1 -10
  47. package/dist/types/element/src/resizeElements.d.ts +12 -12
  48. package/dist/types/element/src/resizeTest.d.ts +6 -5
  49. package/dist/types/element/src/selection.d.ts +14 -14
  50. package/dist/types/element/src/shape.d.ts +21 -8
  51. package/dist/types/element/src/sizeHelpers.d.ts +6 -0
  52. package/dist/types/element/src/sortElements.d.ts +10 -0
  53. package/dist/types/element/src/stickyNote.d.ts +183 -0
  54. package/dist/types/element/src/textElement.d.ts +14 -10
  55. package/dist/types/element/src/textMeasurements.d.ts +1 -3
  56. package/dist/types/element/src/textWrapping.d.ts +26 -0
  57. package/dist/types/{excalidraw/data → element/src}/transform.d.ts +27 -8
  58. package/dist/types/element/src/transformHandles.d.ts +8 -27
  59. package/dist/types/element/src/typeChecks.d.ts +30 -31
  60. package/dist/types/element/src/types.d.ts +55 -20
  61. package/dist/types/element/src/utils.d.ts +15 -6
  62. package/dist/types/element/src/zindex.d.ts +7 -1
  63. package/dist/types/excalidraw/actions/actionAddToLibrary.d.ts +206 -219
  64. package/dist/types/excalidraw/actions/actionAlign.d.ts +12 -13
  65. package/dist/types/excalidraw/actions/actionBoundText.d.ts +122 -131
  66. package/dist/types/excalidraw/actions/actionCanvas.d.ts +446 -1594
  67. package/dist/types/excalidraw/actions/actionClipboard.d.ts +149 -919
  68. package/dist/types/excalidraw/actions/actionCropEditor.d.ts +59 -64
  69. package/dist/types/excalidraw/actions/actionDeleteSelected.d.ts +192 -208
  70. package/dist/types/excalidraw/actions/actionDeselect.d.ts +170 -0
  71. package/dist/types/excalidraw/actions/actionDistribute.d.ts +4 -6
  72. package/dist/types/excalidraw/actions/actionDuplicateSelection.d.ts +3 -4
  73. package/dist/types/excalidraw/actions/actionElementLink.d.ts +66 -77
  74. package/dist/types/excalidraw/actions/actionElementLock.d.ts +121 -130
  75. package/dist/types/excalidraw/actions/actionExport.d.ts +200 -1449
  76. package/dist/types/excalidraw/actions/actionFinalize.d.ts +11 -404
  77. package/dist/types/excalidraw/actions/actionFlip.d.ts +2 -3
  78. package/dist/types/excalidraw/actions/actionFrame.d.ts +318 -509
  79. package/dist/types/excalidraw/actions/actionGroup.d.ts +132 -149
  80. package/dist/types/excalidraw/actions/actionLinearEditor.d.ts +205 -196
  81. package/dist/types/excalidraw/actions/actionLink.d.ts +73 -78
  82. package/dist/types/excalidraw/actions/actionMenu.d.ts +60 -71
  83. package/dist/types/excalidraw/actions/actionNavigate.d.ts +18 -369
  84. package/dist/types/excalidraw/actions/actionProperties.d.ts +213 -2610
  85. package/dist/types/excalidraw/actions/actionSelectAll.d.ts +66 -75
  86. package/dist/types/excalidraw/actions/actionStyles.d.ts +60 -64
  87. package/dist/types/excalidraw/actions/actionTextAutoResize.d.ts +4 -4
  88. package/dist/types/excalidraw/actions/actionToggleArrowBinding.d.ts +186 -0
  89. package/dist/types/excalidraw/actions/actionToggleGridMode.d.ts +74 -80
  90. package/dist/types/excalidraw/actions/actionToggleMidpointSnapping.d.ts +186 -0
  91. package/dist/types/excalidraw/actions/actionToggleObjectsSnapMode.d.ts +73 -78
  92. package/dist/types/excalidraw/actions/actionToggleSearchMenu.d.ts +62 -74
  93. package/dist/types/excalidraw/actions/actionToggleShapeSwitch.d.ts +2 -2
  94. package/dist/types/excalidraw/actions/actionToggleStats.d.ts +72 -77
  95. package/dist/types/excalidraw/actions/actionToggleViewMode.d.ts +73 -78
  96. package/dist/types/excalidraw/actions/actionToggleZenMode.d.ts +73 -78
  97. package/dist/types/excalidraw/actions/actionZindex.d.ts +8 -9
  98. package/dist/types/excalidraw/actions/colorTargets.d.ts +39 -0
  99. package/dist/types/excalidraw/actions/index.d.ts +4 -2
  100. package/dist/types/excalidraw/actions/manager.d.ts +1 -0
  101. package/dist/types/excalidraw/actions/register.d.ts +2 -2
  102. package/dist/types/excalidraw/actions/shortcuts.d.ts +1 -1
  103. package/dist/types/excalidraw/actions/types.d.ts +11 -7
  104. package/dist/types/excalidraw/{animated-trail.d.ts → animatedTrail.d.ts} +4 -3
  105. package/dist/types/excalidraw/appState.d.ts +50 -25
  106. package/dist/types/excalidraw/charts/charts.bar.d.ts +2 -0
  107. package/dist/types/excalidraw/charts/charts.constants.d.ts +48 -0
  108. package/dist/types/excalidraw/charts/charts.helpers.d.ts +32 -0
  109. package/dist/types/excalidraw/charts/charts.line.d.ts +2 -0
  110. package/dist/types/excalidraw/charts/charts.parse.d.ts +10 -0
  111. package/dist/types/excalidraw/charts/charts.radar.d.ts +2 -0
  112. package/dist/types/excalidraw/charts/charts.types.d.ts +18 -0
  113. package/dist/types/excalidraw/charts/index.d.ts +7 -0
  114. package/dist/types/excalidraw/clipboard.d.ts +13 -38
  115. package/dist/types/excalidraw/components/Actions.d.ts +22 -14
  116. package/dist/types/excalidraw/components/ActiveConfirmDialog.d.ts +1 -1
  117. package/dist/types/excalidraw/components/App.arrowText.d.ts +104 -0
  118. package/dist/types/excalidraw/components/App.bucketFill.d.ts +48 -0
  119. package/dist/types/excalidraw/components/App.cursor.d.ts +38 -0
  120. package/dist/types/excalidraw/components/App.d.ts +552 -125
  121. package/dist/types/excalidraw/components/App.drawshape.d.ts +55 -0
  122. package/dist/types/excalidraw/components/App.flowchart.d.ts +21 -0
  123. package/dist/types/excalidraw/components/App.toolDrag.d.ts +63 -0
  124. package/dist/types/excalidraw/components/App.viewport.d.ts +73 -0
  125. package/dist/types/excalidraw/components/App.wheel.d.ts +33 -0
  126. package/dist/types/excalidraw/components/AppStateObserver.d.ts +37 -0
  127. package/dist/types/excalidraw/components/Card.d.ts +1 -3
  128. package/dist/types/excalidraw/components/ColorPicker/ColorInput.d.ts +2 -4
  129. package/dist/types/excalidraw/components/ColorPicker/ColorPicker.d.ts +9 -5
  130. package/dist/types/excalidraw/components/ColorPicker/CustomColorList.d.ts +3 -1
  131. package/dist/types/excalidraw/components/ColorPicker/Picker.d.ts +3 -1
  132. package/dist/types/excalidraw/components/ColorPicker/PickerColorList.d.ts +9 -2
  133. package/dist/types/excalidraw/components/ColorPicker/ShadeList.d.ts +4 -2
  134. package/dist/types/excalidraw/components/ColorPicker/TopPicks.d.ts +8 -1
  135. package/dist/types/excalidraw/components/ColorPicker/colorPickerUtils.d.ts +1 -2
  136. package/dist/types/excalidraw/components/ColorPicker/keyboardNavHandlers.d.ts +2 -2
  137. package/dist/types/excalidraw/components/ColorPicker/topPicksDnD.d.ts +31 -0
  138. package/dist/types/excalidraw/components/CommandPalette/defaultCommandPaletteItems.d.ts +1 -2
  139. package/dist/types/excalidraw/components/CommandPalette/types.d.ts +2 -4
  140. package/dist/types/excalidraw/components/ConvertElementTypePopup.d.ts +4 -4
  141. package/dist/types/excalidraw/components/CursorHint.d.ts +46 -0
  142. package/dist/types/excalidraw/components/DarkModeToggle.d.ts +1 -1
  143. package/dist/types/excalidraw/components/DefaultSidebar.d.ts +9 -13
  144. package/dist/types/excalidraw/components/ElementLinkDialog.d.ts +1 -1
  145. package/dist/types/excalidraw/components/Ellipsify.d.ts +1 -2
  146. package/dist/types/excalidraw/components/ErrorDialog.d.ts +1 -1
  147. package/dist/types/excalidraw/components/EyeDropper.d.ts +1 -2
  148. package/dist/types/excalidraw/components/FilledButton.d.ts +2 -1
  149. package/dist/types/excalidraw/components/FontPicker/keyboardNavHandlers.d.ts +0 -1
  150. package/dist/types/excalidraw/components/HelpDialog.d.ts +1 -1
  151. package/dist/types/excalidraw/components/HintViewer.d.ts +4 -3
  152. package/dist/types/excalidraw/components/IconButton.d.ts +48 -0
  153. package/dist/types/excalidraw/components/IconPicker.d.ts +14 -9
  154. package/dist/types/excalidraw/components/InlineIcon.d.ts +2 -2
  155. package/dist/types/excalidraw/components/Island.d.ts +7 -0
  156. package/dist/types/excalidraw/components/LaserPointerButton.d.ts +2 -4
  157. package/dist/types/excalidraw/components/LayerUI.d.ts +5 -2
  158. package/dist/types/excalidraw/components/LibraryMenu.d.ts +1 -1
  159. package/dist/types/excalidraw/components/LibraryMenuControlButtons.d.ts +1 -1
  160. package/dist/types/excalidraw/components/LibraryMenuHeaderContent.d.ts +1 -2
  161. package/dist/types/excalidraw/components/LibraryUnit.d.ts +2 -3
  162. package/dist/types/excalidraw/components/LoadingMessage.d.ts +0 -1
  163. package/dist/types/excalidraw/components/LockButton.d.ts +3 -4
  164. package/dist/types/excalidraw/components/MagicButton.d.ts +0 -2
  165. package/dist/types/excalidraw/components/MobileMenu.d.ts +4 -4
  166. package/dist/types/excalidraw/components/MobileToolbar.d.ts +9 -0
  167. package/dist/types/excalidraw/components/Modal.d.ts +0 -1
  168. package/dist/types/excalidraw/components/OverwriteConfirm/OverwriteConfirm.d.ts +1 -1
  169. package/dist/types/excalidraw/components/OverwriteConfirm/OverwriteConfirmState.d.ts +1 -1
  170. package/dist/types/excalidraw/components/PasteChartDialog.d.ts +4 -5
  171. package/dist/types/excalidraw/components/PenModeButton.d.ts +2 -5
  172. package/dist/types/excalidraw/components/Popover.d.ts +1 -3
  173. package/dist/types/excalidraw/components/PropertiesPopover.d.ts +1 -1
  174. package/dist/types/excalidraw/components/{ButtonIcon.d.ts → RadioButton.d.ts} +2 -5
  175. package/dist/types/excalidraw/components/RadioGroup.d.ts +0 -1
  176. package/dist/types/excalidraw/components/RadioSelection.d.ts +4 -4
  177. package/dist/types/excalidraw/components/Range.d.ts +10 -4
  178. package/dist/types/excalidraw/components/SVGLayer.d.ts +1 -1
  179. package/dist/types/excalidraw/components/ScrollableList.d.ts +0 -1
  180. package/dist/types/excalidraw/components/SearchMenu.d.ts +1 -1
  181. package/dist/types/excalidraw/components/Sidebar/Sidebar.d.ts +16 -22
  182. package/dist/types/excalidraw/components/Sidebar/SidebarHeader.d.ts +1 -1
  183. package/dist/types/excalidraw/components/Sidebar/SidebarTab.d.ts +1 -2
  184. package/dist/types/excalidraw/components/Sidebar/SidebarTabTrigger.d.ts +1 -2
  185. package/dist/types/excalidraw/components/Sidebar/SidebarTabTriggers.d.ts +1 -2
  186. package/dist/types/excalidraw/components/Sidebar/SidebarTabs.d.ts +1 -2
  187. package/dist/types/excalidraw/components/Spinner.d.ts +4 -4
  188. package/dist/types/excalidraw/components/Stats/Angle.d.ts +2 -2
  189. package/dist/types/excalidraw/components/Stats/CanvasGrid.d.ts +0 -1
  190. package/dist/types/excalidraw/components/Stats/Collapsible.d.ts +0 -1
  191. package/dist/types/excalidraw/components/Stats/Dimension.d.ts +2 -2
  192. package/dist/types/excalidraw/components/Stats/DragInput.d.ts +2 -3
  193. package/dist/types/excalidraw/components/Stats/MultiAngle.d.ts +2 -2
  194. package/dist/types/excalidraw/components/Stats/MultiDimension.d.ts +2 -2
  195. package/dist/types/excalidraw/components/Stats/MultiPosition.d.ts +2 -2
  196. package/dist/types/excalidraw/components/Stats/Position.d.ts +3 -3
  197. package/dist/types/excalidraw/components/Stats/index.d.ts +7 -8
  198. package/dist/types/excalidraw/components/Stats/utils.d.ts +1 -1
  199. package/dist/types/excalidraw/components/TTDDialog/Chat/ChatHistoryMenu.d.ts +15 -0
  200. package/dist/types/excalidraw/components/TTDDialog/Chat/ChatInterface.d.ts +23 -0
  201. package/dist/types/excalidraw/components/TTDDialog/Chat/ChatMessage.d.ts +14 -0
  202. package/dist/types/excalidraw/components/TTDDialog/Chat/TTDChatPanel.d.ts +27 -0
  203. package/dist/types/excalidraw/components/TTDDialog/Chat/index.d.ts +3 -0
  204. package/dist/types/excalidraw/components/TTDDialog/Chat/useChatAgent.d.ts +8 -0
  205. package/dist/types/excalidraw/components/TTDDialog/CodeMirrorEditor.d.ts +11 -0
  206. package/dist/types/excalidraw/components/TTDDialog/MermaidToExcalidraw.d.ts +3 -2
  207. package/dist/types/excalidraw/components/TTDDialog/TTDContext.d.ts +13 -0
  208. package/dist/types/excalidraw/components/TTDDialog/TTDDialog.d.ts +12 -29
  209. package/dist/types/excalidraw/components/TTDDialog/TTDDialogInput.d.ts +3 -3
  210. package/dist/types/excalidraw/components/TTDDialog/TTDDialogOutput.d.ts +5 -2
  211. package/dist/types/excalidraw/components/TTDDialog/TTDDialogPanel.d.ts +13 -9
  212. package/dist/types/excalidraw/components/TTDDialog/TTDDialogTab.d.ts +1 -2
  213. package/dist/types/excalidraw/components/TTDDialog/TTDDialogTabTrigger.d.ts +1 -2
  214. package/dist/types/excalidraw/components/TTDDialog/TTDDialogTabTriggers.d.ts +1 -2
  215. package/dist/types/excalidraw/components/TTDDialog/TTDPreviewPanel.d.ts +9 -0
  216. package/dist/types/excalidraw/components/TTDDialog/TTDWelcomeMessage.d.ts +1 -0
  217. package/dist/types/excalidraw/components/TTDDialog/TextToDiagram.d.ts +9 -0
  218. package/dist/types/excalidraw/components/TTDDialog/common.d.ts +16 -16
  219. package/dist/types/excalidraw/components/TTDDialog/hooks/useChatManagement.d.ts +13 -0
  220. package/dist/types/excalidraw/components/TTDDialog/hooks/useMermaidRenderer.d.ts +14 -0
  221. package/dist/types/excalidraw/components/TTDDialog/hooks/useTextGeneration.d.ts +7 -0
  222. package/dist/types/excalidraw/components/TTDDialog/mermaid-lang-lite.d.ts +2 -0
  223. package/dist/types/excalidraw/components/TTDDialog/types.d.ts +95 -0
  224. package/dist/types/excalidraw/components/TTDDialog/useTTDChatStorage.d.ts +22 -0
  225. package/dist/types/excalidraw/components/TTDDialog/utils/chat.d.ts +10 -0
  226. package/dist/types/excalidraw/components/TTDDialog/utils/mermaidAutoFix.d.ts +1 -0
  227. package/dist/types/excalidraw/components/TTDDialog/utils/mermaidError.d.ts +10 -0
  228. package/dist/types/excalidraw/components/TTDDialog/utils/mermaidValidation.d.ts +1 -0
  229. package/dist/types/excalidraw/components/Toast.d.ts +11 -7
  230. package/dist/types/excalidraw/components/ToolPopover.d.ts +3 -6
  231. package/dist/types/excalidraw/components/Toolbar.d.ts +11 -0
  232. package/dist/types/excalidraw/components/Tools.d.ts +151 -0
  233. package/dist/types/excalidraw/components/Trans.d.ts +2 -2
  234. package/dist/types/excalidraw/components/UserList.d.ts +3 -2
  235. package/dist/types/excalidraw/components/ViewportStatusFrame/ViewportStatusFrame.d.ts +11 -0
  236. package/dist/types/excalidraw/components/canvases/InteractiveCanvas.d.ts +10 -4
  237. package/dist/types/excalidraw/components/canvases/NewElementCanvas.d.ts +3 -0
  238. package/dist/types/excalidraw/components/canvases/StaticCanvas.d.ts +1 -1
  239. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenu.d.ts +48 -38
  240. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuContent.d.ts +7 -6
  241. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuGroup.d.ts +3 -3
  242. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuItem.d.ts +13 -22
  243. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuItemCheckbox.d.ts +5 -0
  244. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuItemContent.d.ts +5 -4
  245. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuItemContentRadio.d.ts +2 -2
  246. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuItemCustom.d.ts +2 -2
  247. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuItemLink.d.ts +6 -6
  248. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuSub.d.ts +23 -0
  249. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuSubContent.d.ts +8 -0
  250. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuSubTrigger.d.ts +12 -0
  251. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuTrigger.d.ts +3 -4
  252. package/dist/types/excalidraw/components/dropdownMenu/common.d.ts +2 -2
  253. package/dist/types/excalidraw/components/dropdownMenu/dropdownMenuUtils.d.ts +2 -0
  254. package/dist/types/excalidraw/components/footer/Footer.d.ts +3 -1
  255. package/dist/types/excalidraw/components/hoc/withInternalFallback.d.ts +1 -1
  256. package/dist/types/excalidraw/components/hyperlink/helpers.d.ts +3 -3
  257. package/dist/types/excalidraw/components/icons.d.ts +51 -22
  258. package/dist/types/excalidraw/components/main-menu/DefaultItems.d.ts +25 -3
  259. package/dist/types/excalidraw/components/main-menu/MainMenu.d.ts +39 -35
  260. package/dist/types/excalidraw/components/positionElementBesideCursor.d.ts +26 -0
  261. package/dist/types/excalidraw/components/shapeActionPredicates.d.ts +39 -0
  262. package/dist/types/excalidraw/data/blob.d.ts +354 -7
  263. package/dist/types/excalidraw/data/encode.d.ts +4 -4
  264. package/dist/types/excalidraw/data/encryption.d.ts +5 -5
  265. package/dist/types/excalidraw/data/filesystem.d.ts +5 -7
  266. package/dist/types/excalidraw/data/index.d.ts +8 -9
  267. package/dist/types/excalidraw/data/json.d.ts +183 -3
  268. package/dist/types/excalidraw/data/library.d.ts +25 -10
  269. package/dist/types/excalidraw/data/resave.d.ts +7 -2
  270. package/dist/types/excalidraw/data/restore.d.ts +25 -10
  271. package/dist/types/excalidraw/drawShapeTrail.d.ts +16 -0
  272. package/dist/types/excalidraw/editor-jotai.d.ts +11 -11
  273. package/dist/types/excalidraw/eraser/index.d.ts +2 -3
  274. package/dist/types/excalidraw/errors.d.ts +14 -0
  275. package/dist/types/excalidraw/fonts/Fonts.d.ts +3 -2
  276. package/dist/types/excalidraw/hooks/useAppStateValue.d.ts +29 -0
  277. package/dist/types/excalidraw/hooks/useLibraryItemSvg.d.ts +1 -1
  278. package/dist/types/excalidraw/hooks/useOutsideClick.d.ts +4 -3
  279. package/dist/types/excalidraw/hooks/useScrollPosition.d.ts +1 -2
  280. package/dist/types/excalidraw/hooks/useTextEditorFocus.d.ts +5 -5
  281. package/dist/types/excalidraw/i18n.d.ts +2 -2
  282. package/dist/types/excalidraw/{laser-trails.d.ts → laserTrails.d.ts} +5 -7
  283. package/dist/types/excalidraw/lasso/index.d.ts +2 -3
  284. package/dist/types/excalidraw/lasso/utils.d.ts +2 -0
  285. package/dist/types/excalidraw/renderer/animation.d.ts +16 -0
  286. package/dist/types/excalidraw/renderer/helpers.d.ts +31 -8
  287. package/dist/types/excalidraw/renderer/interactiveScene.d.ts +7 -15
  288. package/dist/types/excalidraw/scene/Renderer.d.ts +477 -18
  289. package/dist/types/excalidraw/scene/export.d.ts +4 -4
  290. package/dist/types/excalidraw/scene/index.d.ts +2 -2
  291. package/dist/types/excalidraw/scene/types.d.ts +27 -8
  292. package/dist/types/excalidraw/snapping.d.ts +12 -12
  293. package/dist/types/excalidraw/subset/harfbuzz/harfbuzz-bindings.d.ts +1 -1
  294. package/dist/types/excalidraw/subset/harfbuzz/harfbuzz-loader.d.ts +1 -1
  295. package/dist/types/excalidraw/subset/harfbuzz/harfbuzz-wasm.d.ts +1 -1
  296. package/dist/types/excalidraw/subset/woff2/woff2-loader.d.ts +2 -2
  297. package/dist/types/excalidraw/subset/woff2/woff2-wasm.d.ts +1 -1
  298. package/dist/types/excalidraw/textAutoResizeHandle.d.ts +15 -0
  299. package/dist/types/excalidraw/types.d.ts +566 -55
  300. package/dist/types/excalidraw/viewport.d.ts +280 -0
  301. package/dist/types/excalidraw/wysiwyg/textWysiwyg.d.ts +8 -5
  302. package/dist/types/fractional-indexing/src/index.d.ts +29 -0
  303. package/dist/types/laser-pointer/src/index.d.ts +2 -0
  304. package/dist/types/laser-pointer/src/math.d.ts +16 -0
  305. package/dist/types/laser-pointer/src/simplify.d.ts +2 -0
  306. package/dist/types/laser-pointer/src/state.d.ts +36 -0
  307. package/dist/types/math/src/constants.d.ts +0 -1
  308. package/dist/types/math/src/curve.d.ts +23 -13
  309. package/dist/types/math/src/index.d.ts +1 -0
  310. package/dist/types/math/src/pca.d.ts +79 -0
  311. package/dist/types/math/src/point.d.ts +8 -2
  312. package/dist/types/math/src/polygon.d.ts +26 -2
  313. package/dist/types/math/src/range.d.ts +1 -3
  314. package/dist/types/math/src/segment.d.ts +9 -3
  315. package/dist/types/math/src/types.d.ts +25 -1
  316. package/dist/types/utils/src/export.d.ts +9 -8
  317. package/dist/types/utils/src/index.d.ts +1 -2
  318. package/dist/types/utils/src/shape.d.ts +8 -8
  319. package/package.json +2 -2
  320. package/dist/types/excalidraw/actions/actionEmbeddable.d.ts +0 -190
  321. package/dist/types/excalidraw/animation-frame-handler.d.ts +0 -16
  322. package/dist/types/excalidraw/charts.d.ts +0 -27
  323. package/dist/types/excalidraw/components/DiagramToCodePlugin/DiagramToCodePlugin.d.ts +0 -4
  324. package/dist/types/excalidraw/components/ExcalidrawLogo.d.ts +0 -16
  325. package/dist/types/excalidraw/components/FollowMode/FollowMode.d.ts +0 -10
  326. package/dist/types/excalidraw/components/HandButton.d.ts +0 -10
  327. package/dist/types/excalidraw/components/InitializeApp.d.ts +0 -10
  328. package/dist/types/excalidraw/components/MobileToolBar.d.ts +0 -11
  329. package/dist/types/excalidraw/components/TTDDialog/TTDDialogTrigger.d.ts +0 -8
  330. package/dist/types/excalidraw/components/ToolButton.d.ts +0 -49
  331. package/dist/types/excalidraw/components/footer/FooterCenter.d.ts +0 -8
  332. package/dist/types/excalidraw/components/live-collaboration/LiveCollaborationTrigger.d.ts +0 -10
  333. package/dist/types/excalidraw/components/shapes.d.ts +0 -190
  334. package/dist/types/excalidraw/components/welcome-screen/WelcomeScreen.Center.d.ts +0 -58
  335. package/dist/types/excalidraw/components/welcome-screen/WelcomeScreen.Hints.d.ts +0 -19
  336. package/dist/types/excalidraw/components/welcome-screen/WelcomeScreen.d.ts +0 -85
  337. package/dist/types/excalidraw/cursor.d.ts +0 -5
  338. package/dist/types/excalidraw/data/reconcile.d.ts +0 -7
  339. package/dist/types/excalidraw/index.d.ts +0 -47
  340. package/dist/types/excalidraw/polyfill.d.ts +0 -2
  341. package/dist/types/excalidraw/scene/scroll.d.ts +0 -23
  342. package/dist/types/excalidraw/scene/zoom.d.ts +0 -12
  343. package/dist/types/utils/src/bbox.d.ts +0 -9
  344. package/dist/types/utils/src/withinBounds.d.ts +0 -19
@@ -1,19 +1,6 @@
1
- /// <reference types="react" />
2
- import { type SceneBounds } from "@excalidraw/element";
3
- import type { ExcalidrawElement } from "@excalidraw/element/types";
4
- import type { AppState, Offsets } from "../types";
5
- export declare const actionChangeViewBackgroundColor: {
6
- name: "changeViewBackgroundColor";
7
- label: string;
8
- trackEvent: false;
9
- predicate: (elements: readonly ExcalidrawElement[], appState: AppState, props: import("../types").ExcalidrawProps, app: import("../types").AppClassProperties) => boolean;
10
- perform: (_: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, value: any) => {
11
- appState: any;
12
- captureUpdate: "IMMEDIATELY" | "EVENTUALLY";
13
- };
14
- PanelComponent: ({ elements, appState, updateData, appProps, data }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
15
- } & {
16
- keyTest?: undefined;
1
+ import type { AppState } from "../types";
2
+ export declare const actionChangeViewBackgroundColor: import("./types").Action<Partial<AppState>> & {
3
+ keyTest?: ((event: React.KeyboardEvent | KeyboardEvent, appState: AppState, elements: readonly import("@excalidraw/element/types").ExcalidrawElement[], app: import("../types").AppClassProperties) => boolean) | undefined;
17
4
  };
18
5
  export declare const actionClearCanvas: {
19
6
  name: "clearCanvas";
@@ -22,8 +9,8 @@ export declare const actionClearCanvas: {
22
9
  trackEvent: {
23
10
  category: "canvas";
24
11
  };
25
- predicate: (elements: readonly ExcalidrawElement[], appState: AppState, props: import("../types").ExcalidrawProps, app: import("../types").AppClassProperties) => boolean;
26
- perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: any, app: import("../types").AppClassProperties) => {
12
+ predicate: (elements: readonly import("@excalidraw/element/types").ExcalidrawElement[], appState: AppState, props: import("../types").ExcalidrawProps, app: import("../types").AppClassProperties) => boolean;
13
+ perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: unknown, app: import("../types").AppClassProperties) => {
27
14
  elements: import("@excalidraw/element/types").OrderedExcalidrawElement[];
28
15
  appState: {
29
16
  files: {};
@@ -39,12 +26,12 @@ export declare const actionClearCanvas: {
39
26
  open: boolean;
40
27
  panels: number;
41
28
  };
42
- pasteDialog: {
43
- shown: false;
44
- data: null;
45
- } | {
46
- shown: true;
47
- 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;
48
35
  };
49
36
  activeTool: {
50
37
  lastActiveTool: import("../types").ActiveTool | null;
@@ -59,31 +46,35 @@ export declare const actionClearCanvas: {
59
46
  clip: boolean;
60
47
  };
61
48
  name: string | null;
62
- zoom: Readonly<{
63
- value: import("../types").NormalizedZoomValue;
64
- }>;
49
+ zoom: import("../types").Zoom;
65
50
  scrollX: number;
66
51
  scrollY: number;
67
52
  viewModeEnabled: boolean;
68
- openDialog: {
53
+ openDialog: null | {
69
54
  name: "imageExport" | "help" | "jsonExport";
70
55
  } | {
71
56
  name: "ttd";
72
- tab: "mermaid" | "text-to-diagram";
57
+ tab: "text-to-diagram" | "mermaid";
73
58
  } | {
74
59
  name: "commandPalette";
60
+ } | {
61
+ name: "settings";
75
62
  } | {
76
63
  name: "elementLinkSelector";
77
- sourceElementId: string;
78
- } | null;
79
- editingGroupId: string | null;
64
+ sourceElementId: import("@excalidraw/element/types").ExcalidrawElement["id"];
65
+ } | {
66
+ name: "charts";
67
+ data: import("../charts").Spreadsheet;
68
+ rawText: string;
69
+ };
70
+ editingGroupId: import("@excalidraw/element/types").GroupId | null;
80
71
  selectedElementIds: Readonly<{
81
72
  [id: string]: true;
82
73
  }>;
83
74
  frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
84
75
  activeEmbeddable: {
85
76
  element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
86
- state: "active" | "hover";
77
+ state: "hover" | "active";
87
78
  } | null;
88
79
  selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
89
80
  selectedGroupIds: {
@@ -91,40 +82,37 @@ export declare const actionClearCanvas: {
91
82
  };
92
83
  selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
93
84
  multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
85
+ newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
94
86
  isBindingEnabled: boolean;
95
- suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
87
+ isMidpointSnappingEnabled: boolean;
88
+ suggestedBinding: {
89
+ element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
90
+ midPoint?: import("@excalidraw/math").GlobalPoint;
91
+ } | null;
92
+ hoveredArrowTextAnchor: {
93
+ elementId: import("@excalidraw/element/types").ExcalidrawArrowElement["id"];
94
+ anchor: "start" | "end" | "label";
95
+ } | null;
96
96
  isRotating: boolean;
97
- elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
98
- collaborators: Map<import("../types").SocketId, Readonly<{
99
- pointer?: import("../types").CollaboratorPointer | undefined;
100
- button?: "up" | "down" | undefined;
101
- selectedElementIds?: Readonly<{
102
- [id: string]: true;
103
- }> | undefined;
104
- username?: string | null | undefined;
105
- userState?: import("@excalidraw/common").UserIdleState | undefined;
106
- color?: {
107
- background: string;
108
- stroke: string;
109
- } | undefined;
110
- avatarUrl?: string | undefined;
111
- id?: string | undefined;
112
- socketId?: import("../types").SocketId | undefined;
113
- isCurrentUser?: boolean | undefined;
114
- isInCall?: boolean | undefined;
115
- isSpeaking?: boolean | undefined;
116
- isMuted?: boolean | undefined;
117
- }>>;
97
+ elementsToHighlight: readonly import("@excalidraw/element/types").NonDeletedExcalidrawElement[] | null;
98
+ collaborators: Map<import("../types").SocketId, import("../types").Collaborator>;
118
99
  snapLines: readonly import("../snapping").SnapLine[];
119
100
  zenModeEnabled: boolean;
120
- editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
101
+ editingTextElement: import("@excalidraw/element/types").ExcalidrawTextElement | null;
121
102
  isCropping: boolean;
122
- croppingElementId: string | null;
103
+ croppingElementId: import("@excalidraw/element/types").ExcalidrawElement["id"] | null;
123
104
  searchMatches: Readonly<{
124
- focusedId: string | null;
105
+ focusedId: import("@excalidraw/element/types").ExcalidrawElement["id"] | null;
125
106
  matches: readonly import("../types").SearchMatch[];
126
107
  }> | null;
127
108
  activeLockedId: string | null;
109
+ hoveredElementIds: Readonly<{
110
+ [id: string]: true;
111
+ }>;
112
+ shouldCacheIgnoreZoom: boolean;
113
+ exportScale: number;
114
+ currentItemArrowType: "sharp" | "round" | "elbow";
115
+ bindMode: import("@excalidraw/element/types").BindMode;
128
116
  contextMenu: {
129
117
  items: import("../components/ContextMenu").ContextMenuItems;
130
118
  top: number;
@@ -132,70 +120,65 @@ export declare const actionClearCanvas: {
132
120
  } | null;
133
121
  showWelcomeScreen: boolean;
134
122
  isLoading: boolean;
135
- errorMessage: import("react").ReactNode;
136
- newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
123
+ errorMessage: React.ReactNode;
137
124
  resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
138
- startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
139
- editingFrame: string | null;
125
+ boxSelectionMode: import("../types").BoxSelectionMode;
126
+ bindingPreference: "enabled" | "disabled";
127
+ inputDevice: import("../types").InputDevice;
128
+ editingFrame: import("@excalidraw/element/types").ExcalidrawFrameLikeElement["id"] | null;
140
129
  preferredSelectionTool: {
141
130
  type: "selection" | "lasso";
142
131
  initialized: boolean;
143
132
  };
144
133
  exportWithDarkMode: boolean;
145
- exportScale: number;
146
134
  currentItemStrokeColor: string;
135
+ currentItemStickynoteStrokeColor: string;
136
+ currentItemStickynoteBackgroundColor: string;
147
137
  currentItemBackgroundColor: string;
148
- currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
149
- currentItemStrokeWidth: number;
150
- currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
138
+ currentItemFillStyle: import("@excalidraw/element/types").ExcalidrawElement["fillStyle"];
139
+ currentItemStrokeWidthKey: import("@excalidraw/common").StrokeWidthKey;
140
+ currentItemStrokeStyle: import("@excalidraw/element/types").ExcalidrawElement["strokeStyle"];
151
141
  currentItemRoughness: number;
142
+ currentItemStrokeVariability: import("@excalidraw/element/types").StrokeVariability;
152
143
  currentItemOpacity: number;
153
- currentItemFontFamily: number;
144
+ currentItemFontFamily: import("@excalidraw/element/types").FontFamilyValues;
154
145
  currentItemFontSize: number;
155
- currentItemTextAlign: string;
146
+ currentItemTextAlign: import("@excalidraw/element/types").TextAlign;
156
147
  currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
157
148
  currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
158
- currentHoveredFontFamily: number | null;
149
+ currentHoveredFontFamily: import("@excalidraw/element/types").FontFamilyValues | null;
159
150
  currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
160
- currentItemArrowType: "round" | "sharp" | "elbow";
151
+ scrollConstraints: import("../types").ScrollConstraints | null;
161
152
  cursorButton: "up" | "down";
162
153
  scrolledOutside: boolean;
163
154
  isResizing: boolean;
164
155
  openMenu: "canvas" | null;
165
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
156
+ openPopup: "canvasBackground" | "elementBackground" | "elementStroke" | "fontFamily" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
166
157
  openSidebar: {
167
- name: string;
168
- tab?: string | undefined;
158
+ name: import("../types").SidebarName;
159
+ tab?: import("../types").SidebarTabName;
169
160
  } | null;
170
161
  defaultSidebarDockedPreference: boolean;
171
162
  lastPointerDownWith: import("@excalidraw/element/types").PointerType;
172
- hoveredElementIds: Readonly<{
173
- [id: string]: true;
174
- }>;
175
163
  previousSelectedElementIds: {
176
164
  [id: string]: true;
177
165
  };
178
166
  selectedElementsAreBeingDragged: boolean;
179
- shouldCacheIgnoreZoom: boolean;
180
167
  toast: {
181
- message: string;
182
- closable?: boolean | undefined;
183
- duration?: number | undefined;
168
+ message: React.ReactNode;
169
+ closable?: boolean;
170
+ duration?: number;
184
171
  } | null;
185
- fileHandle: import("browser-fs-access").FileSystemHandle | null;
186
- currentChartType: import("@excalidraw/element/types").ChartType;
187
- showHyperlinkPopup: false | "editor" | "info";
172
+ fileHandle: FileSystemFileHandle | null;
173
+ showHyperlinkPopup: false | "info" | "editor";
188
174
  originSnapOffset: {
189
175
  x: number;
190
176
  y: number;
191
177
  } | null;
192
178
  objectsSnapModeEnabled: boolean;
193
- userToFollow: import("../types").UserToFollow | null;
194
- followedBy: Set<import("../types").SocketId>;
195
179
  lockedMultiSelections: {
196
180
  [groupId: string]: true;
197
181
  };
198
- stylesPanelMode: "compact" | "full" | "mobile";
199
182
  };
200
183
  captureUpdate: "IMMEDIATELY";
201
184
  };
@@ -206,18 +189,17 @@ export declare const actionZoomIn: {
206
189
  name: "zoomIn";
207
190
  label: string;
208
191
  viewMode: true;
192
+ navigation: true;
209
193
  icon: import("react/jsx-runtime").JSX.Element;
210
194
  trackEvent: {
211
195
  category: "canvas";
212
196
  };
213
- perform: (_elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: any, app: import("../types").AppClassProperties) => {
197
+ predicate: (elements: readonly import("@excalidraw/element/types").ExcalidrawElement[], appState: AppState, appProps: import("../types").ExcalidrawProps, app: import("../types").AppClassProperties) => boolean;
198
+ perform: (_elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: unknown, app: import("../types").AppClassProperties) => {
214
199
  appState: {
215
- userToFollow: null;
200
+ zoom: import("../types").Zoom;
216
201
  scrollX: number;
217
202
  scrollY: number;
218
- zoom: {
219
- value: import("../types").NormalizedZoomValue;
220
- };
221
203
  contextMenu: {
222
204
  items: import("../components/ContextMenu").ContextMenuItems;
223
205
  top: number;
@@ -225,18 +207,28 @@ export declare const actionZoomIn: {
225
207
  } | null;
226
208
  showWelcomeScreen: boolean;
227
209
  isLoading: boolean;
228
- errorMessage: import("react").ReactNode;
210
+ errorMessage: React.ReactNode;
229
211
  activeEmbeddable: {
230
212
  element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
231
- state: "active" | "hover";
213
+ state: "hover" | "active";
232
214
  } | null;
233
215
  newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
234
216
  resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
235
217
  multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
236
218
  selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
237
219
  isBindingEnabled: boolean;
238
- startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
239
- suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
220
+ boxSelectionMode: import("../types").BoxSelectionMode;
221
+ bindingPreference: "enabled" | "disabled";
222
+ isMidpointSnappingEnabled: boolean;
223
+ inputDevice: import("../types").InputDevice;
224
+ suggestedBinding: {
225
+ element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
226
+ midPoint?: import("@excalidraw/math").GlobalPoint;
227
+ } | null;
228
+ hoveredArrowTextAnchor: {
229
+ elementId: import("@excalidraw/element/types").ExcalidrawArrowElement["id"];
230
+ anchor: "start" | "end" | "label";
231
+ } | null;
240
232
  frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
241
233
  frameRendering: {
242
234
  enabled: boolean;
@@ -244,9 +236,9 @@ export declare const actionZoomIn: {
244
236
  outline: boolean;
245
237
  clip: boolean;
246
238
  };
247
- editingFrame: string | null;
248
- elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
249
- editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
239
+ editingFrame: import("@excalidraw/element/types").ExcalidrawFrameLikeElement["id"] | null;
240
+ elementsToHighlight: readonly import("@excalidraw/element/types").NonDeletedExcalidrawElement[] | null;
241
+ editingTextElement: import("@excalidraw/element/types").ExcalidrawTextElement | null;
250
242
  activeTool: {
251
243
  lastActiveTool: import("../types").ActiveTool | null;
252
244
  locked: boolean;
@@ -263,43 +255,53 @@ export declare const actionZoomIn: {
263
255
  exportWithDarkMode: boolean;
264
256
  exportScale: number;
265
257
  currentItemStrokeColor: string;
258
+ currentItemStickynoteStrokeColor: string;
259
+ currentItemStickynoteBackgroundColor: string;
266
260
  currentItemBackgroundColor: string;
267
- currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
268
- currentItemStrokeWidth: number;
269
- currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
261
+ currentItemFillStyle: import("@excalidraw/element/types").ExcalidrawElement["fillStyle"];
262
+ currentItemStrokeWidthKey: import("@excalidraw/common").StrokeWidthKey;
263
+ currentItemStrokeStyle: import("@excalidraw/element/types").ExcalidrawElement["strokeStyle"];
270
264
  currentItemRoughness: number;
265
+ currentItemStrokeVariability: import("@excalidraw/element/types").StrokeVariability;
271
266
  currentItemOpacity: number;
272
- currentItemFontFamily: number;
267
+ currentItemFontFamily: import("@excalidraw/element/types").FontFamilyValues;
273
268
  currentItemFontSize: number;
274
- currentItemTextAlign: string;
269
+ currentItemTextAlign: import("@excalidraw/element/types").TextAlign;
275
270
  currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
276
271
  currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
277
- currentHoveredFontFamily: number | null;
272
+ currentHoveredFontFamily: import("@excalidraw/element/types").FontFamilyValues | null;
278
273
  currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
279
- currentItemArrowType: "round" | "sharp" | "elbow";
274
+ currentItemArrowType: "sharp" | "round" | "elbow";
280
275
  viewBackgroundColor: string;
276
+ scrollConstraints: import("../types").ScrollConstraints | null;
281
277
  cursorButton: "up" | "down";
282
278
  scrolledOutside: boolean;
283
279
  name: string | null;
284
280
  isResizing: boolean;
285
281
  isRotating: boolean;
286
282
  openMenu: "canvas" | null;
287
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
283
+ openPopup: "canvasBackground" | "elementBackground" | "elementStroke" | "fontFamily" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
288
284
  openSidebar: {
289
- name: string;
290
- tab?: string | undefined;
285
+ name: import("../types").SidebarName;
286
+ tab?: import("../types").SidebarTabName;
291
287
  } | null;
292
- openDialog: {
288
+ openDialog: null | {
293
289
  name: "imageExport" | "help" | "jsonExport";
294
290
  } | {
295
291
  name: "ttd";
296
- tab: "mermaid" | "text-to-diagram";
292
+ tab: "text-to-diagram" | "mermaid";
297
293
  } | {
298
294
  name: "commandPalette";
295
+ } | {
296
+ name: "settings";
299
297
  } | {
300
298
  name: "elementLinkSelector";
301
- sourceElementId: string;
302
- } | null;
299
+ sourceElementId: import("@excalidraw/element/types").ExcalidrawElement["id"];
300
+ } | {
301
+ name: "charts";
302
+ data: import("../charts").Spreadsheet;
303
+ rawText: string;
304
+ };
303
305
  defaultSidebarDockedPreference: boolean;
304
306
  lastPointerDownWith: import("@excalidraw/element/types").PointerType;
305
307
  selectedElementIds: Readonly<{
@@ -314,9 +316,9 @@ export declare const actionZoomIn: {
314
316
  selectedElementsAreBeingDragged: boolean;
315
317
  shouldCacheIgnoreZoom: boolean;
316
318
  toast: {
317
- message: string;
318
- closable?: boolean | undefined;
319
- duration?: number | undefined;
319
+ message: React.ReactNode;
320
+ closable?: boolean;
321
+ duration?: number;
320
322
  } | null;
321
323
  zenModeEnabled: boolean;
322
324
  theme: import("@excalidraw/element/types").Theme;
@@ -327,45 +329,18 @@ export declare const actionZoomIn: {
327
329
  selectedGroupIds: {
328
330
  [groupId: string]: boolean;
329
331
  };
330
- editingGroupId: string | null;
332
+ editingGroupId: import("@excalidraw/element/types").GroupId | null;
331
333
  width: number;
332
334
  height: number;
333
335
  offsetTop: number;
334
336
  offsetLeft: number;
335
- fileHandle: import("browser-fs-access").FileSystemHandle | null;
336
- collaborators: Map<import("../types").SocketId, Readonly<{
337
- pointer?: import("../types").CollaboratorPointer | undefined;
338
- button?: "up" | "down" | undefined;
339
- selectedElementIds?: Readonly<{
340
- [id: string]: true;
341
- }> | undefined;
342
- username?: string | null | undefined;
343
- userState?: import("@excalidraw/common").UserIdleState | undefined;
344
- color?: {
345
- background: string;
346
- stroke: string;
347
- } | undefined;
348
- avatarUrl?: string | undefined;
349
- id?: string | undefined;
350
- socketId?: import("../types").SocketId | undefined;
351
- isCurrentUser?: boolean | undefined;
352
- isInCall?: boolean | undefined;
353
- isSpeaking?: boolean | undefined;
354
- isMuted?: boolean | undefined;
355
- }>>;
337
+ fileHandle: FileSystemFileHandle | null;
338
+ collaborators: Map<import("../types").SocketId, import("../types").Collaborator>;
356
339
  stats: {
357
340
  open: boolean;
358
341
  panels: number;
359
342
  };
360
- currentChartType: import("@excalidraw/element/types").ChartType;
361
- pasteDialog: {
362
- shown: false;
363
- data: null;
364
- } | {
365
- shown: true;
366
- data: import("../charts").Spreadsheet;
367
- };
368
- showHyperlinkPopup: false | "editor" | "info";
343
+ showHyperlinkPopup: false | "info" | "editor";
369
344
  selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
370
345
  snapLines: readonly import("../snapping").SnapLine[];
371
346
  originSnapOffset: {
@@ -373,22 +348,28 @@ export declare const actionZoomIn: {
373
348
  y: number;
374
349
  } | null;
375
350
  objectsSnapModeEnabled: boolean;
376
- followedBy: Set<import("../types").SocketId>;
377
351
  isCropping: boolean;
378
- croppingElementId: string | null;
352
+ croppingElementId: import("@excalidraw/element/types").ExcalidrawElement["id"] | null;
379
353
  searchMatches: Readonly<{
380
- focusedId: string | null;
354
+ focusedId: import("@excalidraw/element/types").ExcalidrawElement["id"] | null;
381
355
  matches: readonly import("../types").SearchMatch[];
382
356
  }> | null;
383
357
  activeLockedId: string | null;
384
358
  lockedMultiSelections: {
385
359
  [groupId: string]: true;
386
360
  };
387
- stylesPanelMode: "compact" | "full" | "mobile";
361
+ bindMode: import("@excalidraw/element/types").BindMode;
362
+ colorTopPicks: {
363
+ elementStroke: readonly string[] | null;
364
+ elementBackground: readonly string[] | null;
365
+ bucketFill: readonly string[] | null;
366
+ stickyNoteStroke: readonly string[] | null;
367
+ stickyNoteBackground: readonly string[] | null;
368
+ };
388
369
  };
389
370
  captureUpdate: "EVENTUALLY";
390
371
  };
391
- PanelComponent: ({ updateData, appState }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
372
+ PanelComponent: ({ updateData }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
392
373
  keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
393
374
  } & {
394
375
  keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
@@ -398,17 +379,16 @@ export declare const actionZoomOut: {
398
379
  label: string;
399
380
  icon: import("react/jsx-runtime").JSX.Element;
400
381
  viewMode: true;
382
+ navigation: true;
401
383
  trackEvent: {
402
384
  category: "canvas";
403
385
  };
404
- perform: (_elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: any, app: import("../types").AppClassProperties) => {
386
+ predicate: (elements: readonly import("@excalidraw/element/types").ExcalidrawElement[], appState: AppState, appProps: import("../types").ExcalidrawProps, app: import("../types").AppClassProperties) => boolean;
387
+ perform: (_elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: unknown, app: import("../types").AppClassProperties) => {
405
388
  appState: {
406
- userToFollow: null;
389
+ zoom: import("../types").Zoom;
407
390
  scrollX: number;
408
391
  scrollY: number;
409
- zoom: {
410
- value: import("../types").NormalizedZoomValue;
411
- };
412
392
  contextMenu: {
413
393
  items: import("../components/ContextMenu").ContextMenuItems;
414
394
  top: number;
@@ -416,18 +396,28 @@ export declare const actionZoomOut: {
416
396
  } | null;
417
397
  showWelcomeScreen: boolean;
418
398
  isLoading: boolean;
419
- errorMessage: import("react").ReactNode;
399
+ errorMessage: React.ReactNode;
420
400
  activeEmbeddable: {
421
401
  element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
422
- state: "active" | "hover";
402
+ state: "hover" | "active";
423
403
  } | null;
424
404
  newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
425
405
  resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
426
406
  multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
427
407
  selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
428
408
  isBindingEnabled: boolean;
429
- startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
430
- suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
409
+ boxSelectionMode: import("../types").BoxSelectionMode;
410
+ bindingPreference: "enabled" | "disabled";
411
+ isMidpointSnappingEnabled: boolean;
412
+ inputDevice: import("../types").InputDevice;
413
+ suggestedBinding: {
414
+ element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
415
+ midPoint?: import("@excalidraw/math").GlobalPoint;
416
+ } | null;
417
+ hoveredArrowTextAnchor: {
418
+ elementId: import("@excalidraw/element/types").ExcalidrawArrowElement["id"];
419
+ anchor: "start" | "end" | "label";
420
+ } | null;
431
421
  frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
432
422
  frameRendering: {
433
423
  enabled: boolean;
@@ -435,9 +425,9 @@ export declare const actionZoomOut: {
435
425
  outline: boolean;
436
426
  clip: boolean;
437
427
  };
438
- editingFrame: string | null;
439
- elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
440
- editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
428
+ editingFrame: import("@excalidraw/element/types").ExcalidrawFrameLikeElement["id"] | null;
429
+ elementsToHighlight: readonly import("@excalidraw/element/types").NonDeletedExcalidrawElement[] | null;
430
+ editingTextElement: import("@excalidraw/element/types").ExcalidrawTextElement | null;
441
431
  activeTool: {
442
432
  lastActiveTool: import("../types").ActiveTool | null;
443
433
  locked: boolean;
@@ -454,43 +444,53 @@ export declare const actionZoomOut: {
454
444
  exportWithDarkMode: boolean;
455
445
  exportScale: number;
456
446
  currentItemStrokeColor: string;
447
+ currentItemStickynoteStrokeColor: string;
448
+ currentItemStickynoteBackgroundColor: string;
457
449
  currentItemBackgroundColor: string;
458
- currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
459
- currentItemStrokeWidth: number;
460
- currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
450
+ currentItemFillStyle: import("@excalidraw/element/types").ExcalidrawElement["fillStyle"];
451
+ currentItemStrokeWidthKey: import("@excalidraw/common").StrokeWidthKey;
452
+ currentItemStrokeStyle: import("@excalidraw/element/types").ExcalidrawElement["strokeStyle"];
461
453
  currentItemRoughness: number;
454
+ currentItemStrokeVariability: import("@excalidraw/element/types").StrokeVariability;
462
455
  currentItemOpacity: number;
463
- currentItemFontFamily: number;
456
+ currentItemFontFamily: import("@excalidraw/element/types").FontFamilyValues;
464
457
  currentItemFontSize: number;
465
- currentItemTextAlign: string;
458
+ currentItemTextAlign: import("@excalidraw/element/types").TextAlign;
466
459
  currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
467
460
  currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
468
- currentHoveredFontFamily: number | null;
461
+ currentHoveredFontFamily: import("@excalidraw/element/types").FontFamilyValues | null;
469
462
  currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
470
- currentItemArrowType: "round" | "sharp" | "elbow";
463
+ currentItemArrowType: "sharp" | "round" | "elbow";
471
464
  viewBackgroundColor: string;
465
+ scrollConstraints: import("../types").ScrollConstraints | null;
472
466
  cursorButton: "up" | "down";
473
467
  scrolledOutside: boolean;
474
468
  name: string | null;
475
469
  isResizing: boolean;
476
470
  isRotating: boolean;
477
471
  openMenu: "canvas" | null;
478
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
472
+ openPopup: "canvasBackground" | "elementBackground" | "elementStroke" | "fontFamily" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
479
473
  openSidebar: {
480
- name: string;
481
- tab?: string | undefined;
474
+ name: import("../types").SidebarName;
475
+ tab?: import("../types").SidebarTabName;
482
476
  } | null;
483
- openDialog: {
477
+ openDialog: null | {
484
478
  name: "imageExport" | "help" | "jsonExport";
485
479
  } | {
486
480
  name: "ttd";
487
- tab: "mermaid" | "text-to-diagram";
481
+ tab: "text-to-diagram" | "mermaid";
488
482
  } | {
489
483
  name: "commandPalette";
484
+ } | {
485
+ name: "settings";
490
486
  } | {
491
487
  name: "elementLinkSelector";
492
- sourceElementId: string;
493
- } | null;
488
+ sourceElementId: import("@excalidraw/element/types").ExcalidrawElement["id"];
489
+ } | {
490
+ name: "charts";
491
+ data: import("../charts").Spreadsheet;
492
+ rawText: string;
493
+ };
494
494
  defaultSidebarDockedPreference: boolean;
495
495
  lastPointerDownWith: import("@excalidraw/element/types").PointerType;
496
496
  selectedElementIds: Readonly<{
@@ -505,9 +505,9 @@ export declare const actionZoomOut: {
505
505
  selectedElementsAreBeingDragged: boolean;
506
506
  shouldCacheIgnoreZoom: boolean;
507
507
  toast: {
508
- message: string;
509
- closable?: boolean | undefined;
510
- duration?: number | undefined;
508
+ message: React.ReactNode;
509
+ closable?: boolean;
510
+ duration?: number;
511
511
  } | null;
512
512
  zenModeEnabled: boolean;
513
513
  theme: import("@excalidraw/element/types").Theme;
@@ -518,45 +518,18 @@ export declare const actionZoomOut: {
518
518
  selectedGroupIds: {
519
519
  [groupId: string]: boolean;
520
520
  };
521
- editingGroupId: string | null;
521
+ editingGroupId: import("@excalidraw/element/types").GroupId | null;
522
522
  width: number;
523
523
  height: number;
524
524
  offsetTop: number;
525
525
  offsetLeft: number;
526
- fileHandle: import("browser-fs-access").FileSystemHandle | null;
527
- collaborators: Map<import("../types").SocketId, Readonly<{
528
- pointer?: import("../types").CollaboratorPointer | undefined;
529
- button?: "up" | "down" | undefined;
530
- selectedElementIds?: Readonly<{
531
- [id: string]: true;
532
- }> | undefined;
533
- username?: string | null | undefined;
534
- userState?: import("@excalidraw/common").UserIdleState | undefined;
535
- color?: {
536
- background: string;
537
- stroke: string;
538
- } | undefined;
539
- avatarUrl?: string | undefined;
540
- id?: string | undefined;
541
- socketId?: import("../types").SocketId | undefined;
542
- isCurrentUser?: boolean | undefined;
543
- isInCall?: boolean | undefined;
544
- isSpeaking?: boolean | undefined;
545
- isMuted?: boolean | undefined;
546
- }>>;
526
+ fileHandle: FileSystemFileHandle | null;
527
+ collaborators: Map<import("../types").SocketId, import("../types").Collaborator>;
547
528
  stats: {
548
529
  open: boolean;
549
530
  panels: number;
550
531
  };
551
- currentChartType: import("@excalidraw/element/types").ChartType;
552
- pasteDialog: {
553
- shown: false;
554
- data: null;
555
- } | {
556
- shown: true;
557
- data: import("../charts").Spreadsheet;
558
- };
559
- showHyperlinkPopup: false | "editor" | "info";
532
+ showHyperlinkPopup: false | "info" | "editor";
560
533
  selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
561
534
  snapLines: readonly import("../snapping").SnapLine[];
562
535
  originSnapOffset: {
@@ -564,22 +537,28 @@ export declare const actionZoomOut: {
564
537
  y: number;
565
538
  } | null;
566
539
  objectsSnapModeEnabled: boolean;
567
- followedBy: Set<import("../types").SocketId>;
568
540
  isCropping: boolean;
569
- croppingElementId: string | null;
541
+ croppingElementId: import("@excalidraw/element/types").ExcalidrawElement["id"] | null;
570
542
  searchMatches: Readonly<{
571
- focusedId: string | null;
543
+ focusedId: import("@excalidraw/element/types").ExcalidrawElement["id"] | null;
572
544
  matches: readonly import("../types").SearchMatch[];
573
545
  }> | null;
574
546
  activeLockedId: string | null;
575
547
  lockedMultiSelections: {
576
548
  [groupId: string]: true;
577
549
  };
578
- stylesPanelMode: "compact" | "full" | "mobile";
550
+ bindMode: import("@excalidraw/element/types").BindMode;
551
+ colorTopPicks: {
552
+ elementStroke: readonly string[] | null;
553
+ elementBackground: readonly string[] | null;
554
+ bucketFill: readonly string[] | null;
555
+ stickyNoteStroke: readonly string[] | null;
556
+ stickyNoteBackground: readonly string[] | null;
557
+ };
579
558
  };
580
559
  captureUpdate: "EVENTUALLY";
581
560
  };
582
- PanelComponent: ({ updateData, appState }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
561
+ PanelComponent: ({ updateData }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
583
562
  keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
584
563
  } & {
585
564
  keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
@@ -589,17 +568,16 @@ export declare const actionResetZoom: {
589
568
  label: string;
590
569
  icon: import("react/jsx-runtime").JSX.Element;
591
570
  viewMode: true;
571
+ navigation: true;
592
572
  trackEvent: {
593
573
  category: "canvas";
594
574
  };
595
- perform: (_elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: any, app: import("../types").AppClassProperties) => {
575
+ predicate: (elements: readonly import("@excalidraw/element/types").ExcalidrawElement[], appState: AppState, appProps: import("../types").ExcalidrawProps, app: import("../types").AppClassProperties) => boolean;
576
+ perform: (_elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: unknown, app: import("../types").AppClassProperties) => {
596
577
  appState: {
597
- userToFollow: null;
578
+ zoom: import("../types").Zoom;
598
579
  scrollX: number;
599
580
  scrollY: number;
600
- zoom: {
601
- value: import("../types").NormalizedZoomValue;
602
- };
603
581
  contextMenu: {
604
582
  items: import("../components/ContextMenu").ContextMenuItems;
605
583
  top: number;
@@ -607,18 +585,28 @@ export declare const actionResetZoom: {
607
585
  } | null;
608
586
  showWelcomeScreen: boolean;
609
587
  isLoading: boolean;
610
- errorMessage: import("react").ReactNode;
588
+ errorMessage: React.ReactNode;
611
589
  activeEmbeddable: {
612
590
  element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
613
- state: "active" | "hover";
591
+ state: "hover" | "active";
614
592
  } | null;
615
593
  newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
616
594
  resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
617
595
  multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
618
596
  selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
619
597
  isBindingEnabled: boolean;
620
- startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
621
- suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
598
+ boxSelectionMode: import("../types").BoxSelectionMode;
599
+ bindingPreference: "enabled" | "disabled";
600
+ isMidpointSnappingEnabled: boolean;
601
+ inputDevice: import("../types").InputDevice;
602
+ suggestedBinding: {
603
+ element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
604
+ midPoint?: import("@excalidraw/math").GlobalPoint;
605
+ } | null;
606
+ hoveredArrowTextAnchor: {
607
+ elementId: import("@excalidraw/element/types").ExcalidrawArrowElement["id"];
608
+ anchor: "start" | "end" | "label";
609
+ } | null;
622
610
  frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
623
611
  frameRendering: {
624
612
  enabled: boolean;
@@ -626,9 +614,9 @@ export declare const actionResetZoom: {
626
614
  outline: boolean;
627
615
  clip: boolean;
628
616
  };
629
- editingFrame: string | null;
630
- elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
631
- editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
617
+ editingFrame: import("@excalidraw/element/types").ExcalidrawFrameLikeElement["id"] | null;
618
+ elementsToHighlight: readonly import("@excalidraw/element/types").NonDeletedExcalidrawElement[] | null;
619
+ editingTextElement: import("@excalidraw/element/types").ExcalidrawTextElement | null;
632
620
  activeTool: {
633
621
  lastActiveTool: import("../types").ActiveTool | null;
634
622
  locked: boolean;
@@ -645,43 +633,53 @@ export declare const actionResetZoom: {
645
633
  exportWithDarkMode: boolean;
646
634
  exportScale: number;
647
635
  currentItemStrokeColor: string;
636
+ currentItemStickynoteStrokeColor: string;
637
+ currentItemStickynoteBackgroundColor: string;
648
638
  currentItemBackgroundColor: string;
649
- currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
650
- currentItemStrokeWidth: number;
651
- currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
639
+ currentItemFillStyle: import("@excalidraw/element/types").ExcalidrawElement["fillStyle"];
640
+ currentItemStrokeWidthKey: import("@excalidraw/common").StrokeWidthKey;
641
+ currentItemStrokeStyle: import("@excalidraw/element/types").ExcalidrawElement["strokeStyle"];
652
642
  currentItemRoughness: number;
643
+ currentItemStrokeVariability: import("@excalidraw/element/types").StrokeVariability;
653
644
  currentItemOpacity: number;
654
- currentItemFontFamily: number;
645
+ currentItemFontFamily: import("@excalidraw/element/types").FontFamilyValues;
655
646
  currentItemFontSize: number;
656
- currentItemTextAlign: string;
647
+ currentItemTextAlign: import("@excalidraw/element/types").TextAlign;
657
648
  currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
658
649
  currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
659
- currentHoveredFontFamily: number | null;
650
+ currentHoveredFontFamily: import("@excalidraw/element/types").FontFamilyValues | null;
660
651
  currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
661
- currentItemArrowType: "round" | "sharp" | "elbow";
652
+ currentItemArrowType: "sharp" | "round" | "elbow";
662
653
  viewBackgroundColor: string;
654
+ scrollConstraints: import("../types").ScrollConstraints | null;
663
655
  cursorButton: "up" | "down";
664
656
  scrolledOutside: boolean;
665
657
  name: string | null;
666
658
  isResizing: boolean;
667
659
  isRotating: boolean;
668
660
  openMenu: "canvas" | null;
669
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
661
+ openPopup: "canvasBackground" | "elementBackground" | "elementStroke" | "fontFamily" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
670
662
  openSidebar: {
671
- name: string;
672
- tab?: string | undefined;
663
+ name: import("../types").SidebarName;
664
+ tab?: import("../types").SidebarTabName;
673
665
  } | null;
674
- openDialog: {
666
+ openDialog: null | {
675
667
  name: "imageExport" | "help" | "jsonExport";
676
668
  } | {
677
669
  name: "ttd";
678
- tab: "mermaid" | "text-to-diagram";
670
+ tab: "text-to-diagram" | "mermaid";
679
671
  } | {
680
672
  name: "commandPalette";
673
+ } | {
674
+ name: "settings";
681
675
  } | {
682
676
  name: "elementLinkSelector";
683
- sourceElementId: string;
684
- } | null;
677
+ sourceElementId: import("@excalidraw/element/types").ExcalidrawElement["id"];
678
+ } | {
679
+ name: "charts";
680
+ data: import("../charts").Spreadsheet;
681
+ rawText: string;
682
+ };
685
683
  defaultSidebarDockedPreference: boolean;
686
684
  lastPointerDownWith: import("@excalidraw/element/types").PointerType;
687
685
  selectedElementIds: Readonly<{
@@ -696,9 +694,9 @@ export declare const actionResetZoom: {
696
694
  selectedElementsAreBeingDragged: boolean;
697
695
  shouldCacheIgnoreZoom: boolean;
698
696
  toast: {
699
- message: string;
700
- closable?: boolean | undefined;
701
- duration?: number | undefined;
697
+ message: React.ReactNode;
698
+ closable?: boolean;
699
+ duration?: number;
702
700
  } | null;
703
701
  zenModeEnabled: boolean;
704
702
  theme: import("@excalidraw/element/types").Theme;
@@ -709,45 +707,18 @@ export declare const actionResetZoom: {
709
707
  selectedGroupIds: {
710
708
  [groupId: string]: boolean;
711
709
  };
712
- editingGroupId: string | null;
710
+ editingGroupId: import("@excalidraw/element/types").GroupId | null;
713
711
  width: number;
714
712
  height: number;
715
713
  offsetTop: number;
716
714
  offsetLeft: number;
717
- fileHandle: import("browser-fs-access").FileSystemHandle | null;
718
- collaborators: Map<import("../types").SocketId, Readonly<{
719
- pointer?: import("../types").CollaboratorPointer | undefined;
720
- button?: "up" | "down" | undefined;
721
- selectedElementIds?: Readonly<{
722
- [id: string]: true;
723
- }> | undefined;
724
- username?: string | null | undefined;
725
- userState?: import("@excalidraw/common").UserIdleState | undefined;
726
- color?: {
727
- background: string;
728
- stroke: string;
729
- } | undefined;
730
- avatarUrl?: string | undefined;
731
- id?: string | undefined;
732
- socketId?: import("../types").SocketId | undefined;
733
- isCurrentUser?: boolean | undefined;
734
- isInCall?: boolean | undefined;
735
- isSpeaking?: boolean | undefined;
736
- isMuted?: boolean | undefined;
737
- }>>;
715
+ fileHandle: FileSystemFileHandle | null;
716
+ collaborators: Map<import("../types").SocketId, import("../types").Collaborator>;
738
717
  stats: {
739
718
  open: boolean;
740
719
  panels: number;
741
720
  };
742
- currentChartType: import("@excalidraw/element/types").ChartType;
743
- pasteDialog: {
744
- shown: false;
745
- data: null;
746
- } | {
747
- shown: true;
748
- data: import("../charts").Spreadsheet;
749
- };
750
- showHyperlinkPopup: false | "editor" | "info";
721
+ showHyperlinkPopup: false | "info" | "editor";
751
722
  selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
752
723
  snapLines: readonly import("../snapping").SnapLine[];
753
724
  originSnapOffset: {
@@ -755,426 +726,47 @@ export declare const actionResetZoom: {
755
726
  y: number;
756
727
  } | null;
757
728
  objectsSnapModeEnabled: boolean;
758
- followedBy: Set<import("../types").SocketId>;
759
729
  isCropping: boolean;
760
- croppingElementId: string | null;
730
+ croppingElementId: import("@excalidraw/element/types").ExcalidrawElement["id"] | null;
761
731
  searchMatches: Readonly<{
762
- focusedId: string | null;
732
+ focusedId: import("@excalidraw/element/types").ExcalidrawElement["id"] | null;
763
733
  matches: readonly import("../types").SearchMatch[];
764
734
  }> | null;
765
735
  activeLockedId: string | null;
766
736
  lockedMultiSelections: {
767
737
  [groupId: string]: true;
768
738
  };
769
- stylesPanelMode: "compact" | "full" | "mobile";
739
+ bindMode: import("@excalidraw/element/types").BindMode;
740
+ colorTopPicks: {
741
+ elementStroke: readonly string[] | null;
742
+ elementBackground: readonly string[] | null;
743
+ bucketFill: readonly string[] | null;
744
+ stickyNoteStroke: readonly string[] | null;
745
+ stickyNoteBackground: readonly string[] | null;
746
+ };
770
747
  };
771
748
  captureUpdate: "EVENTUALLY";
772
749
  };
773
- PanelComponent: ({ updateData, appState }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
750
+ PanelComponent: ({ updateData }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
774
751
  keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
775
752
  } & {
776
753
  keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
777
754
  };
778
- export declare const zoomToFitBounds: ({ bounds, appState, canvasOffsets, fitToViewport, viewportZoomFactor, minZoom, maxZoom, }: {
779
- bounds: SceneBounds;
780
- canvasOffsets?: Partial<{
781
- top: number;
782
- right: number;
783
- bottom: number;
784
- left: number;
785
- }> | undefined;
786
- appState: Readonly<AppState>;
787
- /** whether to fit content to viewport (beyond >100%) */
788
- fitToViewport: boolean;
789
- /** zoom content to cover X of the viewport, when fitToViewport=true */
790
- viewportZoomFactor?: number | undefined;
791
- minZoom?: number | undefined;
792
- maxZoom?: number | undefined;
793
- }) => {
794
- appState: {
795
- scrollX: number;
796
- scrollY: number;
797
- zoom: {
798
- value: import("../types").NormalizedZoomValue;
799
- };
800
- contextMenu: {
801
- items: import("../components/ContextMenu").ContextMenuItems;
802
- top: number;
803
- left: number;
804
- } | null;
805
- showWelcomeScreen: boolean;
806
- isLoading: boolean;
807
- errorMessage: import("react").ReactNode;
808
- activeEmbeddable: {
809
- element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
810
- state: "active" | "hover";
811
- } | null;
812
- newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
813
- resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
814
- multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
815
- selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
816
- isBindingEnabled: boolean;
817
- startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
818
- suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
819
- frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
820
- frameRendering: {
821
- enabled: boolean;
822
- name: boolean;
823
- outline: boolean;
824
- clip: boolean;
825
- };
826
- editingFrame: string | null;
827
- elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
828
- editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
829
- activeTool: {
830
- lastActiveTool: import("../types").ActiveTool | null;
831
- locked: boolean;
832
- fromSelection: boolean;
833
- } & import("../types").ActiveTool;
834
- preferredSelectionTool: {
835
- type: "selection" | "lasso";
836
- initialized: boolean;
837
- };
838
- penMode: boolean;
839
- penDetected: boolean;
840
- exportBackground: boolean;
841
- exportEmbedScene: boolean;
842
- exportWithDarkMode: boolean;
843
- exportScale: number;
844
- currentItemStrokeColor: string;
845
- currentItemBackgroundColor: string;
846
- currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
847
- currentItemStrokeWidth: number;
848
- currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
849
- currentItemRoughness: number;
850
- currentItemOpacity: number;
851
- currentItemFontFamily: number;
852
- currentItemFontSize: number;
853
- currentItemTextAlign: string;
854
- currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
855
- currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
856
- currentHoveredFontFamily: number | null;
857
- currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
858
- currentItemArrowType: "round" | "sharp" | "elbow";
859
- viewBackgroundColor: string;
860
- cursorButton: "up" | "down";
861
- scrolledOutside: boolean;
862
- name: string | null;
863
- isResizing: boolean;
864
- isRotating: boolean;
865
- openMenu: "canvas" | null;
866
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
867
- openSidebar: {
868
- name: string;
869
- tab?: string | undefined;
870
- } | null;
871
- openDialog: {
872
- name: "imageExport" | "help" | "jsonExport";
873
- } | {
874
- name: "ttd";
875
- tab: "mermaid" | "text-to-diagram";
876
- } | {
877
- name: "commandPalette";
878
- } | {
879
- name: "elementLinkSelector";
880
- sourceElementId: string;
881
- } | null;
882
- defaultSidebarDockedPreference: boolean;
883
- lastPointerDownWith: import("@excalidraw/element/types").PointerType;
884
- selectedElementIds: Readonly<{
885
- [id: string]: true;
886
- }>;
887
- hoveredElementIds: Readonly<{
888
- [id: string]: true;
889
- }>;
890
- previousSelectedElementIds: {
891
- [id: string]: true;
892
- };
893
- selectedElementsAreBeingDragged: boolean;
894
- shouldCacheIgnoreZoom: boolean;
895
- toast: {
896
- message: string;
897
- closable?: boolean | undefined;
898
- duration?: number | undefined;
899
- } | null;
900
- zenModeEnabled: boolean;
901
- theme: import("@excalidraw/element/types").Theme;
902
- gridSize: number;
903
- gridStep: number;
904
- gridModeEnabled: boolean;
905
- viewModeEnabled: boolean;
906
- selectedGroupIds: {
907
- [groupId: string]: boolean;
908
- };
909
- editingGroupId: string | null;
910
- width: number;
911
- height: number;
912
- offsetTop: number;
913
- offsetLeft: number;
914
- fileHandle: import("browser-fs-access").FileSystemHandle | null;
915
- collaborators: Map<import("../types").SocketId, Readonly<{
916
- pointer?: import("../types").CollaboratorPointer | undefined;
917
- button?: "up" | "down" | undefined;
918
- selectedElementIds?: Readonly<{
919
- [id: string]: true;
920
- }> | undefined;
921
- username?: string | null | undefined;
922
- userState?: import("@excalidraw/common").UserIdleState | undefined;
923
- color?: {
924
- background: string;
925
- stroke: string;
926
- } | undefined;
927
- avatarUrl?: string | undefined;
928
- id?: string | undefined;
929
- socketId?: import("../types").SocketId | undefined;
930
- isCurrentUser?: boolean | undefined;
931
- isInCall?: boolean | undefined;
932
- isSpeaking?: boolean | undefined;
933
- isMuted?: boolean | undefined;
934
- }>>;
935
- stats: {
936
- open: boolean;
937
- panels: number;
938
- };
939
- currentChartType: import("@excalidraw/element/types").ChartType;
940
- pasteDialog: {
941
- shown: false;
942
- data: null;
943
- } | {
944
- shown: true;
945
- data: import("../charts").Spreadsheet;
946
- };
947
- showHyperlinkPopup: false | "editor" | "info";
948
- selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
949
- snapLines: readonly import("../snapping").SnapLine[];
950
- originSnapOffset: {
951
- x: number;
952
- y: number;
953
- } | null;
954
- objectsSnapModeEnabled: boolean;
955
- userToFollow: import("../types").UserToFollow | null;
956
- followedBy: Set<import("../types").SocketId>;
957
- isCropping: boolean;
958
- croppingElementId: string | null;
959
- searchMatches: Readonly<{
960
- focusedId: string | null;
961
- matches: readonly import("../types").SearchMatch[];
962
- }> | null;
963
- activeLockedId: string | null;
964
- lockedMultiSelections: {
965
- [groupId: string]: true;
966
- };
967
- stylesPanelMode: "compact" | "full" | "mobile";
968
- };
969
- captureUpdate: "EVENTUALLY";
970
- };
971
- export declare const zoomToFit: ({ canvasOffsets, targetElements, appState, fitToViewport, viewportZoomFactor, minZoom, maxZoom, }: {
972
- canvasOffsets?: Partial<{
973
- top: number;
974
- right: number;
975
- bottom: number;
976
- left: number;
977
- }> | undefined;
978
- targetElements: readonly ExcalidrawElement[];
979
- appState: Readonly<AppState>;
980
- /** whether to fit content to viewport (beyond >100%) */
981
- fitToViewport: boolean;
982
- /** zoom content to cover X of the viewport, when fitToViewport=true */
983
- viewportZoomFactor?: number | undefined;
984
- minZoom?: number | undefined;
985
- maxZoom?: number | undefined;
986
- }) => {
987
- appState: {
988
- scrollX: number;
989
- scrollY: number;
990
- zoom: {
991
- value: import("../types").NormalizedZoomValue;
992
- };
993
- contextMenu: {
994
- items: import("../components/ContextMenu").ContextMenuItems;
995
- top: number;
996
- left: number;
997
- } | null;
998
- showWelcomeScreen: boolean;
999
- isLoading: boolean;
1000
- errorMessage: import("react").ReactNode;
1001
- activeEmbeddable: {
1002
- element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
1003
- state: "active" | "hover";
1004
- } | null;
1005
- newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
1006
- resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
1007
- multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
1008
- selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
1009
- isBindingEnabled: boolean;
1010
- startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
1011
- suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
1012
- frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
1013
- frameRendering: {
1014
- enabled: boolean;
1015
- name: boolean;
1016
- outline: boolean;
1017
- clip: boolean;
1018
- };
1019
- editingFrame: string | null;
1020
- elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
1021
- editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
1022
- activeTool: {
1023
- lastActiveTool: import("../types").ActiveTool | null;
1024
- locked: boolean;
1025
- fromSelection: boolean;
1026
- } & import("../types").ActiveTool;
1027
- preferredSelectionTool: {
1028
- type: "selection" | "lasso";
1029
- initialized: boolean;
1030
- };
1031
- penMode: boolean;
1032
- penDetected: boolean;
1033
- exportBackground: boolean;
1034
- exportEmbedScene: boolean;
1035
- exportWithDarkMode: boolean;
1036
- exportScale: number;
1037
- currentItemStrokeColor: string;
1038
- currentItemBackgroundColor: string;
1039
- currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
1040
- currentItemStrokeWidth: number;
1041
- currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
1042
- currentItemRoughness: number;
1043
- currentItemOpacity: number;
1044
- currentItemFontFamily: number;
1045
- currentItemFontSize: number;
1046
- currentItemTextAlign: string;
1047
- currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
1048
- currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
1049
- currentHoveredFontFamily: number | null;
1050
- currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
1051
- currentItemArrowType: "round" | "sharp" | "elbow";
1052
- viewBackgroundColor: string;
1053
- cursorButton: "up" | "down";
1054
- scrolledOutside: boolean;
1055
- name: string | null;
1056
- isResizing: boolean;
1057
- isRotating: boolean;
1058
- openMenu: "canvas" | null;
1059
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
1060
- openSidebar: {
1061
- name: string;
1062
- tab?: string | undefined;
1063
- } | null;
1064
- openDialog: {
1065
- name: "imageExport" | "help" | "jsonExport";
1066
- } | {
1067
- name: "ttd";
1068
- tab: "mermaid" | "text-to-diagram";
1069
- } | {
1070
- name: "commandPalette";
1071
- } | {
1072
- name: "elementLinkSelector";
1073
- sourceElementId: string;
1074
- } | null;
1075
- defaultSidebarDockedPreference: boolean;
1076
- lastPointerDownWith: import("@excalidraw/element/types").PointerType;
1077
- selectedElementIds: Readonly<{
1078
- [id: string]: true;
1079
- }>;
1080
- hoveredElementIds: Readonly<{
1081
- [id: string]: true;
1082
- }>;
1083
- previousSelectedElementIds: {
1084
- [id: string]: true;
1085
- };
1086
- selectedElementsAreBeingDragged: boolean;
1087
- shouldCacheIgnoreZoom: boolean;
1088
- toast: {
1089
- message: string;
1090
- closable?: boolean | undefined;
1091
- duration?: number | undefined;
1092
- } | null;
1093
- zenModeEnabled: boolean;
1094
- theme: import("@excalidraw/element/types").Theme;
1095
- gridSize: number;
1096
- gridStep: number;
1097
- gridModeEnabled: boolean;
1098
- viewModeEnabled: boolean;
1099
- selectedGroupIds: {
1100
- [groupId: string]: boolean;
1101
- };
1102
- editingGroupId: string | null;
1103
- width: number;
1104
- height: number;
1105
- offsetTop: number;
1106
- offsetLeft: number;
1107
- fileHandle: import("browser-fs-access").FileSystemHandle | null;
1108
- collaborators: Map<import("../types").SocketId, Readonly<{
1109
- pointer?: import("../types").CollaboratorPointer | undefined;
1110
- button?: "up" | "down" | undefined;
1111
- selectedElementIds?: Readonly<{
1112
- [id: string]: true;
1113
- }> | undefined;
1114
- username?: string | null | undefined;
1115
- userState?: import("@excalidraw/common").UserIdleState | undefined;
1116
- color?: {
1117
- background: string;
1118
- stroke: string;
1119
- } | undefined;
1120
- avatarUrl?: string | undefined;
1121
- id?: string | undefined;
1122
- socketId?: import("../types").SocketId | undefined;
1123
- isCurrentUser?: boolean | undefined;
1124
- isInCall?: boolean | undefined;
1125
- isSpeaking?: boolean | undefined;
1126
- isMuted?: boolean | undefined;
1127
- }>>;
1128
- stats: {
1129
- open: boolean;
1130
- panels: number;
1131
- };
1132
- currentChartType: import("@excalidraw/element/types").ChartType;
1133
- pasteDialog: {
1134
- shown: false;
1135
- data: null;
1136
- } | {
1137
- shown: true;
1138
- data: import("../charts").Spreadsheet;
1139
- };
1140
- showHyperlinkPopup: false | "editor" | "info";
1141
- selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
1142
- snapLines: readonly import("../snapping").SnapLine[];
1143
- originSnapOffset: {
1144
- x: number;
1145
- y: number;
1146
- } | null;
1147
- objectsSnapModeEnabled: boolean;
1148
- userToFollow: import("../types").UserToFollow | null;
1149
- followedBy: Set<import("../types").SocketId>;
1150
- isCropping: boolean;
1151
- croppingElementId: string | null;
1152
- searchMatches: Readonly<{
1153
- focusedId: string | null;
1154
- matches: readonly import("../types").SearchMatch[];
1155
- }> | null;
1156
- activeLockedId: string | null;
1157
- lockedMultiSelections: {
1158
- [groupId: string]: true;
1159
- };
1160
- stylesPanelMode: "compact" | "full" | "mobile";
1161
- };
1162
- captureUpdate: "EVENTUALLY";
1163
- };
1164
755
  export declare const actionZoomToFitSelectionInViewport: {
1165
756
  name: "zoomToFitSelectionInViewport";
1166
757
  label: string;
1167
758
  icon: import("react/jsx-runtime").JSX.Element;
759
+ viewMode: true;
760
+ navigation: true;
1168
761
  trackEvent: {
1169
762
  category: "canvas";
1170
763
  };
1171
- perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: any, app: import("../types").AppClassProperties) => {
764
+ predicate: (elements: readonly import("@excalidraw/element/types").ExcalidrawElement[], appState: AppState, appProps: import("../types").ExcalidrawProps, app: import("../types").AppClassProperties) => boolean;
765
+ perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: unknown, app: import("../types").AppClassProperties) => {
1172
766
  appState: {
767
+ zoom: import("../types").Zoom;
1173
768
  scrollX: number;
1174
769
  scrollY: number;
1175
- zoom: {
1176
- value: import("../types").NormalizedZoomValue;
1177
- };
1178
770
  contextMenu: {
1179
771
  items: import("../components/ContextMenu").ContextMenuItems;
1180
772
  top: number;
@@ -1182,18 +774,28 @@ export declare const actionZoomToFitSelectionInViewport: {
1182
774
  } | null;
1183
775
  showWelcomeScreen: boolean;
1184
776
  isLoading: boolean;
1185
- errorMessage: import("react").ReactNode;
777
+ errorMessage: React.ReactNode;
1186
778
  activeEmbeddable: {
1187
779
  element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
1188
- state: "active" | "hover";
780
+ state: "hover" | "active";
1189
781
  } | null;
1190
782
  newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
1191
783
  resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
1192
784
  multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
1193
785
  selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
1194
786
  isBindingEnabled: boolean;
1195
- startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
1196
- suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
787
+ boxSelectionMode: import("../types").BoxSelectionMode;
788
+ bindingPreference: "enabled" | "disabled";
789
+ isMidpointSnappingEnabled: boolean;
790
+ inputDevice: import("../types").InputDevice;
791
+ suggestedBinding: {
792
+ element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
793
+ midPoint?: import("@excalidraw/math").GlobalPoint;
794
+ } | null;
795
+ hoveredArrowTextAnchor: {
796
+ elementId: import("@excalidraw/element/types").ExcalidrawArrowElement["id"];
797
+ anchor: "start" | "end" | "label";
798
+ } | null;
1197
799
  frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
1198
800
  frameRendering: {
1199
801
  enabled: boolean;
@@ -1201,9 +803,9 @@ export declare const actionZoomToFitSelectionInViewport: {
1201
803
  outline: boolean;
1202
804
  clip: boolean;
1203
805
  };
1204
- editingFrame: string | null;
1205
- elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
1206
- editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
806
+ editingFrame: import("@excalidraw/element/types").ExcalidrawFrameLikeElement["id"] | null;
807
+ elementsToHighlight: readonly import("@excalidraw/element/types").NonDeletedExcalidrawElement[] | null;
808
+ editingTextElement: import("@excalidraw/element/types").ExcalidrawTextElement | null;
1207
809
  activeTool: {
1208
810
  lastActiveTool: import("../types").ActiveTool | null;
1209
811
  locked: boolean;
@@ -1220,43 +822,53 @@ export declare const actionZoomToFitSelectionInViewport: {
1220
822
  exportWithDarkMode: boolean;
1221
823
  exportScale: number;
1222
824
  currentItemStrokeColor: string;
825
+ currentItemStickynoteStrokeColor: string;
826
+ currentItemStickynoteBackgroundColor: string;
1223
827
  currentItemBackgroundColor: string;
1224
- currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
1225
- currentItemStrokeWidth: number;
1226
- currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
828
+ currentItemFillStyle: import("@excalidraw/element/types").ExcalidrawElement["fillStyle"];
829
+ currentItemStrokeWidthKey: import("@excalidraw/common").StrokeWidthKey;
830
+ currentItemStrokeStyle: import("@excalidraw/element/types").ExcalidrawElement["strokeStyle"];
1227
831
  currentItemRoughness: number;
832
+ currentItemStrokeVariability: import("@excalidraw/element/types").StrokeVariability;
1228
833
  currentItemOpacity: number;
1229
- currentItemFontFamily: number;
834
+ currentItemFontFamily: import("@excalidraw/element/types").FontFamilyValues;
1230
835
  currentItemFontSize: number;
1231
- currentItemTextAlign: string;
836
+ currentItemTextAlign: import("@excalidraw/element/types").TextAlign;
1232
837
  currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
1233
838
  currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
1234
- currentHoveredFontFamily: number | null;
839
+ currentHoveredFontFamily: import("@excalidraw/element/types").FontFamilyValues | null;
1235
840
  currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
1236
- currentItemArrowType: "round" | "sharp" | "elbow";
841
+ currentItemArrowType: "sharp" | "round" | "elbow";
1237
842
  viewBackgroundColor: string;
843
+ scrollConstraints: import("../types").ScrollConstraints | null;
1238
844
  cursorButton: "up" | "down";
1239
845
  scrolledOutside: boolean;
1240
846
  name: string | null;
1241
847
  isResizing: boolean;
1242
848
  isRotating: boolean;
1243
849
  openMenu: "canvas" | null;
1244
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
850
+ openPopup: "canvasBackground" | "elementBackground" | "elementStroke" | "fontFamily" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
1245
851
  openSidebar: {
1246
- name: string;
1247
- tab?: string | undefined;
852
+ name: import("../types").SidebarName;
853
+ tab?: import("../types").SidebarTabName;
1248
854
  } | null;
1249
- openDialog: {
855
+ openDialog: null | {
1250
856
  name: "imageExport" | "help" | "jsonExport";
1251
857
  } | {
1252
858
  name: "ttd";
1253
- tab: "mermaid" | "text-to-diagram";
859
+ tab: "text-to-diagram" | "mermaid";
1254
860
  } | {
1255
861
  name: "commandPalette";
862
+ } | {
863
+ name: "settings";
1256
864
  } | {
1257
865
  name: "elementLinkSelector";
1258
- sourceElementId: string;
1259
- } | null;
866
+ sourceElementId: import("@excalidraw/element/types").ExcalidrawElement["id"];
867
+ } | {
868
+ name: "charts";
869
+ data: import("../charts").Spreadsheet;
870
+ rawText: string;
871
+ };
1260
872
  defaultSidebarDockedPreference: boolean;
1261
873
  lastPointerDownWith: import("@excalidraw/element/types").PointerType;
1262
874
  selectedElementIds: Readonly<{
@@ -1271,9 +883,9 @@ export declare const actionZoomToFitSelectionInViewport: {
1271
883
  selectedElementsAreBeingDragged: boolean;
1272
884
  shouldCacheIgnoreZoom: boolean;
1273
885
  toast: {
1274
- message: string;
1275
- closable?: boolean | undefined;
1276
- duration?: number | undefined;
886
+ message: React.ReactNode;
887
+ closable?: boolean;
888
+ duration?: number;
1277
889
  } | null;
1278
890
  zenModeEnabled: boolean;
1279
891
  theme: import("@excalidraw/element/types").Theme;
@@ -1284,45 +896,18 @@ export declare const actionZoomToFitSelectionInViewport: {
1284
896
  selectedGroupIds: {
1285
897
  [groupId: string]: boolean;
1286
898
  };
1287
- editingGroupId: string | null;
899
+ editingGroupId: import("@excalidraw/element/types").GroupId | null;
1288
900
  width: number;
1289
901
  height: number;
1290
902
  offsetTop: number;
1291
903
  offsetLeft: number;
1292
- fileHandle: import("browser-fs-access").FileSystemHandle | null;
1293
- collaborators: Map<import("../types").SocketId, Readonly<{
1294
- pointer?: import("../types").CollaboratorPointer | undefined;
1295
- button?: "up" | "down" | undefined;
1296
- selectedElementIds?: Readonly<{
1297
- [id: string]: true;
1298
- }> | undefined;
1299
- username?: string | null | undefined;
1300
- userState?: import("@excalidraw/common").UserIdleState | undefined;
1301
- color?: {
1302
- background: string;
1303
- stroke: string;
1304
- } | undefined;
1305
- avatarUrl?: string | undefined;
1306
- id?: string | undefined;
1307
- socketId?: import("../types").SocketId | undefined;
1308
- isCurrentUser?: boolean | undefined;
1309
- isInCall?: boolean | undefined;
1310
- isSpeaking?: boolean | undefined;
1311
- isMuted?: boolean | undefined;
1312
- }>>;
904
+ fileHandle: FileSystemFileHandle | null;
905
+ collaborators: Map<import("../types").SocketId, import("../types").Collaborator>;
1313
906
  stats: {
1314
907
  open: boolean;
1315
908
  panels: number;
1316
909
  };
1317
- currentChartType: import("@excalidraw/element/types").ChartType;
1318
- pasteDialog: {
1319
- shown: false;
1320
- data: null;
1321
- } | {
1322
- shown: true;
1323
- data: import("../charts").Spreadsheet;
1324
- };
1325
- showHyperlinkPopup: false | "editor" | "info";
910
+ showHyperlinkPopup: false | "info" | "editor";
1326
911
  selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
1327
912
  snapLines: readonly import("../snapping").SnapLine[];
1328
913
  originSnapOffset: {
@@ -1330,19 +915,24 @@ export declare const actionZoomToFitSelectionInViewport: {
1330
915
  y: number;
1331
916
  } | null;
1332
917
  objectsSnapModeEnabled: boolean;
1333
- userToFollow: import("../types").UserToFollow | null;
1334
- followedBy: Set<import("../types").SocketId>;
1335
918
  isCropping: boolean;
1336
- croppingElementId: string | null;
919
+ croppingElementId: import("@excalidraw/element/types").ExcalidrawElement["id"] | null;
1337
920
  searchMatches: Readonly<{
1338
- focusedId: string | null;
921
+ focusedId: import("@excalidraw/element/types").ExcalidrawElement["id"] | null;
1339
922
  matches: readonly import("../types").SearchMatch[];
1340
923
  }> | null;
1341
924
  activeLockedId: string | null;
1342
925
  lockedMultiSelections: {
1343
926
  [groupId: string]: true;
1344
927
  };
1345
- stylesPanelMode: "compact" | "full" | "mobile";
928
+ bindMode: import("@excalidraw/element/types").BindMode;
929
+ colorTopPicks: {
930
+ elementStroke: readonly string[] | null;
931
+ elementBackground: readonly string[] | null;
932
+ bucketFill: readonly string[] | null;
933
+ stickyNoteStroke: readonly string[] | null;
934
+ stickyNoteBackground: readonly string[] | null;
935
+ };
1346
936
  };
1347
937
  captureUpdate: "EVENTUALLY";
1348
938
  };
@@ -1354,16 +944,17 @@ export declare const actionZoomToFitSelection: {
1354
944
  name: "zoomToFitSelection";
1355
945
  label: string;
1356
946
  icon: import("react/jsx-runtime").JSX.Element;
947
+ viewMode: true;
948
+ navigation: true;
1357
949
  trackEvent: {
1358
950
  category: "canvas";
1359
951
  };
1360
- perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: any, app: import("../types").AppClassProperties) => {
952
+ predicate: (elements: readonly import("@excalidraw/element/types").ExcalidrawElement[], appState: AppState, appProps: import("../types").ExcalidrawProps, app: import("../types").AppClassProperties) => boolean;
953
+ perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: unknown, app: import("../types").AppClassProperties) => {
1361
954
  appState: {
955
+ zoom: import("../types").Zoom;
1362
956
  scrollX: number;
1363
957
  scrollY: number;
1364
- zoom: {
1365
- value: import("../types").NormalizedZoomValue;
1366
- };
1367
958
  contextMenu: {
1368
959
  items: import("../components/ContextMenu").ContextMenuItems;
1369
960
  top: number;
@@ -1371,18 +962,28 @@ export declare const actionZoomToFitSelection: {
1371
962
  } | null;
1372
963
  showWelcomeScreen: boolean;
1373
964
  isLoading: boolean;
1374
- errorMessage: import("react").ReactNode;
965
+ errorMessage: React.ReactNode;
1375
966
  activeEmbeddable: {
1376
967
  element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
1377
- state: "active" | "hover";
968
+ state: "hover" | "active";
1378
969
  } | null;
1379
970
  newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
1380
971
  resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
1381
972
  multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
1382
973
  selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
1383
974
  isBindingEnabled: boolean;
1384
- startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
1385
- suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
975
+ boxSelectionMode: import("../types").BoxSelectionMode;
976
+ bindingPreference: "enabled" | "disabled";
977
+ isMidpointSnappingEnabled: boolean;
978
+ inputDevice: import("../types").InputDevice;
979
+ suggestedBinding: {
980
+ element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
981
+ midPoint?: import("@excalidraw/math").GlobalPoint;
982
+ } | null;
983
+ hoveredArrowTextAnchor: {
984
+ elementId: import("@excalidraw/element/types").ExcalidrawArrowElement["id"];
985
+ anchor: "start" | "end" | "label";
986
+ } | null;
1386
987
  frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
1387
988
  frameRendering: {
1388
989
  enabled: boolean;
@@ -1390,9 +991,9 @@ export declare const actionZoomToFitSelection: {
1390
991
  outline: boolean;
1391
992
  clip: boolean;
1392
993
  };
1393
- editingFrame: string | null;
1394
- elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
1395
- editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
994
+ editingFrame: import("@excalidraw/element/types").ExcalidrawFrameLikeElement["id"] | null;
995
+ elementsToHighlight: readonly import("@excalidraw/element/types").NonDeletedExcalidrawElement[] | null;
996
+ editingTextElement: import("@excalidraw/element/types").ExcalidrawTextElement | null;
1396
997
  activeTool: {
1397
998
  lastActiveTool: import("../types").ActiveTool | null;
1398
999
  locked: boolean;
@@ -1409,43 +1010,53 @@ export declare const actionZoomToFitSelection: {
1409
1010
  exportWithDarkMode: boolean;
1410
1011
  exportScale: number;
1411
1012
  currentItemStrokeColor: string;
1013
+ currentItemStickynoteStrokeColor: string;
1014
+ currentItemStickynoteBackgroundColor: string;
1412
1015
  currentItemBackgroundColor: string;
1413
- currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
1414
- currentItemStrokeWidth: number;
1415
- currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
1016
+ currentItemFillStyle: import("@excalidraw/element/types").ExcalidrawElement["fillStyle"];
1017
+ currentItemStrokeWidthKey: import("@excalidraw/common").StrokeWidthKey;
1018
+ currentItemStrokeStyle: import("@excalidraw/element/types").ExcalidrawElement["strokeStyle"];
1416
1019
  currentItemRoughness: number;
1020
+ currentItemStrokeVariability: import("@excalidraw/element/types").StrokeVariability;
1417
1021
  currentItemOpacity: number;
1418
- currentItemFontFamily: number;
1022
+ currentItemFontFamily: import("@excalidraw/element/types").FontFamilyValues;
1419
1023
  currentItemFontSize: number;
1420
- currentItemTextAlign: string;
1024
+ currentItemTextAlign: import("@excalidraw/element/types").TextAlign;
1421
1025
  currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
1422
1026
  currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
1423
- currentHoveredFontFamily: number | null;
1027
+ currentHoveredFontFamily: import("@excalidraw/element/types").FontFamilyValues | null;
1424
1028
  currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
1425
- currentItemArrowType: "round" | "sharp" | "elbow";
1029
+ currentItemArrowType: "sharp" | "round" | "elbow";
1426
1030
  viewBackgroundColor: string;
1031
+ scrollConstraints: import("../types").ScrollConstraints | null;
1427
1032
  cursorButton: "up" | "down";
1428
1033
  scrolledOutside: boolean;
1429
1034
  name: string | null;
1430
1035
  isResizing: boolean;
1431
1036
  isRotating: boolean;
1432
1037
  openMenu: "canvas" | null;
1433
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
1038
+ openPopup: "canvasBackground" | "elementBackground" | "elementStroke" | "fontFamily" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
1434
1039
  openSidebar: {
1435
- name: string;
1436
- tab?: string | undefined;
1040
+ name: import("../types").SidebarName;
1041
+ tab?: import("../types").SidebarTabName;
1437
1042
  } | null;
1438
- openDialog: {
1043
+ openDialog: null | {
1439
1044
  name: "imageExport" | "help" | "jsonExport";
1440
1045
  } | {
1441
1046
  name: "ttd";
1442
- tab: "mermaid" | "text-to-diagram";
1047
+ tab: "text-to-diagram" | "mermaid";
1443
1048
  } | {
1444
1049
  name: "commandPalette";
1050
+ } | {
1051
+ name: "settings";
1445
1052
  } | {
1446
1053
  name: "elementLinkSelector";
1447
- sourceElementId: string;
1448
- } | null;
1054
+ sourceElementId: import("@excalidraw/element/types").ExcalidrawElement["id"];
1055
+ } | {
1056
+ name: "charts";
1057
+ data: import("../charts").Spreadsheet;
1058
+ rawText: string;
1059
+ };
1449
1060
  defaultSidebarDockedPreference: boolean;
1450
1061
  lastPointerDownWith: import("@excalidraw/element/types").PointerType;
1451
1062
  selectedElementIds: Readonly<{
@@ -1460,9 +1071,9 @@ export declare const actionZoomToFitSelection: {
1460
1071
  selectedElementsAreBeingDragged: boolean;
1461
1072
  shouldCacheIgnoreZoom: boolean;
1462
1073
  toast: {
1463
- message: string;
1464
- closable?: boolean | undefined;
1465
- duration?: number | undefined;
1074
+ message: React.ReactNode;
1075
+ closable?: boolean;
1076
+ duration?: number;
1466
1077
  } | null;
1467
1078
  zenModeEnabled: boolean;
1468
1079
  theme: import("@excalidraw/element/types").Theme;
@@ -1473,45 +1084,18 @@ export declare const actionZoomToFitSelection: {
1473
1084
  selectedGroupIds: {
1474
1085
  [groupId: string]: boolean;
1475
1086
  };
1476
- editingGroupId: string | null;
1087
+ editingGroupId: import("@excalidraw/element/types").GroupId | null;
1477
1088
  width: number;
1478
1089
  height: number;
1479
1090
  offsetTop: number;
1480
1091
  offsetLeft: number;
1481
- fileHandle: import("browser-fs-access").FileSystemHandle | null;
1482
- collaborators: Map<import("../types").SocketId, Readonly<{
1483
- pointer?: import("../types").CollaboratorPointer | undefined;
1484
- button?: "up" | "down" | undefined;
1485
- selectedElementIds?: Readonly<{
1486
- [id: string]: true;
1487
- }> | undefined;
1488
- username?: string | null | undefined;
1489
- userState?: import("@excalidraw/common").UserIdleState | undefined;
1490
- color?: {
1491
- background: string;
1492
- stroke: string;
1493
- } | undefined;
1494
- avatarUrl?: string | undefined;
1495
- id?: string | undefined;
1496
- socketId?: import("../types").SocketId | undefined;
1497
- isCurrentUser?: boolean | undefined;
1498
- isInCall?: boolean | undefined;
1499
- isSpeaking?: boolean | undefined;
1500
- isMuted?: boolean | undefined;
1501
- }>>;
1092
+ fileHandle: FileSystemFileHandle | null;
1093
+ collaborators: Map<import("../types").SocketId, import("../types").Collaborator>;
1502
1094
  stats: {
1503
1095
  open: boolean;
1504
1096
  panels: number;
1505
1097
  };
1506
- currentChartType: import("@excalidraw/element/types").ChartType;
1507
- pasteDialog: {
1508
- shown: false;
1509
- data: null;
1510
- } | {
1511
- shown: true;
1512
- data: import("../charts").Spreadsheet;
1513
- };
1514
- showHyperlinkPopup: false | "editor" | "info";
1098
+ showHyperlinkPopup: false | "info" | "editor";
1515
1099
  selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
1516
1100
  snapLines: readonly import("../snapping").SnapLine[];
1517
1101
  originSnapOffset: {
@@ -1519,19 +1103,24 @@ export declare const actionZoomToFitSelection: {
1519
1103
  y: number;
1520
1104
  } | null;
1521
1105
  objectsSnapModeEnabled: boolean;
1522
- userToFollow: import("../types").UserToFollow | null;
1523
- followedBy: Set<import("../types").SocketId>;
1524
1106
  isCropping: boolean;
1525
- croppingElementId: string | null;
1107
+ croppingElementId: import("@excalidraw/element/types").ExcalidrawElement["id"] | null;
1526
1108
  searchMatches: Readonly<{
1527
- focusedId: string | null;
1109
+ focusedId: import("@excalidraw/element/types").ExcalidrawElement["id"] | null;
1528
1110
  matches: readonly import("../types").SearchMatch[];
1529
1111
  }> | null;
1530
1112
  activeLockedId: string | null;
1531
1113
  lockedMultiSelections: {
1532
1114
  [groupId: string]: true;
1533
1115
  };
1534
- stylesPanelMode: "compact" | "full" | "mobile";
1116
+ bindMode: import("@excalidraw/element/types").BindMode;
1117
+ colorTopPicks: {
1118
+ elementStroke: readonly string[] | null;
1119
+ elementBackground: readonly string[] | null;
1120
+ bucketFill: readonly string[] | null;
1121
+ stickyNoteStroke: readonly string[] | null;
1122
+ stickyNoteBackground: readonly string[] | null;
1123
+ };
1535
1124
  };
1536
1125
  captureUpdate: "EVENTUALLY";
1537
1126
  };
@@ -1544,16 +1133,16 @@ export declare const actionZoomToFit: {
1544
1133
  label: string;
1545
1134
  icon: import("react/jsx-runtime").JSX.Element;
1546
1135
  viewMode: true;
1136
+ navigation: true;
1547
1137
  trackEvent: {
1548
1138
  category: "canvas";
1549
1139
  };
1550
- perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: any, app: import("../types").AppClassProperties) => {
1140
+ predicate: (elements: readonly import("@excalidraw/element/types").ExcalidrawElement[], appState: AppState, appProps: import("../types").ExcalidrawProps, app: import("../types").AppClassProperties) => boolean;
1141
+ perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: unknown, app: import("../types").AppClassProperties) => {
1551
1142
  appState: {
1143
+ zoom: import("../types").Zoom;
1552
1144
  scrollX: number;
1553
1145
  scrollY: number;
1554
- zoom: {
1555
- value: import("../types").NormalizedZoomValue;
1556
- };
1557
1146
  contextMenu: {
1558
1147
  items: import("../components/ContextMenu").ContextMenuItems;
1559
1148
  top: number;
@@ -1561,18 +1150,28 @@ export declare const actionZoomToFit: {
1561
1150
  } | null;
1562
1151
  showWelcomeScreen: boolean;
1563
1152
  isLoading: boolean;
1564
- errorMessage: import("react").ReactNode;
1153
+ errorMessage: React.ReactNode;
1565
1154
  activeEmbeddable: {
1566
1155
  element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
1567
- state: "active" | "hover";
1156
+ state: "hover" | "active";
1568
1157
  } | null;
1569
1158
  newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
1570
1159
  resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
1571
1160
  multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
1572
1161
  selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
1573
1162
  isBindingEnabled: boolean;
1574
- startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
1575
- suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
1163
+ boxSelectionMode: import("../types").BoxSelectionMode;
1164
+ bindingPreference: "enabled" | "disabled";
1165
+ isMidpointSnappingEnabled: boolean;
1166
+ inputDevice: import("../types").InputDevice;
1167
+ suggestedBinding: {
1168
+ element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
1169
+ midPoint?: import("@excalidraw/math").GlobalPoint;
1170
+ } | null;
1171
+ hoveredArrowTextAnchor: {
1172
+ elementId: import("@excalidraw/element/types").ExcalidrawArrowElement["id"];
1173
+ anchor: "start" | "end" | "label";
1174
+ } | null;
1576
1175
  frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
1577
1176
  frameRendering: {
1578
1177
  enabled: boolean;
@@ -1580,9 +1179,9 @@ export declare const actionZoomToFit: {
1580
1179
  outline: boolean;
1581
1180
  clip: boolean;
1582
1181
  };
1583
- editingFrame: string | null;
1584
- elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
1585
- editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
1182
+ editingFrame: import("@excalidraw/element/types").ExcalidrawFrameLikeElement["id"] | null;
1183
+ elementsToHighlight: readonly import("@excalidraw/element/types").NonDeletedExcalidrawElement[] | null;
1184
+ editingTextElement: import("@excalidraw/element/types").ExcalidrawTextElement | null;
1586
1185
  activeTool: {
1587
1186
  lastActiveTool: import("../types").ActiveTool | null;
1588
1187
  locked: boolean;
@@ -1599,235 +1198,53 @@ export declare const actionZoomToFit: {
1599
1198
  exportWithDarkMode: boolean;
1600
1199
  exportScale: number;
1601
1200
  currentItemStrokeColor: string;
1201
+ currentItemStickynoteStrokeColor: string;
1202
+ currentItemStickynoteBackgroundColor: string;
1602
1203
  currentItemBackgroundColor: string;
1603
- currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
1604
- currentItemStrokeWidth: number;
1605
- currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
1204
+ currentItemFillStyle: import("@excalidraw/element/types").ExcalidrawElement["fillStyle"];
1205
+ currentItemStrokeWidthKey: import("@excalidraw/common").StrokeWidthKey;
1206
+ currentItemStrokeStyle: import("@excalidraw/element/types").ExcalidrawElement["strokeStyle"];
1606
1207
  currentItemRoughness: number;
1208
+ currentItemStrokeVariability: import("@excalidraw/element/types").StrokeVariability;
1607
1209
  currentItemOpacity: number;
1608
- currentItemFontFamily: number;
1210
+ currentItemFontFamily: import("@excalidraw/element/types").FontFamilyValues;
1609
1211
  currentItemFontSize: number;
1610
- currentItemTextAlign: string;
1212
+ currentItemTextAlign: import("@excalidraw/element/types").TextAlign;
1611
1213
  currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
1612
1214
  currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
1613
- currentHoveredFontFamily: number | null;
1215
+ currentHoveredFontFamily: import("@excalidraw/element/types").FontFamilyValues | null;
1614
1216
  currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
1615
- currentItemArrowType: "round" | "sharp" | "elbow";
1217
+ currentItemArrowType: "sharp" | "round" | "elbow";
1616
1218
  viewBackgroundColor: string;
1219
+ scrollConstraints: import("../types").ScrollConstraints | null;
1617
1220
  cursorButton: "up" | "down";
1618
1221
  scrolledOutside: boolean;
1619
1222
  name: string | null;
1620
1223
  isResizing: boolean;
1621
1224
  isRotating: boolean;
1622
1225
  openMenu: "canvas" | null;
1623
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
1226
+ openPopup: "canvasBackground" | "elementBackground" | "elementStroke" | "fontFamily" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
1624
1227
  openSidebar: {
1625
- name: string;
1626
- tab?: string | undefined;
1228
+ name: import("../types").SidebarName;
1229
+ tab?: import("../types").SidebarTabName;
1627
1230
  } | null;
1628
- openDialog: {
1231
+ openDialog: null | {
1629
1232
  name: "imageExport" | "help" | "jsonExport";
1630
1233
  } | {
1631
1234
  name: "ttd";
1632
- tab: "mermaid" | "text-to-diagram";
1235
+ tab: "text-to-diagram" | "mermaid";
1633
1236
  } | {
1634
1237
  name: "commandPalette";
1238
+ } | {
1239
+ name: "settings";
1635
1240
  } | {
1636
1241
  name: "elementLinkSelector";
1637
- sourceElementId: string;
1638
- } | null;
1639
- defaultSidebarDockedPreference: boolean;
1640
- lastPointerDownWith: import("@excalidraw/element/types").PointerType;
1641
- selectedElementIds: Readonly<{
1642
- [id: string]: true;
1643
- }>;
1644
- hoveredElementIds: Readonly<{
1645
- [id: string]: true;
1646
- }>;
1647
- previousSelectedElementIds: {
1648
- [id: string]: true;
1649
- };
1650
- selectedElementsAreBeingDragged: boolean;
1651
- shouldCacheIgnoreZoom: boolean;
1652
- toast: {
1653
- message: string;
1654
- closable?: boolean | undefined;
1655
- duration?: number | undefined;
1656
- } | null;
1657
- zenModeEnabled: boolean;
1658
- theme: import("@excalidraw/element/types").Theme;
1659
- gridSize: number;
1660
- gridStep: number;
1661
- gridModeEnabled: boolean;
1662
- viewModeEnabled: boolean;
1663
- selectedGroupIds: {
1664
- [groupId: string]: boolean;
1665
- };
1666
- editingGroupId: string | null;
1667
- width: number;
1668
- height: number;
1669
- offsetTop: number;
1670
- offsetLeft: number;
1671
- fileHandle: import("browser-fs-access").FileSystemHandle | null;
1672
- collaborators: Map<import("../types").SocketId, Readonly<{
1673
- pointer?: import("../types").CollaboratorPointer | undefined;
1674
- button?: "up" | "down" | undefined;
1675
- selectedElementIds?: Readonly<{
1676
- [id: string]: true;
1677
- }> | undefined;
1678
- username?: string | null | undefined;
1679
- userState?: import("@excalidraw/common").UserIdleState | undefined;
1680
- color?: {
1681
- background: string;
1682
- stroke: string;
1683
- } | undefined;
1684
- avatarUrl?: string | undefined;
1685
- id?: string | undefined;
1686
- socketId?: import("../types").SocketId | undefined;
1687
- isCurrentUser?: boolean | undefined;
1688
- isInCall?: boolean | undefined;
1689
- isSpeaking?: boolean | undefined;
1690
- isMuted?: boolean | undefined;
1691
- }>>;
1692
- stats: {
1693
- open: boolean;
1694
- panels: number;
1695
- };
1696
- currentChartType: import("@excalidraw/element/types").ChartType;
1697
- pasteDialog: {
1698
- shown: false;
1699
- data: null;
1242
+ sourceElementId: import("@excalidraw/element/types").ExcalidrawElement["id"];
1700
1243
  } | {
1701
- shown: true;
1244
+ name: "charts";
1702
1245
  data: import("../charts").Spreadsheet;
1246
+ rawText: string;
1703
1247
  };
1704
- showHyperlinkPopup: false | "editor" | "info";
1705
- selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
1706
- snapLines: readonly import("../snapping").SnapLine[];
1707
- originSnapOffset: {
1708
- x: number;
1709
- y: number;
1710
- } | null;
1711
- objectsSnapModeEnabled: boolean;
1712
- userToFollow: import("../types").UserToFollow | null;
1713
- followedBy: Set<import("../types").SocketId>;
1714
- isCropping: boolean;
1715
- croppingElementId: string | null;
1716
- searchMatches: Readonly<{
1717
- focusedId: string | null;
1718
- matches: readonly import("../types").SearchMatch[];
1719
- }> | null;
1720
- activeLockedId: string | null;
1721
- lockedMultiSelections: {
1722
- [groupId: string]: true;
1723
- };
1724
- stylesPanelMode: "compact" | "full" | "mobile";
1725
- };
1726
- captureUpdate: "EVENTUALLY";
1727
- };
1728
- keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
1729
- } & {
1730
- keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
1731
- };
1732
- export declare const actionToggleTheme: {
1733
- name: "toggleTheme";
1734
- label: (_: readonly ExcalidrawElement[], appState: Readonly<AppState>) => "buttons.lightMode" | "buttons.darkMode";
1735
- keywords: string[];
1736
- icon: (appState: import("../types").UIAppState) => import("react/jsx-runtime").JSX.Element;
1737
- viewMode: true;
1738
- trackEvent: {
1739
- category: "canvas";
1740
- };
1741
- perform: (_: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, value: any) => {
1742
- appState: {
1743
- theme: any;
1744
- contextMenu: {
1745
- items: import("../components/ContextMenu").ContextMenuItems;
1746
- top: number;
1747
- left: number;
1748
- } | null;
1749
- showWelcomeScreen: boolean;
1750
- isLoading: boolean;
1751
- errorMessage: import("react").ReactNode;
1752
- activeEmbeddable: {
1753
- element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
1754
- state: "active" | "hover";
1755
- } | null;
1756
- newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
1757
- resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
1758
- multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
1759
- selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
1760
- isBindingEnabled: boolean;
1761
- startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
1762
- suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
1763
- frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
1764
- frameRendering: {
1765
- enabled: boolean;
1766
- name: boolean;
1767
- outline: boolean;
1768
- clip: boolean;
1769
- };
1770
- editingFrame: string | null;
1771
- elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
1772
- editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
1773
- activeTool: {
1774
- lastActiveTool: import("../types").ActiveTool | null;
1775
- locked: boolean;
1776
- fromSelection: boolean;
1777
- } & import("../types").ActiveTool;
1778
- preferredSelectionTool: {
1779
- type: "selection" | "lasso";
1780
- initialized: boolean;
1781
- };
1782
- penMode: boolean;
1783
- penDetected: boolean;
1784
- exportBackground: boolean;
1785
- exportEmbedScene: boolean;
1786
- exportWithDarkMode: boolean;
1787
- exportScale: number;
1788
- currentItemStrokeColor: string;
1789
- currentItemBackgroundColor: string;
1790
- currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
1791
- currentItemStrokeWidth: number;
1792
- currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
1793
- currentItemRoughness: number;
1794
- currentItemOpacity: number;
1795
- currentItemFontFamily: number;
1796
- currentItemFontSize: number;
1797
- currentItemTextAlign: string;
1798
- currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
1799
- currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
1800
- currentHoveredFontFamily: number | null;
1801
- currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
1802
- currentItemArrowType: "round" | "sharp" | "elbow";
1803
- viewBackgroundColor: string;
1804
- scrollX: number;
1805
- scrollY: number;
1806
- cursorButton: "up" | "down";
1807
- scrolledOutside: boolean;
1808
- name: string | null;
1809
- isResizing: boolean;
1810
- isRotating: boolean;
1811
- zoom: Readonly<{
1812
- value: import("../types").NormalizedZoomValue;
1813
- }>;
1814
- openMenu: "canvas" | null;
1815
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
1816
- openSidebar: {
1817
- name: string;
1818
- tab?: string | undefined;
1819
- } | null;
1820
- openDialog: {
1821
- name: "imageExport" | "help" | "jsonExport";
1822
- } | {
1823
- name: "ttd";
1824
- tab: "mermaid" | "text-to-diagram";
1825
- } | {
1826
- name: "commandPalette";
1827
- } | {
1828
- name: "elementLinkSelector";
1829
- sourceElementId: string;
1830
- } | null;
1831
1248
  defaultSidebarDockedPreference: boolean;
1832
1249
  lastPointerDownWith: import("@excalidraw/element/types").PointerType;
1833
1250
  selectedElementIds: Readonly<{
@@ -1842,11 +1259,12 @@ export declare const actionToggleTheme: {
1842
1259
  selectedElementsAreBeingDragged: boolean;
1843
1260
  shouldCacheIgnoreZoom: boolean;
1844
1261
  toast: {
1845
- message: string;
1846
- closable?: boolean | undefined;
1847
- duration?: number | undefined;
1262
+ message: React.ReactNode;
1263
+ closable?: boolean;
1264
+ duration?: number;
1848
1265
  } | null;
1849
1266
  zenModeEnabled: boolean;
1267
+ theme: import("@excalidraw/element/types").Theme;
1850
1268
  gridSize: number;
1851
1269
  gridStep: number;
1852
1270
  gridModeEnabled: boolean;
@@ -1854,45 +1272,18 @@ export declare const actionToggleTheme: {
1854
1272
  selectedGroupIds: {
1855
1273
  [groupId: string]: boolean;
1856
1274
  };
1857
- editingGroupId: string | null;
1275
+ editingGroupId: import("@excalidraw/element/types").GroupId | null;
1858
1276
  width: number;
1859
1277
  height: number;
1860
1278
  offsetTop: number;
1861
1279
  offsetLeft: number;
1862
- fileHandle: import("browser-fs-access").FileSystemHandle | null;
1863
- collaborators: Map<import("../types").SocketId, Readonly<{
1864
- pointer?: import("../types").CollaboratorPointer | undefined;
1865
- button?: "up" | "down" | undefined;
1866
- selectedElementIds?: Readonly<{
1867
- [id: string]: true;
1868
- }> | undefined;
1869
- username?: string | null | undefined;
1870
- userState?: import("@excalidraw/common").UserIdleState | undefined;
1871
- color?: {
1872
- background: string;
1873
- stroke: string;
1874
- } | undefined;
1875
- avatarUrl?: string | undefined;
1876
- id?: string | undefined;
1877
- socketId?: import("../types").SocketId | undefined;
1878
- isCurrentUser?: boolean | undefined;
1879
- isInCall?: boolean | undefined;
1880
- isSpeaking?: boolean | undefined;
1881
- isMuted?: boolean | undefined;
1882
- }>>;
1280
+ fileHandle: FileSystemFileHandle | null;
1281
+ collaborators: Map<import("../types").SocketId, import("../types").Collaborator>;
1883
1282
  stats: {
1884
1283
  open: boolean;
1885
1284
  panels: number;
1886
1285
  };
1887
- currentChartType: import("@excalidraw/element/types").ChartType;
1888
- pasteDialog: {
1889
- shown: false;
1890
- data: null;
1891
- } | {
1892
- shown: true;
1893
- data: import("../charts").Spreadsheet;
1894
- };
1895
- showHyperlinkPopup: false | "editor" | "info";
1286
+ showHyperlinkPopup: false | "info" | "editor";
1896
1287
  selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
1897
1288
  snapLines: readonly import("../snapping").SnapLine[];
1898
1289
  originSnapOffset: {
@@ -1900,570 +1291,31 @@ export declare const actionToggleTheme: {
1900
1291
  y: number;
1901
1292
  } | null;
1902
1293
  objectsSnapModeEnabled: boolean;
1903
- userToFollow: import("../types").UserToFollow | null;
1904
- followedBy: Set<import("../types").SocketId>;
1905
1294
  isCropping: boolean;
1906
- croppingElementId: string | null;
1295
+ croppingElementId: import("@excalidraw/element/types").ExcalidrawElement["id"] | null;
1907
1296
  searchMatches: Readonly<{
1908
- focusedId: string | null;
1297
+ focusedId: import("@excalidraw/element/types").ExcalidrawElement["id"] | null;
1909
1298
  matches: readonly import("../types").SearchMatch[];
1910
1299
  }> | null;
1911
1300
  activeLockedId: string | null;
1912
1301
  lockedMultiSelections: {
1913
1302
  [groupId: string]: true;
1914
1303
  };
1915
- stylesPanelMode: "compact" | "full" | "mobile";
1304
+ bindMode: import("@excalidraw/element/types").BindMode;
1305
+ colorTopPicks: {
1306
+ elementStroke: readonly string[] | null;
1307
+ elementBackground: readonly string[] | null;
1308
+ bucketFill: readonly string[] | null;
1309
+ stickyNoteStroke: readonly string[] | null;
1310
+ stickyNoteBackground: readonly string[] | null;
1311
+ };
1916
1312
  };
1917
1313
  captureUpdate: "EVENTUALLY";
1918
1314
  };
1919
1315
  keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
1920
- predicate: (elements: readonly ExcalidrawElement[], appState: AppState, props: import("../types").ExcalidrawProps, app: import("../types").AppClassProperties) => boolean;
1921
1316
  } & {
1922
1317
  keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
1923
1318
  };
1924
- export declare const actionToggleEraserTool: {
1925
- name: "toggleEraserTool";
1926
- label: string;
1927
- trackEvent: {
1928
- category: "toolbar";
1929
- };
1930
- perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: any, app: import("../types").AppClassProperties) => {
1931
- appState: {
1932
- selectedElementIds: {};
1933
- selectedGroupIds: {};
1934
- activeEmbeddable: null;
1935
- activeTool: {
1936
- lastActiveTool: import("../types").ActiveTool | null;
1937
- locked: boolean;
1938
- fromSelection: boolean;
1939
- } & import("../types").ActiveTool;
1940
- contextMenu: {
1941
- items: import("../components/ContextMenu").ContextMenuItems;
1942
- top: number;
1943
- left: number;
1944
- } | null;
1945
- showWelcomeScreen: boolean;
1946
- isLoading: boolean;
1947
- errorMessage: import("react").ReactNode;
1948
- newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
1949
- resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
1950
- multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
1951
- selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
1952
- isBindingEnabled: boolean;
1953
- startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
1954
- suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
1955
- frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
1956
- frameRendering: {
1957
- enabled: boolean;
1958
- name: boolean;
1959
- outline: boolean;
1960
- clip: boolean;
1961
- };
1962
- editingFrame: string | null;
1963
- elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
1964
- editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
1965
- preferredSelectionTool: {
1966
- type: "selection" | "lasso";
1967
- initialized: boolean;
1968
- };
1969
- penMode: boolean;
1970
- penDetected: boolean;
1971
- exportBackground: boolean;
1972
- exportEmbedScene: boolean;
1973
- exportWithDarkMode: boolean;
1974
- exportScale: number;
1975
- currentItemStrokeColor: string;
1976
- currentItemBackgroundColor: string;
1977
- currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
1978
- currentItemStrokeWidth: number;
1979
- currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
1980
- currentItemRoughness: number;
1981
- currentItemOpacity: number;
1982
- currentItemFontFamily: number;
1983
- currentItemFontSize: number;
1984
- currentItemTextAlign: string;
1985
- currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
1986
- currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
1987
- currentHoveredFontFamily: number | null;
1988
- currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
1989
- currentItemArrowType: "round" | "sharp" | "elbow";
1990
- viewBackgroundColor: string;
1991
- scrollX: number;
1992
- scrollY: number;
1993
- cursorButton: "up" | "down";
1994
- scrolledOutside: boolean;
1995
- name: string | null;
1996
- isResizing: boolean;
1997
- isRotating: boolean;
1998
- zoom: Readonly<{
1999
- value: import("../types").NormalizedZoomValue;
2000
- }>;
2001
- openMenu: "canvas" | null;
2002
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
2003
- openSidebar: {
2004
- name: string;
2005
- tab?: string | undefined;
2006
- } | null;
2007
- openDialog: {
2008
- name: "imageExport" | "help" | "jsonExport";
2009
- } | {
2010
- name: "ttd";
2011
- tab: "mermaid" | "text-to-diagram";
2012
- } | {
2013
- name: "commandPalette";
2014
- } | {
2015
- name: "elementLinkSelector";
2016
- sourceElementId: string;
2017
- } | null;
2018
- defaultSidebarDockedPreference: boolean;
2019
- lastPointerDownWith: import("@excalidraw/element/types").PointerType;
2020
- hoveredElementIds: Readonly<{
2021
- [id: string]: true;
2022
- }>;
2023
- previousSelectedElementIds: {
2024
- [id: string]: true;
2025
- };
2026
- selectedElementsAreBeingDragged: boolean;
2027
- shouldCacheIgnoreZoom: boolean;
2028
- toast: {
2029
- message: string;
2030
- closable?: boolean | undefined;
2031
- duration?: number | undefined;
2032
- } | null;
2033
- zenModeEnabled: boolean;
2034
- theme: import("@excalidraw/element/types").Theme;
2035
- gridSize: number;
2036
- gridStep: number;
2037
- gridModeEnabled: boolean;
2038
- viewModeEnabled: boolean;
2039
- editingGroupId: string | null;
2040
- width: number;
2041
- height: number;
2042
- offsetTop: number;
2043
- offsetLeft: number;
2044
- fileHandle: import("browser-fs-access").FileSystemHandle | null;
2045
- collaborators: Map<import("../types").SocketId, Readonly<{
2046
- pointer?: import("../types").CollaboratorPointer | undefined;
2047
- button?: "up" | "down" | undefined;
2048
- selectedElementIds?: Readonly<{
2049
- [id: string]: true;
2050
- }> | undefined;
2051
- username?: string | null | undefined;
2052
- userState?: import("@excalidraw/common").UserIdleState | undefined;
2053
- color?: {
2054
- background: string;
2055
- stroke: string;
2056
- } | undefined;
2057
- avatarUrl?: string | undefined;
2058
- id?: string | undefined;
2059
- socketId?: import("../types").SocketId | undefined;
2060
- isCurrentUser?: boolean | undefined;
2061
- isInCall?: boolean | undefined;
2062
- isSpeaking?: boolean | undefined;
2063
- isMuted?: boolean | undefined;
2064
- }>>;
2065
- stats: {
2066
- open: boolean;
2067
- panels: number;
2068
- };
2069
- currentChartType: import("@excalidraw/element/types").ChartType;
2070
- pasteDialog: {
2071
- shown: false;
2072
- data: null;
2073
- } | {
2074
- shown: true;
2075
- data: import("../charts").Spreadsheet;
2076
- };
2077
- showHyperlinkPopup: false | "editor" | "info";
2078
- selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
2079
- snapLines: readonly import("../snapping").SnapLine[];
2080
- originSnapOffset: {
2081
- x: number;
2082
- y: number;
2083
- } | null;
2084
- objectsSnapModeEnabled: boolean;
2085
- userToFollow: import("../types").UserToFollow | null;
2086
- followedBy: Set<import("../types").SocketId>;
2087
- isCropping: boolean;
2088
- croppingElementId: string | null;
2089
- searchMatches: Readonly<{
2090
- focusedId: string | null;
2091
- matches: readonly import("../types").SearchMatch[];
2092
- }> | null;
2093
- activeLockedId: string | null;
2094
- lockedMultiSelections: {
2095
- [groupId: string]: true;
2096
- };
2097
- stylesPanelMode: "compact" | "full" | "mobile";
2098
- };
2099
- captureUpdate: "IMMEDIATELY";
2100
- };
2101
- keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
2102
- } & {
2103
- keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
2104
- };
2105
- export declare const actionToggleLassoTool: {
2106
- name: "toggleLassoTool";
2107
- label: string;
2108
- icon: import("react/jsx-runtime").JSX.Element;
2109
- trackEvent: {
2110
- category: "toolbar";
2111
- };
2112
- predicate: (elements: readonly ExcalidrawElement[], appState: AppState, props: import("../types").ExcalidrawProps, app: import("../types").AppClassProperties) => boolean;
2113
- perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: any, app: import("../types").AppClassProperties) => {
2114
- appState: {
2115
- selectedElementIds: {};
2116
- selectedGroupIds: {};
2117
- activeEmbeddable: null;
2118
- activeTool: {
2119
- lastActiveTool: import("../types").ActiveTool | null;
2120
- locked: boolean;
2121
- fromSelection: boolean;
2122
- } & import("../types").ActiveTool;
2123
- contextMenu: {
2124
- items: import("../components/ContextMenu").ContextMenuItems;
2125
- top: number;
2126
- left: number;
2127
- } | null;
2128
- showWelcomeScreen: boolean;
2129
- isLoading: boolean;
2130
- errorMessage: import("react").ReactNode;
2131
- newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
2132
- resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
2133
- multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
2134
- selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
2135
- isBindingEnabled: boolean;
2136
- startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
2137
- suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
2138
- frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
2139
- frameRendering: {
2140
- enabled: boolean;
2141
- name: boolean;
2142
- outline: boolean;
2143
- clip: boolean;
2144
- };
2145
- editingFrame: string | null;
2146
- elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
2147
- editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
2148
- preferredSelectionTool: {
2149
- type: "selection" | "lasso";
2150
- initialized: boolean;
2151
- };
2152
- penMode: boolean;
2153
- penDetected: boolean;
2154
- exportBackground: boolean;
2155
- exportEmbedScene: boolean;
2156
- exportWithDarkMode: boolean;
2157
- exportScale: number;
2158
- currentItemStrokeColor: string;
2159
- currentItemBackgroundColor: string;
2160
- currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
2161
- currentItemStrokeWidth: number;
2162
- currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
2163
- currentItemRoughness: number;
2164
- currentItemOpacity: number;
2165
- currentItemFontFamily: number;
2166
- currentItemFontSize: number;
2167
- currentItemTextAlign: string;
2168
- currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
2169
- currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
2170
- currentHoveredFontFamily: number | null;
2171
- currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
2172
- currentItemArrowType: "round" | "sharp" | "elbow";
2173
- viewBackgroundColor: string;
2174
- scrollX: number;
2175
- scrollY: number;
2176
- cursorButton: "up" | "down";
2177
- scrolledOutside: boolean;
2178
- name: string | null;
2179
- isResizing: boolean;
2180
- isRotating: boolean;
2181
- zoom: Readonly<{
2182
- value: import("../types").NormalizedZoomValue;
2183
- }>;
2184
- openMenu: "canvas" | null;
2185
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
2186
- openSidebar: {
2187
- name: string;
2188
- tab?: string | undefined;
2189
- } | null;
2190
- openDialog: {
2191
- name: "imageExport" | "help" | "jsonExport";
2192
- } | {
2193
- name: "ttd";
2194
- tab: "mermaid" | "text-to-diagram";
2195
- } | {
2196
- name: "commandPalette";
2197
- } | {
2198
- name: "elementLinkSelector";
2199
- sourceElementId: string;
2200
- } | null;
2201
- defaultSidebarDockedPreference: boolean;
2202
- lastPointerDownWith: import("@excalidraw/element/types").PointerType;
2203
- hoveredElementIds: Readonly<{
2204
- [id: string]: true;
2205
- }>;
2206
- previousSelectedElementIds: {
2207
- [id: string]: true;
2208
- };
2209
- selectedElementsAreBeingDragged: boolean;
2210
- shouldCacheIgnoreZoom: boolean;
2211
- toast: {
2212
- message: string;
2213
- closable?: boolean | undefined;
2214
- duration?: number | undefined;
2215
- } | null;
2216
- zenModeEnabled: boolean;
2217
- theme: import("@excalidraw/element/types").Theme;
2218
- gridSize: number;
2219
- gridStep: number;
2220
- gridModeEnabled: boolean;
2221
- viewModeEnabled: boolean;
2222
- editingGroupId: string | null;
2223
- width: number;
2224
- height: number;
2225
- offsetTop: number;
2226
- offsetLeft: number;
2227
- fileHandle: import("browser-fs-access").FileSystemHandle | null;
2228
- collaborators: Map<import("../types").SocketId, Readonly<{
2229
- pointer?: import("../types").CollaboratorPointer | undefined;
2230
- button?: "up" | "down" | undefined;
2231
- selectedElementIds?: Readonly<{
2232
- [id: string]: true;
2233
- }> | undefined;
2234
- username?: string | null | undefined;
2235
- userState?: import("@excalidraw/common").UserIdleState | undefined;
2236
- color?: {
2237
- background: string;
2238
- stroke: string;
2239
- } | undefined;
2240
- avatarUrl?: string | undefined;
2241
- id?: string | undefined;
2242
- socketId?: import("../types").SocketId | undefined;
2243
- isCurrentUser?: boolean | undefined;
2244
- isInCall?: boolean | undefined;
2245
- isSpeaking?: boolean | undefined;
2246
- isMuted?: boolean | undefined;
2247
- }>>;
2248
- stats: {
2249
- open: boolean;
2250
- panels: number;
2251
- };
2252
- currentChartType: import("@excalidraw/element/types").ChartType;
2253
- pasteDialog: {
2254
- shown: false;
2255
- data: null;
2256
- } | {
2257
- shown: true;
2258
- data: import("../charts").Spreadsheet;
2259
- };
2260
- showHyperlinkPopup: false | "editor" | "info";
2261
- selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
2262
- snapLines: readonly import("../snapping").SnapLine[];
2263
- originSnapOffset: {
2264
- x: number;
2265
- y: number;
2266
- } | null;
2267
- objectsSnapModeEnabled: boolean;
2268
- userToFollow: import("../types").UserToFollow | null;
2269
- followedBy: Set<import("../types").SocketId>;
2270
- isCropping: boolean;
2271
- croppingElementId: string | null;
2272
- searchMatches: Readonly<{
2273
- focusedId: string | null;
2274
- matches: readonly import("../types").SearchMatch[];
2275
- }> | null;
2276
- activeLockedId: string | null;
2277
- lockedMultiSelections: {
2278
- [groupId: string]: true;
2279
- };
2280
- stylesPanelMode: "compact" | "full" | "mobile";
2281
- };
2282
- captureUpdate: "NEVER";
2283
- };
2284
- } & {
2285
- keyTest?: undefined;
2286
- };
2287
- export declare const actionToggleHandTool: {
2288
- name: "toggleHandTool";
2289
- label: string;
2290
- trackEvent: {
2291
- category: "toolbar";
2292
- };
2293
- icon: import("react/jsx-runtime").JSX.Element;
2294
- viewMode: false;
2295
- perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: any, app: import("../types").AppClassProperties) => {
2296
- appState: {
2297
- selectedElementIds: {};
2298
- selectedGroupIds: {};
2299
- activeEmbeddable: null;
2300
- activeTool: {
2301
- lastActiveTool: import("../types").ActiveTool | null;
2302
- locked: boolean;
2303
- fromSelection: boolean;
2304
- } & import("../types").ActiveTool;
2305
- contextMenu: {
2306
- items: import("../components/ContextMenu").ContextMenuItems;
2307
- top: number;
2308
- left: number;
2309
- } | null;
2310
- showWelcomeScreen: boolean;
2311
- isLoading: boolean;
2312
- errorMessage: import("react").ReactNode;
2313
- newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
2314
- resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
2315
- multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
2316
- selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
2317
- isBindingEnabled: boolean;
2318
- startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
2319
- suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
2320
- frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
2321
- frameRendering: {
2322
- enabled: boolean;
2323
- name: boolean;
2324
- outline: boolean;
2325
- clip: boolean;
2326
- };
2327
- editingFrame: string | null;
2328
- elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
2329
- editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
2330
- preferredSelectionTool: {
2331
- type: "selection" | "lasso";
2332
- initialized: boolean;
2333
- };
2334
- penMode: boolean;
2335
- penDetected: boolean;
2336
- exportBackground: boolean;
2337
- exportEmbedScene: boolean;
2338
- exportWithDarkMode: boolean;
2339
- exportScale: number;
2340
- currentItemStrokeColor: string;
2341
- currentItemBackgroundColor: string;
2342
- currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
2343
- currentItemStrokeWidth: number;
2344
- currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
2345
- currentItemRoughness: number;
2346
- currentItemOpacity: number;
2347
- currentItemFontFamily: number;
2348
- currentItemFontSize: number;
2349
- currentItemTextAlign: string;
2350
- currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
2351
- currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
2352
- currentHoveredFontFamily: number | null;
2353
- currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
2354
- currentItemArrowType: "round" | "sharp" | "elbow";
2355
- viewBackgroundColor: string;
2356
- scrollX: number;
2357
- scrollY: number;
2358
- cursorButton: "up" | "down";
2359
- scrolledOutside: boolean;
2360
- name: string | null;
2361
- isResizing: boolean;
2362
- isRotating: boolean;
2363
- zoom: Readonly<{
2364
- value: import("../types").NormalizedZoomValue;
2365
- }>;
2366
- openMenu: "canvas" | null;
2367
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
2368
- openSidebar: {
2369
- name: string;
2370
- tab?: string | undefined;
2371
- } | null;
2372
- openDialog: {
2373
- name: "imageExport" | "help" | "jsonExport";
2374
- } | {
2375
- name: "ttd";
2376
- tab: "mermaid" | "text-to-diagram";
2377
- } | {
2378
- name: "commandPalette";
2379
- } | {
2380
- name: "elementLinkSelector";
2381
- sourceElementId: string;
2382
- } | null;
2383
- defaultSidebarDockedPreference: boolean;
2384
- lastPointerDownWith: import("@excalidraw/element/types").PointerType;
2385
- hoveredElementIds: Readonly<{
2386
- [id: string]: true;
2387
- }>;
2388
- previousSelectedElementIds: {
2389
- [id: string]: true;
2390
- };
2391
- selectedElementsAreBeingDragged: boolean;
2392
- shouldCacheIgnoreZoom: boolean;
2393
- toast: {
2394
- message: string;
2395
- closable?: boolean | undefined;
2396
- duration?: number | undefined;
2397
- } | null;
2398
- zenModeEnabled: boolean;
2399
- theme: import("@excalidraw/element/types").Theme;
2400
- gridSize: number;
2401
- gridStep: number;
2402
- gridModeEnabled: boolean;
2403
- viewModeEnabled: boolean;
2404
- editingGroupId: string | null;
2405
- width: number;
2406
- height: number;
2407
- offsetTop: number;
2408
- offsetLeft: number;
2409
- fileHandle: import("browser-fs-access").FileSystemHandle | null;
2410
- collaborators: Map<import("../types").SocketId, Readonly<{
2411
- pointer?: import("../types").CollaboratorPointer | undefined;
2412
- button?: "up" | "down" | undefined;
2413
- selectedElementIds?: Readonly<{
2414
- [id: string]: true;
2415
- }> | undefined;
2416
- username?: string | null | undefined;
2417
- userState?: import("@excalidraw/common").UserIdleState | undefined;
2418
- color?: {
2419
- background: string;
2420
- stroke: string;
2421
- } | undefined;
2422
- avatarUrl?: string | undefined;
2423
- id?: string | undefined;
2424
- socketId?: import("../types").SocketId | undefined;
2425
- isCurrentUser?: boolean | undefined;
2426
- isInCall?: boolean | undefined;
2427
- isSpeaking?: boolean | undefined;
2428
- isMuted?: boolean | undefined;
2429
- }>>;
2430
- stats: {
2431
- open: boolean;
2432
- panels: number;
2433
- };
2434
- currentChartType: import("@excalidraw/element/types").ChartType;
2435
- pasteDialog: {
2436
- shown: false;
2437
- data: null;
2438
- } | {
2439
- shown: true;
2440
- data: import("../charts").Spreadsheet;
2441
- };
2442
- showHyperlinkPopup: false | "editor" | "info";
2443
- selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
2444
- snapLines: readonly import("../snapping").SnapLine[];
2445
- originSnapOffset: {
2446
- x: number;
2447
- y: number;
2448
- } | null;
2449
- objectsSnapModeEnabled: boolean;
2450
- userToFollow: import("../types").UserToFollow | null;
2451
- followedBy: Set<import("../types").SocketId>;
2452
- isCropping: boolean;
2453
- croppingElementId: string | null;
2454
- searchMatches: Readonly<{
2455
- focusedId: string | null;
2456
- matches: readonly import("../types").SearchMatch[];
2457
- }> | null;
2458
- activeLockedId: string | null;
2459
- lockedMultiSelections: {
2460
- [groupId: string]: true;
2461
- };
2462
- stylesPanelMode: "compact" | "full" | "mobile";
2463
- };
2464
- captureUpdate: "IMMEDIATELY";
2465
- };
2466
- keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
2467
- } & {
2468
- keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
1319
+ export declare const actionToggleTheme: import("./types").Action<import("@excalidraw/element/types").Theme> & {
1320
+ keyTest?: ((event: React.KeyboardEvent | KeyboardEvent, appState: AppState, elements: readonly import("@excalidraw/element/types").ExcalidrawElement[], app: import("../types").AppClassProperties) => boolean) | undefined;
2469
1321
  };