@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,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,22 @@ 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
+ bindingPreference: "enabled" | "disabled";
31
+ isMidpointSnappingEnabled: boolean;
32
+ startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
33
+ suggestedBinding: {
34
+ element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
35
+ midPoint?: import("@excalidraw/math").GlobalPoint;
36
+ } | null;
37
+ frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
219
38
  frameRendering: {
220
39
  enabled: boolean;
221
40
  name: boolean;
@@ -223,13 +42,17 @@ export declare const actionPaste: {
223
42
  clip: boolean;
224
43
  };
225
44
  editingFrame: string | null;
226
- elementsToHighlight: import("../../element/src/types").NonDeleted<import("../../element/src/types").ExcalidrawElement>[] | null;
227
- editingTextElement: import("../../element/src/types").NonDeletedExcalidrawElement | null;
45
+ elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
46
+ editingTextElement: import("@excalidraw/element/types").ExcalidrawTextElement | null;
228
47
  activeTool: {
229
48
  lastActiveTool: import("../types").ActiveTool | null;
230
49
  locked: boolean;
231
50
  fromSelection: boolean;
232
51
  } & import("../types").ActiveTool;
52
+ preferredSelectionTool: {
53
+ type: "selection" | "lasso";
54
+ initialized: boolean;
55
+ };
233
56
  penMode: boolean;
234
57
  penDetected: boolean;
235
58
  exportBackground: boolean;
@@ -238,19 +61,19 @@ export declare const actionPaste: {
238
61
  exportScale: number;
239
62
  currentItemStrokeColor: string;
240
63
  currentItemBackgroundColor: string;
241
- currentItemFillStyle: import("../../element/src/types").FillStyle;
64
+ currentItemFillStyle: import("@excalidraw/element/types").ExcalidrawElement["fillStyle"];
242
65
  currentItemStrokeWidth: number;
243
- currentItemStrokeStyle: import("../../element/src/types").StrokeStyle;
66
+ currentItemStrokeStyle: import("@excalidraw/element/types").ExcalidrawElement["strokeStyle"];
244
67
  currentItemRoughness: number;
245
68
  currentItemOpacity: number;
246
- currentItemFontFamily: number;
69
+ currentItemFontFamily: import("@excalidraw/element/types").FontFamilyValues;
247
70
  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";
71
+ currentItemTextAlign: import("@excalidraw/element/types").TextAlign;
72
+ currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
73
+ currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
74
+ currentHoveredFontFamily: import("@excalidraw/element/types").FontFamilyValues | null;
75
+ currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
76
+ currentItemArrowType: "sharp" | "round" | "elbow";
254
77
  viewBackgroundColor: string;
255
78
  scrollX: number;
256
79
  scrollY: number;
@@ -259,28 +82,32 @@ export declare const actionPaste: {
259
82
  name: string | null;
260
83
  isResizing: boolean;
261
84
  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;
85
+ zoom: import("../types").Zoom;
86
+ openMenu: "canvas" | null;
87
+ openPopup: "canvasBackground" | "elementBackground" | "elementStroke" | "fontFamily" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
267
88
  openSidebar: {
268
- name: string;
269
- tab?: string | undefined;
89
+ name: import("../types").SidebarName;
90
+ tab?: import("../types").SidebarTabName;
270
91
  } | null;
271
- openDialog: {
92
+ openDialog: null | {
272
93
  name: "imageExport" | "help" | "jsonExport";
273
94
  } | {
274
95
  name: "ttd";
275
- tab: "mermaid" | "text-to-diagram";
96
+ tab: "text-to-diagram" | "mermaid";
276
97
  } | {
277
98
  name: "commandPalette";
99
+ } | {
100
+ name: "settings";
278
101
  } | {
279
102
  name: "elementLinkSelector";
280
- sourceElementId: string;
281
- } | null;
103
+ sourceElementId: import("@excalidraw/element/types").ExcalidrawElement["id"];
104
+ } | {
105
+ name: "charts";
106
+ data: import("../charts").Spreadsheet;
107
+ rawText: string;
108
+ };
282
109
  defaultSidebarDockedPreference: boolean;
283
- lastPointerDownWith: import("../../element/src/types").PointerType;
110
+ lastPointerDownWith: import("@excalidraw/element/types").PointerType;
284
111
  selectedElementIds: Readonly<{
285
112
  [id: string]: true;
286
113
  }>;
@@ -293,12 +120,12 @@ export declare const actionPaste: {
293
120
  selectedElementsAreBeingDragged: boolean;
294
121
  shouldCacheIgnoreZoom: boolean;
295
122
  toast: {
296
- message: string;
297
- closable?: boolean | undefined;
298
- duration?: number | undefined;
123
+ message: React.ReactNode;
124
+ closable?: boolean;
125
+ duration?: number;
299
126
  } | null;
300
127
  zenModeEnabled: boolean;
301
- theme: import("../../element/src/types").Theme;
128
+ theme: import("@excalidraw/element/types").Theme;
302
129
  gridSize: number;
303
130
  gridStep: number;
304
131
  gridModeEnabled: boolean;
@@ -306,45 +133,18 @@ export declare const actionPaste: {
306
133
  selectedGroupIds: {
307
134
  [groupId: string]: boolean;
308
135
  };
309
- editingGroupId: string | null;
136
+ editingGroupId: import("@excalidraw/element/types").GroupId | null;
310
137
  width: number;
311
138
  height: number;
312
139
  offsetTop: number;
313
140
  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
- }>>;
141
+ fileHandle: FileSystemFileHandle | null;
142
+ collaborators: Map<import("../types").SocketId, import("../types").Collaborator>;
335
143
  stats: {
336
144
  open: boolean;
337
145
  panels: number;
338
146
  };
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";
147
+ showHyperlinkPopup: false | "info" | "editor";
348
148
  selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
349
149
  snapLines: readonly import("../snapping").SnapLine[];
350
150
  originSnapOffset: {
@@ -355,16 +155,16 @@ export declare const actionPaste: {
355
155
  userToFollow: import("../types").UserToFollow | null;
356
156
  followedBy: Set<import("../types").SocketId>;
357
157
  isCropping: boolean;
358
- croppingElementId: string | null;
158
+ croppingElementId: import("@excalidraw/element/types").ExcalidrawElement["id"] | null;
359
159
  searchMatches: Readonly<{
360
- focusedId: string | null;
160
+ focusedId: import("@excalidraw/element/types").ExcalidrawElement["id"] | null;
361
161
  matches: readonly import("../types").SearchMatch[];
362
162
  }> | null;
363
163
  activeLockedId: string | null;
364
164
  lockedMultiSelections: {
365
165
  [groupId: string]: true;
366
166
  };
367
- stylesPanelMode: "compact" | "full";
167
+ bindMode: import("@excalidraw/element/types").BindMode;
368
168
  };
369
169
  } | {
370
170
  captureUpdate: "EVENTUALLY";
@@ -374,568 +174,8 @@ export declare const actionPaste: {
374
174
  } & {
375
175
  keyTest?: undefined;
376
176
  };
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;
177
+ export declare const actionCut: import("./types").Action<ClipboardEvent | null> & {
178
+ keyTest?: ((event: React.KeyboardEvent | KeyboardEvent, appState: import("../types").AppState, elements: readonly import("@excalidraw/element/types").ExcalidrawElement[], app: import("../types").AppClassProperties) => boolean) | undefined;
939
179
  };
940
180
  export declare const actionCopyAsSvg: {
941
181
  name: "copyAsSvg";
@@ -944,7 +184,7 @@ export declare const actionCopyAsSvg: {
944
184
  trackEvent: {
945
185
  category: "element";
946
186
  };
947
- perform: (elements: readonly import("../../element/src/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, _data: any, app: import("../types").AppClassProperties) => Promise<{
187
+ perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, _data: unknown, app: import("../types").AppClassProperties) => Promise<{
948
188
  captureUpdate: "EVENTUALLY";
949
189
  appState?: undefined;
950
190
  } | {
@@ -962,7 +202,7 @@ export declare const actionCopyAsSvg: {
962
202
  };
963
203
  captureUpdate: "EVENTUALLY";
964
204
  }>;
965
- predicate: (elements: readonly import("../../element/src/types").ExcalidrawElement[]) => boolean;
205
+ predicate: (elements: readonly import("@excalidraw/element/types").ExcalidrawElement[]) => boolean;
966
206
  keywords: string[];
967
207
  } & {
968
208
  keyTest?: undefined;
@@ -974,7 +214,7 @@ export declare const actionCopyAsPng: {
974
214
  trackEvent: {
975
215
  category: "element";
976
216
  };
977
- perform: (elements: readonly import("../../element/src/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, _data: any, app: import("../types").AppClassProperties) => Promise<{
217
+ perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, _data: unknown, app: import("../types").AppClassProperties) => Promise<{
978
218
  captureUpdate: "EVENTUALLY";
979
219
  appState?: undefined;
980
220
  } | {
@@ -988,17 +228,22 @@ export declare const actionCopyAsPng: {
988
228
  showWelcomeScreen: boolean;
989
229
  isLoading: boolean;
990
230
  activeEmbeddable: {
991
- element: import("../../element/src/types").NonDeletedExcalidrawElement;
992
- state: "active" | "hover";
231
+ element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
232
+ state: "hover" | "active";
993
233
  } | 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;
234
+ newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
235
+ resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
236
+ multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
237
+ selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
998
238
  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;
239
+ bindingPreference: "enabled" | "disabled";
240
+ isMidpointSnappingEnabled: boolean;
241
+ startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
242
+ suggestedBinding: {
243
+ element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
244
+ midPoint?: import("@excalidraw/math").GlobalPoint;
245
+ } | null;
246
+ frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
1002
247
  frameRendering: {
1003
248
  enabled: boolean;
1004
249
  name: boolean;
@@ -1006,13 +251,17 @@ export declare const actionCopyAsPng: {
1006
251
  clip: boolean;
1007
252
  };
1008
253
  editingFrame: string | null;
1009
- elementsToHighlight: import("../../element/src/types").NonDeleted<import("../../element/src/types").ExcalidrawElement>[] | null;
1010
- editingTextElement: import("../../element/src/types").NonDeletedExcalidrawElement | null;
254
+ elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
255
+ editingTextElement: import("@excalidraw/element/types").ExcalidrawTextElement | null;
1011
256
  activeTool: {
1012
257
  lastActiveTool: import("../types").ActiveTool | null;
1013
258
  locked: boolean;
1014
259
  fromSelection: boolean;
1015
260
  } & import("../types").ActiveTool;
261
+ preferredSelectionTool: {
262
+ type: "selection" | "lasso";
263
+ initialized: boolean;
264
+ };
1016
265
  penMode: boolean;
1017
266
  penDetected: boolean;
1018
267
  exportBackground: boolean;
@@ -1021,19 +270,19 @@ export declare const actionCopyAsPng: {
1021
270
  exportScale: number;
1022
271
  currentItemStrokeColor: string;
1023
272
  currentItemBackgroundColor: string;
1024
- currentItemFillStyle: import("../../element/src/types").FillStyle;
273
+ currentItemFillStyle: import("@excalidraw/element/types").ExcalidrawElement["fillStyle"];
1025
274
  currentItemStrokeWidth: number;
1026
- currentItemStrokeStyle: import("../../element/src/types").StrokeStyle;
275
+ currentItemStrokeStyle: import("@excalidraw/element/types").ExcalidrawElement["strokeStyle"];
1027
276
  currentItemRoughness: number;
1028
277
  currentItemOpacity: number;
1029
- currentItemFontFamily: number;
278
+ currentItemFontFamily: import("@excalidraw/element/types").FontFamilyValues;
1030
279
  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";
280
+ currentItemTextAlign: import("@excalidraw/element/types").TextAlign;
281
+ currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
282
+ currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
283
+ currentHoveredFontFamily: import("@excalidraw/element/types").FontFamilyValues | null;
284
+ currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
285
+ currentItemArrowType: "sharp" | "round" | "elbow";
1037
286
  viewBackgroundColor: string;
1038
287
  scrollX: number;
1039
288
  scrollY: number;
@@ -1042,28 +291,32 @@ export declare const actionCopyAsPng: {
1042
291
  name: string | null;
1043
292
  isResizing: boolean;
1044
293
  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;
294
+ zoom: import("../types").Zoom;
295
+ openMenu: "canvas" | null;
296
+ openPopup: "canvasBackground" | "elementBackground" | "elementStroke" | "fontFamily" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
1050
297
  openSidebar: {
1051
- name: string;
1052
- tab?: string | undefined;
298
+ name: import("../types").SidebarName;
299
+ tab?: import("../types").SidebarTabName;
1053
300
  } | null;
1054
- openDialog: {
301
+ openDialog: null | {
1055
302
  name: "imageExport" | "help" | "jsonExport";
1056
303
  } | {
1057
304
  name: "ttd";
1058
- tab: "mermaid" | "text-to-diagram";
305
+ tab: "text-to-diagram" | "mermaid";
1059
306
  } | {
1060
307
  name: "commandPalette";
308
+ } | {
309
+ name: "settings";
1061
310
  } | {
1062
311
  name: "elementLinkSelector";
1063
- sourceElementId: string;
1064
- } | null;
312
+ sourceElementId: import("@excalidraw/element/types").ExcalidrawElement["id"];
313
+ } | {
314
+ name: "charts";
315
+ data: import("../charts").Spreadsheet;
316
+ rawText: string;
317
+ };
1065
318
  defaultSidebarDockedPreference: boolean;
1066
- lastPointerDownWith: import("../../element/src/types").PointerType;
319
+ lastPointerDownWith: import("@excalidraw/element/types").PointerType;
1067
320
  selectedElementIds: Readonly<{
1068
321
  [id: string]: true;
1069
322
  }>;
@@ -1076,12 +329,12 @@ export declare const actionCopyAsPng: {
1076
329
  selectedElementsAreBeingDragged: boolean;
1077
330
  shouldCacheIgnoreZoom: boolean;
1078
331
  toast: {
1079
- message: string;
1080
- closable?: boolean | undefined;
1081
- duration?: number | undefined;
332
+ message: React.ReactNode;
333
+ closable?: boolean;
334
+ duration?: number;
1082
335
  } | null;
1083
336
  zenModeEnabled: boolean;
1084
- theme: import("../../element/src/types").Theme;
337
+ theme: import("@excalidraw/element/types").Theme;
1085
338
  gridSize: number;
1086
339
  gridStep: number;
1087
340
  gridModeEnabled: boolean;
@@ -1089,45 +342,18 @@ export declare const actionCopyAsPng: {
1089
342
  selectedGroupIds: {
1090
343
  [groupId: string]: boolean;
1091
344
  };
1092
- editingGroupId: string | null;
345
+ editingGroupId: import("@excalidraw/element/types").GroupId | null;
1093
346
  width: number;
1094
347
  height: number;
1095
348
  offsetTop: number;
1096
349
  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
- }>>;
350
+ fileHandle: FileSystemFileHandle | null;
351
+ collaborators: Map<import("../types").SocketId, import("../types").Collaborator>;
1118
352
  stats: {
1119
353
  open: boolean;
1120
354
  panels: number;
1121
355
  };
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";
356
+ showHyperlinkPopup: false | "info" | "editor";
1131
357
  selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
1132
358
  snapLines: readonly import("../snapping").SnapLine[];
1133
359
  originSnapOffset: {
@@ -1138,20 +364,20 @@ export declare const actionCopyAsPng: {
1138
364
  userToFollow: import("../types").UserToFollow | null;
1139
365
  followedBy: Set<import("../types").SocketId>;
1140
366
  isCropping: boolean;
1141
- croppingElementId: string | null;
367
+ croppingElementId: import("@excalidraw/element/types").ExcalidrawElement["id"] | null;
1142
368
  searchMatches: Readonly<{
1143
- focusedId: string | null;
369
+ focusedId: import("@excalidraw/element/types").ExcalidrawElement["id"] | null;
1144
370
  matches: readonly import("../types").SearchMatch[];
1145
371
  }> | null;
1146
372
  activeLockedId: string | null;
1147
373
  lockedMultiSelections: {
1148
374
  [groupId: string]: true;
1149
375
  };
1150
- stylesPanelMode: "compact" | "full";
376
+ bindMode: import("@excalidraw/element/types").BindMode;
1151
377
  };
1152
378
  captureUpdate: "EVENTUALLY";
1153
379
  }>;
1154
- predicate: (elements: readonly import("../../element/src/types").ExcalidrawElement[]) => boolean;
380
+ predicate: (elements: readonly import("@excalidraw/element/types").ExcalidrawElement[]) => boolean;
1155
381
  keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
1156
382
  keywords: string[];
1157
383
  } & {
@@ -1163,10 +389,10 @@ export declare const copyText: {
1163
389
  trackEvent: {
1164
390
  category: "element";
1165
391
  };
1166
- perform: (elements: readonly import("../../element/src/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, _: any, app: import("../types").AppClassProperties) => {
392
+ perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, _: unknown, app: import("../types").AppClassProperties) => {
1167
393
  captureUpdate: "EVENTUALLY";
1168
394
  };
1169
- predicate: (elements: readonly import("../../element/src/types").ExcalidrawElement[], appState: import("../types").AppState, _: import("../types").ExcalidrawProps, app: import("../types").AppClassProperties) => boolean;
395
+ predicate: (elements: readonly import("@excalidraw/element/types").ExcalidrawElement[], appState: import("../types").AppState, _: import("../types").ExcalidrawProps, app: import("../types").AppClassProperties) => boolean;
1170
396
  keywords: string[];
1171
397
  } & {
1172
398
  keyTest?: undefined;