@excalidraw/common 0.18.0-91c7748 → 0.18.0-9ba0f5d

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