@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,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  export declare const actionCopyElementLink: {
3
2
  name: "copyElementLink";
4
3
  label: string;
@@ -6,7 +5,7 @@ export declare const actionCopyElementLink: {
6
5
  trackEvent: {
7
6
  category: "element";
8
7
  };
9
- perform: (elements: readonly import("../../element/src/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, _: any, app: import("../types").AppClassProperties) => Promise<{
8
+ perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, _: unknown, app: import("../types").AppClassProperties) => Promise<{
10
9
  appState: {
11
10
  toast: {
12
11
  message: string;
@@ -18,11 +17,11 @@ export declare const actionCopyElementLink: {
18
17
  app?: undefined;
19
18
  } | {
20
19
  appState: Readonly<import("../types").AppState>;
21
- elements: readonly import("../../element/src/types").OrderedExcalidrawElement[];
20
+ elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[];
22
21
  app: import("../types").AppClassProperties;
23
22
  captureUpdate: "EVENTUALLY";
24
23
  }>;
25
- predicate: (elements: readonly import("../../element/src/types").ExcalidrawElement[], appState: import("../types").AppState) => boolean;
24
+ predicate: (elements: readonly import("@excalidraw/element/types").ExcalidrawElement[], appState: import("../types").AppState) => boolean;
26
25
  } & {
27
26
  keyTest?: undefined;
28
27
  };
@@ -30,8 +29,8 @@ export declare const actionLinkToElement: {
30
29
  name: "linkToElement";
31
30
  label: string;
32
31
  icon: import("react/jsx-runtime").JSX.Element;
33
- perform: (elements: readonly import("../../element/src/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, _: any, app: import("../types").AppClassProperties) => {
34
- elements: readonly import("../../element/src/types").OrderedExcalidrawElement[];
32
+ perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, _: unknown, app: import("../types").AppClassProperties) => {
33
+ elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[];
35
34
  appState: Readonly<import("../types").AppState>;
36
35
  app: import("../types").AppClassProperties;
37
36
  captureUpdate: "EVENTUALLY";
@@ -48,19 +47,22 @@ export declare const actionLinkToElement: {
48
47
  } | null;
49
48
  showWelcomeScreen: boolean;
50
49
  isLoading: boolean;
51
- errorMessage: import("react").ReactNode;
50
+ errorMessage: React.ReactNode;
52
51
  activeEmbeddable: {
53
- element: import("../../element/src/types").NonDeletedExcalidrawElement;
54
- state: "active" | "hover";
52
+ element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
53
+ state: "hover" | "active";
55
54
  } | null;
56
- newElement: import("../../element/src/types").NonDeleted<import("../../element/src/types").ExcalidrawNonSelectionElement> | null;
57
- resizingElement: import("../../element/src/types").NonDeletedExcalidrawElement | null;
58
- multiElement: import("../../element/src/types").NonDeleted<import("../../element/src/types").ExcalidrawLinearElement> | null;
59
- selectionElement: import("../../element/src/types").NonDeletedExcalidrawElement | null;
55
+ newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
56
+ resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
57
+ multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
58
+ selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
60
59
  isBindingEnabled: boolean;
61
- startBoundElement: import("../../element/src/types").NonDeleted<import("../../element/src/types").ExcalidrawBindableElement> | null;
62
- suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
63
- frameToHighlight: import("../../element/src/types").NonDeleted<import("../../element/src/types").ExcalidrawFrameLikeElement> | null;
60
+ startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
61
+ suggestedBinding: {
62
+ element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
63
+ midPoint?: import("@excalidraw/math").GlobalPoint;
64
+ } | null;
65
+ frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
64
66
  frameRendering: {
65
67
  enabled: boolean;
66
68
  name: boolean;
@@ -68,8 +70,8 @@ export declare const actionLinkToElement: {
68
70
  clip: boolean;
69
71
  };
70
72
  editingFrame: string | null;
71
- elementsToHighlight: import("../../element/src/types").NonDeleted<import("../../element/src/types").ExcalidrawElement>[] | null;
72
- editingTextElement: import("../../element/src/types").NonDeletedExcalidrawElement | null;
73
+ elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
74
+ editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
73
75
  activeTool: {
74
76
  lastActiveTool: import("../types").ActiveTool | null;
75
77
  locked: boolean;
@@ -87,19 +89,19 @@ export declare const actionLinkToElement: {
87
89
  exportScale: number;
88
90
  currentItemStrokeColor: string;
89
91
  currentItemBackgroundColor: string;
90
- currentItemFillStyle: import("../../element/src/types").FillStyle;
92
+ currentItemFillStyle: import("@excalidraw/element/types").ExcalidrawElement["fillStyle"];
91
93
  currentItemStrokeWidth: number;
92
- currentItemStrokeStyle: import("../../element/src/types").StrokeStyle;
94
+ currentItemStrokeStyle: import("@excalidraw/element/types").ExcalidrawElement["strokeStyle"];
93
95
  currentItemRoughness: number;
94
96
  currentItemOpacity: number;
95
- currentItemFontFamily: number;
97
+ currentItemFontFamily: import("@excalidraw/element/types").FontFamilyValues;
96
98
  currentItemFontSize: number;
97
- currentItemTextAlign: string;
98
- currentItemStartArrowhead: import("../../element/src/types").Arrowhead | null;
99
- currentItemEndArrowhead: import("../../element/src/types").Arrowhead | null;
100
- currentHoveredFontFamily: number | null;
101
- currentItemRoundness: import("../../element/src/types").StrokeRoundness;
102
- currentItemArrowType: "round" | "sharp" | "elbow";
99
+ currentItemTextAlign: import("@excalidraw/element/types").TextAlign;
100
+ currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
101
+ currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
102
+ currentHoveredFontFamily: import("@excalidraw/element/types").FontFamilyValues | null;
103
+ currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
104
+ currentItemArrowType: "sharp" | "round" | "elbow";
103
105
  viewBackgroundColor: string;
104
106
  scrollX: number;
105
107
  scrollY: number;
@@ -108,17 +110,15 @@ export declare const actionLinkToElement: {
108
110
  name: string | null;
109
111
  isResizing: boolean;
110
112
  isRotating: boolean;
111
- zoom: Readonly<{
112
- value: import("../types").NormalizedZoomValue;
113
- }>;
113
+ zoom: import("../types").Zoom;
114
114
  openMenu: "canvas" | null;
115
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
115
+ openPopup: "canvasBackground" | "elementBackground" | "elementStroke" | "fontFamily" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
116
116
  openSidebar: {
117
- name: string;
118
- tab?: string | undefined;
117
+ name: import("../types").SidebarName;
118
+ tab?: import("../types").SidebarTabName;
119
119
  } | null;
120
120
  defaultSidebarDockedPreference: boolean;
121
- lastPointerDownWith: import("../../element/src/types").PointerType;
121
+ lastPointerDownWith: import("@excalidraw/element/types").PointerType;
122
122
  selectedElementIds: Readonly<{
123
123
  [id: string]: true;
124
124
  }>;
@@ -132,11 +132,11 @@ export declare const actionLinkToElement: {
132
132
  shouldCacheIgnoreZoom: boolean;
133
133
  toast: {
134
134
  message: string;
135
- closable?: boolean | undefined;
136
- duration?: number | undefined;
135
+ closable?: boolean;
136
+ duration?: number;
137
137
  } | null;
138
138
  zenModeEnabled: boolean;
139
- theme: import("../../element/src/types").Theme;
139
+ theme: import("@excalidraw/element/types").Theme;
140
140
  gridSize: number;
141
141
  gridStep: number;
142
142
  gridModeEnabled: boolean;
@@ -144,45 +144,18 @@ export declare const actionLinkToElement: {
144
144
  selectedGroupIds: {
145
145
  [groupId: string]: boolean;
146
146
  };
147
- editingGroupId: string | null;
147
+ editingGroupId: import("@excalidraw/element/types").GroupId | null;
148
148
  width: number;
149
149
  height: number;
150
150
  offsetTop: number;
151
151
  offsetLeft: number;
152
152
  fileHandle: import("browser-fs-access").FileSystemHandle | null;
153
- collaborators: Map<import("../types").SocketId, Readonly<{
154
- pointer?: import("../types").CollaboratorPointer | undefined;
155
- button?: "up" | "down" | undefined;
156
- selectedElementIds?: Readonly<{
157
- [id: string]: true;
158
- }> | undefined;
159
- username?: string | null | undefined;
160
- userState?: import("..").UserIdleState | undefined;
161
- color?: {
162
- background: string;
163
- stroke: string;
164
- } | undefined;
165
- avatarUrl?: string | undefined;
166
- id?: string | undefined;
167
- socketId?: import("../types").SocketId | undefined;
168
- isCurrentUser?: boolean | undefined;
169
- isInCall?: boolean | undefined;
170
- isSpeaking?: boolean | undefined;
171
- isMuted?: boolean | undefined;
172
- }>>;
153
+ collaborators: Map<import("../types").SocketId, import("../types").Collaborator>;
173
154
  stats: {
174
155
  open: boolean;
175
156
  panels: number;
176
157
  };
177
- currentChartType: import("../../element/src/types").ChartType;
178
- pasteDialog: {
179
- shown: false;
180
- data: null;
181
- } | {
182
- shown: true;
183
- data: import("../charts").Spreadsheet;
184
- };
185
- showHyperlinkPopup: false | "editor" | "info";
158
+ showHyperlinkPopup: false | "info" | "editor";
186
159
  selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
187
160
  snapLines: readonly import("../snapping").SnapLine[];
188
161
  originSnapOffset: {
@@ -193,22 +166,22 @@ export declare const actionLinkToElement: {
193
166
  userToFollow: import("../types").UserToFollow | null;
194
167
  followedBy: Set<import("../types").SocketId>;
195
168
  isCropping: boolean;
196
- croppingElementId: string | null;
169
+ croppingElementId: import("@excalidraw/element/types").ExcalidrawElement["id"] | null;
197
170
  searchMatches: Readonly<{
198
- focusedId: string | null;
171
+ focusedId: import("@excalidraw/element/types").ExcalidrawElement["id"] | null;
199
172
  matches: readonly import("../types").SearchMatch[];
200
173
  }> | null;
201
174
  activeLockedId: string | null;
202
175
  lockedMultiSelections: {
203
176
  [groupId: string]: true;
204
177
  };
205
- stylesPanelMode: "compact" | "full" | "mobile";
178
+ bindMode: import("@excalidraw/element/types").BindMode;
206
179
  };
207
180
  captureUpdate: "IMMEDIATELY";
208
181
  elements?: undefined;
209
182
  app?: undefined;
210
183
  };
211
- predicate: (elements: readonly import("../../element/src/types").ExcalidrawElement[], appState: import("../types").AppState, appProps: import("../types").ExcalidrawProps, app: import("../types").AppClassProperties) => boolean;
184
+ predicate: (elements: readonly import("@excalidraw/element/types").ExcalidrawElement[], appState: import("../types").AppState, appProps: import("../types").ExcalidrawProps, app: import("../types").AppClassProperties) => boolean;
212
185
  trackEvent: false;
213
186
  } & {
214
187
  keyTest?: undefined;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import type { ExcalidrawElement } from "@excalidraw/element/types";
3
2
  import type { AppState } from "../types";
4
3
  export declare const actionToggleElementLock: {
@@ -9,7 +8,7 @@ export declare const actionToggleElementLock: {
9
8
  category: "element";
10
9
  };
11
10
  predicate: (elements: readonly ExcalidrawElement[], appState: AppState, _: import("../types").ExcalidrawProps, app: import("../types").AppClassProperties) => boolean;
12
- perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: any, app: import("../types").AppClassProperties) => false | {
11
+ perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: unknown, app: import("../types").AppClassProperties) => false | {
13
12
  elements: import("@excalidraw/element/types").OrderedExcalidrawElement[];
14
13
  appState: {
15
14
  selectedElementIds: Readonly<{
@@ -20,7 +19,7 @@ export declare const actionToggleElementLock: {
20
19
  };
21
20
  selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
22
21
  lockedMultiSelections: {
23
- [x: string]: true;
22
+ [groupId: string]: true;
24
23
  };
25
24
  activeLockedId: string | null;
26
25
  contextMenu: {
@@ -30,10 +29,10 @@ export declare const actionToggleElementLock: {
30
29
  } | null;
31
30
  showWelcomeScreen: boolean;
32
31
  isLoading: boolean;
33
- errorMessage: import("react").ReactNode;
32
+ errorMessage: React.ReactNode;
34
33
  activeEmbeddable: {
35
34
  element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
36
- state: "active" | "hover";
35
+ state: "hover" | "active";
37
36
  } | null;
38
37
  newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
39
38
  resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
@@ -41,7 +40,10 @@ export declare const actionToggleElementLock: {
41
40
  selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
42
41
  isBindingEnabled: boolean;
43
42
  startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
44
- suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
43
+ suggestedBinding: {
44
+ element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
45
+ midPoint?: import("@excalidraw/math").GlobalPoint;
46
+ } | null;
45
47
  frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
46
48
  frameRendering: {
47
49
  enabled: boolean;
@@ -69,19 +71,19 @@ export declare const actionToggleElementLock: {
69
71
  exportScale: number;
70
72
  currentItemStrokeColor: string;
71
73
  currentItemBackgroundColor: string;
72
- currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
74
+ currentItemFillStyle: ExcalidrawElement["fillStyle"];
73
75
  currentItemStrokeWidth: number;
74
- currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
76
+ currentItemStrokeStyle: ExcalidrawElement["strokeStyle"];
75
77
  currentItemRoughness: number;
76
78
  currentItemOpacity: number;
77
- currentItemFontFamily: number;
79
+ currentItemFontFamily: import("@excalidraw/element/types").FontFamilyValues;
78
80
  currentItemFontSize: number;
79
- currentItemTextAlign: string;
81
+ currentItemTextAlign: import("@excalidraw/element/types").TextAlign;
80
82
  currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
81
83
  currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
82
- currentHoveredFontFamily: number | null;
84
+ currentHoveredFontFamily: import("@excalidraw/element/types").FontFamilyValues | null;
83
85
  currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
84
- currentItemArrowType: "round" | "sharp" | "elbow";
86
+ currentItemArrowType: "sharp" | "round" | "elbow";
85
87
  viewBackgroundColor: string;
86
88
  scrollX: number;
87
89
  scrollY: number;
@@ -90,26 +92,30 @@ export declare const actionToggleElementLock: {
90
92
  name: string | null;
91
93
  isResizing: boolean;
92
94
  isRotating: boolean;
93
- zoom: Readonly<{
94
- value: import("../types").NormalizedZoomValue;
95
- }>;
95
+ zoom: import("../types").Zoom;
96
96
  openMenu: "canvas" | null;
97
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
97
+ openPopup: "canvasBackground" | "elementBackground" | "elementStroke" | "fontFamily" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
98
98
  openSidebar: {
99
- name: string;
100
- tab?: string | undefined;
99
+ name: import("../types").SidebarName;
100
+ tab?: import("../types").SidebarTabName;
101
101
  } | null;
102
- openDialog: {
102
+ openDialog: null | {
103
103
  name: "imageExport" | "help" | "jsonExport";
104
104
  } | {
105
105
  name: "ttd";
106
- tab: "mermaid" | "text-to-diagram";
106
+ tab: "text-to-diagram" | "mermaid";
107
107
  } | {
108
108
  name: "commandPalette";
109
+ } | {
110
+ name: "settings";
109
111
  } | {
110
112
  name: "elementLinkSelector";
111
- sourceElementId: string;
112
- } | null;
113
+ sourceElementId: ExcalidrawElement["id"];
114
+ } | {
115
+ name: "charts";
116
+ data: import("../charts").Spreadsheet;
117
+ rawText: string;
118
+ };
113
119
  defaultSidebarDockedPreference: boolean;
114
120
  lastPointerDownWith: import("@excalidraw/element/types").PointerType;
115
121
  hoveredElementIds: Readonly<{
@@ -122,8 +128,8 @@ export declare const actionToggleElementLock: {
122
128
  shouldCacheIgnoreZoom: boolean;
123
129
  toast: {
124
130
  message: string;
125
- closable?: boolean | undefined;
126
- duration?: number | undefined;
131
+ closable?: boolean;
132
+ duration?: number;
127
133
  } | null;
128
134
  zenModeEnabled: boolean;
129
135
  theme: import("@excalidraw/element/types").Theme;
@@ -131,45 +137,18 @@ export declare const actionToggleElementLock: {
131
137
  gridStep: number;
132
138
  gridModeEnabled: boolean;
133
139
  viewModeEnabled: boolean;
134
- editingGroupId: string | null;
140
+ editingGroupId: import("@excalidraw/element/types").GroupId | null;
135
141
  width: number;
136
142
  height: number;
137
143
  offsetTop: number;
138
144
  offsetLeft: number;
139
145
  fileHandle: import("browser-fs-access").FileSystemHandle | null;
140
- collaborators: Map<import("../types").SocketId, Readonly<{
141
- pointer?: import("../types").CollaboratorPointer | undefined;
142
- button?: "up" | "down" | undefined;
143
- selectedElementIds?: Readonly<{
144
- [id: string]: true;
145
- }> | undefined;
146
- username?: string | null | undefined;
147
- userState?: import("@excalidraw/common").UserIdleState | undefined;
148
- color?: {
149
- background: string;
150
- stroke: string;
151
- } | undefined;
152
- avatarUrl?: string | undefined;
153
- id?: string | undefined;
154
- socketId?: import("../types").SocketId | undefined;
155
- isCurrentUser?: boolean | undefined;
156
- isInCall?: boolean | undefined;
157
- isSpeaking?: boolean | undefined;
158
- isMuted?: boolean | undefined;
159
- }>>;
146
+ collaborators: Map<import("../types").SocketId, import("../types").Collaborator>;
160
147
  stats: {
161
148
  open: boolean;
162
149
  panels: number;
163
150
  };
164
- currentChartType: import("@excalidraw/element/types").ChartType;
165
- pasteDialog: {
166
- shown: false;
167
- data: null;
168
- } | {
169
- shown: true;
170
- data: import("../charts").Spreadsheet;
171
- };
172
- showHyperlinkPopup: false | "editor" | "info";
151
+ showHyperlinkPopup: false | "info" | "editor";
173
152
  snapLines: readonly import("../snapping").SnapLine[];
174
153
  originSnapOffset: {
175
154
  x: number;
@@ -179,12 +158,12 @@ export declare const actionToggleElementLock: {
179
158
  userToFollow: import("../types").UserToFollow | null;
180
159
  followedBy: Set<import("../types").SocketId>;
181
160
  isCropping: boolean;
182
- croppingElementId: string | null;
161
+ croppingElementId: ExcalidrawElement["id"] | null;
183
162
  searchMatches: Readonly<{
184
- focusedId: string | null;
163
+ focusedId: ExcalidrawElement["id"] | null;
185
164
  matches: readonly import("../types").SearchMatch[];
186
165
  }> | null;
187
- stylesPanelMode: "compact" | "full" | "mobile";
166
+ bindMode: import("@excalidraw/element/types").BindMode;
188
167
  };
189
168
  captureUpdate: "IMMEDIATELY";
190
169
  };
@@ -218,10 +197,10 @@ export declare const actionUnlockAllElements: {
218
197
  } | null;
219
198
  showWelcomeScreen: boolean;
220
199
  isLoading: boolean;
221
- errorMessage: import("react").ReactNode;
200
+ errorMessage: React.ReactNode;
222
201
  activeEmbeddable: {
223
202
  element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
224
- state: "active" | "hover";
203
+ state: "hover" | "active";
225
204
  } | null;
226
205
  newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
227
206
  resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
@@ -229,7 +208,10 @@ export declare const actionUnlockAllElements: {
229
208
  selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
230
209
  isBindingEnabled: boolean;
231
210
  startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
232
- suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
211
+ suggestedBinding: {
212
+ element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
213
+ midPoint?: import("@excalidraw/math").GlobalPoint;
214
+ } | null;
233
215
  frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
234
216
  frameRendering: {
235
217
  enabled: boolean;
@@ -257,19 +239,19 @@ export declare const actionUnlockAllElements: {
257
239
  exportScale: number;
258
240
  currentItemStrokeColor: string;
259
241
  currentItemBackgroundColor: string;
260
- currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
242
+ currentItemFillStyle: ExcalidrawElement["fillStyle"];
261
243
  currentItemStrokeWidth: number;
262
- currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
244
+ currentItemStrokeStyle: ExcalidrawElement["strokeStyle"];
263
245
  currentItemRoughness: number;
264
246
  currentItemOpacity: number;
265
- currentItemFontFamily: number;
247
+ currentItemFontFamily: import("@excalidraw/element/types").FontFamilyValues;
266
248
  currentItemFontSize: number;
267
- currentItemTextAlign: string;
249
+ currentItemTextAlign: import("@excalidraw/element/types").TextAlign;
268
250
  currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
269
251
  currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
270
- currentHoveredFontFamily: number | null;
252
+ currentHoveredFontFamily: import("@excalidraw/element/types").FontFamilyValues | null;
271
253
  currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
272
- currentItemArrowType: "round" | "sharp" | "elbow";
254
+ currentItemArrowType: "sharp" | "round" | "elbow";
273
255
  viewBackgroundColor: string;
274
256
  scrollX: number;
275
257
  scrollY: number;
@@ -278,26 +260,30 @@ export declare const actionUnlockAllElements: {
278
260
  name: string | null;
279
261
  isResizing: boolean;
280
262
  isRotating: boolean;
281
- zoom: Readonly<{
282
- value: import("../types").NormalizedZoomValue;
283
- }>;
263
+ zoom: import("../types").Zoom;
284
264
  openMenu: "canvas" | null;
285
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
265
+ openPopup: "canvasBackground" | "elementBackground" | "elementStroke" | "fontFamily" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
286
266
  openSidebar: {
287
- name: string;
288
- tab?: string | undefined;
267
+ name: import("../types").SidebarName;
268
+ tab?: import("../types").SidebarTabName;
289
269
  } | null;
290
- openDialog: {
270
+ openDialog: null | {
291
271
  name: "imageExport" | "help" | "jsonExport";
292
272
  } | {
293
273
  name: "ttd";
294
- tab: "mermaid" | "text-to-diagram";
274
+ tab: "text-to-diagram" | "mermaid";
295
275
  } | {
296
276
  name: "commandPalette";
277
+ } | {
278
+ name: "settings";
297
279
  } | {
298
280
  name: "elementLinkSelector";
299
- sourceElementId: string;
300
- } | null;
281
+ sourceElementId: ExcalidrawElement["id"];
282
+ } | {
283
+ name: "charts";
284
+ data: import("../charts").Spreadsheet;
285
+ rawText: string;
286
+ };
301
287
  defaultSidebarDockedPreference: boolean;
302
288
  lastPointerDownWith: import("@excalidraw/element/types").PointerType;
303
289
  hoveredElementIds: Readonly<{
@@ -310,8 +296,8 @@ export declare const actionUnlockAllElements: {
310
296
  shouldCacheIgnoreZoom: boolean;
311
297
  toast: {
312
298
  message: string;
313
- closable?: boolean | undefined;
314
- duration?: number | undefined;
299
+ closable?: boolean;
300
+ duration?: number;
315
301
  } | null;
316
302
  zenModeEnabled: boolean;
317
303
  theme: import("@excalidraw/element/types").Theme;
@@ -319,45 +305,18 @@ export declare const actionUnlockAllElements: {
319
305
  gridStep: number;
320
306
  gridModeEnabled: boolean;
321
307
  viewModeEnabled: boolean;
322
- editingGroupId: string | null;
308
+ editingGroupId: import("@excalidraw/element/types").GroupId | null;
323
309
  width: number;
324
310
  height: number;
325
311
  offsetTop: number;
326
312
  offsetLeft: number;
327
313
  fileHandle: import("browser-fs-access").FileSystemHandle | null;
328
- collaborators: Map<import("../types").SocketId, Readonly<{
329
- pointer?: import("../types").CollaboratorPointer | undefined;
330
- button?: "up" | "down" | undefined;
331
- selectedElementIds?: Readonly<{
332
- [id: string]: true;
333
- }> | undefined;
334
- username?: string | null | undefined;
335
- userState?: import("@excalidraw/common").UserIdleState | undefined;
336
- color?: {
337
- background: string;
338
- stroke: string;
339
- } | undefined;
340
- avatarUrl?: string | undefined;
341
- id?: string | undefined;
342
- socketId?: import("../types").SocketId | undefined;
343
- isCurrentUser?: boolean | undefined;
344
- isInCall?: boolean | undefined;
345
- isSpeaking?: boolean | undefined;
346
- isMuted?: boolean | undefined;
347
- }>>;
314
+ collaborators: Map<import("../types").SocketId, import("../types").Collaborator>;
348
315
  stats: {
349
316
  open: boolean;
350
317
  panels: number;
351
318
  };
352
- currentChartType: import("@excalidraw/element/types").ChartType;
353
- pasteDialog: {
354
- shown: false;
355
- data: null;
356
- } | {
357
- shown: true;
358
- data: import("../charts").Spreadsheet;
359
- };
360
- showHyperlinkPopup: false | "editor" | "info";
319
+ showHyperlinkPopup: false | "info" | "editor";
361
320
  selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
362
321
  snapLines: readonly import("../snapping").SnapLine[];
363
322
  originSnapOffset: {
@@ -368,12 +327,12 @@ export declare const actionUnlockAllElements: {
368
327
  userToFollow: import("../types").UserToFollow | null;
369
328
  followedBy: Set<import("../types").SocketId>;
370
329
  isCropping: boolean;
371
- croppingElementId: string | null;
330
+ croppingElementId: ExcalidrawElement["id"] | null;
372
331
  searchMatches: Readonly<{
373
- focusedId: string | null;
332
+ focusedId: ExcalidrawElement["id"] | null;
374
333
  matches: readonly import("../types").SearchMatch[];
375
334
  }> | null;
376
- stylesPanelMode: "compact" | "full" | "mobile";
335
+ bindMode: import("@excalidraw/element/types").BindMode;
377
336
  };
378
337
  captureUpdate: "IMMEDIATELY";
379
338
  };