@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,10 +1,9 @@
1
- /// <reference types="react" />
2
1
  export declare const actionAddToLibrary: {
3
2
  name: "addToLibrary";
4
3
  trackEvent: {
5
4
  category: "element";
6
5
  };
7
- perform: (elements: readonly import("../../element/src/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, _: any, app: import("../types").AppClassProperties) => Promise<{
6
+ perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, _: unknown, app: import("../types").AppClassProperties) => Promise<{
8
7
  captureUpdate: "EVENTUALLY";
9
8
  appState: {
10
9
  toast: {
@@ -17,19 +16,22 @@ export declare const actionAddToLibrary: {
17
16
  } | null;
18
17
  showWelcomeScreen: boolean;
19
18
  isLoading: boolean;
20
- errorMessage: import("react").ReactNode;
19
+ errorMessage: React.ReactNode;
21
20
  activeEmbeddable: {
22
- element: import("../../element/src/types").NonDeletedExcalidrawElement;
23
- state: "active" | "hover";
21
+ element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
22
+ state: "hover" | "active";
24
23
  } | null;
25
- newElement: import("../../element/src/types").NonDeleted<import("../../element/src/types").ExcalidrawNonSelectionElement> | null;
26
- resizingElement: import("../../element/src/types").NonDeletedExcalidrawElement | null;
27
- multiElement: import("../../element/src/types").NonDeleted<import("../../element/src/types").ExcalidrawLinearElement> | null;
28
- selectionElement: import("../../element/src/types").NonDeletedExcalidrawElement | null;
24
+ newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
25
+ resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
26
+ multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
27
+ selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
29
28
  isBindingEnabled: boolean;
30
- startBoundElement: import("../../element/src/types").NonDeleted<import("../../element/src/types").ExcalidrawBindableElement> | null;
31
- suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
32
- frameToHighlight: import("../../element/src/types").NonDeleted<import("../../element/src/types").ExcalidrawFrameLikeElement> | null;
29
+ startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
30
+ suggestedBinding: {
31
+ element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
32
+ midPoint?: import("@excalidraw/math").GlobalPoint;
33
+ } | null;
34
+ frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
33
35
  frameRendering: {
34
36
  enabled: boolean;
35
37
  name: boolean;
@@ -37,8 +39,8 @@ export declare const actionAddToLibrary: {
37
39
  clip: boolean;
38
40
  };
39
41
  editingFrame: string | null;
40
- elementsToHighlight: import("../../element/src/types").NonDeleted<import("../../element/src/types").ExcalidrawElement>[] | null;
41
- editingTextElement: import("../../element/src/types").NonDeletedExcalidrawElement | null;
42
+ elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
43
+ editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
42
44
  activeTool: {
43
45
  lastActiveTool: import("../types").ActiveTool | null;
44
46
  locked: boolean;
@@ -56,19 +58,19 @@ export declare const actionAddToLibrary: {
56
58
  exportScale: number;
57
59
  currentItemStrokeColor: string;
58
60
  currentItemBackgroundColor: string;
59
- currentItemFillStyle: import("../../element/src/types").FillStyle;
61
+ currentItemFillStyle: import("@excalidraw/element/types").ExcalidrawElement["fillStyle"];
60
62
  currentItemStrokeWidth: number;
61
- currentItemStrokeStyle: import("../../element/src/types").StrokeStyle;
63
+ currentItemStrokeStyle: import("@excalidraw/element/types").ExcalidrawElement["strokeStyle"];
62
64
  currentItemRoughness: number;
63
65
  currentItemOpacity: number;
64
- currentItemFontFamily: number;
66
+ currentItemFontFamily: import("@excalidraw/element/types").FontFamilyValues;
65
67
  currentItemFontSize: number;
66
- currentItemTextAlign: string;
67
- currentItemStartArrowhead: import("../../element/src/types").Arrowhead | null;
68
- currentItemEndArrowhead: import("../../element/src/types").Arrowhead | null;
69
- currentHoveredFontFamily: number | null;
70
- currentItemRoundness: import("../../element/src/types").StrokeRoundness;
71
- currentItemArrowType: "round" | "sharp" | "elbow";
68
+ currentItemTextAlign: import("@excalidraw/element/types").TextAlign;
69
+ currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
70
+ currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
71
+ currentHoveredFontFamily: import("@excalidraw/element/types").FontFamilyValues | null;
72
+ currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
73
+ currentItemArrowType: "sharp" | "round" | "elbow";
72
74
  viewBackgroundColor: string;
73
75
  scrollX: number;
74
76
  scrollY: number;
@@ -77,28 +79,32 @@ export declare const actionAddToLibrary: {
77
79
  name: string | null;
78
80
  isResizing: boolean;
79
81
  isRotating: boolean;
80
- zoom: Readonly<{
81
- value: import("../types").NormalizedZoomValue;
82
- }>;
82
+ zoom: import("../types").Zoom;
83
83
  openMenu: "canvas" | null;
84
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
84
+ openPopup: "canvasBackground" | "elementBackground" | "elementStroke" | "fontFamily" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
85
85
  openSidebar: {
86
- name: string;
87
- tab?: string | undefined;
86
+ name: import("../types").SidebarName;
87
+ tab?: import("../types").SidebarTabName;
88
88
  } | null;
89
- openDialog: {
89
+ openDialog: null | {
90
90
  name: "imageExport" | "help" | "jsonExport";
91
91
  } | {
92
92
  name: "ttd";
93
- tab: "mermaid" | "text-to-diagram";
93
+ tab: "text-to-diagram" | "mermaid";
94
94
  } | {
95
95
  name: "commandPalette";
96
+ } | {
97
+ name: "settings";
96
98
  } | {
97
99
  name: "elementLinkSelector";
98
- sourceElementId: string;
99
- } | null;
100
+ sourceElementId: import("@excalidraw/element/types").ExcalidrawElement["id"];
101
+ } | {
102
+ name: "charts";
103
+ data: import("../charts").Spreadsheet;
104
+ rawText: string;
105
+ };
100
106
  defaultSidebarDockedPreference: boolean;
101
- lastPointerDownWith: import("../../element/src/types").PointerType;
107
+ lastPointerDownWith: import("@excalidraw/element/types").PointerType;
102
108
  selectedElementIds: Readonly<{
103
109
  [id: string]: true;
104
110
  }>;
@@ -111,7 +117,7 @@ export declare const actionAddToLibrary: {
111
117
  selectedElementsAreBeingDragged: boolean;
112
118
  shouldCacheIgnoreZoom: boolean;
113
119
  zenModeEnabled: boolean;
114
- theme: import("../../element/src/types").Theme;
120
+ theme: import("@excalidraw/element/types").Theme;
115
121
  gridSize: number;
116
122
  gridStep: number;
117
123
  gridModeEnabled: boolean;
@@ -119,45 +125,18 @@ export declare const actionAddToLibrary: {
119
125
  selectedGroupIds: {
120
126
  [groupId: string]: boolean;
121
127
  };
122
- editingGroupId: string | null;
128
+ editingGroupId: import("@excalidraw/element/types").GroupId | null;
123
129
  width: number;
124
130
  height: number;
125
131
  offsetTop: number;
126
132
  offsetLeft: number;
127
133
  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
- }>>;
134
+ collaborators: Map<import("../types").SocketId, import("../types").Collaborator>;
148
135
  stats: {
149
136
  open: boolean;
150
137
  panels: number;
151
138
  };
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";
139
+ showHyperlinkPopup: false | "info" | "editor";
161
140
  selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
162
141
  snapLines: readonly import("../snapping").SnapLine[];
163
142
  originSnapOffset: {
@@ -168,16 +147,16 @@ export declare const actionAddToLibrary: {
168
147
  userToFollow: import("../types").UserToFollow | null;
169
148
  followedBy: Set<import("../types").SocketId>;
170
149
  isCropping: boolean;
171
- croppingElementId: string | null;
150
+ croppingElementId: import("@excalidraw/element/types").ExcalidrawElement["id"] | null;
172
151
  searchMatches: Readonly<{
173
- focusedId: string | null;
152
+ focusedId: import("@excalidraw/element/types").ExcalidrawElement["id"] | null;
174
153
  matches: readonly import("../types").SearchMatch[];
175
154
  }> | null;
176
155
  activeLockedId: string | null;
177
156
  lockedMultiSelections: {
178
157
  [groupId: string]: true;
179
158
  };
180
- stylesPanelMode: "compact" | "full" | "mobile";
159
+ bindMode: import("@excalidraw/element/types").BindMode;
181
160
  };
182
161
  } | {
183
162
  captureUpdate: "EVENTUALLY";
@@ -191,17 +170,20 @@ export declare const actionAddToLibrary: {
191
170
  showWelcomeScreen: boolean;
192
171
  isLoading: boolean;
193
172
  activeEmbeddable: {
194
- element: import("../../element/src/types").NonDeletedExcalidrawElement;
195
- state: "active" | "hover";
173
+ element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
174
+ state: "hover" | "active";
196
175
  } | null;
197
- newElement: import("../../element/src/types").NonDeleted<import("../../element/src/types").ExcalidrawNonSelectionElement> | null;
198
- resizingElement: import("../../element/src/types").NonDeletedExcalidrawElement | null;
199
- multiElement: import("../../element/src/types").NonDeleted<import("../../element/src/types").ExcalidrawLinearElement> | null;
200
- selectionElement: import("../../element/src/types").NonDeletedExcalidrawElement | null;
176
+ newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
177
+ resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
178
+ multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
179
+ selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
201
180
  isBindingEnabled: boolean;
202
- startBoundElement: import("../../element/src/types").NonDeleted<import("../../element/src/types").ExcalidrawBindableElement> | null;
203
- suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
204
- frameToHighlight: import("../../element/src/types").NonDeleted<import("../../element/src/types").ExcalidrawFrameLikeElement> | null;
181
+ startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
182
+ suggestedBinding: {
183
+ element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
184
+ midPoint?: import("@excalidraw/math").GlobalPoint;
185
+ } | null;
186
+ frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
205
187
  frameRendering: {
206
188
  enabled: boolean;
207
189
  name: boolean;
@@ -209,8 +191,8 @@ export declare const actionAddToLibrary: {
209
191
  clip: boolean;
210
192
  };
211
193
  editingFrame: string | null;
212
- elementsToHighlight: import("../../element/src/types").NonDeleted<import("../../element/src/types").ExcalidrawElement>[] | null;
213
- editingTextElement: import("../../element/src/types").NonDeletedExcalidrawElement | null;
194
+ elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
195
+ editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
214
196
  activeTool: {
215
197
  lastActiveTool: import("../types").ActiveTool | null;
216
198
  locked: boolean;
@@ -228,19 +210,19 @@ export declare const actionAddToLibrary: {
228
210
  exportScale: number;
229
211
  currentItemStrokeColor: string;
230
212
  currentItemBackgroundColor: string;
231
- currentItemFillStyle: import("../../element/src/types").FillStyle;
213
+ currentItemFillStyle: import("@excalidraw/element/types").ExcalidrawElement["fillStyle"];
232
214
  currentItemStrokeWidth: number;
233
- currentItemStrokeStyle: import("../../element/src/types").StrokeStyle;
215
+ currentItemStrokeStyle: import("@excalidraw/element/types").ExcalidrawElement["strokeStyle"];
234
216
  currentItemRoughness: number;
235
217
  currentItemOpacity: number;
236
- currentItemFontFamily: number;
218
+ currentItemFontFamily: import("@excalidraw/element/types").FontFamilyValues;
237
219
  currentItemFontSize: number;
238
- currentItemTextAlign: string;
239
- currentItemStartArrowhead: import("../../element/src/types").Arrowhead | null;
240
- currentItemEndArrowhead: import("../../element/src/types").Arrowhead | null;
241
- currentHoveredFontFamily: number | null;
242
- currentItemRoundness: import("../../element/src/types").StrokeRoundness;
243
- currentItemArrowType: "round" | "sharp" | "elbow";
220
+ currentItemTextAlign: import("@excalidraw/element/types").TextAlign;
221
+ currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
222
+ currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
223
+ currentHoveredFontFamily: import("@excalidraw/element/types").FontFamilyValues | null;
224
+ currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
225
+ currentItemArrowType: "sharp" | "round" | "elbow";
244
226
  viewBackgroundColor: string;
245
227
  scrollX: number;
246
228
  scrollY: number;
@@ -249,28 +231,32 @@ export declare const actionAddToLibrary: {
249
231
  name: string | null;
250
232
  isResizing: boolean;
251
233
  isRotating: boolean;
252
- zoom: Readonly<{
253
- value: import("../types").NormalizedZoomValue;
254
- }>;
234
+ zoom: import("../types").Zoom;
255
235
  openMenu: "canvas" | null;
256
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
236
+ openPopup: "canvasBackground" | "elementBackground" | "elementStroke" | "fontFamily" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
257
237
  openSidebar: {
258
- name: string;
259
- tab?: string | undefined;
238
+ name: import("../types").SidebarName;
239
+ tab?: import("../types").SidebarTabName;
260
240
  } | null;
261
- openDialog: {
241
+ openDialog: null | {
262
242
  name: "imageExport" | "help" | "jsonExport";
263
243
  } | {
264
244
  name: "ttd";
265
- tab: "mermaid" | "text-to-diagram";
245
+ tab: "text-to-diagram" | "mermaid";
266
246
  } | {
267
247
  name: "commandPalette";
248
+ } | {
249
+ name: "settings";
268
250
  } | {
269
251
  name: "elementLinkSelector";
270
- sourceElementId: string;
271
- } | null;
252
+ sourceElementId: import("@excalidraw/element/types").ExcalidrawElement["id"];
253
+ } | {
254
+ name: "charts";
255
+ data: import("../charts").Spreadsheet;
256
+ rawText: string;
257
+ };
272
258
  defaultSidebarDockedPreference: boolean;
273
- lastPointerDownWith: import("../../element/src/types").PointerType;
259
+ lastPointerDownWith: import("@excalidraw/element/types").PointerType;
274
260
  selectedElementIds: Readonly<{
275
261
  [id: string]: true;
276
262
  }>;
@@ -284,11 +270,11 @@ export declare const actionAddToLibrary: {
284
270
  shouldCacheIgnoreZoom: boolean;
285
271
  toast: {
286
272
  message: string;
287
- closable?: boolean | undefined;
288
- duration?: number | undefined;
273
+ closable?: boolean;
274
+ duration?: number;
289
275
  } | null;
290
276
  zenModeEnabled: boolean;
291
- theme: import("../../element/src/types").Theme;
277
+ theme: import("@excalidraw/element/types").Theme;
292
278
  gridSize: number;
293
279
  gridStep: number;
294
280
  gridModeEnabled: boolean;
@@ -296,45 +282,18 @@ export declare const actionAddToLibrary: {
296
282
  selectedGroupIds: {
297
283
  [groupId: string]: boolean;
298
284
  };
299
- editingGroupId: string | null;
285
+ editingGroupId: import("@excalidraw/element/types").GroupId | null;
300
286
  width: number;
301
287
  height: number;
302
288
  offsetTop: number;
303
289
  offsetLeft: number;
304
290
  fileHandle: import("browser-fs-access").FileSystemHandle | null;
305
- collaborators: Map<import("../types").SocketId, Readonly<{
306
- pointer?: import("../types").CollaboratorPointer | undefined;
307
- button?: "up" | "down" | undefined;
308
- selectedElementIds?: Readonly<{
309
- [id: string]: true;
310
- }> | undefined;
311
- username?: string | null | undefined;
312
- userState?: import("@excalidraw/common").UserIdleState | undefined;
313
- color?: {
314
- background: string;
315
- stroke: string;
316
- } | undefined;
317
- avatarUrl?: string | undefined;
318
- id?: string | undefined;
319
- socketId?: import("../types").SocketId | undefined;
320
- isCurrentUser?: boolean | undefined;
321
- isInCall?: boolean | undefined;
322
- isSpeaking?: boolean | undefined;
323
- isMuted?: boolean | undefined;
324
- }>>;
291
+ collaborators: Map<import("../types").SocketId, import("../types").Collaborator>;
325
292
  stats: {
326
293
  open: boolean;
327
294
  panels: number;
328
295
  };
329
- currentChartType: import("../../element/src/types").ChartType;
330
- pasteDialog: {
331
- shown: false;
332
- data: null;
333
- } | {
334
- shown: true;
335
- data: import("../charts").Spreadsheet;
336
- };
337
- showHyperlinkPopup: false | "editor" | "info";
296
+ showHyperlinkPopup: false | "info" | "editor";
338
297
  selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
339
298
  snapLines: readonly import("../snapping").SnapLine[];
340
299
  originSnapOffset: {
@@ -345,16 +304,16 @@ export declare const actionAddToLibrary: {
345
304
  userToFollow: import("../types").UserToFollow | null;
346
305
  followedBy: Set<import("../types").SocketId>;
347
306
  isCropping: boolean;
348
- croppingElementId: string | null;
307
+ croppingElementId: import("@excalidraw/element/types").ExcalidrawElement["id"] | null;
349
308
  searchMatches: Readonly<{
350
- focusedId: string | null;
309
+ focusedId: import("@excalidraw/element/types").ExcalidrawElement["id"] | null;
351
310
  matches: readonly import("../types").SearchMatch[];
352
311
  }> | null;
353
312
  activeLockedId: string | null;
354
313
  lockedMultiSelections: {
355
314
  [groupId: string]: true;
356
315
  };
357
- stylesPanelMode: "compact" | "full" | "mobile";
316
+ bindMode: import("@excalidraw/element/types").BindMode;
358
317
  };
359
318
  }> | {
360
319
  captureUpdate: "EVENTUALLY";
@@ -368,17 +327,20 @@ export declare const actionAddToLibrary: {
368
327
  showWelcomeScreen: boolean;
369
328
  isLoading: boolean;
370
329
  activeEmbeddable: {
371
- element: import("../../element/src/types").NonDeletedExcalidrawElement;
372
- state: "active" | "hover";
330
+ element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
331
+ state: "hover" | "active";
373
332
  } | null;
374
- newElement: import("../../element/src/types").NonDeleted<import("../../element/src/types").ExcalidrawNonSelectionElement> | null;
375
- resizingElement: import("../../element/src/types").NonDeletedExcalidrawElement | null;
376
- multiElement: import("../../element/src/types").NonDeleted<import("../../element/src/types").ExcalidrawLinearElement> | null;
377
- selectionElement: import("../../element/src/types").NonDeletedExcalidrawElement | null;
333
+ newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
334
+ resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
335
+ multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
336
+ selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
378
337
  isBindingEnabled: boolean;
379
- startBoundElement: import("../../element/src/types").NonDeleted<import("../../element/src/types").ExcalidrawBindableElement> | null;
380
- suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
381
- frameToHighlight: import("../../element/src/types").NonDeleted<import("../../element/src/types").ExcalidrawFrameLikeElement> | null;
338
+ startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
339
+ suggestedBinding: {
340
+ element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
341
+ midPoint?: import("@excalidraw/math").GlobalPoint;
342
+ } | null;
343
+ frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
382
344
  frameRendering: {
383
345
  enabled: boolean;
384
346
  name: boolean;
@@ -386,8 +348,8 @@ export declare const actionAddToLibrary: {
386
348
  clip: boolean;
387
349
  };
388
350
  editingFrame: string | null;
389
- elementsToHighlight: import("../../element/src/types").NonDeleted<import("../../element/src/types").ExcalidrawElement>[] | null;
390
- editingTextElement: import("../../element/src/types").NonDeletedExcalidrawElement | null;
351
+ elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
352
+ editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
391
353
  activeTool: {
392
354
  lastActiveTool: import("../types").ActiveTool | null;
393
355
  locked: boolean;
@@ -405,19 +367,19 @@ export declare const actionAddToLibrary: {
405
367
  exportScale: number;
406
368
  currentItemStrokeColor: string;
407
369
  currentItemBackgroundColor: string;
408
- currentItemFillStyle: import("../../element/src/types").FillStyle;
370
+ currentItemFillStyle: import("@excalidraw/element/types").ExcalidrawElement["fillStyle"];
409
371
  currentItemStrokeWidth: number;
410
- currentItemStrokeStyle: import("../../element/src/types").StrokeStyle;
372
+ currentItemStrokeStyle: import("@excalidraw/element/types").ExcalidrawElement["strokeStyle"];
411
373
  currentItemRoughness: number;
412
374
  currentItemOpacity: number;
413
- currentItemFontFamily: number;
375
+ currentItemFontFamily: import("@excalidraw/element/types").FontFamilyValues;
414
376
  currentItemFontSize: number;
415
- currentItemTextAlign: string;
416
- currentItemStartArrowhead: import("../../element/src/types").Arrowhead | null;
417
- currentItemEndArrowhead: import("../../element/src/types").Arrowhead | null;
418
- currentHoveredFontFamily: number | null;
419
- currentItemRoundness: import("../../element/src/types").StrokeRoundness;
420
- currentItemArrowType: "round" | "sharp" | "elbow";
377
+ currentItemTextAlign: import("@excalidraw/element/types").TextAlign;
378
+ currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
379
+ currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
380
+ currentHoveredFontFamily: import("@excalidraw/element/types").FontFamilyValues | null;
381
+ currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
382
+ currentItemArrowType: "sharp" | "round" | "elbow";
421
383
  viewBackgroundColor: string;
422
384
  scrollX: number;
423
385
  scrollY: number;
@@ -426,28 +388,32 @@ export declare const actionAddToLibrary: {
426
388
  name: string | null;
427
389
  isResizing: boolean;
428
390
  isRotating: boolean;
429
- zoom: Readonly<{
430
- value: import("../types").NormalizedZoomValue;
431
- }>;
391
+ zoom: import("../types").Zoom;
432
392
  openMenu: "canvas" | null;
433
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
393
+ openPopup: "canvasBackground" | "elementBackground" | "elementStroke" | "fontFamily" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
434
394
  openSidebar: {
435
- name: string;
436
- tab?: string | undefined;
395
+ name: import("../types").SidebarName;
396
+ tab?: import("../types").SidebarTabName;
437
397
  } | null;
438
- openDialog: {
398
+ openDialog: null | {
439
399
  name: "imageExport" | "help" | "jsonExport";
440
400
  } | {
441
401
  name: "ttd";
442
- tab: "mermaid" | "text-to-diagram";
402
+ tab: "text-to-diagram" | "mermaid";
443
403
  } | {
444
404
  name: "commandPalette";
405
+ } | {
406
+ name: "settings";
445
407
  } | {
446
408
  name: "elementLinkSelector";
447
- sourceElementId: string;
448
- } | null;
409
+ sourceElementId: import("@excalidraw/element/types").ExcalidrawElement["id"];
410
+ } | {
411
+ name: "charts";
412
+ data: import("../charts").Spreadsheet;
413
+ rawText: string;
414
+ };
449
415
  defaultSidebarDockedPreference: boolean;
450
- lastPointerDownWith: import("../../element/src/types").PointerType;
416
+ lastPointerDownWith: import("@excalidraw/element/types").PointerType;
451
417
  selectedElementIds: Readonly<{
452
418
  [id: string]: true;
453
419
  }>;
@@ -461,11 +427,11 @@ export declare const actionAddToLibrary: {
461
427
  shouldCacheIgnoreZoom: boolean;
462
428
  toast: {
463
429
  message: string;
464
- closable?: boolean | undefined;
465
- duration?: number | undefined;
430
+ closable?: boolean;
431
+ duration?: number;
466
432
  } | null;
467
433
  zenModeEnabled: boolean;
468
- theme: import("../../element/src/types").Theme;
434
+ theme: import("@excalidraw/element/types").Theme;
469
435
  gridSize: number;
470
436
  gridStep: number;
471
437
  gridModeEnabled: boolean;
@@ -473,45 +439,18 @@ export declare const actionAddToLibrary: {
473
439
  selectedGroupIds: {
474
440
  [groupId: string]: boolean;
475
441
  };
476
- editingGroupId: string | null;
442
+ editingGroupId: import("@excalidraw/element/types").GroupId | null;
477
443
  width: number;
478
444
  height: number;
479
445
  offsetTop: number;
480
446
  offsetLeft: number;
481
447
  fileHandle: import("browser-fs-access").FileSystemHandle | null;
482
- collaborators: Map<import("../types").SocketId, Readonly<{
483
- pointer?: import("../types").CollaboratorPointer | undefined;
484
- button?: "up" | "down" | undefined;
485
- selectedElementIds?: Readonly<{
486
- [id: string]: true;
487
- }> | undefined;
488
- username?: string | null | undefined;
489
- userState?: import("@excalidraw/common").UserIdleState | undefined;
490
- color?: {
491
- background: string;
492
- stroke: string;
493
- } | undefined;
494
- avatarUrl?: string | undefined;
495
- id?: string | undefined;
496
- socketId?: import("../types").SocketId | undefined;
497
- isCurrentUser?: boolean | undefined;
498
- isInCall?: boolean | undefined;
499
- isSpeaking?: boolean | undefined;
500
- isMuted?: boolean | undefined;
501
- }>>;
448
+ collaborators: Map<import("../types").SocketId, import("../types").Collaborator>;
502
449
  stats: {
503
450
  open: boolean;
504
451
  panels: number;
505
452
  };
506
- currentChartType: import("../../element/src/types").ChartType;
507
- pasteDialog: {
508
- shown: false;
509
- data: null;
510
- } | {
511
- shown: true;
512
- data: import("../charts").Spreadsheet;
513
- };
514
- showHyperlinkPopup: false | "editor" | "info";
453
+ showHyperlinkPopup: false | "info" | "editor";
515
454
  selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
516
455
  snapLines: readonly import("../snapping").SnapLine[];
517
456
  originSnapOffset: {
@@ -522,16 +461,16 @@ export declare const actionAddToLibrary: {
522
461
  userToFollow: import("../types").UserToFollow | null;
523
462
  followedBy: Set<import("../types").SocketId>;
524
463
  isCropping: boolean;
525
- croppingElementId: string | null;
464
+ croppingElementId: import("@excalidraw/element/types").ExcalidrawElement["id"] | null;
526
465
  searchMatches: Readonly<{
527
- focusedId: string | null;
466
+ focusedId: import("@excalidraw/element/types").ExcalidrawElement["id"] | null;
528
467
  matches: readonly import("../types").SearchMatch[];
529
468
  }> | null;
530
469
  activeLockedId: string | null;
531
470
  lockedMultiSelections: {
532
471
  [groupId: string]: true;
533
472
  };
534
- stylesPanelMode: "compact" | "full" | "mobile";
473
+ bindMode: import("@excalidraw/element/types").BindMode;
535
474
  };
536
475
  };
537
476
  label: string;