@excalidraw/math 0.18.0-ac0d305 → 0.18.0-b1c6bfc

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 (268) hide show
  1. package/dist/dev/index.js +80 -65
  2. package/dist/dev/index.js.map +3 -3
  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 +25 -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 +7 -13
  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 +6 -2
  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 +23 -22
  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 +10 -10
  40. package/dist/types/element/src/shape.d.ts +9 -8
  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 +9 -4
  49. package/dist/types/element/src/zindex.d.ts +7 -1
  50. package/dist/types/excalidraw/actions/actionAddToLibrary.d.ts +170 -210
  51. package/dist/types/excalidraw/actions/actionAlign.d.ts +6 -7
  52. package/dist/types/excalidraw/actions/actionBoundText.d.ts +94 -121
  53. package/dist/types/excalidraw/actions/actionCanvas.d.ts +556 -902
  54. package/dist/types/excalidraw/actions/actionClipboard.d.ts +125 -897
  55. package/dist/types/excalidraw/actions/actionCropEditor.d.ts +45 -59
  56. package/dist/types/excalidraw/actions/actionDeleteSelected.d.ts +148 -192
  57. package/dist/types/excalidraw/actions/actionDeselect.d.ts +160 -0
  58. package/dist/types/excalidraw/actions/actionDistribute.d.ts +2 -3
  59. package/dist/types/excalidraw/actions/actionDuplicateSelection.d.ts +3 -4
  60. package/dist/types/excalidraw/actions/actionElementLink.d.ts +54 -74
  61. package/dist/types/excalidraw/actions/actionElementLock.d.ts +92 -119
  62. package/dist/types/excalidraw/actions/actionEmbeddable.d.ts +60 -74
  63. package/dist/types/excalidraw/actions/actionExport.d.ts +173 -1412
  64. package/dist/types/excalidraw/actions/actionFinalize.d.ts +10 -396
  65. package/dist/types/excalidraw/actions/actionFlip.d.ts +2 -3
  66. package/dist/types/excalidraw/actions/actionFrame.d.ts +265 -356
  67. package/dist/types/excalidraw/actions/actionGroup.d.ts +97 -132
  68. package/dist/types/excalidraw/actions/actionLinearEditor.d.ts +137 -189
  69. package/dist/types/excalidraw/actions/actionLink.d.ts +60 -74
  70. package/dist/types/excalidraw/actions/actionMenu.d.ts +49 -437
  71. package/dist/types/excalidraw/actions/actionNavigate.d.ts +18 -361
  72. package/dist/types/excalidraw/actions/actionProperties.d.ts +154 -2533
  73. package/dist/types/excalidraw/actions/actionSelectAll.d.ts +48 -66
  74. package/dist/types/excalidraw/actions/actionStyles.d.ts +45 -58
  75. package/dist/types/excalidraw/actions/actionTextAutoResize.d.ts +4 -4
  76. package/dist/types/excalidraw/actions/actionToggleArrowBinding.d.ts +173 -0
  77. package/dist/types/excalidraw/actions/actionToggleGridMode.d.ts +60 -74
  78. package/dist/types/excalidraw/actions/actionToggleMidpointSnapping.d.ts +173 -0
  79. package/dist/types/excalidraw/actions/actionToggleObjectsSnapMode.d.ts +60 -74
  80. package/dist/types/excalidraw/actions/actionToggleSearchMenu.d.ts +48 -68
  81. package/dist/types/excalidraw/actions/actionToggleShapeSwitch.d.ts +1 -1
  82. package/dist/types/excalidraw/actions/actionToggleStats.d.ts +59 -73
  83. package/dist/types/excalidraw/actions/actionToggleViewMode.d.ts +60 -74
  84. package/dist/types/excalidraw/actions/actionToggleZenMode.d.ts +60 -74
  85. package/dist/types/excalidraw/actions/actionZindex.d.ts +8 -9
  86. package/dist/types/excalidraw/actions/index.d.ts +4 -1
  87. package/dist/types/excalidraw/actions/register.d.ts +2 -2
  88. package/dist/types/excalidraw/actions/shortcuts.d.ts +1 -1
  89. package/dist/types/excalidraw/actions/types.d.ts +4 -4
  90. package/dist/types/excalidraw/appState.d.ts +29 -22
  91. package/dist/types/excalidraw/charts/charts.bar.d.ts +2 -0
  92. package/dist/types/excalidraw/charts/charts.constants.d.ts +48 -0
  93. package/dist/types/excalidraw/charts/charts.helpers.d.ts +32 -0
  94. package/dist/types/excalidraw/charts/charts.line.d.ts +2 -0
  95. package/dist/types/excalidraw/charts/charts.parse.d.ts +10 -0
  96. package/dist/types/excalidraw/charts/charts.radar.d.ts +2 -0
  97. package/dist/types/excalidraw/charts/charts.types.d.ts +18 -0
  98. package/dist/types/excalidraw/charts/index.d.ts +7 -0
  99. package/dist/types/excalidraw/clipboard.d.ts +13 -36
  100. package/dist/types/excalidraw/components/Actions.d.ts +14 -4
  101. package/dist/types/excalidraw/components/App.d.ts +109 -70
  102. package/dist/types/excalidraw/components/AppStateObserver.d.ts +37 -0
  103. package/dist/types/excalidraw/components/Card.d.ts +1 -3
  104. package/dist/types/excalidraw/components/ColorPicker/ColorInput.d.ts +2 -4
  105. package/dist/types/excalidraw/components/ColorPicker/ColorPicker.d.ts +1 -3
  106. package/dist/types/excalidraw/components/ColorPicker/Picker.d.ts +2 -0
  107. package/dist/types/excalidraw/components/ColorPicker/PickerColorList.d.ts +2 -1
  108. package/dist/types/excalidraw/components/ColorPicker/ShadeList.d.ts +2 -1
  109. package/dist/types/excalidraw/components/ColorPicker/colorPickerUtils.d.ts +0 -1
  110. package/dist/types/excalidraw/components/ColorPicker/keyboardNavHandlers.d.ts +0 -1
  111. package/dist/types/excalidraw/components/CommandPalette/CommandPalette.d.ts +1 -0
  112. package/dist/types/excalidraw/components/CommandPalette/types.d.ts +2 -4
  113. package/dist/types/excalidraw/components/ConvertElementTypePopup.d.ts +2 -2
  114. package/dist/types/excalidraw/components/DarkModeToggle.d.ts +1 -1
  115. package/dist/types/excalidraw/components/DefaultSidebar.d.ts +9 -13
  116. package/dist/types/excalidraw/components/ElementLinkDialog.d.ts +1 -1
  117. package/dist/types/excalidraw/components/Ellipsify.d.ts +1 -2
  118. package/dist/types/excalidraw/components/ErrorDialog.d.ts +1 -1
  119. package/dist/types/excalidraw/components/EyeDropper.d.ts +0 -1
  120. package/dist/types/excalidraw/components/FilledButton.d.ts +2 -1
  121. package/dist/types/excalidraw/components/FontPicker/FontPickerTrigger.d.ts +2 -1
  122. package/dist/types/excalidraw/components/FontPicker/keyboardNavHandlers.d.ts +0 -1
  123. package/dist/types/excalidraw/components/HelpDialog.d.ts +1 -1
  124. package/dist/types/excalidraw/components/HintViewer.d.ts +4 -3
  125. package/dist/types/excalidraw/components/IconPicker.d.ts +14 -9
  126. package/dist/types/excalidraw/components/InlineIcon.d.ts +3 -1
  127. package/dist/types/excalidraw/components/LayerUI.d.ts +2 -1
  128. package/dist/types/excalidraw/components/LibraryMenuControlButtons.d.ts +1 -1
  129. package/dist/types/excalidraw/components/LibraryMenuHeaderContent.d.ts +1 -2
  130. package/dist/types/excalidraw/components/LibraryMenuSection.d.ts +1 -1
  131. package/dist/types/excalidraw/components/LibraryUnit.d.ts +2 -3
  132. package/dist/types/excalidraw/components/LoadingMessage.d.ts +0 -1
  133. package/dist/types/excalidraw/components/MobileMenu.d.ts +3 -5
  134. package/dist/types/excalidraw/components/MobileToolBar.d.ts +10 -0
  135. package/dist/types/excalidraw/components/Modal.d.ts +0 -1
  136. package/dist/types/excalidraw/components/OverwriteConfirm/OverwriteConfirm.d.ts +1 -1
  137. package/dist/types/excalidraw/components/PasteChartDialog.d.ts +4 -5
  138. package/dist/types/excalidraw/components/Popover.d.ts +2 -1
  139. package/dist/types/excalidraw/components/PropertiesPopover.d.ts +1 -1
  140. package/dist/types/excalidraw/components/RadioGroup.d.ts +0 -1
  141. package/dist/types/excalidraw/components/RadioSelection.d.ts +4 -4
  142. package/dist/types/excalidraw/components/Range.d.ts +10 -4
  143. package/dist/types/excalidraw/components/ScrollableList.d.ts +0 -1
  144. package/dist/types/excalidraw/components/Sidebar/Sidebar.d.ts +15 -21
  145. package/dist/types/excalidraw/components/Sidebar/SidebarHeader.d.ts +1 -1
  146. package/dist/types/excalidraw/components/Sidebar/SidebarTab.d.ts +1 -2
  147. package/dist/types/excalidraw/components/Sidebar/SidebarTabTrigger.d.ts +1 -2
  148. package/dist/types/excalidraw/components/Sidebar/SidebarTabTriggers.d.ts +1 -2
  149. package/dist/types/excalidraw/components/Sidebar/SidebarTabs.d.ts +1 -2
  150. package/dist/types/excalidraw/components/Spinner.d.ts +4 -4
  151. package/dist/types/excalidraw/components/Stats/CanvasGrid.d.ts +0 -1
  152. package/dist/types/excalidraw/components/Stats/Collapsible.d.ts +0 -1
  153. package/dist/types/excalidraw/components/Stats/DragInput.d.ts +0 -1
  154. package/dist/types/excalidraw/components/Stats/index.d.ts +7 -8
  155. package/dist/types/excalidraw/components/Stats/utils.d.ts +1 -1
  156. package/dist/types/excalidraw/components/TTDDialog/Chat/ChatHistoryMenu.d.ts +15 -0
  157. package/dist/types/excalidraw/components/TTDDialog/Chat/ChatInterface.d.ts +23 -0
  158. package/dist/types/excalidraw/components/TTDDialog/Chat/ChatMessage.d.ts +14 -0
  159. package/dist/types/excalidraw/components/TTDDialog/Chat/TTDChatPanel.d.ts +27 -0
  160. package/dist/types/excalidraw/components/TTDDialog/Chat/index.d.ts +3 -0
  161. package/dist/types/excalidraw/components/TTDDialog/Chat/useChatAgent.d.ts +8 -0
  162. package/dist/types/excalidraw/components/TTDDialog/CodeMirrorEditor.d.ts +11 -0
  163. package/dist/types/excalidraw/components/TTDDialog/MermaidToExcalidraw.d.ts +3 -2
  164. package/dist/types/excalidraw/components/TTDDialog/TTDContext.d.ts +13 -0
  165. package/dist/types/excalidraw/components/TTDDialog/TTDDialog.d.ts +12 -29
  166. package/dist/types/excalidraw/components/TTDDialog/TTDDialogInput.d.ts +3 -3
  167. package/dist/types/excalidraw/components/TTDDialog/TTDDialogOutput.d.ts +5 -2
  168. package/dist/types/excalidraw/components/TTDDialog/TTDDialogPanel.d.ts +13 -9
  169. package/dist/types/excalidraw/components/TTDDialog/TTDDialogTab.d.ts +1 -2
  170. package/dist/types/excalidraw/components/TTDDialog/TTDDialogTabTrigger.d.ts +1 -2
  171. package/dist/types/excalidraw/components/TTDDialog/TTDDialogTabTriggers.d.ts +1 -2
  172. package/dist/types/excalidraw/components/TTDDialog/TTDPreviewPanel.d.ts +9 -0
  173. package/dist/types/excalidraw/components/TTDDialog/TTDWelcomeMessage.d.ts +1 -0
  174. package/dist/types/excalidraw/components/TTDDialog/TextToDiagram.d.ts +9 -0
  175. package/dist/types/excalidraw/components/TTDDialog/common.d.ts +16 -16
  176. package/dist/types/excalidraw/components/TTDDialog/hooks/useChatManagement.d.ts +13 -0
  177. package/dist/types/excalidraw/components/TTDDialog/hooks/useMermaidRenderer.d.ts +14 -0
  178. package/dist/types/excalidraw/components/TTDDialog/hooks/useTextGeneration.d.ts +7 -0
  179. package/dist/types/excalidraw/components/TTDDialog/mermaid-lang-lite.d.ts +2 -0
  180. package/dist/types/excalidraw/components/TTDDialog/types.d.ts +95 -0
  181. package/dist/types/excalidraw/components/TTDDialog/useTTDChatStorage.d.ts +22 -0
  182. package/dist/types/excalidraw/components/TTDDialog/utils/chat.d.ts +10 -0
  183. package/dist/types/excalidraw/components/TTDDialog/utils/mermaidAutoFix.d.ts +1 -0
  184. package/dist/types/excalidraw/components/TTDDialog/utils/mermaidError.d.ts +10 -0
  185. package/dist/types/excalidraw/components/TTDDialog/utils/mermaidValidation.d.ts +1 -0
  186. package/dist/types/excalidraw/components/TextField.d.ts +1 -0
  187. package/dist/types/excalidraw/components/Toast.d.ts +11 -7
  188. package/dist/types/excalidraw/components/ToolPopover.d.ts +25 -0
  189. package/dist/types/excalidraw/components/Trans.d.ts +2 -2
  190. package/dist/types/excalidraw/components/canvases/InteractiveCanvas.d.ts +7 -3
  191. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenu.d.ts +47 -35
  192. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuContent.d.ts +7 -5
  193. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuGroup.d.ts +3 -3
  194. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuItem.d.ts +13 -22
  195. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuItemCheckbox.d.ts +5 -0
  196. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuItemContent.d.ts +5 -4
  197. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuItemContentRadio.d.ts +2 -2
  198. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuItemCustom.d.ts +2 -2
  199. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuItemLink.d.ts +6 -6
  200. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuSub.d.ts +23 -0
  201. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuSubContent.d.ts +8 -0
  202. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuSubTrigger.d.ts +12 -0
  203. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuTrigger.d.ts +3 -4
  204. package/dist/types/excalidraw/components/dropdownMenu/common.d.ts +2 -2
  205. package/dist/types/excalidraw/components/dropdownMenu/dropdownMenuUtils.d.ts +2 -0
  206. package/dist/types/excalidraw/components/hoc/withInternalFallback.d.ts +1 -1
  207. package/dist/types/excalidraw/components/hyperlink/helpers.d.ts +1 -1
  208. package/dist/types/excalidraw/components/icons.d.ts +44 -22
  209. package/dist/types/excalidraw/components/main-menu/DefaultItems.d.ts +20 -2
  210. package/dist/types/excalidraw/components/main-menu/MainMenu.d.ts +39 -35
  211. package/dist/types/excalidraw/components/shapes.d.ts +74 -1
  212. package/dist/types/excalidraw/data/blob.d.ts +329 -8
  213. package/dist/types/excalidraw/data/encode.d.ts +4 -4
  214. package/dist/types/excalidraw/data/encryption.d.ts +5 -5
  215. package/dist/types/excalidraw/data/filesystem.d.ts +5 -7
  216. package/dist/types/excalidraw/data/index.d.ts +4 -5
  217. package/dist/types/excalidraw/data/json.d.ts +171 -4
  218. package/dist/types/excalidraw/data/library.d.ts +24 -9
  219. package/dist/types/excalidraw/data/resave.d.ts +7 -2
  220. package/dist/types/excalidraw/data/restore.d.ts +25 -10
  221. package/dist/types/excalidraw/data/types.d.ts +4 -1
  222. package/dist/types/excalidraw/editor-jotai.d.ts +11 -11
  223. package/dist/types/excalidraw/errors.d.ts +14 -0
  224. package/dist/types/excalidraw/hooks/useLibraryItemSvg.d.ts +1 -1
  225. package/dist/types/excalidraw/hooks/useOutsideClick.d.ts +4 -3
  226. package/dist/types/excalidraw/hooks/useScrollPosition.d.ts +1 -2
  227. package/dist/types/excalidraw/i18n.d.ts +2 -2
  228. package/dist/types/excalidraw/renderer/animation.d.ts +12 -0
  229. package/dist/types/excalidraw/renderer/helpers.d.ts +6 -8
  230. package/dist/types/excalidraw/renderer/interactiveScene.d.ts +8 -14
  231. package/dist/types/excalidraw/scene/Renderer.d.ts +5 -2
  232. package/dist/types/excalidraw/scene/export.d.ts +2 -2
  233. package/dist/types/excalidraw/scene/scroll.d.ts +1 -6
  234. package/dist/types/excalidraw/scene/types.d.ts +22 -5
  235. package/dist/types/excalidraw/shortcut.d.ts +1 -0
  236. package/dist/types/excalidraw/snapping.d.ts +5 -5
  237. package/dist/types/excalidraw/subset/harfbuzz/harfbuzz-bindings.d.ts +1 -1
  238. package/dist/types/excalidraw/subset/harfbuzz/harfbuzz-loader.d.ts +1 -1
  239. package/dist/types/excalidraw/subset/harfbuzz/harfbuzz-wasm.d.ts +1 -1
  240. package/dist/types/excalidraw/subset/woff2/woff2-loader.d.ts +2 -2
  241. package/dist/types/excalidraw/subset/woff2/woff2-wasm.d.ts +1 -1
  242. package/dist/types/excalidraw/textAutoResizeHandle.d.ts +15 -0
  243. package/dist/types/excalidraw/types.d.ts +123 -36
  244. package/dist/types/excalidraw/wysiwyg/textWysiwyg.d.ts +7 -3
  245. package/dist/types/math/src/curve.d.ts +4 -1
  246. package/dist/types/math/src/point.d.ts +7 -2
  247. package/dist/types/math/src/polygon.d.ts +2 -2
  248. package/dist/types/math/src/range.d.ts +1 -3
  249. package/dist/types/math/src/segment.d.ts +3 -3
  250. package/dist/types/math/src/types.d.ts +25 -1
  251. package/dist/types/utils/src/bbox.d.ts +1 -1
  252. package/dist/types/utils/src/export.d.ts +5 -5
  253. package/dist/types/utils/src/shape.d.ts +6 -6
  254. package/dist/types/utils/src/withinBounds.d.ts +2 -2
  255. package/package.json +2 -2
  256. package/dist/types/excalidraw/charts.d.ts +0 -27
  257. package/dist/types/excalidraw/components/DiagramToCodePlugin/DiagramToCodePlugin.d.ts +0 -4
  258. package/dist/types/excalidraw/components/ExcalidrawLogo.d.ts +0 -16
  259. package/dist/types/excalidraw/components/InitializeApp.d.ts +0 -10
  260. package/dist/types/excalidraw/components/TTDDialog/TTDDialogTrigger.d.ts +0 -9
  261. package/dist/types/excalidraw/components/footer/FooterCenter.d.ts +0 -8
  262. package/dist/types/excalidraw/components/live-collaboration/LiveCollaborationTrigger.d.ts +0 -10
  263. package/dist/types/excalidraw/components/welcome-screen/WelcomeScreen.Center.d.ts +0 -58
  264. package/dist/types/excalidraw/components/welcome-screen/WelcomeScreen.Hints.d.ts +0 -19
  265. package/dist/types/excalidraw/components/welcome-screen/WelcomeScreen.d.ts +0 -85
  266. package/dist/types/excalidraw/data/reconcile.d.ts +0 -7
  267. package/dist/types/excalidraw/index.d.ts +0 -47
  268. package/dist/types/excalidraw/polyfill.d.ts +0 -2
@@ -1,191 +1,5 @@
1
- /// <reference types="react" />
2
- export declare const actionCopy: {
3
- name: "copy";
4
- label: string;
5
- icon: import("react/jsx-runtime").JSX.Element;
6
- trackEvent: {
7
- category: "element";
8
- };
9
- perform: (elements: readonly import("../../element/src/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, event: ClipboardEvent | null, app: import("../types").AppClassProperties) => Promise<{
10
- captureUpdate: "EVENTUALLY";
11
- appState: {
12
- errorMessage: any;
13
- contextMenu: {
14
- items: import("../components/ContextMenu").ContextMenuItems;
15
- top: number;
16
- left: number;
17
- } | null;
18
- showWelcomeScreen: boolean;
19
- isLoading: boolean;
20
- activeEmbeddable: {
21
- element: import("../../element/src/types").NonDeletedExcalidrawElement;
22
- state: "active" | "hover";
23
- } | null;
24
- newElement: import("../../element/src/types").NonDeleted<import("../../element/src/types").ExcalidrawNonSelectionElement> | null;
25
- resizingElement: import("../../element/src/types").NonDeletedExcalidrawElement | null;
26
- multiElement: import("../../element/src/types").NonDeleted<import("../../element/src/types").ExcalidrawLinearElement> | null;
27
- selectionElement: import("../../element/src/types").NonDeletedExcalidrawElement | null;
28
- isBindingEnabled: boolean;
29
- startBoundElement: import("../../element/src/types").NonDeleted<import("../../element/src/types").ExcalidrawBindableElement> | null;
30
- suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
31
- frameToHighlight: import("../../element/src/types").NonDeleted<import("../../element/src/types").ExcalidrawFrameLikeElement> | null;
32
- frameRendering: {
33
- enabled: boolean;
34
- name: boolean;
35
- outline: boolean;
36
- clip: boolean;
37
- };
38
- editingFrame: string | null;
39
- elementsToHighlight: import("../../element/src/types").NonDeleted<import("../../element/src/types").ExcalidrawElement>[] | null;
40
- editingTextElement: import("../../element/src/types").NonDeletedExcalidrawElement | null;
41
- activeTool: {
42
- lastActiveTool: import("../types").ActiveTool | null;
43
- locked: boolean;
44
- fromSelection: boolean;
45
- } & import("../types").ActiveTool;
46
- penMode: boolean;
47
- penDetected: boolean;
48
- exportBackground: boolean;
49
- exportEmbedScene: boolean;
50
- exportWithDarkMode: boolean;
51
- exportScale: number;
52
- currentItemStrokeColor: string;
53
- currentItemBackgroundColor: string;
54
- currentItemFillStyle: import("../../element/src/types").FillStyle;
55
- currentItemStrokeWidth: number;
56
- currentItemStrokeStyle: import("../../element/src/types").StrokeStyle;
57
- currentItemRoughness: number;
58
- currentItemOpacity: number;
59
- currentItemFontFamily: number;
60
- currentItemFontSize: number;
61
- currentItemTextAlign: string;
62
- currentItemStartArrowhead: import("../../element/src/types").Arrowhead | null;
63
- currentItemEndArrowhead: import("../../element/src/types").Arrowhead | null;
64
- currentHoveredFontFamily: number | null;
65
- currentItemRoundness: import("../../element/src/types").StrokeRoundness;
66
- currentItemArrowType: "round" | "sharp" | "elbow";
67
- viewBackgroundColor: string;
68
- scrollX: number;
69
- scrollY: number;
70
- cursorButton: "up" | "down";
71
- scrolledOutside: boolean;
72
- name: string | null;
73
- isResizing: boolean;
74
- isRotating: boolean;
75
- zoom: Readonly<{
76
- value: import("../types").NormalizedZoomValue;
77
- }>;
78
- openMenu: "canvas" | "shape" | null;
79
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
80
- openSidebar: {
81
- name: string;
82
- tab?: string | undefined;
83
- } | null;
84
- openDialog: {
85
- name: "imageExport" | "help" | "jsonExport";
86
- } | {
87
- name: "ttd";
88
- tab: "mermaid" | "text-to-diagram";
89
- } | {
90
- name: "commandPalette";
91
- } | {
92
- name: "elementLinkSelector";
93
- sourceElementId: string;
94
- } | null;
95
- defaultSidebarDockedPreference: boolean;
96
- lastPointerDownWith: import("../../element/src/types").PointerType;
97
- selectedElementIds: Readonly<{
98
- [id: string]: true;
99
- }>;
100
- hoveredElementIds: Readonly<{
101
- [id: string]: true;
102
- }>;
103
- previousSelectedElementIds: {
104
- [id: string]: true;
105
- };
106
- selectedElementsAreBeingDragged: boolean;
107
- shouldCacheIgnoreZoom: boolean;
108
- toast: {
109
- message: string;
110
- closable?: boolean | undefined;
111
- duration?: number | undefined;
112
- } | null;
113
- zenModeEnabled: boolean;
114
- theme: import("../../element/src/types").Theme;
115
- gridSize: number;
116
- gridStep: number;
117
- gridModeEnabled: boolean;
118
- viewModeEnabled: boolean;
119
- selectedGroupIds: {
120
- [groupId: string]: boolean;
121
- };
122
- editingGroupId: string | null;
123
- width: number;
124
- height: number;
125
- offsetTop: number;
126
- offsetLeft: number;
127
- fileHandle: import("browser-fs-access").FileSystemHandle | null;
128
- collaborators: Map<import("../types").SocketId, Readonly<{
129
- pointer?: import("../types").CollaboratorPointer | undefined;
130
- button?: "up" | "down" | undefined;
131
- selectedElementIds?: Readonly<{
132
- [id: string]: true;
133
- }> | undefined;
134
- username?: string | null | undefined;
135
- userState?: import("@excalidraw/common").UserIdleState | undefined;
136
- color?: {
137
- background: string;
138
- stroke: string;
139
- } | undefined;
140
- avatarUrl?: string | undefined;
141
- id?: string | undefined;
142
- socketId?: import("../types").SocketId | undefined;
143
- isCurrentUser?: boolean | undefined;
144
- isInCall?: boolean | undefined;
145
- isSpeaking?: boolean | undefined;
146
- isMuted?: boolean | undefined;
147
- }>>;
148
- stats: {
149
- open: boolean;
150
- panels: number;
151
- };
152
- currentChartType: import("../../element/src/types").ChartType;
153
- pasteDialog: {
154
- shown: false;
155
- data: null;
156
- } | {
157
- shown: true;
158
- data: import("../charts").Spreadsheet;
159
- };
160
- showHyperlinkPopup: false | "editor" | "info";
161
- selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
162
- snapLines: readonly import("../snapping").SnapLine[];
163
- originSnapOffset: {
164
- x: number;
165
- y: number;
166
- } | null;
167
- objectsSnapModeEnabled: boolean;
168
- userToFollow: import("../types").UserToFollow | null;
169
- followedBy: Set<import("../types").SocketId>;
170
- isCropping: boolean;
171
- croppingElementId: string | null;
172
- searchMatches: Readonly<{
173
- focusedId: string | null;
174
- matches: readonly import("../types").SearchMatch[];
175
- }> | null;
176
- activeLockedId: string | null;
177
- lockedMultiSelections: {
178
- [groupId: string]: true;
179
- };
180
- stylesPanelMode: "compact" | "full";
181
- };
182
- } | {
183
- captureUpdate: "EVENTUALLY";
184
- appState?: undefined;
185
- }>;
186
- keyTest: undefined;
187
- } & {
188
- keyTest?: undefined;
1
+ export declare const actionCopy: import("./types").Action<ClipboardEvent | null> & {
2
+ keyTest?: ((event: React.KeyboardEvent | KeyboardEvent, appState: import("../types").AppState, elements: readonly import("@excalidraw/element/types").ExcalidrawElement[], app: import("../types").AppClassProperties) => boolean) | undefined;
189
3
  };
190
4
  export declare const actionPaste: {
191
5
  name: "paste";
@@ -193,7 +7,7 @@ export declare const actionPaste: {
193
7
  trackEvent: {
194
8
  category: "element";
195
9
  };
196
- perform: (elements: readonly import("../../element/src/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, data: any, app: import("../types").AppClassProperties) => Promise<false | {
10
+ perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, data: unknown, app: import("../types").AppClassProperties) => Promise<false | {
197
11
  captureUpdate: "EVENTUALLY";
198
12
  appState: {
199
13
  errorMessage: string;
@@ -205,17 +19,23 @@ export declare const actionPaste: {
205
19
  showWelcomeScreen: boolean;
206
20
  isLoading: boolean;
207
21
  activeEmbeddable: {
208
- element: import("../../element/src/types").NonDeletedExcalidrawElement;
209
- state: "active" | "hover";
22
+ element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
23
+ state: "hover" | "active";
210
24
  } | null;
211
- newElement: import("../../element/src/types").NonDeleted<import("../../element/src/types").ExcalidrawNonSelectionElement> | null;
212
- resizingElement: import("../../element/src/types").NonDeletedExcalidrawElement | null;
213
- multiElement: import("../../element/src/types").NonDeleted<import("../../element/src/types").ExcalidrawLinearElement> | null;
214
- selectionElement: import("../../element/src/types").NonDeletedExcalidrawElement | null;
25
+ newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
26
+ resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
27
+ multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
28
+ selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
215
29
  isBindingEnabled: boolean;
216
- startBoundElement: import("../../element/src/types").NonDeleted<import("../../element/src/types").ExcalidrawBindableElement> | null;
217
- suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
218
- frameToHighlight: import("../../element/src/types").NonDeleted<import("../../element/src/types").ExcalidrawFrameLikeElement> | null;
30
+ boxSelectionMode: import("../types").BoxSelectionMode;
31
+ bindingPreference: "enabled" | "disabled";
32
+ isMidpointSnappingEnabled: boolean;
33
+ startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
34
+ suggestedBinding: {
35
+ element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
36
+ midPoint?: import("@excalidraw/math").GlobalPoint;
37
+ } | null;
38
+ frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
219
39
  frameRendering: {
220
40
  enabled: boolean;
221
41
  name: boolean;
@@ -223,13 +43,17 @@ export declare const actionPaste: {
223
43
  clip: boolean;
224
44
  };
225
45
  editingFrame: string | null;
226
- elementsToHighlight: import("../../element/src/types").NonDeleted<import("../../element/src/types").ExcalidrawElement>[] | null;
227
- editingTextElement: import("../../element/src/types").NonDeletedExcalidrawElement | null;
46
+ elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
47
+ editingTextElement: import("@excalidraw/element/types").ExcalidrawTextElement | null;
228
48
  activeTool: {
229
49
  lastActiveTool: import("../types").ActiveTool | null;
230
50
  locked: boolean;
231
51
  fromSelection: boolean;
232
52
  } & import("../types").ActiveTool;
53
+ preferredSelectionTool: {
54
+ type: "selection" | "lasso";
55
+ initialized: boolean;
56
+ };
233
57
  penMode: boolean;
234
58
  penDetected: boolean;
235
59
  exportBackground: boolean;
@@ -238,19 +62,19 @@ export declare const actionPaste: {
238
62
  exportScale: number;
239
63
  currentItemStrokeColor: string;
240
64
  currentItemBackgroundColor: string;
241
- currentItemFillStyle: import("../../element/src/types").FillStyle;
65
+ currentItemFillStyle: import("@excalidraw/element/types").ExcalidrawElement["fillStyle"];
242
66
  currentItemStrokeWidth: number;
243
- currentItemStrokeStyle: import("../../element/src/types").StrokeStyle;
67
+ currentItemStrokeStyle: import("@excalidraw/element/types").ExcalidrawElement["strokeStyle"];
244
68
  currentItemRoughness: number;
245
69
  currentItemOpacity: number;
246
- currentItemFontFamily: number;
70
+ currentItemFontFamily: import("@excalidraw/element/types").FontFamilyValues;
247
71
  currentItemFontSize: number;
248
- currentItemTextAlign: string;
249
- currentItemStartArrowhead: import("../../element/src/types").Arrowhead | null;
250
- currentItemEndArrowhead: import("../../element/src/types").Arrowhead | null;
251
- currentHoveredFontFamily: number | null;
252
- currentItemRoundness: import("../../element/src/types").StrokeRoundness;
253
- currentItemArrowType: "round" | "sharp" | "elbow";
72
+ currentItemTextAlign: import("@excalidraw/element/types").TextAlign;
73
+ currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
74
+ currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
75
+ currentHoveredFontFamily: import("@excalidraw/element/types").FontFamilyValues | null;
76
+ currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
77
+ currentItemArrowType: "sharp" | "round" | "elbow";
254
78
  viewBackgroundColor: string;
255
79
  scrollX: number;
256
80
  scrollY: number;
@@ -259,28 +83,32 @@ export declare const actionPaste: {
259
83
  name: string | null;
260
84
  isResizing: boolean;
261
85
  isRotating: boolean;
262
- zoom: Readonly<{
263
- value: import("../types").NormalizedZoomValue;
264
- }>;
265
- openMenu: "canvas" | "shape" | null;
266
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
86
+ zoom: import("../types").Zoom;
87
+ openMenu: "canvas" | null;
88
+ openPopup: "canvasBackground" | "elementBackground" | "elementStroke" | "fontFamily" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
267
89
  openSidebar: {
268
- name: string;
269
- tab?: string | undefined;
90
+ name: import("../types").SidebarName;
91
+ tab?: import("../types").SidebarTabName;
270
92
  } | null;
271
- openDialog: {
93
+ openDialog: null | {
272
94
  name: "imageExport" | "help" | "jsonExport";
273
95
  } | {
274
96
  name: "ttd";
275
- tab: "mermaid" | "text-to-diagram";
97
+ tab: "text-to-diagram" | "mermaid";
276
98
  } | {
277
99
  name: "commandPalette";
100
+ } | {
101
+ name: "settings";
278
102
  } | {
279
103
  name: "elementLinkSelector";
280
- sourceElementId: string;
281
- } | null;
104
+ sourceElementId: import("@excalidraw/element/types").ExcalidrawElement["id"];
105
+ } | {
106
+ name: "charts";
107
+ data: import("../charts").Spreadsheet;
108
+ rawText: string;
109
+ };
282
110
  defaultSidebarDockedPreference: boolean;
283
- lastPointerDownWith: import("../../element/src/types").PointerType;
111
+ lastPointerDownWith: import("@excalidraw/element/types").PointerType;
284
112
  selectedElementIds: Readonly<{
285
113
  [id: string]: true;
286
114
  }>;
@@ -293,12 +121,12 @@ export declare const actionPaste: {
293
121
  selectedElementsAreBeingDragged: boolean;
294
122
  shouldCacheIgnoreZoom: boolean;
295
123
  toast: {
296
- message: string;
297
- closable?: boolean | undefined;
298
- duration?: number | undefined;
124
+ message: React.ReactNode;
125
+ closable?: boolean;
126
+ duration?: number;
299
127
  } | null;
300
128
  zenModeEnabled: boolean;
301
- theme: import("../../element/src/types").Theme;
129
+ theme: import("@excalidraw/element/types").Theme;
302
130
  gridSize: number;
303
131
  gridStep: number;
304
132
  gridModeEnabled: boolean;
@@ -306,45 +134,18 @@ export declare const actionPaste: {
306
134
  selectedGroupIds: {
307
135
  [groupId: string]: boolean;
308
136
  };
309
- editingGroupId: string | null;
137
+ editingGroupId: import("@excalidraw/element/types").GroupId | null;
310
138
  width: number;
311
139
  height: number;
312
140
  offsetTop: number;
313
141
  offsetLeft: number;
314
- fileHandle: import("browser-fs-access").FileSystemHandle | null;
315
- collaborators: Map<import("../types").SocketId, Readonly<{
316
- pointer?: import("../types").CollaboratorPointer | undefined;
317
- button?: "up" | "down" | undefined;
318
- selectedElementIds?: Readonly<{
319
- [id: string]: true;
320
- }> | undefined;
321
- username?: string | null | undefined;
322
- userState?: import("@excalidraw/common").UserIdleState | undefined;
323
- color?: {
324
- background: string;
325
- stroke: string;
326
- } | undefined;
327
- avatarUrl?: string | undefined;
328
- id?: string | undefined;
329
- socketId?: import("../types").SocketId | undefined;
330
- isCurrentUser?: boolean | undefined;
331
- isInCall?: boolean | undefined;
332
- isSpeaking?: boolean | undefined;
333
- isMuted?: boolean | undefined;
334
- }>>;
142
+ fileHandle: FileSystemFileHandle | null;
143
+ collaborators: Map<import("../types").SocketId, import("../types").Collaborator>;
335
144
  stats: {
336
145
  open: boolean;
337
146
  panels: number;
338
147
  };
339
- currentChartType: import("../../element/src/types").ChartType;
340
- pasteDialog: {
341
- shown: false;
342
- data: null;
343
- } | {
344
- shown: true;
345
- data: import("../charts").Spreadsheet;
346
- };
347
- showHyperlinkPopup: false | "editor" | "info";
148
+ showHyperlinkPopup: false | "info" | "editor";
348
149
  selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
349
150
  snapLines: readonly import("../snapping").SnapLine[];
350
151
  originSnapOffset: {
@@ -355,16 +156,16 @@ export declare const actionPaste: {
355
156
  userToFollow: import("../types").UserToFollow | null;
356
157
  followedBy: Set<import("../types").SocketId>;
357
158
  isCropping: boolean;
358
- croppingElementId: string | null;
159
+ croppingElementId: import("@excalidraw/element/types").ExcalidrawElement["id"] | null;
359
160
  searchMatches: Readonly<{
360
- focusedId: string | null;
161
+ focusedId: import("@excalidraw/element/types").ExcalidrawElement["id"] | null;
361
162
  matches: readonly import("../types").SearchMatch[];
362
163
  }> | null;
363
164
  activeLockedId: string | null;
364
165
  lockedMultiSelections: {
365
166
  [groupId: string]: true;
366
167
  };
367
- stylesPanelMode: "compact" | "full";
168
+ bindMode: import("@excalidraw/element/types").BindMode;
368
169
  };
369
170
  } | {
370
171
  captureUpdate: "EVENTUALLY";
@@ -374,568 +175,8 @@ export declare const actionPaste: {
374
175
  } & {
375
176
  keyTest?: undefined;
376
177
  };
377
- export declare const actionCut: {
378
- name: "cut";
379
- label: string;
380
- icon: import("react/jsx-runtime").JSX.Element;
381
- trackEvent: {
382
- category: "element";
383
- };
384
- perform: (elements: readonly import("../../element/src/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, event: ClipboardEvent | null, app: import("../types").AppClassProperties) => false | {
385
- elements: import("../../element/src/types").OrderedExcalidrawElement[];
386
- appState: {
387
- selectedLinearElement: null;
388
- contextMenu: {
389
- items: import("../components/ContextMenu").ContextMenuItems;
390
- top: number;
391
- left: number;
392
- } | null;
393
- showWelcomeScreen: boolean;
394
- isLoading: boolean;
395
- errorMessage: import("react").ReactNode;
396
- activeEmbeddable: {
397
- element: import("../../element/src/types").NonDeletedExcalidrawElement;
398
- state: "active" | "hover";
399
- } | null;
400
- newElement: import("../../element/src/types").NonDeleted<import("../../element/src/types").ExcalidrawNonSelectionElement> | null;
401
- resizingElement: import("../../element/src/types").NonDeletedExcalidrawElement | null;
402
- multiElement: import("../../element/src/types").NonDeleted<import("../../element/src/types").ExcalidrawLinearElement> | null;
403
- selectionElement: import("../../element/src/types").NonDeletedExcalidrawElement | null;
404
- isBindingEnabled: boolean;
405
- startBoundElement: import("../../element/src/types").NonDeleted<import("../../element/src/types").ExcalidrawBindableElement> | null;
406
- suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
407
- frameToHighlight: import("../../element/src/types").NonDeleted<import("../../element/src/types").ExcalidrawFrameLikeElement> | null;
408
- frameRendering: {
409
- enabled: boolean;
410
- name: boolean;
411
- outline: boolean;
412
- clip: boolean;
413
- };
414
- editingFrame: string | null;
415
- elementsToHighlight: import("../../element/src/types").NonDeleted<import("../../element/src/types").ExcalidrawElement>[] | null;
416
- editingTextElement: import("../../element/src/types").NonDeletedExcalidrawElement | null;
417
- activeTool: {
418
- lastActiveTool: import("../types").ActiveTool | null;
419
- locked: boolean;
420
- fromSelection: boolean;
421
- } & import("../types").ActiveTool;
422
- penMode: boolean;
423
- penDetected: boolean;
424
- exportBackground: boolean;
425
- exportEmbedScene: boolean;
426
- exportWithDarkMode: boolean;
427
- exportScale: number;
428
- currentItemStrokeColor: string;
429
- currentItemBackgroundColor: string;
430
- currentItemFillStyle: import("../../element/src/types").FillStyle;
431
- currentItemStrokeWidth: number;
432
- currentItemStrokeStyle: import("../../element/src/types").StrokeStyle;
433
- currentItemRoughness: number;
434
- currentItemOpacity: number;
435
- currentItemFontFamily: number;
436
- currentItemFontSize: number;
437
- currentItemTextAlign: string;
438
- currentItemStartArrowhead: import("../../element/src/types").Arrowhead | null;
439
- currentItemEndArrowhead: import("../../element/src/types").Arrowhead | null;
440
- currentHoveredFontFamily: number | null;
441
- currentItemRoundness: import("../../element/src/types").StrokeRoundness;
442
- currentItemArrowType: "round" | "sharp" | "elbow";
443
- viewBackgroundColor: string;
444
- scrollX: number;
445
- scrollY: number;
446
- cursorButton: "up" | "down";
447
- scrolledOutside: boolean;
448
- name: string | null;
449
- isResizing: boolean;
450
- isRotating: boolean;
451
- zoom: Readonly<{
452
- value: import("../types").NormalizedZoomValue;
453
- }>;
454
- openMenu: "canvas" | "shape" | null;
455
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
456
- openSidebar: {
457
- name: string;
458
- tab?: string | undefined;
459
- } | null;
460
- openDialog: {
461
- name: "imageExport" | "help" | "jsonExport";
462
- } | {
463
- name: "ttd";
464
- tab: "mermaid" | "text-to-diagram";
465
- } | {
466
- name: "commandPalette";
467
- } | {
468
- name: "elementLinkSelector";
469
- sourceElementId: string;
470
- } | null;
471
- defaultSidebarDockedPreference: boolean;
472
- lastPointerDownWith: import("../../element/src/types").PointerType;
473
- selectedElementIds: Readonly<{
474
- [id: string]: true;
475
- }>;
476
- hoveredElementIds: Readonly<{
477
- [id: string]: true;
478
- }>;
479
- previousSelectedElementIds: {
480
- [id: string]: true;
481
- };
482
- selectedElementsAreBeingDragged: boolean;
483
- shouldCacheIgnoreZoom: boolean;
484
- toast: {
485
- message: string;
486
- closable?: boolean | undefined;
487
- duration?: number | undefined;
488
- } | null;
489
- zenModeEnabled: boolean;
490
- theme: import("../../element/src/types").Theme;
491
- gridSize: number;
492
- gridStep: number;
493
- gridModeEnabled: boolean;
494
- viewModeEnabled: boolean;
495
- selectedGroupIds: {
496
- [groupId: string]: boolean;
497
- };
498
- editingGroupId: string | null;
499
- width: number;
500
- height: number;
501
- offsetTop: number;
502
- offsetLeft: number;
503
- fileHandle: import("browser-fs-access").FileSystemHandle | null;
504
- collaborators: Map<import("../types").SocketId, Readonly<{
505
- pointer?: import("../types").CollaboratorPointer | undefined;
506
- button?: "up" | "down" | undefined;
507
- selectedElementIds?: Readonly<{
508
- [id: string]: true;
509
- }> | undefined;
510
- username?: string | null | undefined;
511
- userState?: import("@excalidraw/common").UserIdleState | undefined;
512
- color?: {
513
- background: string;
514
- stroke: string;
515
- } | undefined;
516
- avatarUrl?: string | undefined;
517
- id?: string | undefined;
518
- socketId?: import("../types").SocketId | undefined;
519
- isCurrentUser?: boolean | undefined;
520
- isInCall?: boolean | undefined;
521
- isSpeaking?: boolean | undefined;
522
- isMuted?: boolean | undefined;
523
- }>>;
524
- stats: {
525
- open: boolean;
526
- panels: number;
527
- };
528
- currentChartType: import("../../element/src/types").ChartType;
529
- pasteDialog: {
530
- shown: false;
531
- data: null;
532
- } | {
533
- shown: true;
534
- data: import("../charts").Spreadsheet;
535
- };
536
- showHyperlinkPopup: false | "editor" | "info";
537
- snapLines: readonly import("../snapping").SnapLine[];
538
- originSnapOffset: {
539
- x: number;
540
- y: number;
541
- } | null;
542
- objectsSnapModeEnabled: boolean;
543
- userToFollow: import("../types").UserToFollow | null;
544
- followedBy: Set<import("../types").SocketId>;
545
- isCropping: boolean;
546
- croppingElementId: string | null;
547
- searchMatches: Readonly<{
548
- focusedId: string | null;
549
- matches: readonly import("../types").SearchMatch[];
550
- }> | null;
551
- activeLockedId: string | null;
552
- lockedMultiSelections: {
553
- [groupId: string]: true;
554
- };
555
- stylesPanelMode: "compact" | "full";
556
- };
557
- captureUpdate: "IMMEDIATELY";
558
- } | {
559
- elements: readonly import("../../element/src/types").OrderedExcalidrawElement[];
560
- appState: {
561
- selectedLinearElement: {
562
- selectedPointsIndices: number[];
563
- startBindingElement: import("../../element/src/types").ExcalidrawBindableElement | "keep" | null;
564
- endBindingElement: import("../../element/src/types").ExcalidrawBindableElement | "keep" | null;
565
- elementId: string & {
566
- _brand: "excalidrawLinearElementId";
567
- };
568
- pointerDownState: Readonly<{
569
- prevSelectedPointsIndices: readonly number[] | null;
570
- lastClickedPoint: number;
571
- lastClickedIsEndPoint: boolean;
572
- origin: Readonly<{
573
- x: number;
574
- y: number;
575
- }> | null;
576
- segmentMidpoint: {
577
- value: import("@excalidraw/math").GlobalPoint | null;
578
- index: number | null;
579
- added: boolean;
580
- };
581
- }>;
582
- isDragging: boolean;
583
- lastUncommittedPoint: import("@excalidraw/math").LocalPoint | null;
584
- pointerOffset: Readonly<{
585
- x: number;
586
- y: number;
587
- }>;
588
- hoverPointIndex: number;
589
- segmentMidPointHoveredCoords: import("@excalidraw/math").GlobalPoint | null;
590
- elbowed: boolean;
591
- customLineAngle: number | null;
592
- isEditing: boolean;
593
- };
594
- contextMenu: {
595
- items: import("../components/ContextMenu").ContextMenuItems;
596
- top: number;
597
- left: number;
598
- } | null;
599
- showWelcomeScreen: boolean;
600
- isLoading: boolean;
601
- errorMessage: import("react").ReactNode;
602
- activeEmbeddable: {
603
- element: import("../../element/src/types").NonDeletedExcalidrawElement;
604
- state: "active" | "hover";
605
- } | null;
606
- newElement: import("../../element/src/types").NonDeleted<import("../../element/src/types").ExcalidrawNonSelectionElement> | null;
607
- resizingElement: import("../../element/src/types").NonDeletedExcalidrawElement | null;
608
- multiElement: import("../../element/src/types").NonDeleted<import("../../element/src/types").ExcalidrawLinearElement> | null;
609
- selectionElement: import("../../element/src/types").NonDeletedExcalidrawElement | null;
610
- isBindingEnabled: boolean;
611
- startBoundElement: import("../../element/src/types").NonDeleted<import("../../element/src/types").ExcalidrawBindableElement> | null;
612
- suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
613
- frameToHighlight: import("../../element/src/types").NonDeleted<import("../../element/src/types").ExcalidrawFrameLikeElement> | null;
614
- frameRendering: {
615
- enabled: boolean;
616
- name: boolean;
617
- outline: boolean;
618
- clip: boolean;
619
- };
620
- editingFrame: string | null;
621
- elementsToHighlight: import("../../element/src/types").NonDeleted<import("../../element/src/types").ExcalidrawElement>[] | null;
622
- editingTextElement: import("../../element/src/types").NonDeletedExcalidrawElement | null;
623
- activeTool: {
624
- lastActiveTool: import("../types").ActiveTool | null;
625
- locked: boolean;
626
- fromSelection: boolean;
627
- } & import("../types").ActiveTool;
628
- penMode: boolean;
629
- penDetected: boolean;
630
- exportBackground: boolean;
631
- exportEmbedScene: boolean;
632
- exportWithDarkMode: boolean;
633
- exportScale: number;
634
- currentItemStrokeColor: string;
635
- currentItemBackgroundColor: string;
636
- currentItemFillStyle: import("../../element/src/types").FillStyle;
637
- currentItemStrokeWidth: number;
638
- currentItemStrokeStyle: import("../../element/src/types").StrokeStyle;
639
- currentItemRoughness: number;
640
- currentItemOpacity: number;
641
- currentItemFontFamily: number;
642
- currentItemFontSize: number;
643
- currentItemTextAlign: string;
644
- currentItemStartArrowhead: import("../../element/src/types").Arrowhead | null;
645
- currentItemEndArrowhead: import("../../element/src/types").Arrowhead | null;
646
- currentHoveredFontFamily: number | null;
647
- currentItemRoundness: import("../../element/src/types").StrokeRoundness;
648
- currentItemArrowType: "round" | "sharp" | "elbow";
649
- viewBackgroundColor: string;
650
- scrollX: number;
651
- scrollY: number;
652
- cursorButton: "up" | "down";
653
- scrolledOutside: boolean;
654
- name: string | null;
655
- isResizing: boolean;
656
- isRotating: boolean;
657
- zoom: Readonly<{
658
- value: import("../types").NormalizedZoomValue;
659
- }>;
660
- openMenu: "canvas" | "shape" | null;
661
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
662
- openSidebar: {
663
- name: string;
664
- tab?: string | undefined;
665
- } | null;
666
- openDialog: {
667
- name: "imageExport" | "help" | "jsonExport";
668
- } | {
669
- name: "ttd";
670
- tab: "mermaid" | "text-to-diagram";
671
- } | {
672
- name: "commandPalette";
673
- } | {
674
- name: "elementLinkSelector";
675
- sourceElementId: string;
676
- } | null;
677
- defaultSidebarDockedPreference: boolean;
678
- lastPointerDownWith: import("../../element/src/types").PointerType;
679
- selectedElementIds: Readonly<{
680
- [id: string]: true;
681
- }>;
682
- hoveredElementIds: Readonly<{
683
- [id: string]: true;
684
- }>;
685
- previousSelectedElementIds: {
686
- [id: string]: true;
687
- };
688
- selectedElementsAreBeingDragged: boolean;
689
- shouldCacheIgnoreZoom: boolean;
690
- toast: {
691
- message: string;
692
- closable?: boolean | undefined;
693
- duration?: number | undefined;
694
- } | null;
695
- zenModeEnabled: boolean;
696
- theme: import("../../element/src/types").Theme;
697
- gridSize: number;
698
- gridStep: number;
699
- gridModeEnabled: boolean;
700
- viewModeEnabled: boolean;
701
- selectedGroupIds: {
702
- [groupId: string]: boolean;
703
- };
704
- editingGroupId: string | null;
705
- width: number;
706
- height: number;
707
- offsetTop: number;
708
- offsetLeft: number;
709
- fileHandle: import("browser-fs-access").FileSystemHandle | null;
710
- collaborators: Map<import("../types").SocketId, Readonly<{
711
- pointer?: import("../types").CollaboratorPointer | undefined;
712
- button?: "up" | "down" | undefined;
713
- selectedElementIds?: Readonly<{
714
- [id: string]: true;
715
- }> | undefined;
716
- username?: string | null | undefined;
717
- userState?: import("@excalidraw/common").UserIdleState | undefined;
718
- color?: {
719
- background: string;
720
- stroke: string;
721
- } | undefined;
722
- avatarUrl?: string | undefined;
723
- id?: string | undefined;
724
- socketId?: import("../types").SocketId | undefined;
725
- isCurrentUser?: boolean | undefined;
726
- isInCall?: boolean | undefined;
727
- isSpeaking?: boolean | undefined;
728
- isMuted?: boolean | undefined;
729
- }>>;
730
- stats: {
731
- open: boolean;
732
- panels: number;
733
- };
734
- currentChartType: import("../../element/src/types").ChartType;
735
- pasteDialog: {
736
- shown: false;
737
- data: null;
738
- } | {
739
- shown: true;
740
- data: import("../charts").Spreadsheet;
741
- };
742
- showHyperlinkPopup: false | "editor" | "info";
743
- snapLines: readonly import("../snapping").SnapLine[];
744
- originSnapOffset: {
745
- x: number;
746
- y: number;
747
- } | null;
748
- objectsSnapModeEnabled: boolean;
749
- userToFollow: import("../types").UserToFollow | null;
750
- followedBy: Set<import("../types").SocketId>;
751
- isCropping: boolean;
752
- croppingElementId: string | null;
753
- searchMatches: Readonly<{
754
- focusedId: string | null;
755
- matches: readonly import("../types").SearchMatch[];
756
- }> | null;
757
- activeLockedId: string | null;
758
- lockedMultiSelections: {
759
- [groupId: string]: true;
760
- };
761
- stylesPanelMode: "compact" | "full";
762
- };
763
- captureUpdate: "IMMEDIATELY";
764
- } | {
765
- elements: import("../../element/src/types").ExcalidrawElement[];
766
- appState: {
767
- activeTool: {
768
- lastActiveTool: import("../types").ActiveTool | null;
769
- locked: boolean;
770
- fromSelection: boolean;
771
- } & import("../types").ActiveTool;
772
- multiElement: null;
773
- activeEmbeddable: null;
774
- selectedLinearElement: null;
775
- editingGroupId: string | null;
776
- selectedElementIds: Readonly<{
777
- [id: string]: true;
778
- }>;
779
- selectedGroupIds: {
780
- [groupId: string]: boolean;
781
- };
782
- contextMenu: {
783
- items: import("../components/ContextMenu").ContextMenuItems;
784
- top: number;
785
- left: number;
786
- } | null;
787
- showWelcomeScreen: boolean;
788
- isLoading: boolean;
789
- errorMessage: import("react").ReactNode;
790
- newElement: import("../../element/src/types").NonDeleted<import("../../element/src/types").ExcalidrawNonSelectionElement> | null;
791
- resizingElement: import("../../element/src/types").NonDeletedExcalidrawElement | null;
792
- selectionElement: import("../../element/src/types").NonDeletedExcalidrawElement | null;
793
- isBindingEnabled: boolean;
794
- startBoundElement: import("../../element/src/types").NonDeleted<import("../../element/src/types").ExcalidrawBindableElement> | null;
795
- suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
796
- frameToHighlight: import("../../element/src/types").NonDeleted<import("../../element/src/types").ExcalidrawFrameLikeElement> | null;
797
- frameRendering: {
798
- enabled: boolean;
799
- name: boolean;
800
- outline: boolean;
801
- clip: boolean;
802
- };
803
- editingFrame: string | null;
804
- elementsToHighlight: import("../../element/src/types").NonDeleted<import("../../element/src/types").ExcalidrawElement>[] | null;
805
- editingTextElement: import("../../element/src/types").NonDeletedExcalidrawElement | null;
806
- penMode: boolean;
807
- penDetected: boolean;
808
- exportBackground: boolean;
809
- exportEmbedScene: boolean;
810
- exportWithDarkMode: boolean;
811
- exportScale: number;
812
- currentItemStrokeColor: string;
813
- currentItemBackgroundColor: string;
814
- currentItemFillStyle: import("../../element/src/types").FillStyle;
815
- currentItemStrokeWidth: number;
816
- currentItemStrokeStyle: import("../../element/src/types").StrokeStyle;
817
- currentItemRoughness: number;
818
- currentItemOpacity: number;
819
- currentItemFontFamily: number;
820
- currentItemFontSize: number;
821
- currentItemTextAlign: string;
822
- currentItemStartArrowhead: import("../../element/src/types").Arrowhead | null;
823
- currentItemEndArrowhead: import("../../element/src/types").Arrowhead | null;
824
- currentHoveredFontFamily: number | null;
825
- currentItemRoundness: import("../../element/src/types").StrokeRoundness;
826
- currentItemArrowType: "round" | "sharp" | "elbow";
827
- viewBackgroundColor: string;
828
- scrollX: number;
829
- scrollY: number;
830
- cursorButton: "up" | "down";
831
- scrolledOutside: boolean;
832
- name: string | null;
833
- isResizing: boolean;
834
- isRotating: boolean;
835
- zoom: Readonly<{
836
- value: import("../types").NormalizedZoomValue;
837
- }>;
838
- openMenu: "canvas" | "shape" | null;
839
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
840
- openSidebar: {
841
- name: string;
842
- tab?: string | undefined;
843
- } | null;
844
- openDialog: {
845
- name: "imageExport" | "help" | "jsonExport";
846
- } | {
847
- name: "ttd";
848
- tab: "mermaid" | "text-to-diagram";
849
- } | {
850
- name: "commandPalette";
851
- } | {
852
- name: "elementLinkSelector";
853
- sourceElementId: string;
854
- } | null;
855
- defaultSidebarDockedPreference: boolean;
856
- lastPointerDownWith: import("../../element/src/types").PointerType;
857
- hoveredElementIds: Readonly<{
858
- [id: string]: true;
859
- }>;
860
- previousSelectedElementIds: {
861
- [id: string]: true;
862
- };
863
- selectedElementsAreBeingDragged: boolean;
864
- shouldCacheIgnoreZoom: boolean;
865
- toast: {
866
- message: string;
867
- closable?: boolean | undefined;
868
- duration?: number | undefined;
869
- } | null;
870
- zenModeEnabled: boolean;
871
- theme: import("../../element/src/types").Theme;
872
- gridSize: number;
873
- gridStep: number;
874
- gridModeEnabled: boolean;
875
- viewModeEnabled: boolean;
876
- width: number;
877
- height: number;
878
- offsetTop: number;
879
- offsetLeft: number;
880
- fileHandle: import("browser-fs-access").FileSystemHandle | null;
881
- collaborators: Map<import("../types").SocketId, Readonly<{
882
- pointer?: import("../types").CollaboratorPointer | undefined;
883
- button?: "up" | "down" | undefined;
884
- selectedElementIds?: Readonly<{
885
- [id: string]: true;
886
- }> | undefined;
887
- username?: string | null | undefined;
888
- userState?: import("@excalidraw/common").UserIdleState | undefined;
889
- color?: {
890
- background: string;
891
- stroke: string;
892
- } | undefined;
893
- avatarUrl?: string | undefined;
894
- id?: string | undefined;
895
- socketId?: import("../types").SocketId | undefined;
896
- isCurrentUser?: boolean | undefined;
897
- isInCall?: boolean | undefined;
898
- isSpeaking?: boolean | undefined;
899
- isMuted?: boolean | undefined;
900
- }>>;
901
- stats: {
902
- open: boolean;
903
- panels: number;
904
- };
905
- currentChartType: import("../../element/src/types").ChartType;
906
- pasteDialog: {
907
- shown: false;
908
- data: null;
909
- } | {
910
- shown: true;
911
- data: import("../charts").Spreadsheet;
912
- };
913
- showHyperlinkPopup: false | "editor" | "info";
914
- snapLines: readonly import("../snapping").SnapLine[];
915
- originSnapOffset: {
916
- x: number;
917
- y: number;
918
- } | null;
919
- objectsSnapModeEnabled: boolean;
920
- userToFollow: import("../types").UserToFollow | null;
921
- followedBy: Set<import("../types").SocketId>;
922
- isCropping: boolean;
923
- croppingElementId: string | null;
924
- searchMatches: Readonly<{
925
- focusedId: string | null;
926
- matches: readonly import("../types").SearchMatch[];
927
- }> | null;
928
- activeLockedId: string | null;
929
- lockedMultiSelections: {
930
- [groupId: string]: true;
931
- };
932
- stylesPanelMode: "compact" | "full";
933
- };
934
- captureUpdate: "IMMEDIATELY" | "EVENTUALLY";
935
- };
936
- keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
937
- } & {
938
- keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
178
+ export declare const actionCut: import("./types").Action<ClipboardEvent | null> & {
179
+ keyTest?: ((event: React.KeyboardEvent | KeyboardEvent, appState: import("../types").AppState, elements: readonly import("@excalidraw/element/types").ExcalidrawElement[], app: import("../types").AppClassProperties) => boolean) | undefined;
939
180
  };
940
181
  export declare const actionCopyAsSvg: {
941
182
  name: "copyAsSvg";
@@ -944,7 +185,7 @@ export declare const actionCopyAsSvg: {
944
185
  trackEvent: {
945
186
  category: "element";
946
187
  };
947
- perform: (elements: readonly import("../../element/src/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, _data: any, app: import("../types").AppClassProperties) => Promise<{
188
+ perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, _data: unknown, app: import("../types").AppClassProperties) => Promise<{
948
189
  captureUpdate: "EVENTUALLY";
949
190
  appState?: undefined;
950
191
  } | {
@@ -962,7 +203,7 @@ export declare const actionCopyAsSvg: {
962
203
  };
963
204
  captureUpdate: "EVENTUALLY";
964
205
  }>;
965
- predicate: (elements: readonly import("../../element/src/types").ExcalidrawElement[]) => boolean;
206
+ predicate: (elements: readonly import("@excalidraw/element/types").ExcalidrawElement[]) => boolean;
966
207
  keywords: string[];
967
208
  } & {
968
209
  keyTest?: undefined;
@@ -974,7 +215,7 @@ export declare const actionCopyAsPng: {
974
215
  trackEvent: {
975
216
  category: "element";
976
217
  };
977
- perform: (elements: readonly import("../../element/src/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, _data: any, app: import("../types").AppClassProperties) => Promise<{
218
+ perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, _data: unknown, app: import("../types").AppClassProperties) => Promise<{
978
219
  captureUpdate: "EVENTUALLY";
979
220
  appState?: undefined;
980
221
  } | {
@@ -988,17 +229,23 @@ export declare const actionCopyAsPng: {
988
229
  showWelcomeScreen: boolean;
989
230
  isLoading: boolean;
990
231
  activeEmbeddable: {
991
- element: import("../../element/src/types").NonDeletedExcalidrawElement;
992
- state: "active" | "hover";
232
+ element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
233
+ state: "hover" | "active";
993
234
  } | null;
994
- newElement: import("../../element/src/types").NonDeleted<import("../../element/src/types").ExcalidrawNonSelectionElement> | null;
995
- resizingElement: import("../../element/src/types").NonDeletedExcalidrawElement | null;
996
- multiElement: import("../../element/src/types").NonDeleted<import("../../element/src/types").ExcalidrawLinearElement> | null;
997
- selectionElement: import("../../element/src/types").NonDeletedExcalidrawElement | null;
235
+ newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
236
+ resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
237
+ multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
238
+ selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
998
239
  isBindingEnabled: boolean;
999
- startBoundElement: import("../../element/src/types").NonDeleted<import("../../element/src/types").ExcalidrawBindableElement> | null;
1000
- suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
1001
- frameToHighlight: import("../../element/src/types").NonDeleted<import("../../element/src/types").ExcalidrawFrameLikeElement> | null;
240
+ boxSelectionMode: import("../types").BoxSelectionMode;
241
+ bindingPreference: "enabled" | "disabled";
242
+ isMidpointSnappingEnabled: boolean;
243
+ startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
244
+ suggestedBinding: {
245
+ element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
246
+ midPoint?: import("@excalidraw/math").GlobalPoint;
247
+ } | null;
248
+ frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
1002
249
  frameRendering: {
1003
250
  enabled: boolean;
1004
251
  name: boolean;
@@ -1006,13 +253,17 @@ export declare const actionCopyAsPng: {
1006
253
  clip: boolean;
1007
254
  };
1008
255
  editingFrame: string | null;
1009
- elementsToHighlight: import("../../element/src/types").NonDeleted<import("../../element/src/types").ExcalidrawElement>[] | null;
1010
- editingTextElement: import("../../element/src/types").NonDeletedExcalidrawElement | null;
256
+ elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
257
+ editingTextElement: import("@excalidraw/element/types").ExcalidrawTextElement | null;
1011
258
  activeTool: {
1012
259
  lastActiveTool: import("../types").ActiveTool | null;
1013
260
  locked: boolean;
1014
261
  fromSelection: boolean;
1015
262
  } & import("../types").ActiveTool;
263
+ preferredSelectionTool: {
264
+ type: "selection" | "lasso";
265
+ initialized: boolean;
266
+ };
1016
267
  penMode: boolean;
1017
268
  penDetected: boolean;
1018
269
  exportBackground: boolean;
@@ -1021,19 +272,19 @@ export declare const actionCopyAsPng: {
1021
272
  exportScale: number;
1022
273
  currentItemStrokeColor: string;
1023
274
  currentItemBackgroundColor: string;
1024
- currentItemFillStyle: import("../../element/src/types").FillStyle;
275
+ currentItemFillStyle: import("@excalidraw/element/types").ExcalidrawElement["fillStyle"];
1025
276
  currentItemStrokeWidth: number;
1026
- currentItemStrokeStyle: import("../../element/src/types").StrokeStyle;
277
+ currentItemStrokeStyle: import("@excalidraw/element/types").ExcalidrawElement["strokeStyle"];
1027
278
  currentItemRoughness: number;
1028
279
  currentItemOpacity: number;
1029
- currentItemFontFamily: number;
280
+ currentItemFontFamily: import("@excalidraw/element/types").FontFamilyValues;
1030
281
  currentItemFontSize: number;
1031
- currentItemTextAlign: string;
1032
- currentItemStartArrowhead: import("../../element/src/types").Arrowhead | null;
1033
- currentItemEndArrowhead: import("../../element/src/types").Arrowhead | null;
1034
- currentHoveredFontFamily: number | null;
1035
- currentItemRoundness: import("../../element/src/types").StrokeRoundness;
1036
- currentItemArrowType: "round" | "sharp" | "elbow";
282
+ currentItemTextAlign: import("@excalidraw/element/types").TextAlign;
283
+ currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
284
+ currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
285
+ currentHoveredFontFamily: import("@excalidraw/element/types").FontFamilyValues | null;
286
+ currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
287
+ currentItemArrowType: "sharp" | "round" | "elbow";
1037
288
  viewBackgroundColor: string;
1038
289
  scrollX: number;
1039
290
  scrollY: number;
@@ -1042,28 +293,32 @@ export declare const actionCopyAsPng: {
1042
293
  name: string | null;
1043
294
  isResizing: boolean;
1044
295
  isRotating: boolean;
1045
- zoom: Readonly<{
1046
- value: import("../types").NormalizedZoomValue;
1047
- }>;
1048
- openMenu: "canvas" | "shape" | null;
1049
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
296
+ zoom: import("../types").Zoom;
297
+ openMenu: "canvas" | null;
298
+ openPopup: "canvasBackground" | "elementBackground" | "elementStroke" | "fontFamily" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
1050
299
  openSidebar: {
1051
- name: string;
1052
- tab?: string | undefined;
300
+ name: import("../types").SidebarName;
301
+ tab?: import("../types").SidebarTabName;
1053
302
  } | null;
1054
- openDialog: {
303
+ openDialog: null | {
1055
304
  name: "imageExport" | "help" | "jsonExport";
1056
305
  } | {
1057
306
  name: "ttd";
1058
- tab: "mermaid" | "text-to-diagram";
307
+ tab: "text-to-diagram" | "mermaid";
1059
308
  } | {
1060
309
  name: "commandPalette";
310
+ } | {
311
+ name: "settings";
1061
312
  } | {
1062
313
  name: "elementLinkSelector";
1063
- sourceElementId: string;
1064
- } | null;
314
+ sourceElementId: import("@excalidraw/element/types").ExcalidrawElement["id"];
315
+ } | {
316
+ name: "charts";
317
+ data: import("../charts").Spreadsheet;
318
+ rawText: string;
319
+ };
1065
320
  defaultSidebarDockedPreference: boolean;
1066
- lastPointerDownWith: import("../../element/src/types").PointerType;
321
+ lastPointerDownWith: import("@excalidraw/element/types").PointerType;
1067
322
  selectedElementIds: Readonly<{
1068
323
  [id: string]: true;
1069
324
  }>;
@@ -1076,12 +331,12 @@ export declare const actionCopyAsPng: {
1076
331
  selectedElementsAreBeingDragged: boolean;
1077
332
  shouldCacheIgnoreZoom: boolean;
1078
333
  toast: {
1079
- message: string;
1080
- closable?: boolean | undefined;
1081
- duration?: number | undefined;
334
+ message: React.ReactNode;
335
+ closable?: boolean;
336
+ duration?: number;
1082
337
  } | null;
1083
338
  zenModeEnabled: boolean;
1084
- theme: import("../../element/src/types").Theme;
339
+ theme: import("@excalidraw/element/types").Theme;
1085
340
  gridSize: number;
1086
341
  gridStep: number;
1087
342
  gridModeEnabled: boolean;
@@ -1089,45 +344,18 @@ export declare const actionCopyAsPng: {
1089
344
  selectedGroupIds: {
1090
345
  [groupId: string]: boolean;
1091
346
  };
1092
- editingGroupId: string | null;
347
+ editingGroupId: import("@excalidraw/element/types").GroupId | null;
1093
348
  width: number;
1094
349
  height: number;
1095
350
  offsetTop: number;
1096
351
  offsetLeft: number;
1097
- fileHandle: import("browser-fs-access").FileSystemHandle | null;
1098
- collaborators: Map<import("../types").SocketId, Readonly<{
1099
- pointer?: import("../types").CollaboratorPointer | undefined;
1100
- button?: "up" | "down" | undefined;
1101
- selectedElementIds?: Readonly<{
1102
- [id: string]: true;
1103
- }> | undefined;
1104
- username?: string | null | undefined;
1105
- userState?: import("@excalidraw/common").UserIdleState | undefined;
1106
- color?: {
1107
- background: string;
1108
- stroke: string;
1109
- } | undefined;
1110
- avatarUrl?: string | undefined;
1111
- id?: string | undefined;
1112
- socketId?: import("../types").SocketId | undefined;
1113
- isCurrentUser?: boolean | undefined;
1114
- isInCall?: boolean | undefined;
1115
- isSpeaking?: boolean | undefined;
1116
- isMuted?: boolean | undefined;
1117
- }>>;
352
+ fileHandle: FileSystemFileHandle | null;
353
+ collaborators: Map<import("../types").SocketId, import("../types").Collaborator>;
1118
354
  stats: {
1119
355
  open: boolean;
1120
356
  panels: number;
1121
357
  };
1122
- currentChartType: import("../../element/src/types").ChartType;
1123
- pasteDialog: {
1124
- shown: false;
1125
- data: null;
1126
- } | {
1127
- shown: true;
1128
- data: import("../charts").Spreadsheet;
1129
- };
1130
- showHyperlinkPopup: false | "editor" | "info";
358
+ showHyperlinkPopup: false | "info" | "editor";
1131
359
  selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
1132
360
  snapLines: readonly import("../snapping").SnapLine[];
1133
361
  originSnapOffset: {
@@ -1138,20 +366,20 @@ export declare const actionCopyAsPng: {
1138
366
  userToFollow: import("../types").UserToFollow | null;
1139
367
  followedBy: Set<import("../types").SocketId>;
1140
368
  isCropping: boolean;
1141
- croppingElementId: string | null;
369
+ croppingElementId: import("@excalidraw/element/types").ExcalidrawElement["id"] | null;
1142
370
  searchMatches: Readonly<{
1143
- focusedId: string | null;
371
+ focusedId: import("@excalidraw/element/types").ExcalidrawElement["id"] | null;
1144
372
  matches: readonly import("../types").SearchMatch[];
1145
373
  }> | null;
1146
374
  activeLockedId: string | null;
1147
375
  lockedMultiSelections: {
1148
376
  [groupId: string]: true;
1149
377
  };
1150
- stylesPanelMode: "compact" | "full";
378
+ bindMode: import("@excalidraw/element/types").BindMode;
1151
379
  };
1152
380
  captureUpdate: "EVENTUALLY";
1153
381
  }>;
1154
- predicate: (elements: readonly import("../../element/src/types").ExcalidrawElement[]) => boolean;
382
+ predicate: (elements: readonly import("@excalidraw/element/types").ExcalidrawElement[]) => boolean;
1155
383
  keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
1156
384
  keywords: string[];
1157
385
  } & {
@@ -1163,10 +391,10 @@ export declare const copyText: {
1163
391
  trackEvent: {
1164
392
  category: "element";
1165
393
  };
1166
- perform: (elements: readonly import("../../element/src/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, _: any, app: import("../types").AppClassProperties) => {
394
+ perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, _: unknown, app: import("../types").AppClassProperties) => {
1167
395
  captureUpdate: "EVENTUALLY";
1168
396
  };
1169
- predicate: (elements: readonly import("../../element/src/types").ExcalidrawElement[], appState: import("../types").AppState, _: import("../types").ExcalidrawProps, app: import("../types").AppClassProperties) => boolean;
397
+ predicate: (elements: readonly import("@excalidraw/element/types").ExcalidrawElement[], appState: import("../types").AppState, _: import("../types").ExcalidrawProps, app: import("../types").AppClassProperties) => boolean;
1170
398
  keywords: string[];
1171
399
  } & {
1172
400
  keyTest?: undefined;