@excalidraw/math 0.18.0-0fc927cb4 → 0.18.0-143b5b6

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