@excalidraw/common 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 (234) hide show
  1. package/dist/dev/index.js +1298 -296
  2. package/dist/dev/index.js.map +4 -4
  3. package/dist/prod/index.js +3 -3
  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 +18 -12
  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 +47 -39
  14. package/dist/types/element/src/Scene.d.ts +6 -4
  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 +7 -3
  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/element/src/zindex.d.ts +1 -1
  45. package/dist/types/excalidraw/actions/actionAddToLibrary.d.ts +138 -199
  46. package/dist/types/excalidraw/actions/actionAlign.d.ts +0 -1
  47. package/dist/types/excalidraw/actions/actionBoundText.d.ts +64 -105
  48. package/dist/types/excalidraw/actions/actionCanvas.d.ts +383 -618
  49. package/dist/types/excalidraw/actions/actionClipboard.d.ts +101 -142
  50. package/dist/types/excalidraw/actions/actionCropEditor.d.ts +31 -52
  51. package/dist/types/excalidraw/actions/actionDeleteSelected.d.ts +106 -169
  52. package/dist/types/excalidraw/actions/actionDistribute.d.ts +0 -1
  53. package/dist/types/excalidraw/actions/actionDuplicateSelection.d.ts +2 -3
  54. package/dist/types/excalidraw/actions/actionElementLink.d.ts +45 -70
  55. package/dist/types/excalidraw/actions/actionElementLock.d.ts +65 -106
  56. package/dist/types/excalidraw/actions/actionEmbeddable.d.ts +49 -70
  57. package/dist/types/excalidraw/actions/actionExport.d.ts +126 -211
  58. package/dist/types/excalidraw/actions/actionFinalize.d.ts +1 -2
  59. package/dist/types/excalidraw/actions/actionFlip.d.ts +0 -1
  60. package/dist/types/excalidraw/actions/actionFrame.d.ts +248 -365
  61. package/dist/types/excalidraw/actions/actionGroup.d.ts +68 -117
  62. package/dist/types/excalidraw/actions/actionLinearEditor.d.ts +161 -216
  63. package/dist/types/excalidraw/actions/actionLink.d.ts +51 -72
  64. package/dist/types/excalidraw/actions/actionMenu.d.ts +39 -64
  65. package/dist/types/excalidraw/actions/actionNavigate.d.ts +14 -17
  66. package/dist/types/excalidraw/actions/actionProperties.d.ts +79 -120
  67. package/dist/types/excalidraw/actions/actionSelectAll.d.ts +34 -59
  68. package/dist/types/excalidraw/actions/actionStyles.d.ts +30 -51
  69. package/dist/types/excalidraw/actions/actionTextAutoResize.d.ts +3 -3
  70. package/dist/types/excalidraw/actions/actionToggleArrowBinding.d.ts +172 -0
  71. package/dist/types/excalidraw/actions/actionToggleGridMode.d.ts +49 -70
  72. package/dist/types/excalidraw/actions/actionToggleMidpointSnapping.d.ts +172 -0
  73. package/dist/types/excalidraw/actions/actionToggleObjectsSnapMode.d.ts +49 -70
  74. package/dist/types/excalidraw/actions/actionToggleSearchMenu.d.ts +39 -64
  75. package/dist/types/excalidraw/actions/actionToggleStats.d.ts +48 -69
  76. package/dist/types/excalidraw/actions/actionToggleViewMode.d.ts +49 -70
  77. package/dist/types/excalidraw/actions/actionToggleZenMode.d.ts +49 -70
  78. package/dist/types/excalidraw/actions/actionZindex.d.ts +8 -9
  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 +20 -18
  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 +42 -43
  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 +7 -1
  233. package/dist/types/common/src/visualdebug.d.ts +0 -41
  234. package/dist/types/excalidraw/charts.d.ts +0 -27
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import type { ExcalidrawElement } from "@excalidraw/element/types";
3
2
  import type { AppClassProperties, AppState } from "../types";
4
3
  export declare const actionSelectAllElementsInFrame: {
@@ -18,18 +17,23 @@ export declare const actionSelectAllElementsInFrame: {
18
17
  } | null;
19
18
  showWelcomeScreen: boolean;
20
19
  isLoading: boolean;
21
- errorMessage: import("react").ReactNode;
20
+ errorMessage: React.ReactNode;
22
21
  activeEmbeddable: {
23
22
  element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
24
- state: "active" | "hover";
23
+ state: "hover" | "active";
25
24
  } | null;
26
25
  newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
27
26
  resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
28
27
  multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
29
28
  selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
30
29
  isBindingEnabled: boolean;
30
+ bindingPreference: "enabled" | "disabled";
31
+ isMidpointSnappingEnabled: boolean;
31
32
  startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
32
- suggestedBinding: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
33
+ suggestedBinding: {
34
+ element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
35
+ midPoint?: import("@excalidraw/math").GlobalPoint;
36
+ } | null;
33
37
  frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
34
38
  frameRendering: {
35
39
  enabled: boolean;
@@ -57,19 +61,19 @@ export declare const actionSelectAllElementsInFrame: {
57
61
  exportScale: number;
58
62
  currentItemStrokeColor: string;
59
63
  currentItemBackgroundColor: string;
60
- currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
64
+ currentItemFillStyle: ExcalidrawElement["fillStyle"];
61
65
  currentItemStrokeWidth: number;
62
- currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
66
+ currentItemStrokeStyle: ExcalidrawElement["strokeStyle"];
63
67
  currentItemRoughness: number;
64
68
  currentItemOpacity: number;
65
- currentItemFontFamily: number;
69
+ currentItemFontFamily: import("@excalidraw/element/types").FontFamilyValues;
66
70
  currentItemFontSize: number;
67
- currentItemTextAlign: string;
71
+ currentItemTextAlign: import("@excalidraw/element/types").TextAlign;
68
72
  currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
69
73
  currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
70
- currentHoveredFontFamily: number | null;
74
+ currentHoveredFontFamily: import("@excalidraw/element/types").FontFamilyValues | null;
71
75
  currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
72
- currentItemArrowType: "round" | "sharp" | "elbow";
76
+ currentItemArrowType: "sharp" | "round" | "elbow";
73
77
  viewBackgroundColor: string;
74
78
  scrollX: number;
75
79
  scrollY: number;
@@ -78,28 +82,30 @@ export declare const actionSelectAllElementsInFrame: {
78
82
  name: string | null;
79
83
  isResizing: boolean;
80
84
  isRotating: boolean;
81
- zoom: Readonly<{
82
- value: import("../types").NormalizedZoomValue;
83
- }>;
85
+ zoom: import("../types").Zoom;
84
86
  openMenu: "canvas" | null;
85
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
87
+ openPopup: "canvasBackground" | "elementBackground" | "elementStroke" | "fontFamily" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
86
88
  openSidebar: {
87
- name: string;
88
- tab?: string | undefined;
89
+ name: import("../types").SidebarName;
90
+ tab?: import("../types").SidebarTabName;
89
91
  } | null;
90
- openDialog: {
92
+ openDialog: null | {
91
93
  name: "imageExport" | "help" | "jsonExport";
92
94
  } | {
93
95
  name: "ttd";
94
- tab: "mermaid" | "text-to-diagram";
96
+ tab: "text-to-diagram" | "mermaid";
95
97
  } | {
96
98
  name: "commandPalette";
97
99
  } | {
98
100
  name: "settings";
99
101
  } | {
100
102
  name: "elementLinkSelector";
101
- sourceElementId: string;
102
- } | null;
103
+ sourceElementId: ExcalidrawElement["id"];
104
+ } | {
105
+ name: "charts";
106
+ data: import("../charts").Spreadsheet;
107
+ rawText: string;
108
+ };
103
109
  defaultSidebarDockedPreference: boolean;
104
110
  lastPointerDownWith: import("@excalidraw/element/types").PointerType;
105
111
  hoveredElementIds: Readonly<{
@@ -112,8 +118,8 @@ export declare const actionSelectAllElementsInFrame: {
112
118
  shouldCacheIgnoreZoom: boolean;
113
119
  toast: {
114
120
  message: string;
115
- closable?: boolean | undefined;
116
- duration?: number | undefined;
121
+ closable?: boolean;
122
+ duration?: number;
117
123
  } | null;
118
124
  zenModeEnabled: boolean;
119
125
  theme: import("@excalidraw/element/types").Theme;
@@ -124,44 +130,17 @@ export declare const actionSelectAllElementsInFrame: {
124
130
  selectedGroupIds: {
125
131
  [groupId: string]: boolean;
126
132
  };
127
- editingGroupId: string | null;
133
+ editingGroupId: import("@excalidraw/element/types").GroupId | null;
128
134
  width: number;
129
135
  height: number;
130
136
  offsetTop: number;
131
137
  offsetLeft: number;
132
138
  fileHandle: import("browser-fs-access").FileSystemHandle | null;
133
- collaborators: Map<import("../types").SocketId, Readonly<{
134
- pointer?: import("../types").CollaboratorPointer | undefined;
135
- button?: "up" | "down" | undefined;
136
- selectedElementIds?: Readonly<{
137
- [id: string]: true;
138
- }> | undefined;
139
- username?: string | null | undefined;
140
- userState?: import("@excalidraw/common").UserIdleState | undefined;
141
- color?: {
142
- background: string;
143
- stroke: string;
144
- } | undefined;
145
- avatarUrl?: string | undefined;
146
- id?: string | undefined;
147
- socketId?: import("../types").SocketId | undefined;
148
- isCurrentUser?: boolean | undefined;
149
- isInCall?: boolean | undefined;
150
- isSpeaking?: boolean | undefined;
151
- isMuted?: boolean | undefined;
152
- }>>;
139
+ collaborators: Map<import("../types").SocketId, import("../types").Collaborator>;
153
140
  stats: {
154
141
  open: boolean;
155
142
  panels: number;
156
143
  };
157
- currentChartType: import("@excalidraw/element/types").ChartType;
158
- pasteDialog: {
159
- shown: false;
160
- data: null;
161
- } | {
162
- shown: true;
163
- data: import("../charts").Spreadsheet;
164
- };
165
144
  showHyperlinkPopup: false | "info" | "editor";
166
145
  selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
167
146
  snapLines: readonly import("../snapping").SnapLine[];
@@ -173,9 +152,9 @@ export declare const actionSelectAllElementsInFrame: {
173
152
  userToFollow: import("../types").UserToFollow | null;
174
153
  followedBy: Set<import("../types").SocketId>;
175
154
  isCropping: boolean;
176
- croppingElementId: string | null;
155
+ croppingElementId: ExcalidrawElement["id"] | null;
177
156
  searchMatches: Readonly<{
178
- focusedId: string | null;
157
+ focusedId: ExcalidrawElement["id"] | null;
179
158
  matches: readonly import("../types").SearchMatch[];
180
159
  }> | null;
181
160
  activeLockedId: string | null;
@@ -213,18 +192,23 @@ export declare const actionRemoveAllElementsFromFrame: {
213
192
  } | null;
214
193
  showWelcomeScreen: boolean;
215
194
  isLoading: boolean;
216
- errorMessage: import("react").ReactNode;
195
+ errorMessage: React.ReactNode;
217
196
  activeEmbeddable: {
218
197
  element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
219
- state: "active" | "hover";
198
+ state: "hover" | "active";
220
199
  } | null;
221
200
  newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
222
201
  resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
223
202
  multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
224
203
  selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
225
204
  isBindingEnabled: boolean;
205
+ bindingPreference: "enabled" | "disabled";
206
+ isMidpointSnappingEnabled: boolean;
226
207
  startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
227
- suggestedBinding: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
208
+ suggestedBinding: {
209
+ element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
210
+ midPoint?: import("@excalidraw/math").GlobalPoint;
211
+ } | null;
228
212
  frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
229
213
  frameRendering: {
230
214
  enabled: boolean;
@@ -252,19 +236,19 @@ export declare const actionRemoveAllElementsFromFrame: {
252
236
  exportScale: number;
253
237
  currentItemStrokeColor: string;
254
238
  currentItemBackgroundColor: string;
255
- currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
239
+ currentItemFillStyle: ExcalidrawElement["fillStyle"];
256
240
  currentItemStrokeWidth: number;
257
- currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
241
+ currentItemStrokeStyle: ExcalidrawElement["strokeStyle"];
258
242
  currentItemRoughness: number;
259
243
  currentItemOpacity: number;
260
- currentItemFontFamily: number;
244
+ currentItemFontFamily: import("@excalidraw/element/types").FontFamilyValues;
261
245
  currentItemFontSize: number;
262
- currentItemTextAlign: string;
246
+ currentItemTextAlign: import("@excalidraw/element/types").TextAlign;
263
247
  currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
264
248
  currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
265
- currentHoveredFontFamily: number | null;
249
+ currentHoveredFontFamily: import("@excalidraw/element/types").FontFamilyValues | null;
266
250
  currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
267
- currentItemArrowType: "round" | "sharp" | "elbow";
251
+ currentItemArrowType: "sharp" | "round" | "elbow";
268
252
  viewBackgroundColor: string;
269
253
  scrollX: number;
270
254
  scrollY: number;
@@ -273,28 +257,30 @@ export declare const actionRemoveAllElementsFromFrame: {
273
257
  name: string | null;
274
258
  isResizing: boolean;
275
259
  isRotating: boolean;
276
- zoom: Readonly<{
277
- value: import("../types").NormalizedZoomValue;
278
- }>;
260
+ zoom: import("../types").Zoom;
279
261
  openMenu: "canvas" | null;
280
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
262
+ openPopup: "canvasBackground" | "elementBackground" | "elementStroke" | "fontFamily" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
281
263
  openSidebar: {
282
- name: string;
283
- tab?: string | undefined;
264
+ name: import("../types").SidebarName;
265
+ tab?: import("../types").SidebarTabName;
284
266
  } | null;
285
- openDialog: {
267
+ openDialog: null | {
286
268
  name: "imageExport" | "help" | "jsonExport";
287
269
  } | {
288
270
  name: "ttd";
289
- tab: "mermaid" | "text-to-diagram";
271
+ tab: "text-to-diagram" | "mermaid";
290
272
  } | {
291
273
  name: "commandPalette";
292
274
  } | {
293
275
  name: "settings";
294
276
  } | {
295
277
  name: "elementLinkSelector";
296
- sourceElementId: string;
297
- } | null;
278
+ sourceElementId: ExcalidrawElement["id"];
279
+ } | {
280
+ name: "charts";
281
+ data: import("../charts").Spreadsheet;
282
+ rawText: string;
283
+ };
298
284
  defaultSidebarDockedPreference: boolean;
299
285
  lastPointerDownWith: import("@excalidraw/element/types").PointerType;
300
286
  hoveredElementIds: Readonly<{
@@ -307,8 +293,8 @@ export declare const actionRemoveAllElementsFromFrame: {
307
293
  shouldCacheIgnoreZoom: boolean;
308
294
  toast: {
309
295
  message: string;
310
- closable?: boolean | undefined;
311
- duration?: number | undefined;
296
+ closable?: boolean;
297
+ duration?: number;
312
298
  } | null;
313
299
  zenModeEnabled: boolean;
314
300
  theme: import("@excalidraw/element/types").Theme;
@@ -319,44 +305,17 @@ export declare const actionRemoveAllElementsFromFrame: {
319
305
  selectedGroupIds: {
320
306
  [groupId: string]: boolean;
321
307
  };
322
- editingGroupId: string | null;
308
+ editingGroupId: import("@excalidraw/element/types").GroupId | null;
323
309
  width: number;
324
310
  height: number;
325
311
  offsetTop: number;
326
312
  offsetLeft: number;
327
313
  fileHandle: import("browser-fs-access").FileSystemHandle | null;
328
- collaborators: Map<import("../types").SocketId, Readonly<{
329
- pointer?: import("../types").CollaboratorPointer | undefined;
330
- button?: "up" | "down" | undefined;
331
- selectedElementIds?: Readonly<{
332
- [id: string]: true;
333
- }> | undefined;
334
- username?: string | null | undefined;
335
- userState?: import("@excalidraw/common").UserIdleState | undefined;
336
- color?: {
337
- background: string;
338
- stroke: string;
339
- } | undefined;
340
- avatarUrl?: string | undefined;
341
- id?: string | undefined;
342
- socketId?: import("../types").SocketId | undefined;
343
- isCurrentUser?: boolean | undefined;
344
- isInCall?: boolean | undefined;
345
- isSpeaking?: boolean | undefined;
346
- isMuted?: boolean | undefined;
347
- }>>;
314
+ collaborators: Map<import("../types").SocketId, import("../types").Collaborator>;
348
315
  stats: {
349
316
  open: boolean;
350
317
  panels: number;
351
318
  };
352
- currentChartType: import("@excalidraw/element/types").ChartType;
353
- pasteDialog: {
354
- shown: false;
355
- data: null;
356
- } | {
357
- shown: true;
358
- data: import("../charts").Spreadsheet;
359
- };
360
319
  showHyperlinkPopup: false | "info" | "editor";
361
320
  selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
362
321
  snapLines: readonly import("../snapping").SnapLine[];
@@ -368,9 +327,9 @@ export declare const actionRemoveAllElementsFromFrame: {
368
327
  userToFollow: import("../types").UserToFollow | null;
369
328
  followedBy: Set<import("../types").SocketId>;
370
329
  isCropping: boolean;
371
- croppingElementId: string | null;
330
+ croppingElementId: ExcalidrawElement["id"] | null;
372
331
  searchMatches: Readonly<{
373
- focusedId: string | null;
332
+ focusedId: ExcalidrawElement["id"] | null;
374
333
  matches: readonly import("../types").SearchMatch[];
375
334
  }> | null;
376
335
  activeLockedId: string | null;
@@ -412,18 +371,23 @@ export declare const actionupdateFrameRendering: {
412
371
  } | null;
413
372
  showWelcomeScreen: boolean;
414
373
  isLoading: boolean;
415
- errorMessage: import("react").ReactNode;
374
+ errorMessage: React.ReactNode;
416
375
  activeEmbeddable: {
417
376
  element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
418
- state: "active" | "hover";
377
+ state: "hover" | "active";
419
378
  } | null;
420
379
  newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
421
380
  resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
422
381
  multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
423
382
  selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
424
383
  isBindingEnabled: boolean;
384
+ bindingPreference: "enabled" | "disabled";
385
+ isMidpointSnappingEnabled: boolean;
425
386
  startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
426
- suggestedBinding: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
387
+ suggestedBinding: {
388
+ element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
389
+ midPoint?: import("@excalidraw/math").GlobalPoint;
390
+ } | null;
427
391
  frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
428
392
  editingFrame: string | null;
429
393
  elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
@@ -445,19 +409,19 @@ export declare const actionupdateFrameRendering: {
445
409
  exportScale: number;
446
410
  currentItemStrokeColor: string;
447
411
  currentItemBackgroundColor: string;
448
- currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
412
+ currentItemFillStyle: ExcalidrawElement["fillStyle"];
449
413
  currentItemStrokeWidth: number;
450
- currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
414
+ currentItemStrokeStyle: ExcalidrawElement["strokeStyle"];
451
415
  currentItemRoughness: number;
452
416
  currentItemOpacity: number;
453
- currentItemFontFamily: number;
417
+ currentItemFontFamily: import("@excalidraw/element/types").FontFamilyValues;
454
418
  currentItemFontSize: number;
455
- currentItemTextAlign: string;
419
+ currentItemTextAlign: import("@excalidraw/element/types").TextAlign;
456
420
  currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
457
421
  currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
458
- currentHoveredFontFamily: number | null;
422
+ currentHoveredFontFamily: import("@excalidraw/element/types").FontFamilyValues | null;
459
423
  currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
460
- currentItemArrowType: "round" | "sharp" | "elbow";
424
+ currentItemArrowType: "sharp" | "round" | "elbow";
461
425
  viewBackgroundColor: string;
462
426
  scrollX: number;
463
427
  scrollY: number;
@@ -466,28 +430,30 @@ export declare const actionupdateFrameRendering: {
466
430
  name: string | null;
467
431
  isResizing: boolean;
468
432
  isRotating: boolean;
469
- zoom: Readonly<{
470
- value: import("../types").NormalizedZoomValue;
471
- }>;
433
+ zoom: import("../types").Zoom;
472
434
  openMenu: "canvas" | null;
473
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
435
+ openPopup: "canvasBackground" | "elementBackground" | "elementStroke" | "fontFamily" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
474
436
  openSidebar: {
475
- name: string;
476
- tab?: string | undefined;
437
+ name: import("../types").SidebarName;
438
+ tab?: import("../types").SidebarTabName;
477
439
  } | null;
478
- openDialog: {
440
+ openDialog: null | {
479
441
  name: "imageExport" | "help" | "jsonExport";
480
442
  } | {
481
443
  name: "ttd";
482
- tab: "mermaid" | "text-to-diagram";
444
+ tab: "text-to-diagram" | "mermaid";
483
445
  } | {
484
446
  name: "commandPalette";
485
447
  } | {
486
448
  name: "settings";
487
449
  } | {
488
450
  name: "elementLinkSelector";
489
- sourceElementId: string;
490
- } | null;
451
+ sourceElementId: ExcalidrawElement["id"];
452
+ } | {
453
+ name: "charts";
454
+ data: import("../charts").Spreadsheet;
455
+ rawText: string;
456
+ };
491
457
  defaultSidebarDockedPreference: boolean;
492
458
  lastPointerDownWith: import("@excalidraw/element/types").PointerType;
493
459
  selectedElementIds: Readonly<{
@@ -503,8 +469,8 @@ export declare const actionupdateFrameRendering: {
503
469
  shouldCacheIgnoreZoom: boolean;
504
470
  toast: {
505
471
  message: string;
506
- closable?: boolean | undefined;
507
- duration?: number | undefined;
472
+ closable?: boolean;
473
+ duration?: number;
508
474
  } | null;
509
475
  zenModeEnabled: boolean;
510
476
  theme: import("@excalidraw/element/types").Theme;
@@ -515,44 +481,17 @@ export declare const actionupdateFrameRendering: {
515
481
  selectedGroupIds: {
516
482
  [groupId: string]: boolean;
517
483
  };
518
- editingGroupId: string | null;
484
+ editingGroupId: import("@excalidraw/element/types").GroupId | null;
519
485
  width: number;
520
486
  height: number;
521
487
  offsetTop: number;
522
488
  offsetLeft: number;
523
489
  fileHandle: import("browser-fs-access").FileSystemHandle | null;
524
- collaborators: Map<import("../types").SocketId, Readonly<{
525
- pointer?: import("../types").CollaboratorPointer | undefined;
526
- button?: "up" | "down" | undefined;
527
- selectedElementIds?: Readonly<{
528
- [id: string]: true;
529
- }> | undefined;
530
- username?: string | null | undefined;
531
- userState?: import("@excalidraw/common").UserIdleState | undefined;
532
- color?: {
533
- background: string;
534
- stroke: string;
535
- } | undefined;
536
- avatarUrl?: string | undefined;
537
- id?: string | undefined;
538
- socketId?: import("../types").SocketId | undefined;
539
- isCurrentUser?: boolean | undefined;
540
- isInCall?: boolean | undefined;
541
- isSpeaking?: boolean | undefined;
542
- isMuted?: boolean | undefined;
543
- }>>;
490
+ collaborators: Map<import("../types").SocketId, import("../types").Collaborator>;
544
491
  stats: {
545
492
  open: boolean;
546
493
  panels: number;
547
494
  };
548
- currentChartType: import("@excalidraw/element/types").ChartType;
549
- pasteDialog: {
550
- shown: false;
551
- data: null;
552
- } | {
553
- shown: true;
554
- data: import("../charts").Spreadsheet;
555
- };
556
495
  showHyperlinkPopup: false | "info" | "editor";
557
496
  selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
558
497
  snapLines: readonly import("../snapping").SnapLine[];
@@ -564,9 +503,9 @@ export declare const actionupdateFrameRendering: {
564
503
  userToFollow: import("../types").UserToFollow | null;
565
504
  followedBy: Set<import("../types").SocketId>;
566
505
  isCropping: boolean;
567
- croppingElementId: string | null;
506
+ croppingElementId: ExcalidrawElement["id"] | null;
568
507
  searchMatches: Readonly<{
569
- focusedId: string | null;
508
+ focusedId: ExcalidrawElement["id"] | null;
570
509
  matches: readonly import("../types").SearchMatch[];
571
510
  }> | null;
572
511
  activeLockedId: string | null;
@@ -604,18 +543,23 @@ export declare const actionSetFrameAsActiveTool: {
604
543
  } | null;
605
544
  showWelcomeScreen: boolean;
606
545
  isLoading: boolean;
607
- errorMessage: import("react").ReactNode;
546
+ errorMessage: React.ReactNode;
608
547
  activeEmbeddable: {
609
548
  element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
610
- state: "active" | "hover";
549
+ state: "hover" | "active";
611
550
  } | null;
612
551
  newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
613
552
  resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
614
553
  multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
615
554
  selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
616
555
  isBindingEnabled: boolean;
556
+ bindingPreference: "enabled" | "disabled";
557
+ isMidpointSnappingEnabled: boolean;
617
558
  startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
618
- suggestedBinding: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
559
+ suggestedBinding: {
560
+ element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
561
+ midPoint?: import("@excalidraw/math").GlobalPoint;
562
+ } | null;
619
563
  frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
620
564
  frameRendering: {
621
565
  enabled: boolean;
@@ -638,19 +582,19 @@ export declare const actionSetFrameAsActiveTool: {
638
582
  exportScale: number;
639
583
  currentItemStrokeColor: string;
640
584
  currentItemBackgroundColor: string;
641
- currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
585
+ currentItemFillStyle: ExcalidrawElement["fillStyle"];
642
586
  currentItemStrokeWidth: number;
643
- currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
587
+ currentItemStrokeStyle: ExcalidrawElement["strokeStyle"];
644
588
  currentItemRoughness: number;
645
589
  currentItemOpacity: number;
646
- currentItemFontFamily: number;
590
+ currentItemFontFamily: import("@excalidraw/element/types").FontFamilyValues;
647
591
  currentItemFontSize: number;
648
- currentItemTextAlign: string;
592
+ currentItemTextAlign: import("@excalidraw/element/types").TextAlign;
649
593
  currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
650
594
  currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
651
- currentHoveredFontFamily: number | null;
595
+ currentHoveredFontFamily: import("@excalidraw/element/types").FontFamilyValues | null;
652
596
  currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
653
- currentItemArrowType: "round" | "sharp" | "elbow";
597
+ currentItemArrowType: "sharp" | "round" | "elbow";
654
598
  viewBackgroundColor: string;
655
599
  scrollX: number;
656
600
  scrollY: number;
@@ -659,28 +603,30 @@ export declare const actionSetFrameAsActiveTool: {
659
603
  name: string | null;
660
604
  isResizing: boolean;
661
605
  isRotating: boolean;
662
- zoom: Readonly<{
663
- value: import("../types").NormalizedZoomValue;
664
- }>;
606
+ zoom: import("../types").Zoom;
665
607
  openMenu: "canvas" | null;
666
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
608
+ openPopup: "canvasBackground" | "elementBackground" | "elementStroke" | "fontFamily" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
667
609
  openSidebar: {
668
- name: string;
669
- tab?: string | undefined;
610
+ name: import("../types").SidebarName;
611
+ tab?: import("../types").SidebarTabName;
670
612
  } | null;
671
- openDialog: {
613
+ openDialog: null | {
672
614
  name: "imageExport" | "help" | "jsonExport";
673
615
  } | {
674
616
  name: "ttd";
675
- tab: "mermaid" | "text-to-diagram";
617
+ tab: "text-to-diagram" | "mermaid";
676
618
  } | {
677
619
  name: "commandPalette";
678
620
  } | {
679
621
  name: "settings";
680
622
  } | {
681
623
  name: "elementLinkSelector";
682
- sourceElementId: string;
683
- } | null;
624
+ sourceElementId: ExcalidrawElement["id"];
625
+ } | {
626
+ name: "charts";
627
+ data: import("../charts").Spreadsheet;
628
+ rawText: string;
629
+ };
684
630
  defaultSidebarDockedPreference: boolean;
685
631
  lastPointerDownWith: import("@excalidraw/element/types").PointerType;
686
632
  selectedElementIds: Readonly<{
@@ -696,8 +642,8 @@ export declare const actionSetFrameAsActiveTool: {
696
642
  shouldCacheIgnoreZoom: boolean;
697
643
  toast: {
698
644
  message: string;
699
- closable?: boolean | undefined;
700
- duration?: number | undefined;
645
+ closable?: boolean;
646
+ duration?: number;
701
647
  } | null;
702
648
  zenModeEnabled: boolean;
703
649
  theme: import("@excalidraw/element/types").Theme;
@@ -708,44 +654,17 @@ export declare const actionSetFrameAsActiveTool: {
708
654
  selectedGroupIds: {
709
655
  [groupId: string]: boolean;
710
656
  };
711
- editingGroupId: string | null;
657
+ editingGroupId: import("@excalidraw/element/types").GroupId | null;
712
658
  width: number;
713
659
  height: number;
714
660
  offsetTop: number;
715
661
  offsetLeft: number;
716
662
  fileHandle: import("browser-fs-access").FileSystemHandle | null;
717
- collaborators: Map<import("../types").SocketId, Readonly<{
718
- pointer?: import("../types").CollaboratorPointer | undefined;
719
- button?: "up" | "down" | undefined;
720
- selectedElementIds?: Readonly<{
721
- [id: string]: true;
722
- }> | undefined;
723
- username?: string | null | undefined;
724
- userState?: import("@excalidraw/common").UserIdleState | undefined;
725
- color?: {
726
- background: string;
727
- stroke: string;
728
- } | undefined;
729
- avatarUrl?: string | undefined;
730
- id?: string | undefined;
731
- socketId?: import("../types").SocketId | undefined;
732
- isCurrentUser?: boolean | undefined;
733
- isInCall?: boolean | undefined;
734
- isSpeaking?: boolean | undefined;
735
- isMuted?: boolean | undefined;
736
- }>>;
663
+ collaborators: Map<import("../types").SocketId, import("../types").Collaborator>;
737
664
  stats: {
738
665
  open: boolean;
739
666
  panels: number;
740
667
  };
741
- currentChartType: import("@excalidraw/element/types").ChartType;
742
- pasteDialog: {
743
- shown: false;
744
- data: null;
745
- } | {
746
- shown: true;
747
- data: import("../charts").Spreadsheet;
748
- };
749
668
  showHyperlinkPopup: false | "info" | "editor";
750
669
  selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
751
670
  snapLines: readonly import("../snapping").SnapLine[];
@@ -757,9 +676,9 @@ export declare const actionSetFrameAsActiveTool: {
757
676
  userToFollow: import("../types").UserToFollow | null;
758
677
  followedBy: Set<import("../types").SocketId>;
759
678
  isCropping: boolean;
760
- croppingElementId: string | null;
679
+ croppingElementId: ExcalidrawElement["id"] | null;
761
680
  searchMatches: Readonly<{
762
- focusedId: string | null;
681
+ focusedId: ExcalidrawElement["id"] | null;
763
682
  matches: readonly import("../types").SearchMatch[];
764
683
  }> | null;
765
684
  activeLockedId: string | null;
@@ -791,43 +710,34 @@ export declare const actionWrapSelectionInFrame: {
791
710
  fillStyle: import("@excalidraw/element/types").FillStyle;
792
711
  strokeWidth: number;
793
712
  strokeStyle: import("@excalidraw/element/types").StrokeStyle;
794
- roundness: {
713
+ roundness: null | {
795
714
  type: import("@excalidraw/element/types").RoundnessType;
796
- value?: number | undefined;
797
- } | null;
715
+ value?: number;
716
+ };
798
717
  roughness: number;
799
718
  opacity: number;
800
719
  width: number;
801
720
  height: number;
802
- angle: import("../../math/src").Radians;
721
+ angle: import("@excalidraw/math").Radians;
803
722
  seed: number;
804
723
  version: number;
805
724
  versionNonce: number;
806
725
  index: import("@excalidraw/element/types").FractionalIndex | null;
807
726
  isDeleted: boolean;
808
- groupIds: readonly string[];
727
+ groupIds: readonly import("@excalidraw/element/types").GroupId[];
809
728
  frameId: string | null;
810
- boundElements: readonly Readonly<{
811
- id: string;
812
- type: "text" | "arrow";
813
- }>[] | null;
729
+ boundElements: readonly import("@excalidraw/element/types").BoundElement[] | null;
814
730
  updated: number;
815
731
  link: string | null;
816
732
  locked: boolean;
817
- customData?: Record<string, any> | undefined;
733
+ customData?: Record<string, any>;
818
734
  }> & Readonly<{
819
- type: "text";
820
- fontSize: number;
821
- fontFamily: number;
822
- text: string;
823
- textAlign: string;
824
- verticalAlign: string;
825
- containerId: string | null;
826
- originalText: string;
827
- autoResize: boolean;
828
- lineHeight: number & {
829
- _brand: "unitlessLineHeight";
830
- };
735
+ type: "line" | "arrow";
736
+ points: readonly import("@excalidraw/math").LocalPoint[];
737
+ startBinding: import("@excalidraw/element/types").FixedPointBinding | null;
738
+ endBinding: import("@excalidraw/element/types").FixedPointBinding | null;
739
+ startArrowhead: import("@excalidraw/element/types").Arrowhead | null;
740
+ endArrowhead: import("@excalidraw/element/types").Arrowhead | null;
831
741
  }> & {
832
742
  index: import("@excalidraw/element/types").FractionalIndex;
833
743
  }) | (Readonly<{
@@ -839,32 +749,29 @@ export declare const actionWrapSelectionInFrame: {
839
749
  fillStyle: import("@excalidraw/element/types").FillStyle;
840
750
  strokeWidth: number;
841
751
  strokeStyle: import("@excalidraw/element/types").StrokeStyle;
842
- roundness: {
752
+ roundness: null | {
843
753
  type: import("@excalidraw/element/types").RoundnessType;
844
- value?: number | undefined;
845
- } | null;
754
+ value?: number;
755
+ };
846
756
  roughness: number;
847
757
  opacity: number;
848
758
  width: number;
849
759
  height: number;
850
- angle: import("../../math/src").Radians;
760
+ angle: import("@excalidraw/math").Radians;
851
761
  seed: number;
852
762
  version: number;
853
763
  versionNonce: number;
854
764
  index: import("@excalidraw/element/types").FractionalIndex | null;
855
765
  isDeleted: boolean;
856
- groupIds: readonly string[];
766
+ groupIds: readonly import("@excalidraw/element/types").GroupId[];
857
767
  frameId: string | null;
858
- boundElements: readonly Readonly<{
859
- id: string;
860
- type: "text" | "arrow";
861
- }>[] | null;
768
+ boundElements: readonly import("@excalidraw/element/types").BoundElement[] | null;
862
769
  updated: number;
863
770
  link: string | null;
864
771
  locked: boolean;
865
- customData?: Record<string, any> | undefined;
772
+ customData?: Record<string, any>;
866
773
  }> & {
867
- type: "rectangle";
774
+ type: "selection";
868
775
  } & {
869
776
  index: import("@excalidraw/element/types").FractionalIndex;
870
777
  }) | (Readonly<{
@@ -876,32 +783,29 @@ export declare const actionWrapSelectionInFrame: {
876
783
  fillStyle: import("@excalidraw/element/types").FillStyle;
877
784
  strokeWidth: number;
878
785
  strokeStyle: import("@excalidraw/element/types").StrokeStyle;
879
- roundness: {
786
+ roundness: null | {
880
787
  type: import("@excalidraw/element/types").RoundnessType;
881
- value?: number | undefined;
882
- } | null;
788
+ value?: number;
789
+ };
883
790
  roughness: number;
884
791
  opacity: number;
885
792
  width: number;
886
793
  height: number;
887
- angle: import("../../math/src").Radians;
794
+ angle: import("@excalidraw/math").Radians;
888
795
  seed: number;
889
796
  version: number;
890
797
  versionNonce: number;
891
798
  index: import("@excalidraw/element/types").FractionalIndex | null;
892
799
  isDeleted: boolean;
893
- groupIds: readonly string[];
800
+ groupIds: readonly import("@excalidraw/element/types").GroupId[];
894
801
  frameId: string | null;
895
- boundElements: readonly Readonly<{
896
- id: string;
897
- type: "text" | "arrow";
898
- }>[] | null;
802
+ boundElements: readonly import("@excalidraw/element/types").BoundElement[] | null;
899
803
  updated: number;
900
804
  link: string | null;
901
805
  locked: boolean;
902
- customData?: Record<string, any> | undefined;
806
+ customData?: Record<string, any>;
903
807
  }> & {
904
- type: "diamond";
808
+ type: "rectangle";
905
809
  } & {
906
810
  index: import("@excalidraw/element/types").FractionalIndex;
907
811
  }) | (Readonly<{
@@ -913,33 +817,29 @@ export declare const actionWrapSelectionInFrame: {
913
817
  fillStyle: import("@excalidraw/element/types").FillStyle;
914
818
  strokeWidth: number;
915
819
  strokeStyle: import("@excalidraw/element/types").StrokeStyle;
916
- roundness: {
820
+ roundness: null | {
917
821
  type: import("@excalidraw/element/types").RoundnessType;
918
- value?: number | undefined;
919
- } | null;
822
+ value?: number;
823
+ };
920
824
  roughness: number;
921
825
  opacity: number;
922
826
  width: number;
923
827
  height: number;
924
- angle: import("../../math/src").Radians;
828
+ angle: import("@excalidraw/math").Radians;
925
829
  seed: number;
926
830
  version: number;
927
831
  versionNonce: number;
928
832
  index: import("@excalidraw/element/types").FractionalIndex | null;
929
833
  isDeleted: boolean;
930
- groupIds: readonly string[];
834
+ groupIds: readonly import("@excalidraw/element/types").GroupId[];
931
835
  frameId: string | null;
932
- boundElements: readonly Readonly<{
933
- id: string;
934
- type: "text" | "arrow";
935
- }>[] | null;
836
+ boundElements: readonly import("@excalidraw/element/types").BoundElement[] | null;
936
837
  updated: number;
937
838
  link: string | null;
938
839
  locked: boolean;
939
- customData?: Record<string, any> | undefined;
840
+ customData?: Record<string, any>;
940
841
  }> & {
941
- type: "frame";
942
- name: string | null;
842
+ type: "diamond";
943
843
  } & {
944
844
  index: import("@excalidraw/element/types").FractionalIndex;
945
845
  }) | (Readonly<{
@@ -951,33 +851,29 @@ export declare const actionWrapSelectionInFrame: {
951
851
  fillStyle: import("@excalidraw/element/types").FillStyle;
952
852
  strokeWidth: number;
953
853
  strokeStyle: import("@excalidraw/element/types").StrokeStyle;
954
- roundness: {
854
+ roundness: null | {
955
855
  type: import("@excalidraw/element/types").RoundnessType;
956
- value?: number | undefined;
957
- } | null;
856
+ value?: number;
857
+ };
958
858
  roughness: number;
959
859
  opacity: number;
960
860
  width: number;
961
861
  height: number;
962
- angle: import("../../math/src").Radians;
862
+ angle: import("@excalidraw/math").Radians;
963
863
  seed: number;
964
864
  version: number;
965
865
  versionNonce: number;
966
866
  index: import("@excalidraw/element/types").FractionalIndex | null;
967
867
  isDeleted: boolean;
968
- groupIds: readonly string[];
868
+ groupIds: readonly import("@excalidraw/element/types").GroupId[];
969
869
  frameId: string | null;
970
- boundElements: readonly Readonly<{
971
- id: string;
972
- type: "text" | "arrow";
973
- }>[] | null;
870
+ boundElements: readonly import("@excalidraw/element/types").BoundElement[] | null;
974
871
  updated: number;
975
872
  link: string | null;
976
873
  locked: boolean;
977
- customData?: Record<string, any> | undefined;
874
+ customData?: Record<string, any>;
978
875
  }> & {
979
- type: "magicframe";
980
- name: string | null;
876
+ type: "ellipse";
981
877
  } & {
982
878
  index: import("@excalidraw/element/types").FractionalIndex;
983
879
  }) | (Readonly<{
@@ -989,30 +885,27 @@ export declare const actionWrapSelectionInFrame: {
989
885
  fillStyle: import("@excalidraw/element/types").FillStyle;
990
886
  strokeWidth: number;
991
887
  strokeStyle: import("@excalidraw/element/types").StrokeStyle;
992
- roundness: {
888
+ roundness: null | {
993
889
  type: import("@excalidraw/element/types").RoundnessType;
994
- value?: number | undefined;
995
- } | null;
890
+ value?: number;
891
+ };
996
892
  roughness: number;
997
893
  opacity: number;
998
894
  width: number;
999
895
  height: number;
1000
- angle: import("../../math/src").Radians;
896
+ angle: import("@excalidraw/math").Radians;
1001
897
  seed: number;
1002
898
  version: number;
1003
899
  versionNonce: number;
1004
900
  index: import("@excalidraw/element/types").FractionalIndex | null;
1005
901
  isDeleted: boolean;
1006
- groupIds: readonly string[];
902
+ groupIds: readonly import("@excalidraw/element/types").GroupId[];
1007
903
  frameId: string | null;
1008
- boundElements: readonly Readonly<{
1009
- id: string;
1010
- type: "text" | "arrow";
1011
- }>[] | null;
904
+ boundElements: readonly import("@excalidraw/element/types").BoundElement[] | null;
1012
905
  updated: number;
1013
906
  link: string | null;
1014
907
  locked: boolean;
1015
- customData?: Record<string, any> | undefined;
908
+ customData?: Record<string, any>;
1016
909
  }> & Readonly<{
1017
910
  type: "embeddable";
1018
911
  }> & {
@@ -1026,36 +919,32 @@ export declare const actionWrapSelectionInFrame: {
1026
919
  fillStyle: import("@excalidraw/element/types").FillStyle;
1027
920
  strokeWidth: number;
1028
921
  strokeStyle: import("@excalidraw/element/types").StrokeStyle;
1029
- roundness: {
922
+ roundness: null | {
1030
923
  type: import("@excalidraw/element/types").RoundnessType;
1031
- value?: number | undefined;
1032
- } | null;
924
+ value?: number;
925
+ };
1033
926
  roughness: number;
1034
927
  opacity: number;
1035
928
  width: number;
1036
929
  height: number;
1037
- angle: import("../../math/src").Radians;
930
+ angle: import("@excalidraw/math").Radians;
1038
931
  seed: number;
1039
932
  version: number;
1040
933
  versionNonce: number;
1041
934
  index: import("@excalidraw/element/types").FractionalIndex | null;
1042
935
  isDeleted: boolean;
1043
- groupIds: readonly string[];
936
+ groupIds: readonly import("@excalidraw/element/types").GroupId[];
1044
937
  frameId: string | null;
1045
- boundElements: readonly Readonly<{
1046
- id: string;
1047
- type: "text" | "arrow";
1048
- }>[] | null;
938
+ boundElements: readonly import("@excalidraw/element/types").BoundElement[] | null;
1049
939
  updated: number;
1050
940
  link: string | null;
1051
941
  locked: boolean;
1052
- customData?: Record<string, any> | undefined;
942
+ customData?: Record<string, any>;
1053
943
  }> & Readonly<{
1054
- type: "image";
1055
- fileId: import("@excalidraw/element/types").FileId | null;
1056
- status: "pending" | "saved" | "error";
1057
- scale: [number, number];
1058
- crop: import("@excalidraw/element/types").ImageCrop | null;
944
+ type: "iframe";
945
+ customData?: {
946
+ generationData?: import("@excalidraw/element/types").MagicGenerationData;
947
+ };
1059
948
  }> & {
1060
949
  index: import("@excalidraw/element/types").FractionalIndex;
1061
950
  }) | (Readonly<{
@@ -1067,35 +956,33 @@ export declare const actionWrapSelectionInFrame: {
1067
956
  fillStyle: import("@excalidraw/element/types").FillStyle;
1068
957
  strokeWidth: number;
1069
958
  strokeStyle: import("@excalidraw/element/types").StrokeStyle;
1070
- roundness: {
959
+ roundness: null | {
1071
960
  type: import("@excalidraw/element/types").RoundnessType;
1072
- value?: number | undefined;
1073
- } | null;
961
+ value?: number;
962
+ };
1074
963
  roughness: number;
1075
964
  opacity: number;
1076
965
  width: number;
1077
966
  height: number;
1078
- angle: import("../../math/src").Radians;
967
+ angle: import("@excalidraw/math").Radians;
1079
968
  seed: number;
1080
969
  version: number;
1081
970
  versionNonce: number;
1082
971
  index: import("@excalidraw/element/types").FractionalIndex | null;
1083
972
  isDeleted: boolean;
1084
- groupIds: readonly string[];
973
+ groupIds: readonly import("@excalidraw/element/types").GroupId[];
1085
974
  frameId: string | null;
1086
- boundElements: readonly Readonly<{
1087
- id: string;
1088
- type: "text" | "arrow";
1089
- }>[] | null;
975
+ boundElements: readonly import("@excalidraw/element/types").BoundElement[] | null;
1090
976
  updated: number;
1091
977
  link: string | null;
1092
978
  locked: boolean;
1093
- customData?: Record<string, any> | undefined;
979
+ customData?: Record<string, any>;
1094
980
  }> & Readonly<{
1095
- type: "iframe";
1096
- customData?: {
1097
- generationData?: import("@excalidraw/element/types").MagicGenerationData | undefined;
1098
- } | undefined;
981
+ type: "image";
982
+ fileId: import("@excalidraw/element/types").FileId | null;
983
+ status: "pending" | "saved" | "error";
984
+ scale: [number, number];
985
+ crop: import("@excalidraw/element/types").ImageCrop | null;
1099
986
  }> & {
1100
987
  index: import("@excalidraw/element/types").FractionalIndex;
1101
988
  }) | (Readonly<{
@@ -1107,32 +994,30 @@ export declare const actionWrapSelectionInFrame: {
1107
994
  fillStyle: import("@excalidraw/element/types").FillStyle;
1108
995
  strokeWidth: number;
1109
996
  strokeStyle: import("@excalidraw/element/types").StrokeStyle;
1110
- roundness: {
997
+ roundness: null | {
1111
998
  type: import("@excalidraw/element/types").RoundnessType;
1112
- value?: number | undefined;
1113
- } | null;
999
+ value?: number;
1000
+ };
1114
1001
  roughness: number;
1115
1002
  opacity: number;
1116
1003
  width: number;
1117
1004
  height: number;
1118
- angle: import("../../math/src").Radians;
1005
+ angle: import("@excalidraw/math").Radians;
1119
1006
  seed: number;
1120
1007
  version: number;
1121
1008
  versionNonce: number;
1122
1009
  index: import("@excalidraw/element/types").FractionalIndex | null;
1123
1010
  isDeleted: boolean;
1124
- groupIds: readonly string[];
1011
+ groupIds: readonly import("@excalidraw/element/types").GroupId[];
1125
1012
  frameId: string | null;
1126
- boundElements: readonly Readonly<{
1127
- id: string;
1128
- type: "text" | "arrow";
1129
- }>[] | null;
1013
+ boundElements: readonly import("@excalidraw/element/types").BoundElement[] | null;
1130
1014
  updated: number;
1131
1015
  link: string | null;
1132
1016
  locked: boolean;
1133
- customData?: Record<string, any> | undefined;
1017
+ customData?: Record<string, any>;
1134
1018
  }> & {
1135
- type: "selection";
1019
+ type: "frame";
1020
+ name: string | null;
1136
1021
  } & {
1137
1022
  index: import("@excalidraw/element/types").FractionalIndex;
1138
1023
  }) | (Readonly<{
@@ -1144,32 +1029,30 @@ export declare const actionWrapSelectionInFrame: {
1144
1029
  fillStyle: import("@excalidraw/element/types").FillStyle;
1145
1030
  strokeWidth: number;
1146
1031
  strokeStyle: import("@excalidraw/element/types").StrokeStyle;
1147
- roundness: {
1032
+ roundness: null | {
1148
1033
  type: import("@excalidraw/element/types").RoundnessType;
1149
- value?: number | undefined;
1150
- } | null;
1034
+ value?: number;
1035
+ };
1151
1036
  roughness: number;
1152
1037
  opacity: number;
1153
1038
  width: number;
1154
1039
  height: number;
1155
- angle: import("../../math/src").Radians;
1040
+ angle: import("@excalidraw/math").Radians;
1156
1041
  seed: number;
1157
1042
  version: number;
1158
1043
  versionNonce: number;
1159
1044
  index: import("@excalidraw/element/types").FractionalIndex | null;
1160
1045
  isDeleted: boolean;
1161
- groupIds: readonly string[];
1046
+ groupIds: readonly import("@excalidraw/element/types").GroupId[];
1162
1047
  frameId: string | null;
1163
- boundElements: readonly Readonly<{
1164
- id: string;
1165
- type: "text" | "arrow";
1166
- }>[] | null;
1048
+ boundElements: readonly import("@excalidraw/element/types").BoundElement[] | null;
1167
1049
  updated: number;
1168
1050
  link: string | null;
1169
1051
  locked: boolean;
1170
- customData?: Record<string, any> | undefined;
1052
+ customData?: Record<string, any>;
1171
1053
  }> & {
1172
- type: "ellipse";
1054
+ type: "magicframe";
1055
+ name: string | null;
1173
1056
  } & {
1174
1057
  index: import("@excalidraw/element/types").FractionalIndex;
1175
1058
  }) | (Readonly<{
@@ -1181,37 +1064,40 @@ export declare const actionWrapSelectionInFrame: {
1181
1064
  fillStyle: import("@excalidraw/element/types").FillStyle;
1182
1065
  strokeWidth: number;
1183
1066
  strokeStyle: import("@excalidraw/element/types").StrokeStyle;
1184
- roundness: {
1067
+ roundness: null | {
1185
1068
  type: import("@excalidraw/element/types").RoundnessType;
1186
- value?: number | undefined;
1187
- } | null;
1069
+ value?: number;
1070
+ };
1188
1071
  roughness: number;
1189
1072
  opacity: number;
1190
1073
  width: number;
1191
1074
  height: number;
1192
- angle: import("../../math/src").Radians;
1075
+ angle: import("@excalidraw/math").Radians;
1193
1076
  seed: number;
1194
1077
  version: number;
1195
1078
  versionNonce: number;
1196
1079
  index: import("@excalidraw/element/types").FractionalIndex | null;
1197
1080
  isDeleted: boolean;
1198
- groupIds: readonly string[];
1081
+ groupIds: readonly import("@excalidraw/element/types").GroupId[];
1199
1082
  frameId: string | null;
1200
- boundElements: readonly Readonly<{
1201
- id: string;
1202
- type: "text" | "arrow";
1203
- }>[] | null;
1083
+ boundElements: readonly import("@excalidraw/element/types").BoundElement[] | null;
1204
1084
  updated: number;
1205
1085
  link: string | null;
1206
1086
  locked: boolean;
1207
- customData?: Record<string, any> | undefined;
1087
+ customData?: Record<string, any>;
1208
1088
  }> & Readonly<{
1209
- type: "line" | "arrow";
1210
- points: readonly import("../../math/src").LocalPoint[];
1211
- startBinding: import("@excalidraw/element/types").FixedPointBinding | null;
1212
- endBinding: import("@excalidraw/element/types").FixedPointBinding | null;
1213
- startArrowhead: import("@excalidraw/element/types").Arrowhead | null;
1214
- endArrowhead: import("@excalidraw/element/types").Arrowhead | null;
1089
+ type: "text";
1090
+ fontSize: number;
1091
+ fontFamily: import("@excalidraw/element/types").FontFamilyValues;
1092
+ text: string;
1093
+ textAlign: import("@excalidraw/element/types").TextAlign;
1094
+ verticalAlign: import("@excalidraw/element/types").VerticalAlign;
1095
+ containerId: import("@excalidraw/element/types").ExcalidrawGenericElement["id"] | null;
1096
+ originalText: string;
1097
+ autoResize: boolean;
1098
+ lineHeight: number & {
1099
+ _brand: "unitlessLineHeight";
1100
+ };
1215
1101
  }> & {
1216
1102
  index: import("@excalidraw/element/types").FractionalIndex;
1217
1103
  }) | (Readonly<{
@@ -1223,33 +1109,30 @@ export declare const actionWrapSelectionInFrame: {
1223
1109
  fillStyle: import("@excalidraw/element/types").FillStyle;
1224
1110
  strokeWidth: number;
1225
1111
  strokeStyle: import("@excalidraw/element/types").StrokeStyle;
1226
- roundness: {
1112
+ roundness: null | {
1227
1113
  type: import("@excalidraw/element/types").RoundnessType;
1228
- value?: number | undefined;
1229
- } | null;
1114
+ value?: number;
1115
+ };
1230
1116
  roughness: number;
1231
1117
  opacity: number;
1232
1118
  width: number;
1233
1119
  height: number;
1234
- angle: import("../../math/src").Radians;
1120
+ angle: import("@excalidraw/math").Radians;
1235
1121
  seed: number;
1236
1122
  version: number;
1237
1123
  versionNonce: number;
1238
1124
  index: import("@excalidraw/element/types").FractionalIndex | null;
1239
1125
  isDeleted: boolean;
1240
- groupIds: readonly string[];
1126
+ groupIds: readonly import("@excalidraw/element/types").GroupId[];
1241
1127
  frameId: string | null;
1242
- boundElements: readonly Readonly<{
1243
- id: string;
1244
- type: "text" | "arrow";
1245
- }>[] | null;
1128
+ boundElements: readonly import("@excalidraw/element/types").BoundElement[] | null;
1246
1129
  updated: number;
1247
1130
  link: string | null;
1248
1131
  locked: boolean;
1249
- customData?: Record<string, any> | undefined;
1132
+ customData?: Record<string, any>;
1250
1133
  }> & Readonly<{
1251
1134
  type: "freedraw";
1252
- points: readonly import("../../math/src").LocalPoint[];
1135
+ points: readonly import("@excalidraw/math").LocalPoint[];
1253
1136
  pressures: readonly number[];
1254
1137
  simulatePressure: boolean;
1255
1138
  }> & {