@excalidraw/math 0.18.0-d1f3982 → 0.18.0-d9e8a33

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