@excalidraw/math 0.18.0-5fffc47 → 0.18.0-60b2758

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