@excalidraw/math 0.18.0-c6f8ef9 → 0.18.0-d1cff91

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