@excalidraw/element 0.18.0-d2463f87d → 0.18.0-d9e8a33

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 (277) hide show
  1. package/dist/dev/index.js +6064 -3063
  2. package/dist/dev/index.js.map +4 -4
  3. package/dist/prod/index.js +19 -18
  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 +59 -39
  8. package/dist/types/common/src/constants.d.ts +38 -26
  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 +1 -1
  13. package/dist/types/common/src/utility-types.d.ts +0 -1
  14. package/dist/types/common/src/utils.d.ts +53 -41
  15. package/dist/types/common/src/versionedSnapshotStore.d.ts +17 -0
  16. package/dist/types/element/src/Scene.d.ts +11 -5
  17. package/dist/types/element/src/align.d.ts +2 -1
  18. package/dist/types/element/src/arrowheads.d.ts +3 -0
  19. package/dist/types/element/src/arrows/focus.d.ts +27 -0
  20. package/dist/types/element/src/arrows/helpers.d.ts +5 -0
  21. package/dist/types/element/src/binding.d.ts +67 -48
  22. package/dist/types/element/src/bounds.d.ts +8 -14
  23. package/dist/types/element/src/collision.d.ts +7 -2
  24. package/dist/types/element/src/comparisons.d.ts +7 -7
  25. package/dist/types/element/src/delta.d.ts +16 -4
  26. package/dist/types/element/src/distribute.d.ts +3 -1
  27. package/dist/types/element/src/dragElements.d.ts +3 -3
  28. package/dist/types/element/src/duplicate.d.ts +3 -3
  29. package/dist/types/element/src/elbowArrow.d.ts +2 -0
  30. package/dist/types/element/src/fractionalIndex.d.ts +2 -2
  31. package/dist/types/element/src/frame.d.ts +6 -2
  32. package/dist/types/element/src/groups.d.ts +1 -0
  33. package/dist/types/element/src/heading.d.ts +2 -1
  34. package/dist/types/element/src/image.d.ts +1 -11
  35. package/dist/types/element/src/index.d.ts +5 -3
  36. package/dist/types/element/src/linearElementEditor.d.ts +25 -23
  37. package/dist/types/element/src/mutateElement.d.ts +5 -1
  38. package/dist/types/element/src/newElement.d.ts +6 -6
  39. package/dist/types/element/src/positionElementsOnGrid.d.ts +2 -0
  40. package/dist/types/element/src/renderElement.d.ts +4 -7
  41. package/dist/types/element/src/resizeElements.d.ts +10 -10
  42. package/dist/types/element/src/resizeTest.d.ts +6 -5
  43. package/dist/types/element/src/selection.d.ts +10 -10
  44. package/dist/types/element/src/shape.d.ts +9 -8
  45. package/dist/types/element/src/store.d.ts +8 -2
  46. package/dist/types/element/src/textElement.d.ts +2 -2
  47. package/dist/types/element/src/textMeasurements.d.ts +1 -3
  48. package/dist/types/element/src/textWrapping.d.ts +26 -0
  49. package/dist/types/{excalidraw/data → element/src}/transform.d.ts +3 -3
  50. package/dist/types/element/src/transformHandles.d.ts +8 -27
  51. package/dist/types/element/src/typeChecks.d.ts +4 -7
  52. package/dist/types/element/src/types.d.ts +12 -13
  53. package/dist/types/element/src/utils.d.ts +9 -4
  54. package/dist/types/element/src/visualdebug.d.ts +59 -0
  55. package/dist/types/element/src/zindex.d.ts +7 -1
  56. package/dist/types/excalidraw/actions/actionAddToLibrary.d.ts +131 -171
  57. package/dist/types/excalidraw/actions/actionAlign.d.ts +6 -7
  58. package/dist/types/excalidraw/actions/actionBoundText.d.ts +94 -121
  59. package/dist/types/excalidraw/actions/actionCanvas.d.ts +557 -902
  60. package/dist/types/excalidraw/actions/actionClipboard.d.ts +111 -882
  61. package/dist/types/excalidraw/actions/actionCropEditor.d.ts +45 -59
  62. package/dist/types/excalidraw/actions/actionDeleteSelected.d.ts +154 -198
  63. package/dist/types/excalidraw/actions/actionDeselect.d.ts +160 -0
  64. package/dist/types/excalidraw/actions/actionDistribute.d.ts +2 -3
  65. package/dist/types/excalidraw/actions/actionDuplicateSelection.d.ts +2 -3
  66. package/dist/types/excalidraw/actions/actionElementLink.d.ts +37 -57
  67. package/dist/types/excalidraw/actions/actionElementLock.d.ts +92 -119
  68. package/dist/types/excalidraw/actions/actionEmbeddable.d.ts +46 -60
  69. package/dist/types/excalidraw/actions/actionExport.d.ts +173 -1412
  70. package/dist/types/excalidraw/actions/actionFinalize.d.ts +10 -395
  71. package/dist/types/excalidraw/actions/actionFlip.d.ts +2 -3
  72. package/dist/types/excalidraw/actions/actionFrame.d.ts +279 -370
  73. package/dist/types/excalidraw/actions/actionGroup.d.ts +97 -132
  74. package/dist/types/excalidraw/actions/actionLinearEditor.d.ts +176 -197
  75. package/dist/types/excalidraw/actions/actionLink.d.ts +43 -57
  76. package/dist/types/excalidraw/actions/actionMenu.d.ts +36 -424
  77. package/dist/types/excalidraw/actions/actionNavigate.d.ts +18 -361
  78. package/dist/types/excalidraw/actions/actionProperties.d.ts +152 -2522
  79. package/dist/types/excalidraw/actions/actionSelectAll.d.ts +48 -66
  80. package/dist/types/excalidraw/actions/actionStyles.d.ts +45 -58
  81. package/dist/types/excalidraw/actions/actionTextAutoResize.d.ts +3 -3
  82. package/dist/types/excalidraw/actions/actionToggleArrowBinding.d.ts +173 -0
  83. package/dist/types/excalidraw/actions/actionToggleGridMode.d.ts +45 -59
  84. package/dist/types/excalidraw/actions/actionToggleMidpointSnapping.d.ts +173 -0
  85. package/dist/types/excalidraw/actions/actionToggleObjectsSnapMode.d.ts +45 -59
  86. package/dist/types/excalidraw/actions/actionToggleSearchMenu.d.ts +34 -54
  87. package/dist/types/excalidraw/actions/actionToggleShapeSwitch.d.ts +1 -1
  88. package/dist/types/excalidraw/actions/actionToggleStats.d.ts +45 -59
  89. package/dist/types/excalidraw/actions/actionToggleViewMode.d.ts +45 -59
  90. package/dist/types/excalidraw/actions/actionToggleZenMode.d.ts +46 -60
  91. package/dist/types/excalidraw/actions/actionZindex.d.ts +2 -3
  92. package/dist/types/excalidraw/actions/index.d.ts +5 -2
  93. package/dist/types/excalidraw/actions/register.d.ts +2 -2
  94. package/dist/types/excalidraw/actions/shortcuts.d.ts +1 -1
  95. package/dist/types/excalidraw/actions/types.d.ts +4 -4
  96. package/dist/types/excalidraw/appState.d.ts +22 -14
  97. package/dist/types/excalidraw/charts/charts.bar.d.ts +2 -0
  98. package/dist/types/excalidraw/charts/charts.constants.d.ts +48 -0
  99. package/dist/types/excalidraw/charts/charts.helpers.d.ts +32 -0
  100. package/dist/types/excalidraw/charts/charts.line.d.ts +2 -0
  101. package/dist/types/excalidraw/charts/charts.parse.d.ts +10 -0
  102. package/dist/types/excalidraw/charts/charts.radar.d.ts +2 -0
  103. package/dist/types/excalidraw/charts/charts.types.d.ts +18 -0
  104. package/dist/types/excalidraw/charts/index.d.ts +7 -0
  105. package/dist/types/excalidraw/clipboard.d.ts +57 -19
  106. package/dist/types/excalidraw/components/Actions.d.ts +21 -8
  107. package/dist/types/excalidraw/components/App.d.ts +118 -75
  108. package/dist/types/excalidraw/components/AppStateObserver.d.ts +37 -0
  109. package/dist/types/excalidraw/components/Card.d.ts +1 -3
  110. package/dist/types/excalidraw/components/ColorPicker/ColorInput.d.ts +2 -4
  111. package/dist/types/excalidraw/components/ColorPicker/ColorPicker.d.ts +0 -1
  112. package/dist/types/excalidraw/components/ColorPicker/Picker.d.ts +2 -0
  113. package/dist/types/excalidraw/components/ColorPicker/PickerColorList.d.ts +2 -1
  114. package/dist/types/excalidraw/components/ColorPicker/ShadeList.d.ts +2 -1
  115. package/dist/types/excalidraw/components/ColorPicker/colorPickerUtils.d.ts +0 -1
  116. package/dist/types/excalidraw/components/ColorPicker/keyboardNavHandlers.d.ts +0 -1
  117. package/dist/types/excalidraw/components/CommandPalette/CommandPalette.d.ts +1 -0
  118. package/dist/types/excalidraw/components/CommandPalette/types.d.ts +2 -4
  119. package/dist/types/excalidraw/components/ConvertElementTypePopup.d.ts +2 -2
  120. package/dist/types/excalidraw/components/DarkModeToggle.d.ts +1 -1
  121. package/dist/types/excalidraw/components/DefaultSidebar.d.ts +9 -13
  122. package/dist/types/excalidraw/components/ElementLinkDialog.d.ts +1 -1
  123. package/dist/types/excalidraw/components/Ellipsify.d.ts +3 -0
  124. package/dist/types/excalidraw/components/ErrorDialog.d.ts +1 -1
  125. package/dist/types/excalidraw/components/EyeDropper.d.ts +0 -1
  126. package/dist/types/excalidraw/components/FilledButton.d.ts +2 -1
  127. package/dist/types/excalidraw/components/FontPicker/FontPicker.d.ts +2 -1
  128. package/dist/types/excalidraw/components/FontPicker/FontPickerTrigger.d.ts +3 -1
  129. package/dist/types/excalidraw/components/FontPicker/keyboardNavHandlers.d.ts +0 -1
  130. package/dist/types/excalidraw/components/HelpDialog.d.ts +1 -1
  131. package/dist/types/excalidraw/components/HintViewer.d.ts +4 -3
  132. package/dist/types/excalidraw/components/IconPicker.d.ts +14 -9
  133. package/dist/types/excalidraw/components/InlineIcon.d.ts +3 -1
  134. package/dist/types/excalidraw/components/LayerUI.d.ts +2 -1
  135. package/dist/types/excalidraw/components/LibraryMenuControlButtons.d.ts +1 -1
  136. package/dist/types/excalidraw/components/LibraryMenuHeaderContent.d.ts +1 -2
  137. package/dist/types/excalidraw/components/LibraryMenuSection.d.ts +1 -1
  138. package/dist/types/excalidraw/components/LibraryUnit.d.ts +2 -3
  139. package/dist/types/excalidraw/components/LoadingMessage.d.ts +0 -1
  140. package/dist/types/excalidraw/components/MobileMenu.d.ts +3 -5
  141. package/dist/types/excalidraw/components/MobileToolBar.d.ts +10 -0
  142. package/dist/types/excalidraw/components/Modal.d.ts +0 -1
  143. package/dist/types/excalidraw/components/OverwriteConfirm/OverwriteConfirm.d.ts +1 -1
  144. package/dist/types/excalidraw/components/PasteChartDialog.d.ts +4 -5
  145. package/dist/types/excalidraw/components/Popover.d.ts +2 -1
  146. package/dist/types/excalidraw/components/PropertiesPopover.d.ts +2 -1
  147. package/dist/types/excalidraw/components/RadioGroup.d.ts +0 -1
  148. package/dist/types/excalidraw/components/RadioSelection.d.ts +4 -4
  149. package/dist/types/excalidraw/components/Range.d.ts +10 -4
  150. package/dist/types/excalidraw/components/ScrollableList.d.ts +0 -1
  151. package/dist/types/excalidraw/components/Sidebar/Sidebar.d.ts +15 -21
  152. package/dist/types/excalidraw/components/Sidebar/SidebarHeader.d.ts +1 -1
  153. package/dist/types/excalidraw/components/Sidebar/SidebarTab.d.ts +1 -2
  154. package/dist/types/excalidraw/components/Sidebar/SidebarTabTrigger.d.ts +1 -2
  155. package/dist/types/excalidraw/components/Sidebar/SidebarTabTriggers.d.ts +1 -2
  156. package/dist/types/excalidraw/components/Sidebar/SidebarTabs.d.ts +1 -2
  157. package/dist/types/excalidraw/components/Spinner.d.ts +4 -4
  158. package/dist/types/excalidraw/components/Stats/CanvasGrid.d.ts +0 -1
  159. package/dist/types/excalidraw/components/Stats/Collapsible.d.ts +0 -1
  160. package/dist/types/excalidraw/components/Stats/DragInput.d.ts +0 -1
  161. package/dist/types/excalidraw/components/Stats/index.d.ts +7 -8
  162. package/dist/types/excalidraw/components/Stats/utils.d.ts +1 -1
  163. package/dist/types/excalidraw/components/TTDDialog/Chat/ChatHistoryMenu.d.ts +15 -0
  164. package/dist/types/excalidraw/components/TTDDialog/Chat/ChatInterface.d.ts +23 -0
  165. package/dist/types/excalidraw/components/TTDDialog/Chat/ChatMessage.d.ts +14 -0
  166. package/dist/types/excalidraw/components/TTDDialog/Chat/TTDChatPanel.d.ts +27 -0
  167. package/dist/types/excalidraw/components/TTDDialog/Chat/index.d.ts +3 -0
  168. package/dist/types/excalidraw/components/TTDDialog/Chat/useChatAgent.d.ts +8 -0
  169. package/dist/types/excalidraw/components/TTDDialog/CodeMirrorEditor.d.ts +11 -0
  170. package/dist/types/excalidraw/components/TTDDialog/MermaidToExcalidraw.d.ts +3 -2
  171. package/dist/types/excalidraw/components/TTDDialog/TTDContext.d.ts +13 -0
  172. package/dist/types/excalidraw/components/TTDDialog/TTDDialog.d.ts +12 -29
  173. package/dist/types/excalidraw/components/TTDDialog/TTDDialogInput.d.ts +3 -3
  174. package/dist/types/excalidraw/components/TTDDialog/TTDDialogOutput.d.ts +5 -2
  175. package/dist/types/excalidraw/components/TTDDialog/TTDDialogPanel.d.ts +13 -9
  176. package/dist/types/excalidraw/components/TTDDialog/TTDDialogTab.d.ts +1 -2
  177. package/dist/types/excalidraw/components/TTDDialog/TTDDialogTabTrigger.d.ts +1 -2
  178. package/dist/types/excalidraw/components/TTDDialog/TTDDialogTabTriggers.d.ts +1 -2
  179. package/dist/types/excalidraw/components/TTDDialog/TTDPreviewPanel.d.ts +9 -0
  180. package/dist/types/excalidraw/components/TTDDialog/TTDWelcomeMessage.d.ts +1 -0
  181. package/dist/types/excalidraw/components/TTDDialog/TextToDiagram.d.ts +9 -0
  182. package/dist/types/excalidraw/components/TTDDialog/common.d.ts +16 -16
  183. package/dist/types/excalidraw/components/TTDDialog/hooks/useChatManagement.d.ts +13 -0
  184. package/dist/types/excalidraw/components/TTDDialog/hooks/useMermaidRenderer.d.ts +14 -0
  185. package/dist/types/excalidraw/components/TTDDialog/hooks/useTextGeneration.d.ts +7 -0
  186. package/dist/types/excalidraw/components/TTDDialog/mermaid-lang-lite.d.ts +2 -0
  187. package/dist/types/excalidraw/components/TTDDialog/types.d.ts +95 -0
  188. package/dist/types/excalidraw/components/TTDDialog/useTTDChatStorage.d.ts +22 -0
  189. package/dist/types/excalidraw/components/TTDDialog/utils/chat.d.ts +10 -0
  190. package/dist/types/excalidraw/components/TTDDialog/utils/mermaidAutoFix.d.ts +1 -0
  191. package/dist/types/excalidraw/components/TTDDialog/utils/mermaidError.d.ts +10 -0
  192. package/dist/types/excalidraw/components/TTDDialog/utils/mermaidValidation.d.ts +1 -0
  193. package/dist/types/excalidraw/components/TextField.d.ts +1 -0
  194. package/dist/types/excalidraw/components/Toast.d.ts +11 -7
  195. package/dist/types/excalidraw/components/ToolPopover.d.ts +25 -0
  196. package/dist/types/excalidraw/components/Trans.d.ts +2 -2
  197. package/dist/types/excalidraw/components/canvases/InteractiveCanvas.d.ts +7 -3
  198. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenu.d.ts +47 -35
  199. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuContent.d.ts +7 -5
  200. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuGroup.d.ts +3 -3
  201. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuItem.d.ts +13 -22
  202. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuItemCheckbox.d.ts +5 -0
  203. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuItemContent.d.ts +5 -4
  204. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuItemContentRadio.d.ts +2 -2
  205. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuItemCustom.d.ts +2 -2
  206. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuItemLink.d.ts +6 -6
  207. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuSub.d.ts +23 -0
  208. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuSubContent.d.ts +8 -0
  209. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuSubTrigger.d.ts +12 -0
  210. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuTrigger.d.ts +3 -4
  211. package/dist/types/excalidraw/components/dropdownMenu/common.d.ts +2 -2
  212. package/dist/types/excalidraw/components/dropdownMenu/dropdownMenuUtils.d.ts +2 -0
  213. package/dist/types/excalidraw/components/hoc/withInternalFallback.d.ts +1 -1
  214. package/dist/types/excalidraw/components/hyperlink/helpers.d.ts +1 -1
  215. package/dist/types/excalidraw/components/icons.d.ts +49 -21
  216. package/dist/types/excalidraw/components/main-menu/DefaultItems.d.ts +20 -2
  217. package/dist/types/excalidraw/components/main-menu/MainMenu.d.ts +39 -35
  218. package/dist/types/excalidraw/components/shapes.d.ts +202 -1
  219. package/dist/types/excalidraw/data/blob.d.ts +329 -12
  220. package/dist/types/excalidraw/data/encode.d.ts +4 -4
  221. package/dist/types/excalidraw/data/encryption.d.ts +5 -5
  222. package/dist/types/excalidraw/data/filesystem.d.ts +5 -7
  223. package/dist/types/excalidraw/data/index.d.ts +4 -5
  224. package/dist/types/excalidraw/data/json.d.ts +171 -4
  225. package/dist/types/excalidraw/data/library.d.ts +24 -9
  226. package/dist/types/excalidraw/data/resave.d.ts +7 -2
  227. package/dist/types/excalidraw/data/restore.d.ts +27 -7
  228. package/dist/types/excalidraw/data/types.d.ts +4 -1
  229. package/dist/types/excalidraw/editor-jotai.d.ts +11 -11
  230. package/dist/types/excalidraw/errors.d.ts +14 -0
  231. package/dist/types/excalidraw/hooks/useLibraryItemSvg.d.ts +1 -1
  232. package/dist/types/excalidraw/hooks/useOutsideClick.d.ts +4 -3
  233. package/dist/types/excalidraw/hooks/useScrollPosition.d.ts +1 -2
  234. package/dist/types/excalidraw/hooks/useTextEditorFocus.d.ts +14 -0
  235. package/dist/types/excalidraw/i18n.d.ts +2 -2
  236. package/dist/types/excalidraw/renderer/animation.d.ts +12 -0
  237. package/dist/types/excalidraw/renderer/helpers.d.ts +6 -8
  238. package/dist/types/excalidraw/renderer/interactiveScene.d.ts +8 -14
  239. package/dist/types/excalidraw/renderer/staticScene.d.ts +4 -1
  240. package/dist/types/excalidraw/scene/Renderer.d.ts +5 -2
  241. package/dist/types/excalidraw/scene/export.d.ts +2 -2
  242. package/dist/types/excalidraw/scene/scroll.d.ts +1 -6
  243. package/dist/types/excalidraw/scene/types.d.ts +22 -5
  244. package/dist/types/excalidraw/shortcut.d.ts +1 -0
  245. package/dist/types/excalidraw/snapping.d.ts +5 -5
  246. package/dist/types/excalidraw/subset/harfbuzz/harfbuzz-bindings.d.ts +1 -1
  247. package/dist/types/excalidraw/subset/harfbuzz/harfbuzz-loader.d.ts +1 -1
  248. package/dist/types/excalidraw/subset/harfbuzz/harfbuzz-wasm.d.ts +1 -1
  249. package/dist/types/excalidraw/subset/woff2/woff2-loader.d.ts +2 -2
  250. package/dist/types/excalidraw/subset/woff2/woff2-wasm.d.ts +1 -1
  251. package/dist/types/excalidraw/textAutoResizeHandle.d.ts +15 -0
  252. package/dist/types/excalidraw/types.d.ts +130 -38
  253. package/dist/types/excalidraw/wysiwyg/textWysiwyg.d.ts +7 -3
  254. package/dist/types/math/src/curve.d.ts +4 -1
  255. package/dist/types/math/src/point.d.ts +7 -2
  256. package/dist/types/math/src/polygon.d.ts +2 -2
  257. package/dist/types/math/src/range.d.ts +1 -3
  258. package/dist/types/math/src/segment.d.ts +4 -3
  259. package/dist/types/math/src/types.d.ts +25 -1
  260. package/dist/types/utils/src/bbox.d.ts +1 -1
  261. package/dist/types/utils/src/export.d.ts +5 -5
  262. package/dist/types/utils/src/shape.d.ts +6 -6
  263. package/dist/types/utils/src/withinBounds.d.ts +2 -2
  264. package/package.json +9 -3
  265. package/dist/types/excalidraw/charts.d.ts +0 -27
  266. package/dist/types/excalidraw/components/DiagramToCodePlugin/DiagramToCodePlugin.d.ts +0 -4
  267. package/dist/types/excalidraw/components/ExcalidrawLogo.d.ts +0 -16
  268. package/dist/types/excalidraw/components/InitializeApp.d.ts +0 -10
  269. package/dist/types/excalidraw/components/TTDDialog/TTDDialogTrigger.d.ts +0 -9
  270. package/dist/types/excalidraw/components/footer/FooterCenter.d.ts +0 -8
  271. package/dist/types/excalidraw/components/live-collaboration/LiveCollaborationTrigger.d.ts +0 -10
  272. package/dist/types/excalidraw/components/welcome-screen/WelcomeScreen.Center.d.ts +0 -58
  273. package/dist/types/excalidraw/components/welcome-screen/WelcomeScreen.Hints.d.ts +0 -19
  274. package/dist/types/excalidraw/components/welcome-screen/WelcomeScreen.d.ts +0 -85
  275. package/dist/types/excalidraw/data/reconcile.d.ts +0 -6
  276. package/dist/types/excalidraw/index.d.ts +0 -46
  277. package/dist/types/excalidraw/polyfill.d.ts +0 -2
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import type { AppState } from "../types";
3
2
  export declare const actionToggleSearchMenu: {
4
3
  name: "searchMenu";
@@ -11,7 +10,7 @@ export declare const actionToggleSearchMenu: {
11
10
  action: string;
12
11
  predicate: (appState: Readonly<AppState>) => boolean;
13
12
  };
14
- perform(elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: any, app: import("../types").AppClassProperties): false | {
13
+ perform(elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: unknown, app: import("../types").AppClassProperties): false | {
15
14
  appState: {
16
15
  openSidebar: {
17
16
  name: "default";
@@ -25,18 +24,24 @@ export declare const actionToggleSearchMenu: {
25
24
  } | null;
26
25
  showWelcomeScreen: boolean;
27
26
  isLoading: boolean;
28
- errorMessage: import("react").ReactNode;
27
+ errorMessage: React.ReactNode;
29
28
  activeEmbeddable: {
30
29
  element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
31
- state: "active" | "hover";
30
+ state: "hover" | "active";
32
31
  } | null;
33
32
  newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
34
33
  resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
35
34
  multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
36
35
  selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
37
36
  isBindingEnabled: boolean;
37
+ boxSelectionMode: import("../types").BoxSelectionMode;
38
+ bindingPreference: "enabled" | "disabled";
39
+ isMidpointSnappingEnabled: boolean;
38
40
  startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
39
- suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
41
+ suggestedBinding: {
42
+ element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
43
+ midPoint?: import("@excalidraw/math").GlobalPoint;
44
+ } | null;
40
45
  frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
41
46
  frameRendering: {
42
47
  enabled: boolean;
@@ -46,13 +51,16 @@ export declare const actionToggleSearchMenu: {
46
51
  };
47
52
  editingFrame: string | null;
48
53
  elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
49
- editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
50
- editingLinearElement: import("@excalidraw/element").LinearElementEditor | null;
54
+ editingTextElement: import("@excalidraw/element/types").ExcalidrawTextElement | null;
51
55
  activeTool: {
52
56
  lastActiveTool: import("../types").ActiveTool | null;
53
57
  locked: boolean;
54
58
  fromSelection: boolean;
55
59
  } & import("../types").ActiveTool;
60
+ preferredSelectionTool: {
61
+ type: "selection" | "lasso";
62
+ initialized: boolean;
63
+ };
56
64
  penMode: boolean;
57
65
  penDetected: boolean;
58
66
  exportBackground: boolean;
@@ -61,19 +69,19 @@ export declare const actionToggleSearchMenu: {
61
69
  exportScale: number;
62
70
  currentItemStrokeColor: string;
63
71
  currentItemBackgroundColor: string;
64
- currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
72
+ currentItemFillStyle: import("@excalidraw/element/types").ExcalidrawElement["fillStyle"];
65
73
  currentItemStrokeWidth: number;
66
- currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
74
+ currentItemStrokeStyle: import("@excalidraw/element/types").ExcalidrawElement["strokeStyle"];
67
75
  currentItemRoughness: number;
68
76
  currentItemOpacity: number;
69
- currentItemFontFamily: number;
77
+ currentItemFontFamily: import("@excalidraw/element/types").FontFamilyValues;
70
78
  currentItemFontSize: number;
71
- currentItemTextAlign: string;
79
+ currentItemTextAlign: import("@excalidraw/element/types").TextAlign;
72
80
  currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
73
81
  currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
74
- currentHoveredFontFamily: number | null;
82
+ currentHoveredFontFamily: import("@excalidraw/element/types").FontFamilyValues | null;
75
83
  currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
76
- currentItemArrowType: "round" | "sharp" | "elbow";
84
+ currentItemArrowType: "sharp" | "round" | "elbow";
77
85
  viewBackgroundColor: string;
78
86
  scrollX: number;
79
87
  scrollY: number;
@@ -82,11 +90,9 @@ export declare const actionToggleSearchMenu: {
82
90
  name: string | null;
83
91
  isResizing: boolean;
84
92
  isRotating: boolean;
85
- zoom: Readonly<{
86
- value: import("../types").NormalizedZoomValue;
87
- }>;
88
- openMenu: "canvas" | "shape" | null;
89
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
93
+ zoom: import("../types").Zoom;
94
+ openMenu: "canvas" | null;
95
+ openPopup: "canvasBackground" | "elementBackground" | "elementStroke" | "fontFamily" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
90
96
  defaultSidebarDockedPreference: boolean;
91
97
  lastPointerDownWith: import("@excalidraw/element/types").PointerType;
92
98
  selectedElementIds: Readonly<{
@@ -101,9 +107,9 @@ export declare const actionToggleSearchMenu: {
101
107
  selectedElementsAreBeingDragged: boolean;
102
108
  shouldCacheIgnoreZoom: boolean;
103
109
  toast: {
104
- message: string;
105
- closable?: boolean | undefined;
106
- duration?: number | undefined;
110
+ message: React.ReactNode;
111
+ closable?: boolean;
112
+ duration?: number;
107
113
  } | null;
108
114
  zenModeEnabled: boolean;
109
115
  theme: import("@excalidraw/element/types").Theme;
@@ -114,45 +120,18 @@ export declare const actionToggleSearchMenu: {
114
120
  selectedGroupIds: {
115
121
  [groupId: string]: boolean;
116
122
  };
117
- editingGroupId: string | null;
123
+ editingGroupId: import("@excalidraw/element/types").GroupId | null;
118
124
  width: number;
119
125
  height: number;
120
126
  offsetTop: number;
121
127
  offsetLeft: number;
122
- fileHandle: import("browser-fs-access").FileSystemHandle | null;
123
- collaborators: Map<import("../types").SocketId, Readonly<{
124
- pointer?: import("../types").CollaboratorPointer | undefined;
125
- button?: "up" | "down" | undefined;
126
- selectedElementIds?: Readonly<{
127
- [id: string]: true;
128
- }> | undefined;
129
- username?: string | null | undefined;
130
- userState?: import("@excalidraw/common").UserIdleState | undefined;
131
- color?: {
132
- background: string;
133
- stroke: string;
134
- } | undefined;
135
- avatarUrl?: string | undefined;
136
- id?: string | undefined;
137
- socketId?: import("../types").SocketId | undefined;
138
- isCurrentUser?: boolean | undefined;
139
- isInCall?: boolean | undefined;
140
- isSpeaking?: boolean | undefined;
141
- isMuted?: boolean | undefined;
142
- }>>;
128
+ fileHandle: FileSystemFileHandle | null;
129
+ collaborators: Map<import("../types").SocketId, import("../types").Collaborator>;
143
130
  stats: {
144
131
  open: boolean;
145
132
  panels: number;
146
133
  };
147
- currentChartType: import("@excalidraw/element/types").ChartType;
148
- pasteDialog: {
149
- shown: false;
150
- data: null;
151
- } | {
152
- shown: true;
153
- data: import("../charts").Spreadsheet;
154
- };
155
- showHyperlinkPopup: false | "editor" | "info";
134
+ showHyperlinkPopup: false | "info" | "editor";
156
135
  selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
157
136
  snapLines: readonly import("../snapping").SnapLine[];
158
137
  originSnapOffset: {
@@ -163,15 +142,16 @@ export declare const actionToggleSearchMenu: {
163
142
  userToFollow: import("../types").UserToFollow | null;
164
143
  followedBy: Set<import("../types").SocketId>;
165
144
  isCropping: boolean;
166
- croppingElementId: string | null;
145
+ croppingElementId: import("@excalidraw/element/types").ExcalidrawElement["id"] | null;
167
146
  searchMatches: Readonly<{
168
- focusedId: string | null;
147
+ focusedId: import("@excalidraw/element/types").ExcalidrawElement["id"] | null;
169
148
  matches: readonly import("../types").SearchMatch[];
170
149
  }> | null;
171
150
  activeLockedId: string | null;
172
151
  lockedMultiSelections: {
173
152
  [groupId: string]: true;
174
153
  };
154
+ bindMode: import("@excalidraw/element/types").BindMode;
175
155
  };
176
156
  captureUpdate: "EVENTUALLY";
177
157
  };
@@ -9,7 +9,7 @@ export declare const actionToggleShapeSwitch: {
9
9
  action: string;
10
10
  };
11
11
  keywords: string[];
12
- perform(elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, _: any, app: import("../types").AppClassProperties): {
12
+ perform(elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, _: unknown, app: import("../types").AppClassProperties): {
13
13
  captureUpdate: "NEVER";
14
14
  };
15
15
  checked: (appState: Readonly<import("../types").AppState>) => boolean;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  export declare const actionToggleStats: {
3
2
  name: "stats";
4
3
  label: string;
@@ -21,18 +20,24 @@ export declare const actionToggleStats: {
21
20
  } | null;
22
21
  showWelcomeScreen: boolean;
23
22
  isLoading: boolean;
24
- errorMessage: import("react").ReactNode;
23
+ errorMessage: React.ReactNode;
25
24
  activeEmbeddable: {
26
25
  element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
27
- state: "active" | "hover";
26
+ state: "hover" | "active";
28
27
  } | null;
29
28
  newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
30
29
  resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
31
30
  multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
32
31
  selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
33
32
  isBindingEnabled: boolean;
33
+ boxSelectionMode: import("../types").BoxSelectionMode;
34
+ bindingPreference: "enabled" | "disabled";
35
+ isMidpointSnappingEnabled: boolean;
34
36
  startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
35
- suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
37
+ suggestedBinding: {
38
+ element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
39
+ midPoint?: import("@excalidraw/math").GlobalPoint;
40
+ } | null;
36
41
  frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
37
42
  frameRendering: {
38
43
  enabled: boolean;
@@ -42,13 +47,16 @@ export declare const actionToggleStats: {
42
47
  };
43
48
  editingFrame: string | null;
44
49
  elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
45
- editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
46
- editingLinearElement: import("@excalidraw/element").LinearElementEditor | null;
50
+ editingTextElement: import("@excalidraw/element/types").ExcalidrawTextElement | null;
47
51
  activeTool: {
48
52
  lastActiveTool: import("../types").ActiveTool | null;
49
53
  locked: boolean;
50
54
  fromSelection: boolean;
51
55
  } & import("../types").ActiveTool;
56
+ preferredSelectionTool: {
57
+ type: "selection" | "lasso";
58
+ initialized: boolean;
59
+ };
52
60
  penMode: boolean;
53
61
  penDetected: boolean;
54
62
  exportBackground: boolean;
@@ -57,19 +65,19 @@ export declare const actionToggleStats: {
57
65
  exportScale: number;
58
66
  currentItemStrokeColor: string;
59
67
  currentItemBackgroundColor: string;
60
- currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
68
+ currentItemFillStyle: import("@excalidraw/element/types").ExcalidrawElement["fillStyle"];
61
69
  currentItemStrokeWidth: number;
62
- currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
70
+ currentItemStrokeStyle: import("@excalidraw/element/types").ExcalidrawElement["strokeStyle"];
63
71
  currentItemRoughness: number;
64
72
  currentItemOpacity: number;
65
- currentItemFontFamily: number;
73
+ currentItemFontFamily: import("@excalidraw/element/types").FontFamilyValues;
66
74
  currentItemFontSize: number;
67
- currentItemTextAlign: string;
75
+ currentItemTextAlign: import("@excalidraw/element/types").TextAlign;
68
76
  currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
69
77
  currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
70
- currentHoveredFontFamily: number | null;
78
+ currentHoveredFontFamily: import("@excalidraw/element/types").FontFamilyValues | null;
71
79
  currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
72
- currentItemArrowType: "round" | "sharp" | "elbow";
80
+ currentItemArrowType: "sharp" | "round" | "elbow";
73
81
  viewBackgroundColor: string;
74
82
  scrollX: number;
75
83
  scrollY: number;
@@ -78,26 +86,30 @@ export declare const actionToggleStats: {
78
86
  name: string | null;
79
87
  isResizing: boolean;
80
88
  isRotating: boolean;
81
- zoom: Readonly<{
82
- value: import("../types").NormalizedZoomValue;
83
- }>;
84
- openMenu: "canvas" | "shape" | null;
85
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
89
+ zoom: import("../types").Zoom;
90
+ openMenu: "canvas" | null;
91
+ openPopup: "canvasBackground" | "elementBackground" | "elementStroke" | "fontFamily" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
86
92
  openSidebar: {
87
- name: string;
88
- tab?: string | undefined;
93
+ name: import("../types").SidebarName;
94
+ tab?: import("../types").SidebarTabName;
89
95
  } | null;
90
- openDialog: {
96
+ openDialog: null | {
91
97
  name: "imageExport" | "help" | "jsonExport";
92
98
  } | {
93
99
  name: "ttd";
94
- tab: "mermaid" | "text-to-diagram";
100
+ tab: "text-to-diagram" | "mermaid";
95
101
  } | {
96
102
  name: "commandPalette";
103
+ } | {
104
+ name: "settings";
97
105
  } | {
98
106
  name: "elementLinkSelector";
99
- sourceElementId: string;
100
- } | null;
107
+ sourceElementId: import("@excalidraw/element/types").ExcalidrawElement["id"];
108
+ } | {
109
+ name: "charts";
110
+ data: import("../charts").Spreadsheet;
111
+ rawText: string;
112
+ };
101
113
  defaultSidebarDockedPreference: boolean;
102
114
  lastPointerDownWith: import("@excalidraw/element/types").PointerType;
103
115
  selectedElementIds: Readonly<{
@@ -112,9 +124,9 @@ export declare const actionToggleStats: {
112
124
  selectedElementsAreBeingDragged: boolean;
113
125
  shouldCacheIgnoreZoom: boolean;
114
126
  toast: {
115
- message: string;
116
- closable?: boolean | undefined;
117
- duration?: number | undefined;
127
+ message: React.ReactNode;
128
+ closable?: boolean;
129
+ duration?: number;
118
130
  } | null;
119
131
  zenModeEnabled: boolean;
120
132
  theme: import("@excalidraw/element/types").Theme;
@@ -125,41 +137,14 @@ export declare const actionToggleStats: {
125
137
  selectedGroupIds: {
126
138
  [groupId: string]: boolean;
127
139
  };
128
- editingGroupId: string | null;
140
+ editingGroupId: import("@excalidraw/element/types").GroupId | null;
129
141
  width: number;
130
142
  height: number;
131
143
  offsetTop: number;
132
144
  offsetLeft: number;
133
- fileHandle: import("browser-fs-access").FileSystemHandle | null;
134
- collaborators: Map<import("../types").SocketId, Readonly<{
135
- pointer?: import("../types").CollaboratorPointer | undefined;
136
- button?: "up" | "down" | undefined;
137
- selectedElementIds?: Readonly<{
138
- [id: string]: true;
139
- }> | undefined;
140
- username?: string | null | undefined;
141
- userState?: import("@excalidraw/common").UserIdleState | undefined;
142
- color?: {
143
- background: string;
144
- stroke: string;
145
- } | undefined;
146
- avatarUrl?: string | undefined;
147
- id?: string | undefined;
148
- socketId?: import("../types").SocketId | undefined;
149
- isCurrentUser?: boolean | undefined;
150
- isInCall?: boolean | undefined;
151
- isSpeaking?: boolean | undefined;
152
- isMuted?: boolean | undefined;
153
- }>>;
154
- currentChartType: import("@excalidraw/element/types").ChartType;
155
- pasteDialog: {
156
- shown: false;
157
- data: null;
158
- } | {
159
- shown: true;
160
- data: import("../charts").Spreadsheet;
161
- };
162
- showHyperlinkPopup: false | "editor" | "info";
145
+ fileHandle: FileSystemFileHandle | null;
146
+ collaborators: Map<import("../types").SocketId, import("../types").Collaborator>;
147
+ showHyperlinkPopup: false | "info" | "editor";
163
148
  selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
164
149
  snapLines: readonly import("../snapping").SnapLine[];
165
150
  originSnapOffset: {
@@ -170,15 +155,16 @@ export declare const actionToggleStats: {
170
155
  userToFollow: import("../types").UserToFollow | null;
171
156
  followedBy: Set<import("../types").SocketId>;
172
157
  isCropping: boolean;
173
- croppingElementId: string | null;
158
+ croppingElementId: import("@excalidraw/element/types").ExcalidrawElement["id"] | null;
174
159
  searchMatches: Readonly<{
175
- focusedId: string | null;
160
+ focusedId: import("@excalidraw/element/types").ExcalidrawElement["id"] | null;
176
161
  matches: readonly import("../types").SearchMatch[];
177
162
  }> | null;
178
163
  activeLockedId: string | null;
179
164
  lockedMultiSelections: {
180
165
  [groupId: string]: true;
181
166
  };
167
+ bindMode: import("@excalidraw/element/types").BindMode;
182
168
  };
183
169
  captureUpdate: "EVENTUALLY";
184
170
  };
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  export declare const actionToggleViewMode: {
3
2
  name: "viewMode";
4
3
  label: string;
@@ -18,18 +17,24 @@ export declare const actionToggleViewMode: {
18
17
  } | null;
19
18
  showWelcomeScreen: boolean;
20
19
  isLoading: boolean;
21
- errorMessage: import("react").ReactNode;
20
+ errorMessage: React.ReactNode;
22
21
  activeEmbeddable: {
23
22
  element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
24
- state: "active" | "hover";
23
+ state: "hover" | "active";
25
24
  } | null;
26
25
  newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
27
26
  resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
28
27
  multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
29
28
  selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
30
29
  isBindingEnabled: boolean;
30
+ boxSelectionMode: import("../types").BoxSelectionMode;
31
+ bindingPreference: "enabled" | "disabled";
32
+ isMidpointSnappingEnabled: boolean;
31
33
  startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
32
- suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
34
+ suggestedBinding: {
35
+ element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
36
+ midPoint?: import("@excalidraw/math").GlobalPoint;
37
+ } | null;
33
38
  frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
34
39
  frameRendering: {
35
40
  enabled: boolean;
@@ -39,13 +44,16 @@ export declare const actionToggleViewMode: {
39
44
  };
40
45
  editingFrame: string | null;
41
46
  elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
42
- editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
43
- editingLinearElement: import("@excalidraw/element").LinearElementEditor | null;
47
+ editingTextElement: import("@excalidraw/element/types").ExcalidrawTextElement | null;
44
48
  activeTool: {
45
49
  lastActiveTool: import("../types").ActiveTool | null;
46
50
  locked: boolean;
47
51
  fromSelection: boolean;
48
52
  } & import("../types").ActiveTool;
53
+ preferredSelectionTool: {
54
+ type: "selection" | "lasso";
55
+ initialized: boolean;
56
+ };
49
57
  penMode: boolean;
50
58
  penDetected: boolean;
51
59
  exportBackground: boolean;
@@ -54,19 +62,19 @@ export declare const actionToggleViewMode: {
54
62
  exportScale: number;
55
63
  currentItemStrokeColor: string;
56
64
  currentItemBackgroundColor: string;
57
- currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
65
+ currentItemFillStyle: import("@excalidraw/element/types").ExcalidrawElement["fillStyle"];
58
66
  currentItemStrokeWidth: number;
59
- currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
67
+ currentItemStrokeStyle: import("@excalidraw/element/types").ExcalidrawElement["strokeStyle"];
60
68
  currentItemRoughness: number;
61
69
  currentItemOpacity: number;
62
- currentItemFontFamily: number;
70
+ currentItemFontFamily: import("@excalidraw/element/types").FontFamilyValues;
63
71
  currentItemFontSize: number;
64
- currentItemTextAlign: string;
72
+ currentItemTextAlign: import("@excalidraw/element/types").TextAlign;
65
73
  currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
66
74
  currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
67
- currentHoveredFontFamily: number | null;
75
+ currentHoveredFontFamily: import("@excalidraw/element/types").FontFamilyValues | null;
68
76
  currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
69
- currentItemArrowType: "round" | "sharp" | "elbow";
77
+ currentItemArrowType: "sharp" | "round" | "elbow";
70
78
  viewBackgroundColor: string;
71
79
  scrollX: number;
72
80
  scrollY: number;
@@ -75,26 +83,30 @@ export declare const actionToggleViewMode: {
75
83
  name: string | null;
76
84
  isResizing: boolean;
77
85
  isRotating: boolean;
78
- zoom: Readonly<{
79
- value: import("../types").NormalizedZoomValue;
80
- }>;
81
- openMenu: "canvas" | "shape" | null;
82
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
86
+ zoom: import("../types").Zoom;
87
+ openMenu: "canvas" | null;
88
+ openPopup: "canvasBackground" | "elementBackground" | "elementStroke" | "fontFamily" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
83
89
  openSidebar: {
84
- name: string;
85
- tab?: string | undefined;
90
+ name: import("../types").SidebarName;
91
+ tab?: import("../types").SidebarTabName;
86
92
  } | null;
87
- openDialog: {
93
+ openDialog: null | {
88
94
  name: "imageExport" | "help" | "jsonExport";
89
95
  } | {
90
96
  name: "ttd";
91
- tab: "mermaid" | "text-to-diagram";
97
+ tab: "text-to-diagram" | "mermaid";
92
98
  } | {
93
99
  name: "commandPalette";
100
+ } | {
101
+ name: "settings";
94
102
  } | {
95
103
  name: "elementLinkSelector";
96
- sourceElementId: string;
97
- } | null;
104
+ sourceElementId: import("@excalidraw/element/types").ExcalidrawElement["id"];
105
+ } | {
106
+ name: "charts";
107
+ data: import("../charts").Spreadsheet;
108
+ rawText: string;
109
+ };
98
110
  defaultSidebarDockedPreference: boolean;
99
111
  lastPointerDownWith: import("@excalidraw/element/types").PointerType;
100
112
  selectedElementIds: Readonly<{
@@ -109,9 +121,9 @@ export declare const actionToggleViewMode: {
109
121
  selectedElementsAreBeingDragged: boolean;
110
122
  shouldCacheIgnoreZoom: boolean;
111
123
  toast: {
112
- message: string;
113
- closable?: boolean | undefined;
114
- duration?: number | undefined;
124
+ message: React.ReactNode;
125
+ closable?: boolean;
126
+ duration?: number;
115
127
  } | null;
116
128
  zenModeEnabled: boolean;
117
129
  theme: import("@excalidraw/element/types").Theme;
@@ -121,45 +133,18 @@ export declare const actionToggleViewMode: {
121
133
  selectedGroupIds: {
122
134
  [groupId: string]: boolean;
123
135
  };
124
- editingGroupId: string | null;
136
+ editingGroupId: import("@excalidraw/element/types").GroupId | null;
125
137
  width: number;
126
138
  height: number;
127
139
  offsetTop: number;
128
140
  offsetLeft: number;
129
- fileHandle: import("browser-fs-access").FileSystemHandle | null;
130
- collaborators: Map<import("../types").SocketId, Readonly<{
131
- pointer?: import("../types").CollaboratorPointer | undefined;
132
- button?: "up" | "down" | undefined;
133
- selectedElementIds?: Readonly<{
134
- [id: string]: true;
135
- }> | undefined;
136
- username?: string | null | undefined;
137
- userState?: import("@excalidraw/common").UserIdleState | undefined;
138
- color?: {
139
- background: string;
140
- stroke: string;
141
- } | undefined;
142
- avatarUrl?: string | undefined;
143
- id?: string | undefined;
144
- socketId?: import("../types").SocketId | undefined;
145
- isCurrentUser?: boolean | undefined;
146
- isInCall?: boolean | undefined;
147
- isSpeaking?: boolean | undefined;
148
- isMuted?: boolean | undefined;
149
- }>>;
141
+ fileHandle: FileSystemFileHandle | null;
142
+ collaborators: Map<import("../types").SocketId, import("../types").Collaborator>;
150
143
  stats: {
151
144
  open: boolean;
152
145
  panels: number;
153
146
  };
154
- currentChartType: import("@excalidraw/element/types").ChartType;
155
- pasteDialog: {
156
- shown: false;
157
- data: null;
158
- } | {
159
- shown: true;
160
- data: import("../charts").Spreadsheet;
161
- };
162
- showHyperlinkPopup: false | "editor" | "info";
147
+ showHyperlinkPopup: false | "info" | "editor";
163
148
  selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
164
149
  snapLines: readonly import("../snapping").SnapLine[];
165
150
  originSnapOffset: {
@@ -170,15 +155,16 @@ export declare const actionToggleViewMode: {
170
155
  userToFollow: import("../types").UserToFollow | null;
171
156
  followedBy: Set<import("../types").SocketId>;
172
157
  isCropping: boolean;
173
- croppingElementId: string | null;
158
+ croppingElementId: import("@excalidraw/element/types").ExcalidrawElement["id"] | null;
174
159
  searchMatches: Readonly<{
175
- focusedId: string | null;
160
+ focusedId: import("@excalidraw/element/types").ExcalidrawElement["id"] | null;
176
161
  matches: readonly import("../types").SearchMatch[];
177
162
  }> | null;
178
163
  activeLockedId: string | null;
179
164
  lockedMultiSelections: {
180
165
  [groupId: string]: true;
181
166
  };
167
+ bindMode: import("@excalidraw/element/types").BindMode;
182
168
  };
183
169
  captureUpdate: "EVENTUALLY";
184
170
  };