@excalidraw/element 0.18.0-b7aac689a → 0.18.0-c108292

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