@excalidraw/math 0.18.0-a8acc82 → 0.18.0-a9ca16e

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 (265) hide show
  1. package/dist/dev/index.js +9 -4
  2. package/dist/dev/index.js.map +2 -2
  3. package/dist/prod/index.js +1 -1
  4. package/dist/types/common/debug.d.ts +21 -0
  5. package/dist/types/common/src/appEventBus.d.ts +27 -0
  6. package/dist/types/common/src/bounds.d.ts +10 -0
  7. package/dist/types/common/src/colors.d.ts +59 -39
  8. package/dist/types/common/src/constants.d.ts +23 -27
  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 -42
  15. package/dist/types/common/src/versionedSnapshotStore.d.ts +17 -0
  16. package/dist/types/element/src/Scene.d.ts +5 -3
  17. package/dist/types/element/src/arrowheads.d.ts +3 -0
  18. package/dist/types/element/src/arrows/focus.d.ts +27 -0
  19. package/dist/types/element/src/arrows/helpers.d.ts +5 -0
  20. package/dist/types/element/src/binding.d.ts +67 -48
  21. package/dist/types/element/src/bounds.d.ts +3 -11
  22. package/dist/types/element/src/collision.d.ts +7 -2
  23. package/dist/types/element/src/comparisons.d.ts +7 -7
  24. package/dist/types/element/src/distribute.d.ts +2 -1
  25. package/dist/types/element/src/dragElements.d.ts +3 -3
  26. package/dist/types/element/src/duplicate.d.ts +3 -3
  27. package/dist/types/element/src/elbowArrow.d.ts +2 -0
  28. package/dist/types/element/src/fractionalIndex.d.ts +2 -2
  29. package/dist/types/element/src/frame.d.ts +5 -1
  30. package/dist/types/element/src/heading.d.ts +2 -1
  31. package/dist/types/element/src/image.d.ts +1 -11
  32. package/dist/types/element/src/index.d.ts +4 -3
  33. package/dist/types/element/src/linearElementEditor.d.ts +21 -20
  34. package/dist/types/element/src/mutateElement.d.ts +5 -1
  35. package/dist/types/element/src/newElement.d.ts +6 -6
  36. package/dist/types/element/src/renderElement.d.ts +1 -7
  37. package/dist/types/element/src/resizeElements.d.ts +10 -10
  38. package/dist/types/element/src/resizeTest.d.ts +6 -5
  39. package/dist/types/element/src/selection.d.ts +8 -8
  40. package/dist/types/element/src/shape.d.ts +8 -7
  41. package/dist/types/element/src/textElement.d.ts +1 -1
  42. package/dist/types/element/src/textMeasurements.d.ts +1 -3
  43. package/dist/types/element/src/textWrapping.d.ts +26 -0
  44. package/dist/types/{excalidraw/data → element/src}/transform.d.ts +3 -3
  45. package/dist/types/element/src/transformHandles.d.ts +8 -27
  46. package/dist/types/element/src/typeChecks.d.ts +4 -7
  47. package/dist/types/element/src/types.d.ts +12 -13
  48. package/dist/types/element/src/utils.d.ts +8 -3
  49. package/dist/types/element/src/zindex.d.ts +7 -1
  50. package/dist/types/excalidraw/actions/actionAddToLibrary.d.ts +167 -210
  51. package/dist/types/excalidraw/actions/actionAlign.d.ts +6 -7
  52. package/dist/types/excalidraw/actions/actionBoundText.d.ts +92 -121
  53. package/dist/types/excalidraw/actions/actionCanvas.d.ts +544 -902
  54. package/dist/types/excalidraw/actions/actionClipboard.d.ts +123 -897
  55. package/dist/types/excalidraw/actions/actionCropEditor.d.ts +44 -59
  56. package/dist/types/excalidraw/actions/actionDeleteSelected.d.ts +145 -192
  57. package/dist/types/excalidraw/actions/actionDistribute.d.ts +2 -3
  58. package/dist/types/excalidraw/actions/actionDuplicateSelection.d.ts +3 -4
  59. package/dist/types/excalidraw/actions/actionElementLink.d.ts +53 -74
  60. package/dist/types/excalidraw/actions/actionElementLock.d.ts +90 -119
  61. package/dist/types/excalidraw/actions/actionEmbeddable.d.ts +59 -74
  62. package/dist/types/excalidraw/actions/actionExport.d.ts +171 -1412
  63. package/dist/types/excalidraw/actions/actionFinalize.d.ts +10 -396
  64. package/dist/types/excalidraw/actions/actionFlip.d.ts +2 -3
  65. package/dist/types/excalidraw/actions/actionFrame.d.ts +261 -356
  66. package/dist/types/excalidraw/actions/actionGroup.d.ts +95 -132
  67. package/dist/types/excalidraw/actions/actionLinearEditor.d.ts +136 -189
  68. package/dist/types/excalidraw/actions/actionLink.d.ts +59 -74
  69. package/dist/types/excalidraw/actions/actionMenu.d.ts +48 -437
  70. package/dist/types/excalidraw/actions/actionNavigate.d.ts +18 -361
  71. package/dist/types/excalidraw/actions/actionProperties.d.ts +152 -2533
  72. package/dist/types/excalidraw/actions/actionSelectAll.d.ts +47 -66
  73. package/dist/types/excalidraw/actions/actionStyles.d.ts +44 -58
  74. package/dist/types/excalidraw/actions/actionTextAutoResize.d.ts +4 -4
  75. package/dist/types/excalidraw/actions/actionToggleArrowBinding.d.ts +172 -0
  76. package/dist/types/excalidraw/actions/actionToggleGridMode.d.ts +59 -74
  77. package/dist/types/excalidraw/actions/actionToggleMidpointSnapping.d.ts +172 -0
  78. package/dist/types/excalidraw/actions/actionToggleObjectsSnapMode.d.ts +59 -74
  79. package/dist/types/excalidraw/actions/actionToggleSearchMenu.d.ts +47 -68
  80. package/dist/types/excalidraw/actions/actionToggleShapeSwitch.d.ts +1 -1
  81. package/dist/types/excalidraw/actions/actionToggleStats.d.ts +58 -73
  82. package/dist/types/excalidraw/actions/actionToggleViewMode.d.ts +59 -74
  83. package/dist/types/excalidraw/actions/actionToggleZenMode.d.ts +59 -74
  84. package/dist/types/excalidraw/actions/actionZindex.d.ts +8 -9
  85. package/dist/types/excalidraw/actions/index.d.ts +3 -1
  86. package/dist/types/excalidraw/actions/register.d.ts +2 -2
  87. package/dist/types/excalidraw/actions/shortcuts.d.ts +1 -1
  88. package/dist/types/excalidraw/actions/types.d.ts +4 -4
  89. package/dist/types/excalidraw/appState.d.ts +28 -22
  90. package/dist/types/excalidraw/charts/charts.bar.d.ts +2 -0
  91. package/dist/types/excalidraw/charts/charts.constants.d.ts +48 -0
  92. package/dist/types/excalidraw/charts/charts.helpers.d.ts +32 -0
  93. package/dist/types/excalidraw/charts/charts.line.d.ts +2 -0
  94. package/dist/types/excalidraw/charts/charts.parse.d.ts +10 -0
  95. package/dist/types/excalidraw/charts/charts.radar.d.ts +2 -0
  96. package/dist/types/excalidraw/charts/charts.types.d.ts +18 -0
  97. package/dist/types/excalidraw/charts/index.d.ts +7 -0
  98. package/dist/types/excalidraw/clipboard.d.ts +13 -38
  99. package/dist/types/excalidraw/components/Actions.d.ts +14 -4
  100. package/dist/types/excalidraw/components/App.d.ts +109 -70
  101. package/dist/types/excalidraw/components/AppStateObserver.d.ts +37 -0
  102. package/dist/types/excalidraw/components/Card.d.ts +1 -3
  103. package/dist/types/excalidraw/components/ColorPicker/ColorInput.d.ts +2 -4
  104. package/dist/types/excalidraw/components/ColorPicker/ColorPicker.d.ts +1 -3
  105. package/dist/types/excalidraw/components/ColorPicker/Picker.d.ts +2 -0
  106. package/dist/types/excalidraw/components/ColorPicker/PickerColorList.d.ts +2 -1
  107. package/dist/types/excalidraw/components/ColorPicker/ShadeList.d.ts +2 -1
  108. package/dist/types/excalidraw/components/ColorPicker/colorPickerUtils.d.ts +0 -1
  109. package/dist/types/excalidraw/components/ColorPicker/keyboardNavHandlers.d.ts +0 -1
  110. package/dist/types/excalidraw/components/CommandPalette/CommandPalette.d.ts +1 -0
  111. package/dist/types/excalidraw/components/CommandPalette/types.d.ts +2 -4
  112. package/dist/types/excalidraw/components/ConvertElementTypePopup.d.ts +2 -2
  113. package/dist/types/excalidraw/components/DarkModeToggle.d.ts +1 -1
  114. package/dist/types/excalidraw/components/DefaultSidebar.d.ts +9 -13
  115. package/dist/types/excalidraw/components/ElementLinkDialog.d.ts +1 -1
  116. package/dist/types/excalidraw/components/Ellipsify.d.ts +1 -2
  117. package/dist/types/excalidraw/components/ErrorDialog.d.ts +1 -1
  118. package/dist/types/excalidraw/components/EyeDropper.d.ts +0 -1
  119. package/dist/types/excalidraw/components/FilledButton.d.ts +2 -1
  120. package/dist/types/excalidraw/components/FontPicker/FontPickerTrigger.d.ts +2 -1
  121. package/dist/types/excalidraw/components/FontPicker/keyboardNavHandlers.d.ts +0 -1
  122. package/dist/types/excalidraw/components/HelpDialog.d.ts +1 -1
  123. package/dist/types/excalidraw/components/HintViewer.d.ts +4 -3
  124. package/dist/types/excalidraw/components/IconPicker.d.ts +14 -9
  125. package/dist/types/excalidraw/components/InlineIcon.d.ts +3 -1
  126. package/dist/types/excalidraw/components/LayerUI.d.ts +2 -1
  127. package/dist/types/excalidraw/components/LibraryMenuControlButtons.d.ts +1 -1
  128. package/dist/types/excalidraw/components/LibraryMenuHeaderContent.d.ts +1 -2
  129. package/dist/types/excalidraw/components/LibraryMenuSection.d.ts +1 -1
  130. package/dist/types/excalidraw/components/LibraryUnit.d.ts +2 -3
  131. package/dist/types/excalidraw/components/LoadingMessage.d.ts +0 -1
  132. package/dist/types/excalidraw/components/MobileMenu.d.ts +3 -5
  133. package/dist/types/excalidraw/components/MobileToolBar.d.ts +10 -0
  134. package/dist/types/excalidraw/components/Modal.d.ts +0 -1
  135. package/dist/types/excalidraw/components/OverwriteConfirm/OverwriteConfirm.d.ts +1 -1
  136. package/dist/types/excalidraw/components/PasteChartDialog.d.ts +4 -5
  137. package/dist/types/excalidraw/components/Popover.d.ts +2 -1
  138. package/dist/types/excalidraw/components/PropertiesPopover.d.ts +1 -1
  139. package/dist/types/excalidraw/components/RadioGroup.d.ts +0 -1
  140. package/dist/types/excalidraw/components/RadioSelection.d.ts +4 -4
  141. package/dist/types/excalidraw/components/Range.d.ts +10 -4
  142. package/dist/types/excalidraw/components/ScrollableList.d.ts +0 -1
  143. package/dist/types/excalidraw/components/Sidebar/Sidebar.d.ts +15 -21
  144. package/dist/types/excalidraw/components/Sidebar/SidebarHeader.d.ts +1 -1
  145. package/dist/types/excalidraw/components/Sidebar/SidebarTab.d.ts +1 -2
  146. package/dist/types/excalidraw/components/Sidebar/SidebarTabTrigger.d.ts +1 -2
  147. package/dist/types/excalidraw/components/Sidebar/SidebarTabTriggers.d.ts +1 -2
  148. package/dist/types/excalidraw/components/Sidebar/SidebarTabs.d.ts +1 -2
  149. package/dist/types/excalidraw/components/Spinner.d.ts +4 -4
  150. package/dist/types/excalidraw/components/Stats/CanvasGrid.d.ts +0 -1
  151. package/dist/types/excalidraw/components/Stats/Collapsible.d.ts +0 -1
  152. package/dist/types/excalidraw/components/Stats/DragInput.d.ts +0 -1
  153. package/dist/types/excalidraw/components/Stats/index.d.ts +7 -8
  154. package/dist/types/excalidraw/components/Stats/utils.d.ts +1 -1
  155. package/dist/types/excalidraw/components/TTDDialog/Chat/ChatHistoryMenu.d.ts +15 -0
  156. package/dist/types/excalidraw/components/TTDDialog/Chat/ChatInterface.d.ts +23 -0
  157. package/dist/types/excalidraw/components/TTDDialog/Chat/ChatMessage.d.ts +14 -0
  158. package/dist/types/excalidraw/components/TTDDialog/Chat/TTDChatPanel.d.ts +27 -0
  159. package/dist/types/excalidraw/components/TTDDialog/Chat/index.d.ts +3 -0
  160. package/dist/types/excalidraw/components/TTDDialog/Chat/useChatAgent.d.ts +8 -0
  161. package/dist/types/excalidraw/components/TTDDialog/CodeMirrorEditor.d.ts +11 -0
  162. package/dist/types/excalidraw/components/TTDDialog/MermaidToExcalidraw.d.ts +3 -2
  163. package/dist/types/excalidraw/components/TTDDialog/TTDContext.d.ts +13 -0
  164. package/dist/types/excalidraw/components/TTDDialog/TTDDialog.d.ts +12 -29
  165. package/dist/types/excalidraw/components/TTDDialog/TTDDialogInput.d.ts +3 -3
  166. package/dist/types/excalidraw/components/TTDDialog/TTDDialogOutput.d.ts +5 -2
  167. package/dist/types/excalidraw/components/TTDDialog/TTDDialogPanel.d.ts +13 -9
  168. package/dist/types/excalidraw/components/TTDDialog/TTDDialogTab.d.ts +1 -2
  169. package/dist/types/excalidraw/components/TTDDialog/TTDDialogTabTrigger.d.ts +1 -2
  170. package/dist/types/excalidraw/components/TTDDialog/TTDDialogTabTriggers.d.ts +1 -2
  171. package/dist/types/excalidraw/components/TTDDialog/TTDPreviewPanel.d.ts +9 -0
  172. package/dist/types/excalidraw/components/TTDDialog/TTDWelcomeMessage.d.ts +1 -0
  173. package/dist/types/excalidraw/components/TTDDialog/TextToDiagram.d.ts +9 -0
  174. package/dist/types/excalidraw/components/TTDDialog/common.d.ts +16 -16
  175. package/dist/types/excalidraw/components/TTDDialog/hooks/useChatManagement.d.ts +13 -0
  176. package/dist/types/excalidraw/components/TTDDialog/hooks/useMermaidRenderer.d.ts +14 -0
  177. package/dist/types/excalidraw/components/TTDDialog/hooks/useTextGeneration.d.ts +7 -0
  178. package/dist/types/excalidraw/components/TTDDialog/mermaid-lang-lite.d.ts +2 -0
  179. package/dist/types/excalidraw/components/TTDDialog/types.d.ts +95 -0
  180. package/dist/types/excalidraw/components/TTDDialog/useTTDChatStorage.d.ts +22 -0
  181. package/dist/types/excalidraw/components/TTDDialog/utils/chat.d.ts +10 -0
  182. package/dist/types/excalidraw/components/TTDDialog/utils/mermaidAutoFix.d.ts +1 -0
  183. package/dist/types/excalidraw/components/TTDDialog/utils/mermaidError.d.ts +10 -0
  184. package/dist/types/excalidraw/components/TTDDialog/utils/mermaidValidation.d.ts +1 -0
  185. package/dist/types/excalidraw/components/TextField.d.ts +1 -0
  186. package/dist/types/excalidraw/components/Toast.d.ts +11 -7
  187. package/dist/types/excalidraw/components/ToolPopover.d.ts +25 -0
  188. package/dist/types/excalidraw/components/Trans.d.ts +2 -2
  189. package/dist/types/excalidraw/components/canvases/InteractiveCanvas.d.ts +7 -3
  190. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenu.d.ts +47 -35
  191. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuContent.d.ts +7 -5
  192. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuGroup.d.ts +3 -3
  193. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuItem.d.ts +13 -22
  194. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuItemCheckbox.d.ts +5 -0
  195. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuItemContent.d.ts +5 -4
  196. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuItemContentRadio.d.ts +0 -1
  197. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuItemCustom.d.ts +2 -2
  198. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuItemLink.d.ts +6 -6
  199. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuSub.d.ts +23 -0
  200. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuSubContent.d.ts +8 -0
  201. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuSubTrigger.d.ts +12 -0
  202. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuTrigger.d.ts +3 -4
  203. package/dist/types/excalidraw/components/dropdownMenu/common.d.ts +2 -2
  204. package/dist/types/excalidraw/components/dropdownMenu/dropdownMenuUtils.d.ts +2 -0
  205. package/dist/types/excalidraw/components/hoc/withInternalFallback.d.ts +1 -1
  206. package/dist/types/excalidraw/components/hyperlink/helpers.d.ts +1 -1
  207. package/dist/types/excalidraw/components/icons.d.ts +44 -22
  208. package/dist/types/excalidraw/components/main-menu/DefaultItems.d.ts +19 -2
  209. package/dist/types/excalidraw/components/main-menu/MainMenu.d.ts +39 -35
  210. package/dist/types/excalidraw/components/shapes.d.ts +74 -1
  211. package/dist/types/excalidraw/data/blob.d.ts +326 -7
  212. package/dist/types/excalidraw/data/encode.d.ts +4 -4
  213. package/dist/types/excalidraw/data/encryption.d.ts +5 -5
  214. package/dist/types/excalidraw/data/filesystem.d.ts +5 -7
  215. package/dist/types/excalidraw/data/index.d.ts +4 -5
  216. package/dist/types/excalidraw/data/json.d.ts +170 -4
  217. package/dist/types/excalidraw/data/library.d.ts +24 -9
  218. package/dist/types/excalidraw/data/resave.d.ts +7 -2
  219. package/dist/types/excalidraw/data/restore.d.ts +25 -10
  220. package/dist/types/excalidraw/editor-jotai.d.ts +11 -11
  221. package/dist/types/excalidraw/errors.d.ts +14 -0
  222. package/dist/types/excalidraw/hooks/useLibraryItemSvg.d.ts +1 -1
  223. package/dist/types/excalidraw/hooks/useOutsideClick.d.ts +4 -3
  224. package/dist/types/excalidraw/hooks/useScrollPosition.d.ts +1 -2
  225. package/dist/types/excalidraw/i18n.d.ts +2 -2
  226. package/dist/types/excalidraw/renderer/animation.d.ts +12 -0
  227. package/dist/types/excalidraw/renderer/helpers.d.ts +6 -8
  228. package/dist/types/excalidraw/renderer/interactiveScene.d.ts +8 -14
  229. package/dist/types/excalidraw/scene/Renderer.d.ts +5 -2
  230. package/dist/types/excalidraw/scene/export.d.ts +2 -2
  231. package/dist/types/excalidraw/scene/scroll.d.ts +1 -6
  232. package/dist/types/excalidraw/scene/types.d.ts +22 -5
  233. package/dist/types/excalidraw/shortcut.d.ts +1 -0
  234. package/dist/types/excalidraw/snapping.d.ts +5 -5
  235. package/dist/types/excalidraw/subset/harfbuzz/harfbuzz-bindings.d.ts +1 -1
  236. package/dist/types/excalidraw/subset/harfbuzz/harfbuzz-loader.d.ts +1 -1
  237. package/dist/types/excalidraw/subset/harfbuzz/harfbuzz-wasm.d.ts +1 -1
  238. package/dist/types/excalidraw/subset/woff2/woff2-loader.d.ts +2 -2
  239. package/dist/types/excalidraw/subset/woff2/woff2-wasm.d.ts +1 -1
  240. package/dist/types/excalidraw/textAutoResizeHandle.d.ts +15 -0
  241. package/dist/types/excalidraw/types.d.ts +120 -36
  242. package/dist/types/excalidraw/wysiwyg/textWysiwyg.d.ts +7 -3
  243. package/dist/types/math/src/point.d.ts +7 -2
  244. package/dist/types/math/src/polygon.d.ts +2 -2
  245. package/dist/types/math/src/range.d.ts +1 -3
  246. package/dist/types/math/src/segment.d.ts +3 -3
  247. package/dist/types/math/src/types.d.ts +25 -1
  248. package/dist/types/utils/src/bbox.d.ts +1 -1
  249. package/dist/types/utils/src/export.d.ts +5 -5
  250. package/dist/types/utils/src/shape.d.ts +6 -6
  251. package/dist/types/utils/src/withinBounds.d.ts +2 -2
  252. package/package.json +2 -2
  253. package/dist/types/excalidraw/charts.d.ts +0 -27
  254. package/dist/types/excalidraw/components/DiagramToCodePlugin/DiagramToCodePlugin.d.ts +0 -4
  255. package/dist/types/excalidraw/components/ExcalidrawLogo.d.ts +0 -16
  256. package/dist/types/excalidraw/components/InitializeApp.d.ts +0 -10
  257. package/dist/types/excalidraw/components/TTDDialog/TTDDialogTrigger.d.ts +0 -9
  258. package/dist/types/excalidraw/components/footer/FooterCenter.d.ts +0 -8
  259. package/dist/types/excalidraw/components/live-collaboration/LiveCollaborationTrigger.d.ts +0 -10
  260. package/dist/types/excalidraw/components/welcome-screen/WelcomeScreen.Center.d.ts +0 -58
  261. package/dist/types/excalidraw/components/welcome-screen/WelcomeScreen.Hints.d.ts +0 -19
  262. package/dist/types/excalidraw/components/welcome-screen/WelcomeScreen.d.ts +0 -85
  263. package/dist/types/excalidraw/data/reconcile.d.ts +0 -7
  264. package/dist/types/excalidraw/index.d.ts +0 -47
  265. package/dist/types/excalidraw/polyfill.d.ts +0 -2
@@ -1,10 +1,9 @@
1
- /// <reference types="react" />
2
1
  export declare const actionAddToLibrary: {
3
2
  name: "addToLibrary";
4
3
  trackEvent: {
5
4
  category: "element";
6
5
  };
7
- perform: (elements: readonly import("../../element/src/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, _: any, app: import("../types").AppClassProperties) => Promise<{
6
+ perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, _: unknown, app: import("../types").AppClassProperties) => Promise<{
8
7
  captureUpdate: "EVENTUALLY";
9
8
  appState: {
10
9
  toast: {
@@ -17,19 +16,24 @@ export declare const actionAddToLibrary: {
17
16
  } | null;
18
17
  showWelcomeScreen: boolean;
19
18
  isLoading: boolean;
20
- errorMessage: import("react").ReactNode;
19
+ errorMessage: React.ReactNode;
21
20
  activeEmbeddable: {
22
- element: import("../../element/src/types").NonDeletedExcalidrawElement;
23
- state: "active" | "hover";
21
+ element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
22
+ state: "hover" | "active";
24
23
  } | null;
25
- newElement: import("../../element/src/types").NonDeleted<import("../../element/src/types").ExcalidrawNonSelectionElement> | null;
26
- resizingElement: import("../../element/src/types").NonDeletedExcalidrawElement | null;
27
- multiElement: import("../../element/src/types").NonDeleted<import("../../element/src/types").ExcalidrawLinearElement> | null;
28
- selectionElement: import("../../element/src/types").NonDeletedExcalidrawElement | null;
24
+ newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
25
+ resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
26
+ multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
27
+ selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
29
28
  isBindingEnabled: boolean;
30
- startBoundElement: import("../../element/src/types").NonDeleted<import("../../element/src/types").ExcalidrawBindableElement> | null;
31
- suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
32
- frameToHighlight: import("../../element/src/types").NonDeleted<import("../../element/src/types").ExcalidrawFrameLikeElement> | null;
29
+ bindingPreference: "enabled" | "disabled";
30
+ isMidpointSnappingEnabled: boolean;
31
+ startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
32
+ suggestedBinding: {
33
+ element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
34
+ midPoint?: import("@excalidraw/math").GlobalPoint;
35
+ } | null;
36
+ frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
33
37
  frameRendering: {
34
38
  enabled: boolean;
35
39
  name: boolean;
@@ -37,13 +41,17 @@ export declare const actionAddToLibrary: {
37
41
  clip: boolean;
38
42
  };
39
43
  editingFrame: string | null;
40
- elementsToHighlight: import("../../element/src/types").NonDeleted<import("../../element/src/types").ExcalidrawElement>[] | null;
41
- editingTextElement: import("../../element/src/types").NonDeletedExcalidrawElement | null;
44
+ elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
45
+ editingTextElement: import("@excalidraw/element/types").ExcalidrawTextElement | null;
42
46
  activeTool: {
43
47
  lastActiveTool: import("../types").ActiveTool | null;
44
48
  locked: boolean;
45
49
  fromSelection: boolean;
46
50
  } & import("../types").ActiveTool;
51
+ preferredSelectionTool: {
52
+ type: "selection" | "lasso";
53
+ initialized: boolean;
54
+ };
47
55
  penMode: boolean;
48
56
  penDetected: boolean;
49
57
  exportBackground: boolean;
@@ -52,19 +60,19 @@ export declare const actionAddToLibrary: {
52
60
  exportScale: number;
53
61
  currentItemStrokeColor: string;
54
62
  currentItemBackgroundColor: string;
55
- currentItemFillStyle: import("../../element/src/types").FillStyle;
63
+ currentItemFillStyle: import("@excalidraw/element/types").ExcalidrawElement["fillStyle"];
56
64
  currentItemStrokeWidth: number;
57
- currentItemStrokeStyle: import("../../element/src/types").StrokeStyle;
65
+ currentItemStrokeStyle: import("@excalidraw/element/types").ExcalidrawElement["strokeStyle"];
58
66
  currentItemRoughness: number;
59
67
  currentItemOpacity: number;
60
- currentItemFontFamily: number;
68
+ currentItemFontFamily: import("@excalidraw/element/types").FontFamilyValues;
61
69
  currentItemFontSize: number;
62
- currentItemTextAlign: string;
63
- currentItemStartArrowhead: import("../../element/src/types").Arrowhead | null;
64
- currentItemEndArrowhead: import("../../element/src/types").Arrowhead | null;
65
- currentHoveredFontFamily: number | null;
66
- currentItemRoundness: import("../../element/src/types").StrokeRoundness;
67
- currentItemArrowType: "round" | "sharp" | "elbow";
70
+ currentItemTextAlign: import("@excalidraw/element/types").TextAlign;
71
+ currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
72
+ currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
73
+ currentHoveredFontFamily: import("@excalidraw/element/types").FontFamilyValues | null;
74
+ currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
75
+ currentItemArrowType: "sharp" | "round" | "elbow";
68
76
  viewBackgroundColor: string;
69
77
  scrollX: number;
70
78
  scrollY: number;
@@ -73,28 +81,32 @@ export declare const actionAddToLibrary: {
73
81
  name: string | null;
74
82
  isResizing: boolean;
75
83
  isRotating: boolean;
76
- zoom: Readonly<{
77
- value: import("../types").NormalizedZoomValue;
78
- }>;
79
- openMenu: "canvas" | "shape" | null;
80
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
84
+ zoom: import("../types").Zoom;
85
+ openMenu: "canvas" | null;
86
+ openPopup: "canvasBackground" | "elementBackground" | "elementStroke" | "fontFamily" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
81
87
  openSidebar: {
82
- name: string;
83
- tab?: string | undefined;
88
+ name: import("../types").SidebarName;
89
+ tab?: import("../types").SidebarTabName;
84
90
  } | null;
85
- openDialog: {
91
+ openDialog: null | {
86
92
  name: "imageExport" | "help" | "jsonExport";
87
93
  } | {
88
94
  name: "ttd";
89
- tab: "mermaid" | "text-to-diagram";
95
+ tab: "text-to-diagram" | "mermaid";
90
96
  } | {
91
97
  name: "commandPalette";
98
+ } | {
99
+ name: "settings";
92
100
  } | {
93
101
  name: "elementLinkSelector";
94
- sourceElementId: string;
95
- } | null;
102
+ sourceElementId: import("@excalidraw/element/types").ExcalidrawElement["id"];
103
+ } | {
104
+ name: "charts";
105
+ data: import("../charts").Spreadsheet;
106
+ rawText: string;
107
+ };
96
108
  defaultSidebarDockedPreference: boolean;
97
- lastPointerDownWith: import("../../element/src/types").PointerType;
109
+ lastPointerDownWith: import("@excalidraw/element/types").PointerType;
98
110
  selectedElementIds: Readonly<{
99
111
  [id: string]: true;
100
112
  }>;
@@ -107,7 +119,7 @@ export declare const actionAddToLibrary: {
107
119
  selectedElementsAreBeingDragged: boolean;
108
120
  shouldCacheIgnoreZoom: boolean;
109
121
  zenModeEnabled: boolean;
110
- theme: import("../../element/src/types").Theme;
122
+ theme: import("@excalidraw/element/types").Theme;
111
123
  gridSize: number;
112
124
  gridStep: number;
113
125
  gridModeEnabled: boolean;
@@ -115,45 +127,18 @@ export declare const actionAddToLibrary: {
115
127
  selectedGroupIds: {
116
128
  [groupId: string]: boolean;
117
129
  };
118
- editingGroupId: string | null;
130
+ editingGroupId: import("@excalidraw/element/types").GroupId | null;
119
131
  width: number;
120
132
  height: number;
121
133
  offsetTop: number;
122
134
  offsetLeft: number;
123
- fileHandle: import("browser-fs-access").FileSystemHandle | null;
124
- collaborators: Map<import("../types").SocketId, Readonly<{
125
- pointer?: import("../types").CollaboratorPointer | undefined;
126
- button?: "up" | "down" | undefined;
127
- selectedElementIds?: Readonly<{
128
- [id: string]: true;
129
- }> | undefined;
130
- username?: string | null | undefined;
131
- userState?: import("@excalidraw/common").UserIdleState | undefined;
132
- color?: {
133
- background: string;
134
- stroke: string;
135
- } | undefined;
136
- avatarUrl?: string | undefined;
137
- id?: string | undefined;
138
- socketId?: import("../types").SocketId | undefined;
139
- isCurrentUser?: boolean | undefined;
140
- isInCall?: boolean | undefined;
141
- isSpeaking?: boolean | undefined;
142
- isMuted?: boolean | undefined;
143
- }>>;
135
+ fileHandle: FileSystemFileHandle | null;
136
+ collaborators: Map<import("../types").SocketId, import("../types").Collaborator>;
144
137
  stats: {
145
138
  open: boolean;
146
139
  panels: number;
147
140
  };
148
- currentChartType: import("../../element/src/types").ChartType;
149
- pasteDialog: {
150
- shown: false;
151
- data: null;
152
- } | {
153
- shown: true;
154
- data: import("../charts").Spreadsheet;
155
- };
156
- showHyperlinkPopup: false | "editor" | "info";
141
+ showHyperlinkPopup: false | "info" | "editor";
157
142
  selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
158
143
  snapLines: readonly import("../snapping").SnapLine[];
159
144
  originSnapOffset: {
@@ -164,16 +149,16 @@ export declare const actionAddToLibrary: {
164
149
  userToFollow: import("../types").UserToFollow | null;
165
150
  followedBy: Set<import("../types").SocketId>;
166
151
  isCropping: boolean;
167
- croppingElementId: string | null;
152
+ croppingElementId: import("@excalidraw/element/types").ExcalidrawElement["id"] | null;
168
153
  searchMatches: Readonly<{
169
- focusedId: string | null;
154
+ focusedId: import("@excalidraw/element/types").ExcalidrawElement["id"] | null;
170
155
  matches: readonly import("../types").SearchMatch[];
171
156
  }> | null;
172
157
  activeLockedId: string | null;
173
158
  lockedMultiSelections: {
174
159
  [groupId: string]: true;
175
160
  };
176
- stylesPanelMode: "compact" | "full";
161
+ bindMode: import("@excalidraw/element/types").BindMode;
177
162
  };
178
163
  } | {
179
164
  captureUpdate: "EVENTUALLY";
@@ -187,17 +172,22 @@ export declare const actionAddToLibrary: {
187
172
  showWelcomeScreen: boolean;
188
173
  isLoading: boolean;
189
174
  activeEmbeddable: {
190
- element: import("../../element/src/types").NonDeletedExcalidrawElement;
191
- state: "active" | "hover";
175
+ element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
176
+ state: "hover" | "active";
192
177
  } | null;
193
- newElement: import("../../element/src/types").NonDeleted<import("../../element/src/types").ExcalidrawNonSelectionElement> | null;
194
- resizingElement: import("../../element/src/types").NonDeletedExcalidrawElement | null;
195
- multiElement: import("../../element/src/types").NonDeleted<import("../../element/src/types").ExcalidrawLinearElement> | null;
196
- selectionElement: import("../../element/src/types").NonDeletedExcalidrawElement | null;
178
+ newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
179
+ resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
180
+ multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
181
+ selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
197
182
  isBindingEnabled: boolean;
198
- startBoundElement: import("../../element/src/types").NonDeleted<import("../../element/src/types").ExcalidrawBindableElement> | null;
199
- suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
200
- frameToHighlight: import("../../element/src/types").NonDeleted<import("../../element/src/types").ExcalidrawFrameLikeElement> | null;
183
+ bindingPreference: "enabled" | "disabled";
184
+ isMidpointSnappingEnabled: boolean;
185
+ startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
186
+ suggestedBinding: {
187
+ element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
188
+ midPoint?: import("@excalidraw/math").GlobalPoint;
189
+ } | null;
190
+ frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
201
191
  frameRendering: {
202
192
  enabled: boolean;
203
193
  name: boolean;
@@ -205,13 +195,17 @@ export declare const actionAddToLibrary: {
205
195
  clip: boolean;
206
196
  };
207
197
  editingFrame: string | null;
208
- elementsToHighlight: import("../../element/src/types").NonDeleted<import("../../element/src/types").ExcalidrawElement>[] | null;
209
- editingTextElement: import("../../element/src/types").NonDeletedExcalidrawElement | null;
198
+ elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
199
+ editingTextElement: import("@excalidraw/element/types").ExcalidrawTextElement | null;
210
200
  activeTool: {
211
201
  lastActiveTool: import("../types").ActiveTool | null;
212
202
  locked: boolean;
213
203
  fromSelection: boolean;
214
204
  } & import("../types").ActiveTool;
205
+ preferredSelectionTool: {
206
+ type: "selection" | "lasso";
207
+ initialized: boolean;
208
+ };
215
209
  penMode: boolean;
216
210
  penDetected: boolean;
217
211
  exportBackground: boolean;
@@ -220,19 +214,19 @@ export declare const actionAddToLibrary: {
220
214
  exportScale: number;
221
215
  currentItemStrokeColor: string;
222
216
  currentItemBackgroundColor: string;
223
- currentItemFillStyle: import("../../element/src/types").FillStyle;
217
+ currentItemFillStyle: import("@excalidraw/element/types").ExcalidrawElement["fillStyle"];
224
218
  currentItemStrokeWidth: number;
225
- currentItemStrokeStyle: import("../../element/src/types").StrokeStyle;
219
+ currentItemStrokeStyle: import("@excalidraw/element/types").ExcalidrawElement["strokeStyle"];
226
220
  currentItemRoughness: number;
227
221
  currentItemOpacity: number;
228
- currentItemFontFamily: number;
222
+ currentItemFontFamily: import("@excalidraw/element/types").FontFamilyValues;
229
223
  currentItemFontSize: number;
230
- currentItemTextAlign: string;
231
- currentItemStartArrowhead: import("../../element/src/types").Arrowhead | null;
232
- currentItemEndArrowhead: import("../../element/src/types").Arrowhead | null;
233
- currentHoveredFontFamily: number | null;
234
- currentItemRoundness: import("../../element/src/types").StrokeRoundness;
235
- currentItemArrowType: "round" | "sharp" | "elbow";
224
+ currentItemTextAlign: import("@excalidraw/element/types").TextAlign;
225
+ currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
226
+ currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
227
+ currentHoveredFontFamily: import("@excalidraw/element/types").FontFamilyValues | null;
228
+ currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
229
+ currentItemArrowType: "sharp" | "round" | "elbow";
236
230
  viewBackgroundColor: string;
237
231
  scrollX: number;
238
232
  scrollY: number;
@@ -241,28 +235,32 @@ export declare const actionAddToLibrary: {
241
235
  name: string | null;
242
236
  isResizing: boolean;
243
237
  isRotating: boolean;
244
- zoom: Readonly<{
245
- value: import("../types").NormalizedZoomValue;
246
- }>;
247
- openMenu: "canvas" | "shape" | null;
248
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
238
+ zoom: import("../types").Zoom;
239
+ openMenu: "canvas" | null;
240
+ openPopup: "canvasBackground" | "elementBackground" | "elementStroke" | "fontFamily" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
249
241
  openSidebar: {
250
- name: string;
251
- tab?: string | undefined;
242
+ name: import("../types").SidebarName;
243
+ tab?: import("../types").SidebarTabName;
252
244
  } | null;
253
- openDialog: {
245
+ openDialog: null | {
254
246
  name: "imageExport" | "help" | "jsonExport";
255
247
  } | {
256
248
  name: "ttd";
257
- tab: "mermaid" | "text-to-diagram";
249
+ tab: "text-to-diagram" | "mermaid";
258
250
  } | {
259
251
  name: "commandPalette";
252
+ } | {
253
+ name: "settings";
260
254
  } | {
261
255
  name: "elementLinkSelector";
262
- sourceElementId: string;
263
- } | null;
256
+ sourceElementId: import("@excalidraw/element/types").ExcalidrawElement["id"];
257
+ } | {
258
+ name: "charts";
259
+ data: import("../charts").Spreadsheet;
260
+ rawText: string;
261
+ };
264
262
  defaultSidebarDockedPreference: boolean;
265
- lastPointerDownWith: import("../../element/src/types").PointerType;
263
+ lastPointerDownWith: import("@excalidraw/element/types").PointerType;
266
264
  selectedElementIds: Readonly<{
267
265
  [id: string]: true;
268
266
  }>;
@@ -275,12 +273,12 @@ export declare const actionAddToLibrary: {
275
273
  selectedElementsAreBeingDragged: boolean;
276
274
  shouldCacheIgnoreZoom: boolean;
277
275
  toast: {
278
- message: string;
279
- closable?: boolean | undefined;
280
- duration?: number | undefined;
276
+ message: React.ReactNode;
277
+ closable?: boolean;
278
+ duration?: number;
281
279
  } | null;
282
280
  zenModeEnabled: boolean;
283
- theme: import("../../element/src/types").Theme;
281
+ theme: import("@excalidraw/element/types").Theme;
284
282
  gridSize: number;
285
283
  gridStep: number;
286
284
  gridModeEnabled: boolean;
@@ -288,45 +286,18 @@ export declare const actionAddToLibrary: {
288
286
  selectedGroupIds: {
289
287
  [groupId: string]: boolean;
290
288
  };
291
- editingGroupId: string | null;
289
+ editingGroupId: import("@excalidraw/element/types").GroupId | null;
292
290
  width: number;
293
291
  height: number;
294
292
  offsetTop: number;
295
293
  offsetLeft: number;
296
- fileHandle: import("browser-fs-access").FileSystemHandle | null;
297
- collaborators: Map<import("../types").SocketId, Readonly<{
298
- pointer?: import("../types").CollaboratorPointer | undefined;
299
- button?: "up" | "down" | undefined;
300
- selectedElementIds?: Readonly<{
301
- [id: string]: true;
302
- }> | undefined;
303
- username?: string | null | undefined;
304
- userState?: import("@excalidraw/common").UserIdleState | undefined;
305
- color?: {
306
- background: string;
307
- stroke: string;
308
- } | undefined;
309
- avatarUrl?: string | undefined;
310
- id?: string | undefined;
311
- socketId?: import("../types").SocketId | undefined;
312
- isCurrentUser?: boolean | undefined;
313
- isInCall?: boolean | undefined;
314
- isSpeaking?: boolean | undefined;
315
- isMuted?: boolean | undefined;
316
- }>>;
294
+ fileHandle: FileSystemFileHandle | null;
295
+ collaborators: Map<import("../types").SocketId, import("../types").Collaborator>;
317
296
  stats: {
318
297
  open: boolean;
319
298
  panels: number;
320
299
  };
321
- currentChartType: import("../../element/src/types").ChartType;
322
- pasteDialog: {
323
- shown: false;
324
- data: null;
325
- } | {
326
- shown: true;
327
- data: import("../charts").Spreadsheet;
328
- };
329
- showHyperlinkPopup: false | "editor" | "info";
300
+ showHyperlinkPopup: false | "info" | "editor";
330
301
  selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
331
302
  snapLines: readonly import("../snapping").SnapLine[];
332
303
  originSnapOffset: {
@@ -337,16 +308,16 @@ export declare const actionAddToLibrary: {
337
308
  userToFollow: import("../types").UserToFollow | null;
338
309
  followedBy: Set<import("../types").SocketId>;
339
310
  isCropping: boolean;
340
- croppingElementId: string | null;
311
+ croppingElementId: import("@excalidraw/element/types").ExcalidrawElement["id"] | null;
341
312
  searchMatches: Readonly<{
342
- focusedId: string | null;
313
+ focusedId: import("@excalidraw/element/types").ExcalidrawElement["id"] | null;
343
314
  matches: readonly import("../types").SearchMatch[];
344
315
  }> | null;
345
316
  activeLockedId: string | null;
346
317
  lockedMultiSelections: {
347
318
  [groupId: string]: true;
348
319
  };
349
- stylesPanelMode: "compact" | "full";
320
+ bindMode: import("@excalidraw/element/types").BindMode;
350
321
  };
351
322
  }> | {
352
323
  captureUpdate: "EVENTUALLY";
@@ -360,17 +331,22 @@ export declare const actionAddToLibrary: {
360
331
  showWelcomeScreen: boolean;
361
332
  isLoading: boolean;
362
333
  activeEmbeddable: {
363
- element: import("../../element/src/types").NonDeletedExcalidrawElement;
364
- state: "active" | "hover";
334
+ element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
335
+ state: "hover" | "active";
365
336
  } | null;
366
- newElement: import("../../element/src/types").NonDeleted<import("../../element/src/types").ExcalidrawNonSelectionElement> | null;
367
- resizingElement: import("../../element/src/types").NonDeletedExcalidrawElement | null;
368
- multiElement: import("../../element/src/types").NonDeleted<import("../../element/src/types").ExcalidrawLinearElement> | null;
369
- selectionElement: import("../../element/src/types").NonDeletedExcalidrawElement | null;
337
+ newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
338
+ resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
339
+ multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
340
+ selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
370
341
  isBindingEnabled: boolean;
371
- startBoundElement: import("../../element/src/types").NonDeleted<import("../../element/src/types").ExcalidrawBindableElement> | null;
372
- suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
373
- frameToHighlight: import("../../element/src/types").NonDeleted<import("../../element/src/types").ExcalidrawFrameLikeElement> | null;
342
+ bindingPreference: "enabled" | "disabled";
343
+ isMidpointSnappingEnabled: boolean;
344
+ startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
345
+ suggestedBinding: {
346
+ element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
347
+ midPoint?: import("@excalidraw/math").GlobalPoint;
348
+ } | null;
349
+ frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
374
350
  frameRendering: {
375
351
  enabled: boolean;
376
352
  name: boolean;
@@ -378,13 +354,17 @@ export declare const actionAddToLibrary: {
378
354
  clip: boolean;
379
355
  };
380
356
  editingFrame: string | null;
381
- elementsToHighlight: import("../../element/src/types").NonDeleted<import("../../element/src/types").ExcalidrawElement>[] | null;
382
- editingTextElement: import("../../element/src/types").NonDeletedExcalidrawElement | null;
357
+ elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
358
+ editingTextElement: import("@excalidraw/element/types").ExcalidrawTextElement | null;
383
359
  activeTool: {
384
360
  lastActiveTool: import("../types").ActiveTool | null;
385
361
  locked: boolean;
386
362
  fromSelection: boolean;
387
363
  } & import("../types").ActiveTool;
364
+ preferredSelectionTool: {
365
+ type: "selection" | "lasso";
366
+ initialized: boolean;
367
+ };
388
368
  penMode: boolean;
389
369
  penDetected: boolean;
390
370
  exportBackground: boolean;
@@ -393,19 +373,19 @@ export declare const actionAddToLibrary: {
393
373
  exportScale: number;
394
374
  currentItemStrokeColor: string;
395
375
  currentItemBackgroundColor: string;
396
- currentItemFillStyle: import("../../element/src/types").FillStyle;
376
+ currentItemFillStyle: import("@excalidraw/element/types").ExcalidrawElement["fillStyle"];
397
377
  currentItemStrokeWidth: number;
398
- currentItemStrokeStyle: import("../../element/src/types").StrokeStyle;
378
+ currentItemStrokeStyle: import("@excalidraw/element/types").ExcalidrawElement["strokeStyle"];
399
379
  currentItemRoughness: number;
400
380
  currentItemOpacity: number;
401
- currentItemFontFamily: number;
381
+ currentItemFontFamily: import("@excalidraw/element/types").FontFamilyValues;
402
382
  currentItemFontSize: number;
403
- currentItemTextAlign: string;
404
- currentItemStartArrowhead: import("../../element/src/types").Arrowhead | null;
405
- currentItemEndArrowhead: import("../../element/src/types").Arrowhead | null;
406
- currentHoveredFontFamily: number | null;
407
- currentItemRoundness: import("../../element/src/types").StrokeRoundness;
408
- currentItemArrowType: "round" | "sharp" | "elbow";
383
+ currentItemTextAlign: import("@excalidraw/element/types").TextAlign;
384
+ currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
385
+ currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
386
+ currentHoveredFontFamily: import("@excalidraw/element/types").FontFamilyValues | null;
387
+ currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
388
+ currentItemArrowType: "sharp" | "round" | "elbow";
409
389
  viewBackgroundColor: string;
410
390
  scrollX: number;
411
391
  scrollY: number;
@@ -414,28 +394,32 @@ export declare const actionAddToLibrary: {
414
394
  name: string | null;
415
395
  isResizing: boolean;
416
396
  isRotating: boolean;
417
- zoom: Readonly<{
418
- value: import("../types").NormalizedZoomValue;
419
- }>;
420
- openMenu: "canvas" | "shape" | null;
421
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
397
+ zoom: import("../types").Zoom;
398
+ openMenu: "canvas" | null;
399
+ openPopup: "canvasBackground" | "elementBackground" | "elementStroke" | "fontFamily" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
422
400
  openSidebar: {
423
- name: string;
424
- tab?: string | undefined;
401
+ name: import("../types").SidebarName;
402
+ tab?: import("../types").SidebarTabName;
425
403
  } | null;
426
- openDialog: {
404
+ openDialog: null | {
427
405
  name: "imageExport" | "help" | "jsonExport";
428
406
  } | {
429
407
  name: "ttd";
430
- tab: "mermaid" | "text-to-diagram";
408
+ tab: "text-to-diagram" | "mermaid";
431
409
  } | {
432
410
  name: "commandPalette";
411
+ } | {
412
+ name: "settings";
433
413
  } | {
434
414
  name: "elementLinkSelector";
435
- sourceElementId: string;
436
- } | null;
415
+ sourceElementId: import("@excalidraw/element/types").ExcalidrawElement["id"];
416
+ } | {
417
+ name: "charts";
418
+ data: import("../charts").Spreadsheet;
419
+ rawText: string;
420
+ };
437
421
  defaultSidebarDockedPreference: boolean;
438
- lastPointerDownWith: import("../../element/src/types").PointerType;
422
+ lastPointerDownWith: import("@excalidraw/element/types").PointerType;
439
423
  selectedElementIds: Readonly<{
440
424
  [id: string]: true;
441
425
  }>;
@@ -448,12 +432,12 @@ export declare const actionAddToLibrary: {
448
432
  selectedElementsAreBeingDragged: boolean;
449
433
  shouldCacheIgnoreZoom: boolean;
450
434
  toast: {
451
- message: string;
452
- closable?: boolean | undefined;
453
- duration?: number | undefined;
435
+ message: React.ReactNode;
436
+ closable?: boolean;
437
+ duration?: number;
454
438
  } | null;
455
439
  zenModeEnabled: boolean;
456
- theme: import("../../element/src/types").Theme;
440
+ theme: import("@excalidraw/element/types").Theme;
457
441
  gridSize: number;
458
442
  gridStep: number;
459
443
  gridModeEnabled: boolean;
@@ -461,45 +445,18 @@ export declare const actionAddToLibrary: {
461
445
  selectedGroupIds: {
462
446
  [groupId: string]: boolean;
463
447
  };
464
- editingGroupId: string | null;
448
+ editingGroupId: import("@excalidraw/element/types").GroupId | null;
465
449
  width: number;
466
450
  height: number;
467
451
  offsetTop: number;
468
452
  offsetLeft: number;
469
- fileHandle: import("browser-fs-access").FileSystemHandle | null;
470
- collaborators: Map<import("../types").SocketId, Readonly<{
471
- pointer?: import("../types").CollaboratorPointer | undefined;
472
- button?: "up" | "down" | undefined;
473
- selectedElementIds?: Readonly<{
474
- [id: string]: true;
475
- }> | undefined;
476
- username?: string | null | undefined;
477
- userState?: import("@excalidraw/common").UserIdleState | undefined;
478
- color?: {
479
- background: string;
480
- stroke: string;
481
- } | undefined;
482
- avatarUrl?: string | undefined;
483
- id?: string | undefined;
484
- socketId?: import("../types").SocketId | undefined;
485
- isCurrentUser?: boolean | undefined;
486
- isInCall?: boolean | undefined;
487
- isSpeaking?: boolean | undefined;
488
- isMuted?: boolean | undefined;
489
- }>>;
453
+ fileHandle: FileSystemFileHandle | null;
454
+ collaborators: Map<import("../types").SocketId, import("../types").Collaborator>;
490
455
  stats: {
491
456
  open: boolean;
492
457
  panels: number;
493
458
  };
494
- currentChartType: import("../../element/src/types").ChartType;
495
- pasteDialog: {
496
- shown: false;
497
- data: null;
498
- } | {
499
- shown: true;
500
- data: import("../charts").Spreadsheet;
501
- };
502
- showHyperlinkPopup: false | "editor" | "info";
459
+ showHyperlinkPopup: false | "info" | "editor";
503
460
  selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
504
461
  snapLines: readonly import("../snapping").SnapLine[];
505
462
  originSnapOffset: {
@@ -510,16 +467,16 @@ export declare const actionAddToLibrary: {
510
467
  userToFollow: import("../types").UserToFollow | null;
511
468
  followedBy: Set<import("../types").SocketId>;
512
469
  isCropping: boolean;
513
- croppingElementId: string | null;
470
+ croppingElementId: import("@excalidraw/element/types").ExcalidrawElement["id"] | null;
514
471
  searchMatches: Readonly<{
515
- focusedId: string | null;
472
+ focusedId: import("@excalidraw/element/types").ExcalidrawElement["id"] | null;
516
473
  matches: readonly import("../types").SearchMatch[];
517
474
  }> | null;
518
475
  activeLockedId: string | null;
519
476
  lockedMultiSelections: {
520
477
  [groupId: string]: true;
521
478
  };
522
- stylesPanelMode: "compact" | "full";
479
+ bindMode: import("@excalidraw/element/types").BindMode;
523
480
  };
524
481
  };
525
482
  label: string;