@excalidraw/element 0.18.0-c141960 → 0.18.0-c1dbbdf

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 (233) hide show
  1. package/dist/dev/index.js +2698 -954
  2. package/dist/dev/index.js.map +4 -4
  3. package/dist/prod/index.js +18 -18
  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 +17 -11
  8. package/dist/types/common/src/editorInterface.d.ts +1 -1
  9. package/dist/types/common/src/font-metadata.d.ts +1 -3
  10. package/dist/types/common/src/index.d.ts +2 -1
  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 +46 -38
  14. package/dist/types/element/src/Scene.d.ts +5 -3
  15. package/dist/types/element/src/arrows/focus.d.ts +27 -0
  16. package/dist/types/element/src/arrows/helpers.d.ts +5 -0
  17. package/dist/types/element/src/binding.d.ts +19 -12
  18. package/dist/types/element/src/bounds.d.ts +2 -10
  19. package/dist/types/element/src/collision.d.ts +4 -3
  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/elbowArrow.d.ts +2 -0
  25. package/dist/types/element/src/fractionalIndex.d.ts +2 -2
  26. package/dist/types/element/src/frame.d.ts +5 -1
  27. package/dist/types/element/src/heading.d.ts +2 -1
  28. package/dist/types/element/src/image.d.ts +1 -11
  29. package/dist/types/element/src/index.d.ts +3 -0
  30. package/dist/types/element/src/linearElementEditor.d.ts +6 -2
  31. package/dist/types/element/src/mutateElement.d.ts +5 -1
  32. package/dist/types/element/src/newElement.d.ts +6 -6
  33. package/dist/types/element/src/renderElement.d.ts +0 -6
  34. package/dist/types/element/src/resizeElements.d.ts +10 -10
  35. package/dist/types/element/src/resizeTest.d.ts +1 -1
  36. package/dist/types/element/src/selection.d.ts +3 -7
  37. package/dist/types/element/src/shape.d.ts +8 -7
  38. package/dist/types/element/src/textMeasurements.d.ts +1 -3
  39. package/dist/types/{excalidraw/data → element/src}/transform.d.ts +3 -3
  40. package/dist/types/element/src/transformHandles.d.ts +3 -23
  41. package/dist/types/element/src/typeChecks.d.ts +2 -4
  42. package/dist/types/element/src/types.d.ts +1 -1
  43. package/dist/types/element/src/utils.d.ts +8 -4
  44. package/dist/types/{common → element}/src/visualdebug.d.ts +20 -2
  45. package/dist/types/element/src/zindex.d.ts +1 -1
  46. package/dist/types/excalidraw/actions/actionAddToLibrary.d.ts +92 -153
  47. package/dist/types/excalidraw/actions/actionAlign.d.ts +0 -1
  48. package/dist/types/excalidraw/actions/actionBoundText.d.ts +64 -105
  49. package/dist/types/excalidraw/actions/actionCanvas.d.ts +383 -618
  50. package/dist/types/excalidraw/actions/actionClipboard.d.ts +64 -105
  51. package/dist/types/excalidraw/actions/actionCropEditor.d.ts +31 -52
  52. package/dist/types/excalidraw/actions/actionDeleteSelected.d.ts +106 -169
  53. package/dist/types/excalidraw/actions/actionDistribute.d.ts +0 -1
  54. package/dist/types/excalidraw/actions/actionDuplicateSelection.d.ts +0 -1
  55. package/dist/types/excalidraw/actions/actionElementLink.d.ts +24 -49
  56. package/dist/types/excalidraw/actions/actionElementLock.d.ts +65 -106
  57. package/dist/types/excalidraw/actions/actionEmbeddable.d.ts +32 -53
  58. package/dist/types/excalidraw/actions/actionExport.d.ts +126 -211
  59. package/dist/types/excalidraw/actions/actionFinalize.d.ts +1 -2
  60. package/dist/types/excalidraw/actions/actionFlip.d.ts +0 -1
  61. package/dist/types/excalidraw/actions/actionFrame.d.ts +221 -338
  62. package/dist/types/excalidraw/actions/actionGroup.d.ts +68 -117
  63. package/dist/types/excalidraw/actions/actionLinearEditor.d.ts +134 -189
  64. package/dist/types/excalidraw/actions/actionLink.d.ts +32 -53
  65. package/dist/types/excalidraw/actions/actionMenu.d.ts +23 -48
  66. package/dist/types/excalidraw/actions/actionNavigate.d.ts +14 -17
  67. package/dist/types/excalidraw/actions/actionProperties.d.ts +79 -120
  68. package/dist/types/excalidraw/actions/actionSelectAll.d.ts +34 -59
  69. package/dist/types/excalidraw/actions/actionStyles.d.ts +30 -51
  70. package/dist/types/excalidraw/actions/actionToggleArrowBinding.d.ts +172 -0
  71. package/dist/types/excalidraw/actions/actionToggleGridMode.d.ts +32 -53
  72. package/dist/types/excalidraw/actions/actionToggleMidpointSnapping.d.ts +172 -0
  73. package/dist/types/excalidraw/actions/actionToggleObjectsSnapMode.d.ts +32 -53
  74. package/dist/types/excalidraw/actions/actionToggleSearchMenu.d.ts +22 -47
  75. package/dist/types/excalidraw/actions/actionToggleStats.d.ts +32 -53
  76. package/dist/types/excalidraw/actions/actionToggleViewMode.d.ts +32 -53
  77. package/dist/types/excalidraw/actions/actionToggleZenMode.d.ts +32 -53
  78. package/dist/types/excalidraw/actions/actionZindex.d.ts +0 -1
  79. package/dist/types/excalidraw/actions/index.d.ts +2 -0
  80. package/dist/types/excalidraw/actions/manager.d.ts +1 -1
  81. package/dist/types/excalidraw/actions/register.d.ts +2 -2
  82. package/dist/types/excalidraw/actions/shortcuts.d.ts +1 -1
  83. package/dist/types/excalidraw/actions/types.d.ts +1 -1
  84. package/dist/types/excalidraw/appState.d.ts +12 -10
  85. package/dist/types/excalidraw/charts/charts.bar.d.ts +2 -0
  86. package/dist/types/excalidraw/charts/charts.constants.d.ts +48 -0
  87. package/dist/types/excalidraw/charts/charts.helpers.d.ts +32 -0
  88. package/dist/types/excalidraw/charts/charts.line.d.ts +2 -0
  89. package/dist/types/excalidraw/charts/charts.parse.d.ts +10 -0
  90. package/dist/types/excalidraw/charts/charts.radar.d.ts +2 -0
  91. package/dist/types/excalidraw/charts/charts.types.d.ts +18 -0
  92. package/dist/types/excalidraw/charts/index.d.ts +7 -0
  93. package/dist/types/excalidraw/clipboard.d.ts +11 -35
  94. package/dist/types/excalidraw/components/Actions.d.ts +1 -1
  95. package/dist/types/excalidraw/components/App.d.ts +43 -44
  96. package/dist/types/excalidraw/components/Card.d.ts +1 -3
  97. package/dist/types/excalidraw/components/ColorPicker/ColorInput.d.ts +2 -4
  98. package/dist/types/excalidraw/components/ColorPicker/ColorPicker.d.ts +0 -1
  99. package/dist/types/excalidraw/components/ColorPicker/colorPickerUtils.d.ts +0 -1
  100. package/dist/types/excalidraw/components/ColorPicker/keyboardNavHandlers.d.ts +0 -1
  101. package/dist/types/excalidraw/components/CommandPalette/types.d.ts +1 -2
  102. package/dist/types/excalidraw/components/ConvertElementTypePopup.d.ts +2 -2
  103. package/dist/types/excalidraw/components/DarkModeToggle.d.ts +1 -1
  104. package/dist/types/excalidraw/components/DefaultSidebar.d.ts +9 -13
  105. package/dist/types/excalidraw/components/ElementLinkDialog.d.ts +1 -1
  106. package/dist/types/excalidraw/components/Ellipsify.d.ts +1 -2
  107. package/dist/types/excalidraw/components/ErrorDialog.d.ts +1 -1
  108. package/dist/types/excalidraw/components/ExcalidrawLogo.d.ts +0 -1
  109. package/dist/types/excalidraw/components/EyeDropper.d.ts +0 -1
  110. package/dist/types/excalidraw/components/FilledButton.d.ts +1 -0
  111. package/dist/types/excalidraw/components/FontPicker/keyboardNavHandlers.d.ts +0 -1
  112. package/dist/types/excalidraw/components/HelpDialog.d.ts +1 -1
  113. package/dist/types/excalidraw/components/InlineIcon.d.ts +2 -2
  114. package/dist/types/excalidraw/components/LibraryMenuControlButtons.d.ts +1 -1
  115. package/dist/types/excalidraw/components/LibraryMenuHeaderContent.d.ts +1 -2
  116. package/dist/types/excalidraw/components/LibraryUnit.d.ts +2 -3
  117. package/dist/types/excalidraw/components/LoadingMessage.d.ts +0 -1
  118. package/dist/types/excalidraw/components/MobileToolBar.d.ts +0 -1
  119. package/dist/types/excalidraw/components/Modal.d.ts +0 -1
  120. package/dist/types/excalidraw/components/OverwriteConfirm/OverwriteConfirm.d.ts +1 -1
  121. package/dist/types/excalidraw/components/PasteChartDialog.d.ts +4 -5
  122. package/dist/types/excalidraw/components/PropertiesPopover.d.ts +1 -1
  123. package/dist/types/excalidraw/components/RadioGroup.d.ts +0 -1
  124. package/dist/types/excalidraw/components/RadioSelection.d.ts +4 -4
  125. package/dist/types/excalidraw/components/ScrollableList.d.ts +0 -1
  126. package/dist/types/excalidraw/components/Sidebar/Sidebar.d.ts +15 -21
  127. package/dist/types/excalidraw/components/Sidebar/SidebarHeader.d.ts +1 -1
  128. package/dist/types/excalidraw/components/Sidebar/SidebarTab.d.ts +1 -2
  129. package/dist/types/excalidraw/components/Sidebar/SidebarTabTrigger.d.ts +1 -2
  130. package/dist/types/excalidraw/components/Sidebar/SidebarTabTriggers.d.ts +1 -2
  131. package/dist/types/excalidraw/components/Sidebar/SidebarTabs.d.ts +1 -2
  132. package/dist/types/excalidraw/components/Spinner.d.ts +4 -4
  133. package/dist/types/excalidraw/components/Stats/CanvasGrid.d.ts +0 -1
  134. package/dist/types/excalidraw/components/Stats/Collapsible.d.ts +0 -1
  135. package/dist/types/excalidraw/components/Stats/DragInput.d.ts +0 -1
  136. package/dist/types/excalidraw/components/Stats/index.d.ts +7 -8
  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/CodeMirrorEditor.d.ts +11 -0
  144. package/dist/types/excalidraw/components/TTDDialog/MermaidToExcalidraw.d.ts +3 -2
  145. package/dist/types/excalidraw/components/TTDDialog/TTDContext.d.ts +13 -0
  146. package/dist/types/excalidraw/components/TTDDialog/TTDDialog.d.ts +12 -29
  147. package/dist/types/excalidraw/components/TTDDialog/TTDDialogInput.d.ts +3 -3
  148. package/dist/types/excalidraw/components/TTDDialog/TTDDialogOutput.d.ts +5 -2
  149. package/dist/types/excalidraw/components/TTDDialog/TTDDialogPanel.d.ts +13 -9
  150. package/dist/types/excalidraw/components/TTDDialog/TTDDialogTab.d.ts +1 -2
  151. package/dist/types/excalidraw/components/TTDDialog/TTDDialogTabTrigger.d.ts +1 -2
  152. package/dist/types/excalidraw/components/TTDDialog/TTDDialogTabTriggers.d.ts +1 -2
  153. package/dist/types/excalidraw/components/TTDDialog/TTDDialogTrigger.d.ts +1 -1
  154. package/dist/types/excalidraw/components/TTDDialog/TTDPreviewPanel.d.ts +9 -0
  155. package/dist/types/excalidraw/components/TTDDialog/TTDWelcomeMessage.d.ts +1 -0
  156. package/dist/types/excalidraw/components/TTDDialog/TextToDiagram.d.ts +9 -0
  157. package/dist/types/excalidraw/components/TTDDialog/common.d.ts +16 -16
  158. package/dist/types/excalidraw/components/TTDDialog/hooks/useChatManagement.d.ts +13 -0
  159. package/dist/types/excalidraw/components/TTDDialog/hooks/useMermaidRenderer.d.ts +14 -0
  160. package/dist/types/excalidraw/components/TTDDialog/hooks/useTextGeneration.d.ts +7 -0
  161. package/dist/types/excalidraw/components/TTDDialog/mermaid-lang-lite.d.ts +2 -0
  162. package/dist/types/excalidraw/components/TTDDialog/types.d.ts +95 -0
  163. package/dist/types/excalidraw/components/TTDDialog/useTTDChatStorage.d.ts +22 -0
  164. package/dist/types/excalidraw/components/TTDDialog/utils/TTDStreamFetch.d.ts +24 -0
  165. package/dist/types/excalidraw/components/TTDDialog/utils/chat.d.ts +10 -0
  166. package/dist/types/excalidraw/components/TTDDialog/utils/mermaidAutoFix.d.ts +1 -0
  167. package/dist/types/excalidraw/components/TTDDialog/utils/mermaidError.d.ts +10 -0
  168. package/dist/types/excalidraw/components/TTDDialog/utils/mermaidValidation.d.ts +1 -0
  169. package/dist/types/excalidraw/components/Toast.d.ts +3 -3
  170. package/dist/types/excalidraw/components/Trans.d.ts +2 -2
  171. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenu.d.ts +48 -38
  172. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuContent.d.ts +7 -6
  173. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuGroup.d.ts +3 -3
  174. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuItem.d.ts +13 -22
  175. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuItemCheckbox.d.ts +5 -0
  176. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuItemContent.d.ts +5 -4
  177. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuItemContentRadio.d.ts +0 -1
  178. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuItemCustom.d.ts +2 -2
  179. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuItemLink.d.ts +6 -6
  180. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuSub.d.ts +23 -0
  181. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuSubContent.d.ts +8 -0
  182. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuSubTrigger.d.ts +12 -0
  183. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuTrigger.d.ts +3 -4
  184. package/dist/types/excalidraw/components/dropdownMenu/common.d.ts +2 -2
  185. package/dist/types/excalidraw/components/dropdownMenu/dropdownMenuUtils.d.ts +2 -0
  186. package/dist/types/excalidraw/components/hoc/withInternalFallback.d.ts +1 -1
  187. package/dist/types/excalidraw/components/hyperlink/helpers.d.ts +1 -1
  188. package/dist/types/excalidraw/components/icons.d.ts +22 -13
  189. package/dist/types/excalidraw/components/live-collaboration/LiveCollaborationTrigger.d.ts +2 -13
  190. package/dist/types/excalidraw/components/main-menu/DefaultItems.d.ts +19 -2
  191. package/dist/types/excalidraw/components/main-menu/MainMenu.d.ts +39 -32
  192. package/dist/types/excalidraw/components/shapes.d.ts +74 -1
  193. package/dist/types/excalidraw/components/welcome-screen/WelcomeScreen.Center.d.ts +6 -6
  194. package/dist/types/excalidraw/components/welcome-screen/WelcomeScreen.d.ts +15 -16
  195. package/dist/types/excalidraw/data/blob.d.ts +323 -3
  196. package/dist/types/excalidraw/data/encode.d.ts +4 -4
  197. package/dist/types/excalidraw/data/encryption.d.ts +5 -5
  198. package/dist/types/excalidraw/data/filesystem.d.ts +2 -2
  199. package/dist/types/excalidraw/data/index.d.ts +3 -3
  200. package/dist/types/excalidraw/data/json.d.ts +160 -2
  201. package/dist/types/excalidraw/data/library.d.ts +24 -9
  202. package/dist/types/excalidraw/data/restore.d.ts +25 -10
  203. package/dist/types/excalidraw/editor-jotai.d.ts +11 -11
  204. package/dist/types/excalidraw/errors.d.ts +14 -0
  205. package/dist/types/excalidraw/hooks/useOutsideClick.d.ts +1 -2
  206. package/dist/types/excalidraw/hooks/useScrollPosition.d.ts +1 -2
  207. package/dist/types/excalidraw/i18n.d.ts +2 -2
  208. package/dist/types/excalidraw/index.d.ts +6 -4
  209. package/dist/types/excalidraw/renderer/helpers.d.ts +6 -4
  210. package/dist/types/excalidraw/renderer/interactiveScene.d.ts +8 -6
  211. package/dist/types/excalidraw/scene/Renderer.d.ts +5 -2
  212. package/dist/types/excalidraw/scene/export.d.ts +2 -2
  213. package/dist/types/excalidraw/scene/scroll.d.ts +1 -6
  214. package/dist/types/excalidraw/scene/types.d.ts +7 -2
  215. package/dist/types/excalidraw/snapping.d.ts +5 -5
  216. package/dist/types/excalidraw/subset/harfbuzz/harfbuzz-bindings.d.ts +1 -1
  217. package/dist/types/excalidraw/subset/harfbuzz/harfbuzz-loader.d.ts +1 -1
  218. package/dist/types/excalidraw/subset/harfbuzz/harfbuzz-wasm.d.ts +1 -1
  219. package/dist/types/excalidraw/subset/woff2/woff2-loader.d.ts +2 -2
  220. package/dist/types/excalidraw/subset/woff2/woff2-wasm.d.ts +1 -1
  221. package/dist/types/excalidraw/types.d.ts +25 -14
  222. package/dist/types/excalidraw/wysiwyg/textWysiwyg.d.ts +2 -2
  223. package/dist/types/math/src/point.d.ts +6 -1
  224. package/dist/types/math/src/polygon.d.ts +2 -2
  225. package/dist/types/math/src/range.d.ts +1 -3
  226. package/dist/types/math/src/segment.d.ts +3 -3
  227. package/dist/types/math/src/types.d.ts +25 -1
  228. package/dist/types/utils/src/bbox.d.ts +1 -1
  229. package/dist/types/utils/src/export.d.ts +5 -5
  230. package/dist/types/utils/src/shape.d.ts +6 -6
  231. package/dist/types/utils/src/withinBounds.d.ts +2 -2
  232. package/package.json +9 -3
  233. package/dist/types/excalidraw/charts.d.ts +0 -27
@@ -1,32 +1,31 @@
1
- /// <reference types="react" />
2
1
  import { LinearElementEditor } from "@excalidraw/element";
3
- import type { Arrowhead, ExcalidrawBindableElement, ExcalidrawElement, ExcalidrawLinearElement } from "@excalidraw/element/types";
2
+ import type { Arrowhead, ExcalidrawBindableElement, ExcalidrawElement, ExcalidrawLinearElement, FontFamilyValues, TextAlign } from "@excalidraw/element/types";
4
3
  import type { AppClassProperties, AppState, Primitive } from "../types";
5
4
  export declare const changeProperty: (elements: readonly ExcalidrawElement[], appState: AppState, callback: (element: ExcalidrawElement) => ExcalidrawElement, includeBoundText?: boolean) => ExcalidrawElement[];
6
5
  export declare const getFormValue: <T extends Primitive>(elements: readonly ExcalidrawElement[], app: AppClassProperties, getAttribute: (element: ExcalidrawElement) => T, isRelevantElement: true | ((element: ExcalidrawElement) => boolean), defaultValue: T | ((isSomeElementSelected: boolean) => T)) => T;
7
6
  export declare const actionChangeStrokeColor: import("./types").Action<Pick<AppState, "currentItemStrokeColor">> & {
8
- keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>, appState: AppState, elements: readonly ExcalidrawElement[], app: AppClassProperties) => boolean) | undefined;
7
+ keyTest?: ((event: React.KeyboardEvent | KeyboardEvent, appState: AppState, elements: readonly ExcalidrawElement[], app: AppClassProperties) => boolean) | undefined;
9
8
  };
10
9
  export declare const actionChangeBackgroundColor: import("./types").Action<Pick<AppState, "viewBackgroundColor" | "currentItemBackgroundColor">> & {
11
- keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>, appState: AppState, elements: readonly ExcalidrawElement[], app: AppClassProperties) => boolean) | undefined;
10
+ keyTest?: ((event: React.KeyboardEvent | KeyboardEvent, appState: AppState, elements: readonly ExcalidrawElement[], app: AppClassProperties) => boolean) | undefined;
12
11
  };
13
12
  export declare const actionChangeFillStyle: import("./types").Action<import("@excalidraw/element/types").FillStyle> & {
14
- keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>, appState: AppState, elements: readonly ExcalidrawElement[], app: AppClassProperties) => boolean) | undefined;
13
+ keyTest?: ((event: React.KeyboardEvent | KeyboardEvent, appState: AppState, elements: readonly ExcalidrawElement[], app: AppClassProperties) => boolean) | undefined;
15
14
  };
16
15
  export declare const actionChangeStrokeWidth: import("./types").Action<number> & {
17
- keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>, appState: AppState, elements: readonly ExcalidrawElement[], app: AppClassProperties) => boolean) | undefined;
16
+ keyTest?: ((event: React.KeyboardEvent | KeyboardEvent, appState: AppState, elements: readonly ExcalidrawElement[], app: AppClassProperties) => boolean) | undefined;
18
17
  };
19
18
  export declare const actionChangeSloppiness: import("./types").Action<number> & {
20
- keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>, appState: AppState, elements: readonly ExcalidrawElement[], app: AppClassProperties) => boolean) | undefined;
19
+ keyTest?: ((event: React.KeyboardEvent | KeyboardEvent, appState: AppState, elements: readonly ExcalidrawElement[], app: AppClassProperties) => boolean) | undefined;
21
20
  };
22
21
  export declare const actionChangeStrokeStyle: import("./types").Action<import("@excalidraw/element/types").StrokeStyle> & {
23
- keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>, appState: AppState, elements: readonly ExcalidrawElement[], app: AppClassProperties) => boolean) | undefined;
22
+ keyTest?: ((event: React.KeyboardEvent | KeyboardEvent, appState: AppState, elements: readonly ExcalidrawElement[], app: AppClassProperties) => boolean) | undefined;
24
23
  };
25
24
  export declare const actionChangeOpacity: import("./types").Action<number> & {
26
- keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>, appState: AppState, elements: readonly ExcalidrawElement[], app: AppClassProperties) => boolean) | undefined;
25
+ keyTest?: ((event: React.KeyboardEvent | KeyboardEvent, appState: AppState, elements: readonly ExcalidrawElement[], app: AppClassProperties) => boolean) | undefined;
27
26
  };
28
27
  export declare const actionChangeFontSize: import("./types").Action<number> & {
29
- keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>, appState: AppState, elements: readonly ExcalidrawElement[], app: AppClassProperties) => boolean) | undefined;
28
+ keyTest?: ((event: React.KeyboardEvent | KeyboardEvent, appState: AppState, elements: readonly ExcalidrawElement[], app: AppClassProperties) => boolean) | undefined;
30
29
  };
31
30
  export declare const actionDecreaseFontSize: {
32
31
  name: "decreaseFontSize";
@@ -44,18 +43,23 @@ export declare const actionDecreaseFontSize: {
44
43
  } | null;
45
44
  showWelcomeScreen: boolean;
46
45
  isLoading: boolean;
47
- errorMessage: import("react").ReactNode;
46
+ errorMessage: React.ReactNode;
48
47
  activeEmbeddable: {
49
48
  element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
50
- state: "active" | "hover";
49
+ state: "hover" | "active";
51
50
  } | null;
52
51
  newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
53
52
  resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
54
53
  multiElement: import("@excalidraw/element/types").NonDeleted<ExcalidrawLinearElement> | null;
55
54
  selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
56
55
  isBindingEnabled: boolean;
56
+ bindingPreference: "enabled" | "disabled";
57
+ isMidpointSnappingEnabled: boolean;
57
58
  startBoundElement: import("@excalidraw/element/types").NonDeleted<ExcalidrawBindableElement> | null;
58
- suggestedBinding: import("@excalidraw/element/types").NonDeleted<ExcalidrawBindableElement> | null;
59
+ suggestedBinding: {
60
+ element: import("@excalidraw/element/types").NonDeleted<ExcalidrawBindableElement>;
61
+ midPoint?: import("@excalidraw/math").GlobalPoint;
62
+ } | null;
59
63
  frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
60
64
  frameRendering: {
61
65
  enabled: boolean;
@@ -83,18 +87,18 @@ export declare const actionDecreaseFontSize: {
83
87
  exportScale: number;
84
88
  currentItemStrokeColor: string;
85
89
  currentItemBackgroundColor: string;
86
- currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
90
+ currentItemFillStyle: ExcalidrawElement["fillStyle"];
87
91
  currentItemStrokeWidth: number;
88
- currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
92
+ currentItemStrokeStyle: ExcalidrawElement["strokeStyle"];
89
93
  currentItemRoughness: number;
90
94
  currentItemOpacity: number;
91
- currentItemFontFamily: number;
92
- currentItemTextAlign: string;
95
+ currentItemFontFamily: FontFamilyValues;
96
+ currentItemTextAlign: TextAlign;
93
97
  currentItemStartArrowhead: Arrowhead | null;
94
98
  currentItemEndArrowhead: Arrowhead | null;
95
- currentHoveredFontFamily: number | null;
99
+ currentHoveredFontFamily: FontFamilyValues | null;
96
100
  currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
97
- currentItemArrowType: "round" | "sharp" | "elbow";
101
+ currentItemArrowType: "sharp" | "round" | "elbow";
98
102
  viewBackgroundColor: string;
99
103
  scrollX: number;
100
104
  scrollY: number;
@@ -103,28 +107,30 @@ export declare const actionDecreaseFontSize: {
103
107
  name: string | null;
104
108
  isResizing: boolean;
105
109
  isRotating: boolean;
106
- zoom: Readonly<{
107
- value: import("../types").NormalizedZoomValue;
108
- }>;
110
+ zoom: import("../types").Zoom;
109
111
  openMenu: "canvas" | null;
110
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
112
+ openPopup: "canvasBackground" | "elementBackground" | "elementStroke" | "fontFamily" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
111
113
  openSidebar: {
112
- name: string;
113
- tab?: string | undefined;
114
+ name: import("../types").SidebarName;
115
+ tab?: import("../types").SidebarTabName;
114
116
  } | null;
115
- openDialog: {
117
+ openDialog: null | {
116
118
  name: "imageExport" | "help" | "jsonExport";
117
119
  } | {
118
120
  name: "ttd";
119
- tab: "mermaid" | "text-to-diagram";
121
+ tab: "text-to-diagram" | "mermaid";
120
122
  } | {
121
123
  name: "commandPalette";
122
124
  } | {
123
125
  name: "settings";
124
126
  } | {
125
127
  name: "elementLinkSelector";
126
- sourceElementId: string;
127
- } | null;
128
+ sourceElementId: ExcalidrawElement["id"];
129
+ } | {
130
+ name: "charts";
131
+ data: import("../charts").Spreadsheet;
132
+ rawText: string;
133
+ };
128
134
  defaultSidebarDockedPreference: boolean;
129
135
  lastPointerDownWith: import("@excalidraw/element/types").PointerType;
130
136
  selectedElementIds: Readonly<{
@@ -140,8 +146,8 @@ export declare const actionDecreaseFontSize: {
140
146
  shouldCacheIgnoreZoom: boolean;
141
147
  toast: {
142
148
  message: string;
143
- closable?: boolean | undefined;
144
- duration?: number | undefined;
149
+ closable?: boolean;
150
+ duration?: number;
145
151
  } | null;
146
152
  zenModeEnabled: boolean;
147
153
  theme: import("@excalidraw/element/types").Theme;
@@ -152,44 +158,17 @@ export declare const actionDecreaseFontSize: {
152
158
  selectedGroupIds: {
153
159
  [groupId: string]: boolean;
154
160
  };
155
- editingGroupId: string | null;
161
+ editingGroupId: import("@excalidraw/element/types").GroupId | null;
156
162
  width: number;
157
163
  height: number;
158
164
  offsetTop: number;
159
165
  offsetLeft: number;
160
166
  fileHandle: import("browser-fs-access").FileSystemHandle | null;
161
- collaborators: Map<import("../types").SocketId, Readonly<{
162
- pointer?: import("../types").CollaboratorPointer | undefined;
163
- button?: "up" | "down" | undefined;
164
- selectedElementIds?: Readonly<{
165
- [id: string]: true;
166
- }> | undefined;
167
- username?: string | null | undefined;
168
- userState?: import("@excalidraw/common").UserIdleState | undefined;
169
- color?: {
170
- background: string;
171
- stroke: string;
172
- } | undefined;
173
- avatarUrl?: string | undefined;
174
- id?: string | undefined;
175
- socketId?: import("../types").SocketId | undefined;
176
- isCurrentUser?: boolean | undefined;
177
- isInCall?: boolean | undefined;
178
- isSpeaking?: boolean | undefined;
179
- isMuted?: boolean | undefined;
180
- }>>;
167
+ collaborators: Map<import("../types").SocketId, import("../types").Collaborator>;
181
168
  stats: {
182
169
  open: boolean;
183
170
  panels: number;
184
171
  };
185
- currentChartType: import("@excalidraw/element/types").ChartType;
186
- pasteDialog: {
187
- shown: false;
188
- data: null;
189
- } | {
190
- shown: true;
191
- data: import("../charts").Spreadsheet;
192
- };
193
172
  showHyperlinkPopup: false | "info" | "editor";
194
173
  selectedLinearElement: LinearElementEditor | null;
195
174
  snapLines: readonly import("../snapping").SnapLine[];
@@ -201,9 +180,9 @@ export declare const actionDecreaseFontSize: {
201
180
  userToFollow: import("../types").UserToFollow | null;
202
181
  followedBy: Set<import("../types").SocketId>;
203
182
  isCropping: boolean;
204
- croppingElementId: string | null;
183
+ croppingElementId: ExcalidrawElement["id"] | null;
205
184
  searchMatches: Readonly<{
206
- focusedId: string | null;
185
+ focusedId: ExcalidrawElement["id"] | null;
207
186
  matches: readonly import("../types").SearchMatch[];
208
187
  }> | null;
209
188
  activeLockedId: string | null;
@@ -234,18 +213,23 @@ export declare const actionIncreaseFontSize: {
234
213
  } | null;
235
214
  showWelcomeScreen: boolean;
236
215
  isLoading: boolean;
237
- errorMessage: import("react").ReactNode;
216
+ errorMessage: React.ReactNode;
238
217
  activeEmbeddable: {
239
218
  element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
240
- state: "active" | "hover";
219
+ state: "hover" | "active";
241
220
  } | null;
242
221
  newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
243
222
  resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
244
223
  multiElement: import("@excalidraw/element/types").NonDeleted<ExcalidrawLinearElement> | null;
245
224
  selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
246
225
  isBindingEnabled: boolean;
226
+ bindingPreference: "enabled" | "disabled";
227
+ isMidpointSnappingEnabled: boolean;
247
228
  startBoundElement: import("@excalidraw/element/types").NonDeleted<ExcalidrawBindableElement> | null;
248
- suggestedBinding: import("@excalidraw/element/types").NonDeleted<ExcalidrawBindableElement> | null;
229
+ suggestedBinding: {
230
+ element: import("@excalidraw/element/types").NonDeleted<ExcalidrawBindableElement>;
231
+ midPoint?: import("@excalidraw/math").GlobalPoint;
232
+ } | null;
249
233
  frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
250
234
  frameRendering: {
251
235
  enabled: boolean;
@@ -273,18 +257,18 @@ export declare const actionIncreaseFontSize: {
273
257
  exportScale: number;
274
258
  currentItemStrokeColor: string;
275
259
  currentItemBackgroundColor: string;
276
- currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
260
+ currentItemFillStyle: ExcalidrawElement["fillStyle"];
277
261
  currentItemStrokeWidth: number;
278
- currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
262
+ currentItemStrokeStyle: ExcalidrawElement["strokeStyle"];
279
263
  currentItemRoughness: number;
280
264
  currentItemOpacity: number;
281
- currentItemFontFamily: number;
282
- currentItemTextAlign: string;
265
+ currentItemFontFamily: FontFamilyValues;
266
+ currentItemTextAlign: TextAlign;
283
267
  currentItemStartArrowhead: Arrowhead | null;
284
268
  currentItemEndArrowhead: Arrowhead | null;
285
- currentHoveredFontFamily: number | null;
269
+ currentHoveredFontFamily: FontFamilyValues | null;
286
270
  currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
287
- currentItemArrowType: "round" | "sharp" | "elbow";
271
+ currentItemArrowType: "sharp" | "round" | "elbow";
288
272
  viewBackgroundColor: string;
289
273
  scrollX: number;
290
274
  scrollY: number;
@@ -293,28 +277,30 @@ export declare const actionIncreaseFontSize: {
293
277
  name: string | null;
294
278
  isResizing: boolean;
295
279
  isRotating: boolean;
296
- zoom: Readonly<{
297
- value: import("../types").NormalizedZoomValue;
298
- }>;
280
+ zoom: import("../types").Zoom;
299
281
  openMenu: "canvas" | null;
300
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
282
+ openPopup: "canvasBackground" | "elementBackground" | "elementStroke" | "fontFamily" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
301
283
  openSidebar: {
302
- name: string;
303
- tab?: string | undefined;
284
+ name: import("../types").SidebarName;
285
+ tab?: import("../types").SidebarTabName;
304
286
  } | null;
305
- openDialog: {
287
+ openDialog: null | {
306
288
  name: "imageExport" | "help" | "jsonExport";
307
289
  } | {
308
290
  name: "ttd";
309
- tab: "mermaid" | "text-to-diagram";
291
+ tab: "text-to-diagram" | "mermaid";
310
292
  } | {
311
293
  name: "commandPalette";
312
294
  } | {
313
295
  name: "settings";
314
296
  } | {
315
297
  name: "elementLinkSelector";
316
- sourceElementId: string;
317
- } | null;
298
+ sourceElementId: ExcalidrawElement["id"];
299
+ } | {
300
+ name: "charts";
301
+ data: import("../charts").Spreadsheet;
302
+ rawText: string;
303
+ };
318
304
  defaultSidebarDockedPreference: boolean;
319
305
  lastPointerDownWith: import("@excalidraw/element/types").PointerType;
320
306
  selectedElementIds: Readonly<{
@@ -330,8 +316,8 @@ export declare const actionIncreaseFontSize: {
330
316
  shouldCacheIgnoreZoom: boolean;
331
317
  toast: {
332
318
  message: string;
333
- closable?: boolean | undefined;
334
- duration?: number | undefined;
319
+ closable?: boolean;
320
+ duration?: number;
335
321
  } | null;
336
322
  zenModeEnabled: boolean;
337
323
  theme: import("@excalidraw/element/types").Theme;
@@ -342,44 +328,17 @@ export declare const actionIncreaseFontSize: {
342
328
  selectedGroupIds: {
343
329
  [groupId: string]: boolean;
344
330
  };
345
- editingGroupId: string | null;
331
+ editingGroupId: import("@excalidraw/element/types").GroupId | null;
346
332
  width: number;
347
333
  height: number;
348
334
  offsetTop: number;
349
335
  offsetLeft: number;
350
336
  fileHandle: import("browser-fs-access").FileSystemHandle | null;
351
- collaborators: Map<import("../types").SocketId, Readonly<{
352
- pointer?: import("../types").CollaboratorPointer | undefined;
353
- button?: "up" | "down" | undefined;
354
- selectedElementIds?: Readonly<{
355
- [id: string]: true;
356
- }> | undefined;
357
- username?: string | null | undefined;
358
- userState?: import("@excalidraw/common").UserIdleState | undefined;
359
- color?: {
360
- background: string;
361
- stroke: string;
362
- } | undefined;
363
- avatarUrl?: string | undefined;
364
- id?: string | undefined;
365
- socketId?: import("../types").SocketId | undefined;
366
- isCurrentUser?: boolean | undefined;
367
- isInCall?: boolean | undefined;
368
- isSpeaking?: boolean | undefined;
369
- isMuted?: boolean | undefined;
370
- }>>;
337
+ collaborators: Map<import("../types").SocketId, import("../types").Collaborator>;
371
338
  stats: {
372
339
  open: boolean;
373
340
  panels: number;
374
341
  };
375
- currentChartType: import("@excalidraw/element/types").ChartType;
376
- pasteDialog: {
377
- shown: false;
378
- data: null;
379
- } | {
380
- shown: true;
381
- data: import("../charts").Spreadsheet;
382
- };
383
342
  showHyperlinkPopup: false | "info" | "editor";
384
343
  selectedLinearElement: LinearElementEditor | null;
385
344
  snapLines: readonly import("../snapping").SnapLine[];
@@ -391,9 +350,9 @@ export declare const actionIncreaseFontSize: {
391
350
  userToFollow: import("../types").UserToFollow | null;
392
351
  followedBy: Set<import("../types").SocketId>;
393
352
  isCropping: boolean;
394
- croppingElementId: string | null;
353
+ croppingElementId: ExcalidrawElement["id"] | null;
395
354
  searchMatches: Readonly<{
396
- focusedId: string | null;
355
+ focusedId: ExcalidrawElement["id"] | null;
397
356
  matches: readonly import("../types").SearchMatch[];
398
357
  }> | null;
399
358
  activeLockedId: string | null;
@@ -412,22 +371,22 @@ export declare const actionChangeFontFamily: import("./types").Action<{
412
371
  currentItemFontFamily: any;
413
372
  currentHoveredFontFamily: any;
414
373
  }> & {
415
- keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>, appState: AppState, elements: readonly ExcalidrawElement[], app: AppClassProperties) => boolean) | undefined;
374
+ keyTest?: ((event: React.KeyboardEvent | KeyboardEvent, appState: AppState, elements: readonly ExcalidrawElement[], app: AppClassProperties) => boolean) | undefined;
416
375
  };
417
376
  export declare const actionChangeTextAlign: import("./types").Action<string> & {
418
- keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>, appState: AppState, elements: readonly ExcalidrawElement[], app: AppClassProperties) => boolean) | undefined;
377
+ keyTest?: ((event: React.KeyboardEvent | KeyboardEvent, appState: AppState, elements: readonly ExcalidrawElement[], app: AppClassProperties) => boolean) | undefined;
419
378
  };
420
379
  export declare const actionChangeVerticalAlign: import("./types").Action<string> & {
421
- keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>, appState: AppState, elements: readonly ExcalidrawElement[], app: AppClassProperties) => boolean) | undefined;
380
+ keyTest?: ((event: React.KeyboardEvent | KeyboardEvent, appState: AppState, elements: readonly ExcalidrawElement[], app: AppClassProperties) => boolean) | undefined;
422
381
  };
423
382
  export declare const actionChangeRoundness: import("./types").Action<"round" | "sharp"> & {
424
- keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>, appState: AppState, elements: readonly ExcalidrawElement[], app: AppClassProperties) => boolean) | undefined;
383
+ keyTest?: ((event: React.KeyboardEvent | KeyboardEvent, appState: AppState, elements: readonly ExcalidrawElement[], app: AppClassProperties) => boolean) | undefined;
425
384
  };
426
385
  export declare const actionChangeArrowhead: import("./types").Action<{
427
386
  position: "start" | "end";
428
387
  type: Arrowhead;
429
388
  }> & {
430
- keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>, appState: AppState, elements: readonly ExcalidrawElement[], app: AppClassProperties) => boolean) | undefined;
389
+ keyTest?: ((event: React.KeyboardEvent | KeyboardEvent, appState: AppState, elements: readonly ExcalidrawElement[], app: AppClassProperties) => boolean) | undefined;
431
390
  };
432
391
  export declare const actionChangeArrowProperties: {
433
392
  name: "changeArrowProperties";
@@ -439,5 +398,5 @@ export declare const actionChangeArrowProperties: {
439
398
  keyTest?: undefined;
440
399
  };
441
400
  export declare const actionChangeArrowType: import("./types").Action<"round" | "sharp" | "elbow"> & {
442
- keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>, appState: AppState, elements: readonly ExcalidrawElement[], app: AppClassProperties) => boolean) | undefined;
401
+ keyTest?: ((event: React.KeyboardEvent | KeyboardEvent, appState: AppState, elements: readonly ExcalidrawElement[], app: AppClassProperties) => boolean) | undefined;
443
402
  };
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { LinearElementEditor } from "@excalidraw/element";
3
2
  import type { ExcalidrawElement } from "@excalidraw/element/types";
4
3
  export declare const actionSelectAll: {
@@ -12,13 +11,9 @@ export declare const actionSelectAll: {
12
11
  perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, value: unknown, app: import("../types").AppClassProperties) => false | {
13
12
  appState: {
14
13
  selectedLinearElement: LinearElementEditor | null;
15
- editingGroupId: string | null;
16
- selectedElementIds: Readonly<{
17
- [id: string]: true;
18
- }>;
19
- selectedGroupIds: {
20
- [groupId: string]: boolean;
21
- };
14
+ editingGroupId: import("../types").AppState["editingGroupId"];
15
+ selectedElementIds: import("../types").AppState["selectedElementIds"];
16
+ selectedGroupIds: import("../types").AppState["selectedGroupIds"];
22
17
  contextMenu: {
23
18
  items: import("../components/ContextMenu").ContextMenuItems;
24
19
  top: number;
@@ -26,18 +21,23 @@ export declare const actionSelectAll: {
26
21
  } | null;
27
22
  showWelcomeScreen: boolean;
28
23
  isLoading: boolean;
29
- errorMessage: import("react").ReactNode;
24
+ errorMessage: React.ReactNode;
30
25
  activeEmbeddable: {
31
26
  element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
32
- state: "active" | "hover";
27
+ state: "hover" | "active";
33
28
  } | null;
34
29
  newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
35
30
  resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
36
31
  multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
37
32
  selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
38
33
  isBindingEnabled: boolean;
34
+ bindingPreference: "enabled" | "disabled";
35
+ isMidpointSnappingEnabled: boolean;
39
36
  startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
40
- suggestedBinding: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
37
+ suggestedBinding: {
38
+ element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
39
+ midPoint?: import("@excalidraw/math").GlobalPoint;
40
+ } | null;
41
41
  frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
42
42
  frameRendering: {
43
43
  enabled: boolean;
@@ -65,19 +65,19 @@ export declare const actionSelectAll: {
65
65
  exportScale: number;
66
66
  currentItemStrokeColor: string;
67
67
  currentItemBackgroundColor: string;
68
- currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
68
+ currentItemFillStyle: ExcalidrawElement["fillStyle"];
69
69
  currentItemStrokeWidth: number;
70
- currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
70
+ currentItemStrokeStyle: ExcalidrawElement["strokeStyle"];
71
71
  currentItemRoughness: number;
72
72
  currentItemOpacity: number;
73
- currentItemFontFamily: number;
73
+ currentItemFontFamily: import("@excalidraw/element/types").FontFamilyValues;
74
74
  currentItemFontSize: number;
75
- currentItemTextAlign: string;
75
+ currentItemTextAlign: import("@excalidraw/element/types").TextAlign;
76
76
  currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
77
77
  currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
78
- currentHoveredFontFamily: number | null;
78
+ currentHoveredFontFamily: import("@excalidraw/element/types").FontFamilyValues | null;
79
79
  currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
80
- currentItemArrowType: "round" | "sharp" | "elbow";
80
+ currentItemArrowType: "sharp" | "round" | "elbow";
81
81
  viewBackgroundColor: string;
82
82
  scrollX: number;
83
83
  scrollY: number;
@@ -86,28 +86,30 @@ export declare const actionSelectAll: {
86
86
  name: string | null;
87
87
  isResizing: boolean;
88
88
  isRotating: boolean;
89
- zoom: Readonly<{
90
- value: import("../types").NormalizedZoomValue;
91
- }>;
89
+ zoom: import("../types").Zoom;
92
90
  openMenu: "canvas" | null;
93
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
91
+ openPopup: "canvasBackground" | "elementBackground" | "elementStroke" | "fontFamily" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
94
92
  openSidebar: {
95
- name: string;
96
- tab?: string | undefined;
93
+ name: import("../types").SidebarName;
94
+ tab?: import("../types").SidebarTabName;
97
95
  } | null;
98
- openDialog: {
96
+ openDialog: null | {
99
97
  name: "imageExport" | "help" | "jsonExport";
100
98
  } | {
101
99
  name: "ttd";
102
- tab: "mermaid" | "text-to-diagram";
100
+ tab: "text-to-diagram" | "mermaid";
103
101
  } | {
104
102
  name: "commandPalette";
105
103
  } | {
106
104
  name: "settings";
107
105
  } | {
108
106
  name: "elementLinkSelector";
109
- sourceElementId: string;
110
- } | null;
107
+ sourceElementId: ExcalidrawElement["id"];
108
+ } | {
109
+ name: "charts";
110
+ data: import("../charts").Spreadsheet;
111
+ rawText: string;
112
+ };
111
113
  defaultSidebarDockedPreference: boolean;
112
114
  lastPointerDownWith: import("@excalidraw/element/types").PointerType;
113
115
  hoveredElementIds: Readonly<{
@@ -120,8 +122,8 @@ export declare const actionSelectAll: {
120
122
  shouldCacheIgnoreZoom: boolean;
121
123
  toast: {
122
124
  message: string;
123
- closable?: boolean | undefined;
124
- duration?: number | undefined;
125
+ closable?: boolean;
126
+ duration?: number;
125
127
  } | null;
126
128
  zenModeEnabled: boolean;
127
129
  theme: import("@excalidraw/element/types").Theme;
@@ -134,38 +136,11 @@ export declare const actionSelectAll: {
134
136
  offsetTop: number;
135
137
  offsetLeft: number;
136
138
  fileHandle: import("browser-fs-access").FileSystemHandle | null;
137
- collaborators: Map<import("../types").SocketId, Readonly<{
138
- pointer?: import("../types").CollaboratorPointer | undefined;
139
- button?: "up" | "down" | undefined;
140
- selectedElementIds?: Readonly<{
141
- [id: string]: true;
142
- }> | undefined;
143
- username?: string | null | undefined;
144
- userState?: import("@excalidraw/common").UserIdleState | undefined;
145
- color?: {
146
- background: string;
147
- stroke: string;
148
- } | undefined;
149
- avatarUrl?: string | undefined;
150
- id?: string | undefined;
151
- socketId?: import("../types").SocketId | undefined;
152
- isCurrentUser?: boolean | undefined;
153
- isInCall?: boolean | undefined;
154
- isSpeaking?: boolean | undefined;
155
- isMuted?: boolean | undefined;
156
- }>>;
139
+ collaborators: Map<import("../types").SocketId, import("../types").Collaborator>;
157
140
  stats: {
158
141
  open: boolean;
159
142
  panels: number;
160
143
  };
161
- currentChartType: import("@excalidraw/element/types").ChartType;
162
- pasteDialog: {
163
- shown: false;
164
- data: null;
165
- } | {
166
- shown: true;
167
- data: import("../charts").Spreadsheet;
168
- };
169
144
  showHyperlinkPopup: false | "info" | "editor";
170
145
  snapLines: readonly import("../snapping").SnapLine[];
171
146
  originSnapOffset: {
@@ -176,9 +151,9 @@ export declare const actionSelectAll: {
176
151
  userToFollow: import("../types").UserToFollow | null;
177
152
  followedBy: Set<import("../types").SocketId>;
178
153
  isCropping: boolean;
179
- croppingElementId: string | null;
154
+ croppingElementId: ExcalidrawElement["id"] | null;
180
155
  searchMatches: Readonly<{
181
- focusedId: string | null;
156
+ focusedId: ExcalidrawElement["id"] | null;
182
157
  matches: readonly import("../types").SearchMatch[];
183
158
  }> | null;
184
159
  activeLockedId: string | null;