@excalidraw/math 0.18.0-7f66e1f → 0.18.0-816c81c

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 (246) hide show
  1. package/dist/dev/index.js +3 -3
  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 -1
  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 +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 +1 -1
  39. package/dist/types/element/src/selection.d.ts +3 -7
  40. package/dist/types/element/src/shape.d.ts +8 -7
  41. package/dist/types/element/src/textMeasurements.d.ts +1 -3
  42. package/dist/types/{excalidraw/data → element/src}/transform.d.ts +3 -3
  43. package/dist/types/element/src/transformHandles.d.ts +3 -23
  44. package/dist/types/element/src/typeChecks.d.ts +4 -7
  45. package/dist/types/element/src/types.d.ts +12 -13
  46. package/dist/types/element/src/utils.d.ts +8 -3
  47. package/dist/types/element/src/zindex.d.ts +7 -1
  48. package/dist/types/excalidraw/actions/actionAddToLibrary.d.ts +149 -201
  49. package/dist/types/excalidraw/actions/actionAlign.d.ts +6 -7
  50. package/dist/types/excalidraw/actions/actionBoundText.d.ts +77 -112
  51. package/dist/types/excalidraw/actions/actionCanvas.d.ts +460 -857
  52. package/dist/types/excalidraw/actions/actionClipboard.d.ts +111 -903
  53. package/dist/types/excalidraw/actions/actionCropEditor.d.ts +37 -55
  54. package/dist/types/excalidraw/actions/actionDeleteSelected.d.ts +123 -179
  55. package/dist/types/excalidraw/actions/actionDistribute.d.ts +2 -3
  56. package/dist/types/excalidraw/actions/actionDuplicateSelection.d.ts +2 -3
  57. package/dist/types/excalidraw/actions/actionElementLink.d.ts +47 -71
  58. package/dist/types/excalidraw/actions/actionElementLock.d.ts +76 -111
  59. package/dist/types/excalidraw/actions/actionEmbeddable.d.ts +53 -71
  60. package/dist/types/excalidraw/actions/actionExport.d.ts +157 -1425
  61. package/dist/types/excalidraw/actions/actionFinalize.d.ts +10 -402
  62. package/dist/types/excalidraw/actions/actionFlip.d.ts +2 -3
  63. package/dist/types/excalidraw/actions/actionFrame.d.ts +233 -340
  64. package/dist/types/excalidraw/actions/actionGroup.d.ts +80 -123
  65. package/dist/types/excalidraw/actions/actionLinearEditor.d.ts +129 -185
  66. package/dist/types/excalidraw/actions/actionLink.d.ts +55 -73
  67. package/dist/types/excalidraw/actions/actionMenu.d.ts +41 -65
  68. package/dist/types/excalidraw/actions/actionNavigate.d.ts +18 -367
  69. package/dist/types/excalidraw/actions/actionProperties.d.ts +137 -2563
  70. package/dist/types/excalidraw/actions/actionSelectAll.d.ts +40 -62
  71. package/dist/types/excalidraw/actions/actionStyles.d.ts +36 -54
  72. package/dist/types/excalidraw/actions/actionTextAutoResize.d.ts +3 -3
  73. package/dist/types/excalidraw/actions/actionToggleArrowBinding.d.ts +172 -0
  74. package/dist/types/excalidraw/actions/actionToggleGridMode.d.ts +53 -71
  75. package/dist/types/excalidraw/actions/actionToggleMidpointSnapping.d.ts +172 -0
  76. package/dist/types/excalidraw/actions/actionToggleObjectsSnapMode.d.ts +53 -71
  77. package/dist/types/excalidraw/actions/actionToggleSearchMenu.d.ts +41 -65
  78. package/dist/types/excalidraw/actions/actionToggleShapeSwitch.d.ts +1 -1
  79. package/dist/types/excalidraw/actions/actionToggleStats.d.ts +52 -70
  80. package/dist/types/excalidraw/actions/actionToggleViewMode.d.ts +53 -71
  81. package/dist/types/excalidraw/actions/actionToggleZenMode.d.ts +53 -71
  82. package/dist/types/excalidraw/actions/actionZindex.d.ts +8 -9
  83. package/dist/types/excalidraw/actions/index.d.ts +2 -0
  84. package/dist/types/excalidraw/actions/register.d.ts +2 -2
  85. package/dist/types/excalidraw/actions/shortcuts.d.ts +1 -1
  86. package/dist/types/excalidraw/actions/types.d.ts +4 -4
  87. package/dist/types/excalidraw/appState.d.ts +23 -20
  88. package/dist/types/excalidraw/charts/charts.bar.d.ts +2 -0
  89. package/dist/types/excalidraw/charts/charts.constants.d.ts +48 -0
  90. package/dist/types/excalidraw/charts/charts.helpers.d.ts +32 -0
  91. package/dist/types/excalidraw/charts/charts.line.d.ts +2 -0
  92. package/dist/types/excalidraw/charts/charts.parse.d.ts +10 -0
  93. package/dist/types/excalidraw/charts/charts.radar.d.ts +2 -0
  94. package/dist/types/excalidraw/charts/charts.types.d.ts +18 -0
  95. package/dist/types/excalidraw/charts/index.d.ts +7 -0
  96. package/dist/types/excalidraw/clipboard.d.ts +13 -38
  97. package/dist/types/excalidraw/components/Actions.d.ts +1 -1
  98. package/dist/types/excalidraw/components/App.d.ts +83 -56
  99. package/dist/types/excalidraw/components/AppStateObserver.d.ts +37 -0
  100. package/dist/types/excalidraw/components/Card.d.ts +1 -3
  101. package/dist/types/excalidraw/components/ColorPicker/ColorInput.d.ts +2 -4
  102. package/dist/types/excalidraw/components/ColorPicker/ColorPicker.d.ts +0 -1
  103. package/dist/types/excalidraw/components/ColorPicker/colorPickerUtils.d.ts +0 -1
  104. package/dist/types/excalidraw/components/ColorPicker/keyboardNavHandlers.d.ts +0 -1
  105. package/dist/types/excalidraw/components/CommandPalette/types.d.ts +2 -4
  106. package/dist/types/excalidraw/components/ConvertElementTypePopup.d.ts +2 -2
  107. package/dist/types/excalidraw/components/DarkModeToggle.d.ts +1 -1
  108. package/dist/types/excalidraw/components/DefaultSidebar.d.ts +9 -13
  109. package/dist/types/excalidraw/components/ElementLinkDialog.d.ts +1 -1
  110. package/dist/types/excalidraw/components/Ellipsify.d.ts +1 -2
  111. package/dist/types/excalidraw/components/ErrorDialog.d.ts +1 -1
  112. package/dist/types/excalidraw/components/EyeDropper.d.ts +0 -1
  113. package/dist/types/excalidraw/components/FilledButton.d.ts +1 -0
  114. package/dist/types/excalidraw/components/FontPicker/keyboardNavHandlers.d.ts +0 -1
  115. package/dist/types/excalidraw/components/HelpDialog.d.ts +1 -1
  116. package/dist/types/excalidraw/components/IconPicker.d.ts +14 -9
  117. package/dist/types/excalidraw/components/InlineIcon.d.ts +2 -2
  118. package/dist/types/excalidraw/components/LibraryMenuControlButtons.d.ts +1 -1
  119. package/dist/types/excalidraw/components/LibraryMenuHeaderContent.d.ts +1 -2
  120. package/dist/types/excalidraw/components/LibraryUnit.d.ts +2 -3
  121. package/dist/types/excalidraw/components/LoadingMessage.d.ts +0 -1
  122. package/dist/types/excalidraw/components/MobileToolBar.d.ts +0 -1
  123. package/dist/types/excalidraw/components/Modal.d.ts +0 -1
  124. package/dist/types/excalidraw/components/OverwriteConfirm/OverwriteConfirm.d.ts +1 -1
  125. package/dist/types/excalidraw/components/PasteChartDialog.d.ts +4 -5
  126. package/dist/types/excalidraw/components/PropertiesPopover.d.ts +1 -1
  127. package/dist/types/excalidraw/components/RadioGroup.d.ts +0 -1
  128. package/dist/types/excalidraw/components/RadioSelection.d.ts +4 -4
  129. package/dist/types/excalidraw/components/ScrollableList.d.ts +0 -1
  130. package/dist/types/excalidraw/components/Sidebar/Sidebar.d.ts +15 -21
  131. package/dist/types/excalidraw/components/Sidebar/SidebarHeader.d.ts +1 -1
  132. package/dist/types/excalidraw/components/Sidebar/SidebarTab.d.ts +1 -2
  133. package/dist/types/excalidraw/components/Sidebar/SidebarTabTrigger.d.ts +1 -2
  134. package/dist/types/excalidraw/components/Sidebar/SidebarTabTriggers.d.ts +1 -2
  135. package/dist/types/excalidraw/components/Sidebar/SidebarTabs.d.ts +1 -2
  136. package/dist/types/excalidraw/components/Spinner.d.ts +4 -4
  137. package/dist/types/excalidraw/components/Stats/CanvasGrid.d.ts +0 -1
  138. package/dist/types/excalidraw/components/Stats/Collapsible.d.ts +0 -1
  139. package/dist/types/excalidraw/components/Stats/DragInput.d.ts +0 -1
  140. package/dist/types/excalidraw/components/Stats/index.d.ts +7 -8
  141. package/dist/types/excalidraw/components/Stats/utils.d.ts +1 -1
  142. package/dist/types/excalidraw/components/TTDDialog/Chat/ChatHistoryMenu.d.ts +15 -0
  143. package/dist/types/excalidraw/components/TTDDialog/Chat/ChatInterface.d.ts +23 -0
  144. package/dist/types/excalidraw/components/TTDDialog/Chat/ChatMessage.d.ts +14 -0
  145. package/dist/types/excalidraw/components/TTDDialog/Chat/TTDChatPanel.d.ts +27 -0
  146. package/dist/types/excalidraw/components/TTDDialog/Chat/index.d.ts +3 -0
  147. package/dist/types/excalidraw/components/TTDDialog/Chat/useChatAgent.d.ts +8 -0
  148. package/dist/types/excalidraw/components/TTDDialog/CodeMirrorEditor.d.ts +11 -0
  149. package/dist/types/excalidraw/components/TTDDialog/MermaidToExcalidraw.d.ts +3 -2
  150. package/dist/types/excalidraw/components/TTDDialog/TTDContext.d.ts +13 -0
  151. package/dist/types/excalidraw/components/TTDDialog/TTDDialog.d.ts +12 -29
  152. package/dist/types/excalidraw/components/TTDDialog/TTDDialogInput.d.ts +3 -3
  153. package/dist/types/excalidraw/components/TTDDialog/TTDDialogOutput.d.ts +5 -2
  154. package/dist/types/excalidraw/components/TTDDialog/TTDDialogPanel.d.ts +13 -9
  155. package/dist/types/excalidraw/components/TTDDialog/TTDDialogTab.d.ts +1 -2
  156. package/dist/types/excalidraw/components/TTDDialog/TTDDialogTabTrigger.d.ts +1 -2
  157. package/dist/types/excalidraw/components/TTDDialog/TTDDialogTabTriggers.d.ts +1 -2
  158. package/dist/types/excalidraw/components/TTDDialog/TTDPreviewPanel.d.ts +9 -0
  159. package/dist/types/excalidraw/components/TTDDialog/TTDWelcomeMessage.d.ts +1 -0
  160. package/dist/types/excalidraw/components/TTDDialog/TextToDiagram.d.ts +9 -0
  161. package/dist/types/excalidraw/components/TTDDialog/common.d.ts +16 -16
  162. package/dist/types/excalidraw/components/TTDDialog/hooks/useChatManagement.d.ts +13 -0
  163. package/dist/types/excalidraw/components/TTDDialog/hooks/useMermaidRenderer.d.ts +14 -0
  164. package/dist/types/excalidraw/components/TTDDialog/hooks/useTextGeneration.d.ts +7 -0
  165. package/dist/types/excalidraw/components/TTDDialog/mermaid-lang-lite.d.ts +2 -0
  166. package/dist/types/excalidraw/components/TTDDialog/types.d.ts +95 -0
  167. package/dist/types/excalidraw/components/TTDDialog/useTTDChatStorage.d.ts +22 -0
  168. package/dist/types/excalidraw/components/TTDDialog/utils/chat.d.ts +10 -0
  169. package/dist/types/excalidraw/components/TTDDialog/utils/mermaidAutoFix.d.ts +1 -0
  170. package/dist/types/excalidraw/components/TTDDialog/utils/mermaidError.d.ts +10 -0
  171. package/dist/types/excalidraw/components/TTDDialog/utils/mermaidValidation.d.ts +1 -0
  172. package/dist/types/excalidraw/components/Toast.d.ts +11 -7
  173. package/dist/types/excalidraw/components/Trans.d.ts +2 -2
  174. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenu.d.ts +48 -38
  175. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuContent.d.ts +7 -6
  176. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuGroup.d.ts +3 -3
  177. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuItem.d.ts +13 -22
  178. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuItemCheckbox.d.ts +5 -0
  179. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuItemContent.d.ts +5 -4
  180. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuItemContentRadio.d.ts +0 -1
  181. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuItemCustom.d.ts +2 -2
  182. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuItemLink.d.ts +6 -6
  183. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuSub.d.ts +23 -0
  184. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuSubContent.d.ts +8 -0
  185. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuSubTrigger.d.ts +12 -0
  186. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuTrigger.d.ts +3 -4
  187. package/dist/types/excalidraw/components/dropdownMenu/common.d.ts +2 -2
  188. package/dist/types/excalidraw/components/dropdownMenu/dropdownMenuUtils.d.ts +2 -0
  189. package/dist/types/excalidraw/components/hoc/withInternalFallback.d.ts +1 -1
  190. package/dist/types/excalidraw/components/hyperlink/helpers.d.ts +1 -1
  191. package/dist/types/excalidraw/components/icons.d.ts +39 -21
  192. package/dist/types/excalidraw/components/main-menu/DefaultItems.d.ts +19 -2
  193. package/dist/types/excalidraw/components/main-menu/MainMenu.d.ts +39 -32
  194. package/dist/types/excalidraw/components/shapes.d.ts +74 -1
  195. package/dist/types/excalidraw/data/blob.d.ts +326 -7
  196. package/dist/types/excalidraw/data/encode.d.ts +4 -4
  197. package/dist/types/excalidraw/data/encryption.d.ts +5 -5
  198. package/dist/types/excalidraw/data/filesystem.d.ts +5 -7
  199. package/dist/types/excalidraw/data/index.d.ts +4 -5
  200. package/dist/types/excalidraw/data/json.d.ts +170 -4
  201. package/dist/types/excalidraw/data/library.d.ts +24 -9
  202. package/dist/types/excalidraw/data/resave.d.ts +7 -2
  203. package/dist/types/excalidraw/data/restore.d.ts +25 -10
  204. package/dist/types/excalidraw/editor-jotai.d.ts +11 -11
  205. package/dist/types/excalidraw/errors.d.ts +14 -0
  206. package/dist/types/excalidraw/hooks/useOutsideClick.d.ts +1 -2
  207. package/dist/types/excalidraw/hooks/useScrollPosition.d.ts +1 -2
  208. package/dist/types/excalidraw/i18n.d.ts +2 -2
  209. package/dist/types/excalidraw/renderer/helpers.d.ts +6 -8
  210. package/dist/types/excalidraw/renderer/interactiveScene.d.ts +8 -6
  211. package/dist/types/excalidraw/scene/Renderer.d.ts +5 -2
  212. package/dist/types/excalidraw/scene/export.d.ts +2 -2
  213. package/dist/types/excalidraw/scene/scroll.d.ts +1 -6
  214. package/dist/types/excalidraw/scene/types.d.ts +11 -2
  215. package/dist/types/excalidraw/snapping.d.ts +5 -5
  216. package/dist/types/excalidraw/subset/harfbuzz/harfbuzz-bindings.d.ts +1 -1
  217. package/dist/types/excalidraw/subset/harfbuzz/harfbuzz-loader.d.ts +1 -1
  218. package/dist/types/excalidraw/subset/harfbuzz/harfbuzz-wasm.d.ts +1 -1
  219. package/dist/types/excalidraw/subset/woff2/woff2-loader.d.ts +2 -2
  220. package/dist/types/excalidraw/subset/woff2/woff2-wasm.d.ts +1 -1
  221. package/dist/types/excalidraw/types.d.ts +105 -20
  222. package/dist/types/excalidraw/wysiwyg/textWysiwyg.d.ts +2 -2
  223. package/dist/types/math/src/point.d.ts +6 -1
  224. package/dist/types/math/src/polygon.d.ts +2 -2
  225. package/dist/types/math/src/range.d.ts +1 -3
  226. package/dist/types/math/src/segment.d.ts +3 -3
  227. package/dist/types/math/src/types.d.ts +25 -1
  228. package/dist/types/utils/src/bbox.d.ts +1 -1
  229. package/dist/types/utils/src/export.d.ts +5 -5
  230. package/dist/types/utils/src/shape.d.ts +6 -6
  231. package/dist/types/utils/src/withinBounds.d.ts +2 -2
  232. package/package.json +2 -2
  233. package/dist/types/common/src/visualdebug.d.ts +0 -41
  234. package/dist/types/excalidraw/charts.d.ts +0 -27
  235. package/dist/types/excalidraw/components/DiagramToCodePlugin/DiagramToCodePlugin.d.ts +0 -4
  236. package/dist/types/excalidraw/components/ExcalidrawLogo.d.ts +0 -16
  237. package/dist/types/excalidraw/components/InitializeApp.d.ts +0 -10
  238. package/dist/types/excalidraw/components/TTDDialog/TTDDialogTrigger.d.ts +0 -8
  239. package/dist/types/excalidraw/components/footer/FooterCenter.d.ts +0 -8
  240. package/dist/types/excalidraw/components/live-collaboration/LiveCollaborationTrigger.d.ts +0 -22
  241. package/dist/types/excalidraw/components/welcome-screen/WelcomeScreen.Center.d.ts +0 -58
  242. package/dist/types/excalidraw/components/welcome-screen/WelcomeScreen.Hints.d.ts +0 -19
  243. package/dist/types/excalidraw/components/welcome-screen/WelcomeScreen.d.ts +0 -85
  244. package/dist/types/excalidraw/data/reconcile.d.ts +0 -7
  245. package/dist/types/excalidraw/index.d.ts +0 -46
  246. 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,22 @@ 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
+ 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;
222
38
  frameRendering: {
223
39
  enabled: boolean;
224
40
  name: boolean;
@@ -226,8 +42,8 @@ export declare const actionPaste: {
226
42
  clip: boolean;
227
43
  };
228
44
  editingFrame: string | null;
229
- elementsToHighlight: import("../../element/src/types").NonDeleted<import("../../element/src/types").ExcalidrawElement>[] | null;
230
- 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").NonDeletedExcalidrawElement | null;
231
47
  activeTool: {
232
48
  lastActiveTool: import("../types").ActiveTool | null;
233
49
  locked: boolean;
@@ -245,19 +61,19 @@ export declare const actionPaste: {
245
61
  exportScale: number;
246
62
  currentItemStrokeColor: string;
247
63
  currentItemBackgroundColor: string;
248
- currentItemFillStyle: import("../../element/src/types").FillStyle;
64
+ currentItemFillStyle: import("@excalidraw/element/types").ExcalidrawElement["fillStyle"];
249
65
  currentItemStrokeWidth: number;
250
- currentItemStrokeStyle: import("../../element/src/types").StrokeStyle;
66
+ currentItemStrokeStyle: import("@excalidraw/element/types").ExcalidrawElement["strokeStyle"];
251
67
  currentItemRoughness: number;
252
68
  currentItemOpacity: number;
253
- currentItemFontFamily: number;
69
+ currentItemFontFamily: import("@excalidraw/element/types").FontFamilyValues;
254
70
  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";
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";
261
77
  viewBackgroundColor: string;
262
78
  scrollX: number;
263
79
  scrollY: number;
@@ -266,28 +82,32 @@ export declare const actionPaste: {
266
82
  name: string | null;
267
83
  isResizing: boolean;
268
84
  isRotating: boolean;
269
- zoom: Readonly<{
270
- value: import("../types").NormalizedZoomValue;
271
- }>;
85
+ zoom: import("../types").Zoom;
272
86
  openMenu: "canvas" | null;
273
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
87
+ openPopup: "canvasBackground" | "elementBackground" | "elementStroke" | "fontFamily" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
274
88
  openSidebar: {
275
- name: string;
276
- tab?: string | undefined;
89
+ name: import("../types").SidebarName;
90
+ tab?: import("../types").SidebarTabName;
277
91
  } | null;
278
- openDialog: {
92
+ openDialog: null | {
279
93
  name: "imageExport" | "help" | "jsonExport";
280
94
  } | {
281
95
  name: "ttd";
282
- tab: "mermaid" | "text-to-diagram";
96
+ tab: "text-to-diagram" | "mermaid";
283
97
  } | {
284
98
  name: "commandPalette";
99
+ } | {
100
+ name: "settings";
285
101
  } | {
286
102
  name: "elementLinkSelector";
287
- sourceElementId: string;
288
- } | null;
103
+ sourceElementId: import("@excalidraw/element/types").ExcalidrawElement["id"];
104
+ } | {
105
+ name: "charts";
106
+ data: import("../charts").Spreadsheet;
107
+ rawText: string;
108
+ };
289
109
  defaultSidebarDockedPreference: boolean;
290
- lastPointerDownWith: import("../../element/src/types").PointerType;
110
+ lastPointerDownWith: import("@excalidraw/element/types").PointerType;
291
111
  selectedElementIds: Readonly<{
292
112
  [id: string]: true;
293
113
  }>;
@@ -300,12 +120,12 @@ export declare const actionPaste: {
300
120
  selectedElementsAreBeingDragged: boolean;
301
121
  shouldCacheIgnoreZoom: boolean;
302
122
  toast: {
303
- message: string;
304
- closable?: boolean | undefined;
305
- duration?: number | undefined;
123
+ message: React.ReactNode;
124
+ closable?: boolean;
125
+ duration?: number;
306
126
  } | null;
307
127
  zenModeEnabled: boolean;
308
- theme: import("../../element/src/types").Theme;
128
+ theme: import("@excalidraw/element/types").Theme;
309
129
  gridSize: number;
310
130
  gridStep: number;
311
131
  gridModeEnabled: boolean;
@@ -313,44 +133,17 @@ export declare const actionPaste: {
313
133
  selectedGroupIds: {
314
134
  [groupId: string]: boolean;
315
135
  };
316
- editingGroupId: string | null;
136
+ editingGroupId: import("@excalidraw/element/types").GroupId | null;
317
137
  width: number;
318
138
  height: number;
319
139
  offsetTop: number;
320
140
  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
- }>>;
141
+ fileHandle: FileSystemFileHandle | null;
142
+ collaborators: Map<import("../types").SocketId, import("../types").Collaborator>;
342
143
  stats: {
343
144
  open: boolean;
344
145
  panels: number;
345
146
  };
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
147
  showHyperlinkPopup: false | "info" | "editor";
355
148
  selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
356
149
  snapLines: readonly import("../snapping").SnapLine[];
@@ -362,15 +155,16 @@ export declare const actionPaste: {
362
155
  userToFollow: import("../types").UserToFollow | null;
363
156
  followedBy: Set<import("../types").SocketId>;
364
157
  isCropping: boolean;
365
- croppingElementId: string | null;
158
+ croppingElementId: import("@excalidraw/element/types").ExcalidrawElement["id"] | null;
366
159
  searchMatches: Readonly<{
367
- focusedId: string | null;
160
+ focusedId: import("@excalidraw/element/types").ExcalidrawElement["id"] | null;
368
161
  matches: readonly import("../types").SearchMatch[];
369
162
  }> | null;
370
163
  activeLockedId: string | null;
371
164
  lockedMultiSelections: {
372
165
  [groupId: string]: true;
373
166
  };
167
+ bindMode: import("@excalidraw/element/types").BindMode;
374
168
  };
375
169
  } | {
376
170
  captureUpdate: "EVENTUALLY";
@@ -380,577 +174,8 @@ export declare const actionPaste: {
380
174
  } & {
381
175
  keyTest?: undefined;
382
176
  };
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;
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;
954
179
  };
955
180
  export declare const actionCopyAsSvg: {
956
181
  name: "copyAsSvg";
@@ -959,7 +184,7 @@ export declare const actionCopyAsSvg: {
959
184
  trackEvent: {
960
185
  category: "element";
961
186
  };
962
- 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<{
963
188
  captureUpdate: "EVENTUALLY";
964
189
  appState?: undefined;
965
190
  } | {
@@ -977,7 +202,7 @@ export declare const actionCopyAsSvg: {
977
202
  };
978
203
  captureUpdate: "EVENTUALLY";
979
204
  }>;
980
- predicate: (elements: readonly import("../../element/src/types").ExcalidrawElement[]) => boolean;
205
+ predicate: (elements: readonly import("@excalidraw/element/types").ExcalidrawElement[]) => boolean;
981
206
  keywords: string[];
982
207
  } & {
983
208
  keyTest?: undefined;
@@ -989,7 +214,7 @@ export declare const actionCopyAsPng: {
989
214
  trackEvent: {
990
215
  category: "element";
991
216
  };
992
- 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<{
993
218
  captureUpdate: "EVENTUALLY";
994
219
  appState?: undefined;
995
220
  } | {
@@ -1003,17 +228,22 @@ export declare const actionCopyAsPng: {
1003
228
  showWelcomeScreen: boolean;
1004
229
  isLoading: boolean;
1005
230
  activeEmbeddable: {
1006
- element: import("../../element/src/types").NonDeletedExcalidrawElement;
1007
- state: "active" | "hover";
231
+ element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
232
+ state: "hover" | "active";
1008
233
  } | 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;
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;
1013
238
  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;
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;
1017
247
  frameRendering: {
1018
248
  enabled: boolean;
1019
249
  name: boolean;
@@ -1021,8 +251,8 @@ export declare const actionCopyAsPng: {
1021
251
  clip: boolean;
1022
252
  };
1023
253
  editingFrame: string | null;
1024
- elementsToHighlight: import("../../element/src/types").NonDeleted<import("../../element/src/types").ExcalidrawElement>[] | null;
1025
- 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").NonDeletedExcalidrawElement | null;
1026
256
  activeTool: {
1027
257
  lastActiveTool: import("../types").ActiveTool | null;
1028
258
  locked: boolean;
@@ -1040,19 +270,19 @@ export declare const actionCopyAsPng: {
1040
270
  exportScale: number;
1041
271
  currentItemStrokeColor: string;
1042
272
  currentItemBackgroundColor: string;
1043
- currentItemFillStyle: import("../../element/src/types").FillStyle;
273
+ currentItemFillStyle: import("@excalidraw/element/types").ExcalidrawElement["fillStyle"];
1044
274
  currentItemStrokeWidth: number;
1045
- currentItemStrokeStyle: import("../../element/src/types").StrokeStyle;
275
+ currentItemStrokeStyle: import("@excalidraw/element/types").ExcalidrawElement["strokeStyle"];
1046
276
  currentItemRoughness: number;
1047
277
  currentItemOpacity: number;
1048
- currentItemFontFamily: number;
278
+ currentItemFontFamily: import("@excalidraw/element/types").FontFamilyValues;
1049
279
  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";
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";
1056
286
  viewBackgroundColor: string;
1057
287
  scrollX: number;
1058
288
  scrollY: number;
@@ -1061,28 +291,32 @@ export declare const actionCopyAsPng: {
1061
291
  name: string | null;
1062
292
  isResizing: boolean;
1063
293
  isRotating: boolean;
1064
- zoom: Readonly<{
1065
- value: import("../types").NormalizedZoomValue;
1066
- }>;
294
+ zoom: import("../types").Zoom;
1067
295
  openMenu: "canvas" | null;
1068
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
296
+ openPopup: "canvasBackground" | "elementBackground" | "elementStroke" | "fontFamily" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
1069
297
  openSidebar: {
1070
- name: string;
1071
- tab?: string | undefined;
298
+ name: import("../types").SidebarName;
299
+ tab?: import("../types").SidebarTabName;
1072
300
  } | null;
1073
- openDialog: {
301
+ openDialog: null | {
1074
302
  name: "imageExport" | "help" | "jsonExport";
1075
303
  } | {
1076
304
  name: "ttd";
1077
- tab: "mermaid" | "text-to-diagram";
305
+ tab: "text-to-diagram" | "mermaid";
1078
306
  } | {
1079
307
  name: "commandPalette";
308
+ } | {
309
+ name: "settings";
1080
310
  } | {
1081
311
  name: "elementLinkSelector";
1082
- sourceElementId: string;
1083
- } | null;
312
+ sourceElementId: import("@excalidraw/element/types").ExcalidrawElement["id"];
313
+ } | {
314
+ name: "charts";
315
+ data: import("../charts").Spreadsheet;
316
+ rawText: string;
317
+ };
1084
318
  defaultSidebarDockedPreference: boolean;
1085
- lastPointerDownWith: import("../../element/src/types").PointerType;
319
+ lastPointerDownWith: import("@excalidraw/element/types").PointerType;
1086
320
  selectedElementIds: Readonly<{
1087
321
  [id: string]: true;
1088
322
  }>;
@@ -1095,12 +329,12 @@ export declare const actionCopyAsPng: {
1095
329
  selectedElementsAreBeingDragged: boolean;
1096
330
  shouldCacheIgnoreZoom: boolean;
1097
331
  toast: {
1098
- message: string;
1099
- closable?: boolean | undefined;
1100
- duration?: number | undefined;
332
+ message: React.ReactNode;
333
+ closable?: boolean;
334
+ duration?: number;
1101
335
  } | null;
1102
336
  zenModeEnabled: boolean;
1103
- theme: import("../../element/src/types").Theme;
337
+ theme: import("@excalidraw/element/types").Theme;
1104
338
  gridSize: number;
1105
339
  gridStep: number;
1106
340
  gridModeEnabled: boolean;
@@ -1108,44 +342,17 @@ export declare const actionCopyAsPng: {
1108
342
  selectedGroupIds: {
1109
343
  [groupId: string]: boolean;
1110
344
  };
1111
- editingGroupId: string | null;
345
+ editingGroupId: import("@excalidraw/element/types").GroupId | null;
1112
346
  width: number;
1113
347
  height: number;
1114
348
  offsetTop: number;
1115
349
  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
- }>>;
350
+ fileHandle: FileSystemFileHandle | null;
351
+ collaborators: Map<import("../types").SocketId, import("../types").Collaborator>;
1137
352
  stats: {
1138
353
  open: boolean;
1139
354
  panels: number;
1140
355
  };
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
356
  showHyperlinkPopup: false | "info" | "editor";
1150
357
  selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
1151
358
  snapLines: readonly import("../snapping").SnapLine[];
@@ -1157,19 +364,20 @@ export declare const actionCopyAsPng: {
1157
364
  userToFollow: import("../types").UserToFollow | null;
1158
365
  followedBy: Set<import("../types").SocketId>;
1159
366
  isCropping: boolean;
1160
- croppingElementId: string | null;
367
+ croppingElementId: import("@excalidraw/element/types").ExcalidrawElement["id"] | null;
1161
368
  searchMatches: Readonly<{
1162
- focusedId: string | null;
369
+ focusedId: import("@excalidraw/element/types").ExcalidrawElement["id"] | null;
1163
370
  matches: readonly import("../types").SearchMatch[];
1164
371
  }> | null;
1165
372
  activeLockedId: string | null;
1166
373
  lockedMultiSelections: {
1167
374
  [groupId: string]: true;
1168
375
  };
376
+ bindMode: import("@excalidraw/element/types").BindMode;
1169
377
  };
1170
378
  captureUpdate: "EVENTUALLY";
1171
379
  }>;
1172
- predicate: (elements: readonly import("../../element/src/types").ExcalidrawElement[]) => boolean;
380
+ predicate: (elements: readonly import("@excalidraw/element/types").ExcalidrawElement[]) => boolean;
1173
381
  keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
1174
382
  keywords: string[];
1175
383
  } & {
@@ -1181,10 +389,10 @@ export declare const copyText: {
1181
389
  trackEvent: {
1182
390
  category: "element";
1183
391
  };
1184
- 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) => {
1185
393
  captureUpdate: "EVENTUALLY";
1186
394
  };
1187
- 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;
1188
396
  keywords: string[];
1189
397
  } & {
1190
398
  keyTest?: undefined;