@excalidraw/common 0.18.0-d1f3982 → 0.18.0-d9e8a33

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 (254) hide show
  1. package/dist/dev/index.js +1483 -216
  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/appEventBus.d.ts +27 -0
  6. package/dist/types/common/src/bounds.d.ts +10 -0
  7. package/dist/types/common/src/colors.d.ts +59 -39
  8. package/dist/types/common/src/constants.d.ts +20 -12
  9. package/dist/types/common/src/editorInterface.d.ts +1 -1
  10. package/dist/types/common/src/font-metadata.d.ts +1 -3
  11. package/dist/types/common/src/index.d.ts +4 -0
  12. package/dist/types/common/src/keys.d.ts +1 -1
  13. package/dist/types/common/src/utility-types.d.ts +0 -1
  14. package/dist/types/common/src/utils.d.ts +52 -41
  15. package/dist/types/common/src/versionedSnapshotStore.d.ts +17 -0
  16. package/dist/types/element/src/Scene.d.ts +6 -4
  17. package/dist/types/element/src/arrowheads.d.ts +3 -0
  18. package/dist/types/element/src/arrows/focus.d.ts +27 -0
  19. package/dist/types/element/src/arrows/helpers.d.ts +5 -0
  20. package/dist/types/element/src/binding.d.ts +67 -48
  21. package/dist/types/element/src/bounds.d.ts +7 -13
  22. package/dist/types/element/src/collision.d.ts +7 -2
  23. package/dist/types/element/src/comparisons.d.ts +7 -7
  24. package/dist/types/element/src/distribute.d.ts +2 -1
  25. package/dist/types/element/src/dragElements.d.ts +3 -3
  26. package/dist/types/element/src/duplicate.d.ts +3 -3
  27. package/dist/types/element/src/elbowArrow.d.ts +2 -0
  28. package/dist/types/element/src/fractionalIndex.d.ts +2 -2
  29. package/dist/types/element/src/frame.d.ts +8 -4
  30. package/dist/types/element/src/heading.d.ts +2 -1
  31. package/dist/types/element/src/image.d.ts +1 -11
  32. package/dist/types/element/src/index.d.ts +4 -3
  33. package/dist/types/element/src/linearElementEditor.d.ts +23 -22
  34. package/dist/types/element/src/mutateElement.d.ts +5 -1
  35. package/dist/types/element/src/newElement.d.ts +6 -6
  36. package/dist/types/element/src/renderElement.d.ts +1 -7
  37. package/dist/types/element/src/resizeElements.d.ts +10 -10
  38. package/dist/types/element/src/resizeTest.d.ts +1 -1
  39. package/dist/types/element/src/selection.d.ts +10 -10
  40. package/dist/types/element/src/shape.d.ts +9 -8
  41. package/dist/types/element/src/textElement.d.ts +1 -1
  42. package/dist/types/element/src/textMeasurements.d.ts +1 -3
  43. package/dist/types/element/src/textWrapping.d.ts +26 -0
  44. package/dist/types/{excalidraw/data → element/src}/transform.d.ts +3 -3
  45. package/dist/types/element/src/transformHandles.d.ts +3 -23
  46. package/dist/types/element/src/typeChecks.d.ts +4 -7
  47. package/dist/types/element/src/types.d.ts +12 -13
  48. package/dist/types/element/src/utils.d.ts +9 -4
  49. package/dist/types/element/src/zindex.d.ts +7 -1
  50. package/dist/types/excalidraw/actions/actionAddToLibrary.d.ts +152 -201
  51. package/dist/types/excalidraw/actions/actionAlign.d.ts +6 -7
  52. package/dist/types/excalidraw/actions/actionBoundText.d.ts +82 -115
  53. package/dist/types/excalidraw/actions/actionCanvas.d.ts +518 -903
  54. package/dist/types/excalidraw/actions/actionClipboard.d.ts +113 -903
  55. package/dist/types/excalidraw/actions/actionCropEditor.d.ts +39 -56
  56. package/dist/types/excalidraw/actions/actionDeleteSelected.d.ts +132 -185
  57. package/dist/types/excalidraw/actions/actionDeselect.d.ts +160 -0
  58. package/dist/types/excalidraw/actions/actionDistribute.d.ts +2 -3
  59. package/dist/types/excalidraw/actions/actionDuplicateSelection.d.ts +2 -3
  60. package/dist/types/excalidraw/actions/actionElementLink.d.ts +48 -71
  61. package/dist/types/excalidraw/actions/actionElementLock.d.ts +80 -113
  62. package/dist/types/excalidraw/actions/actionEmbeddable.d.ts +54 -71
  63. package/dist/types/excalidraw/actions/actionExport.d.ts +162 -1428
  64. package/dist/types/excalidraw/actions/actionFinalize.d.ts +10 -402
  65. package/dist/types/excalidraw/actions/actionFlip.d.ts +2 -3
  66. package/dist/types/excalidraw/actions/actionFrame.d.ts +280 -383
  67. package/dist/types/excalidraw/actions/actionGroup.d.ts +85 -126
  68. package/dist/types/excalidraw/actions/actionLinearEditor.d.ts +173 -228
  69. package/dist/types/excalidraw/actions/actionLink.d.ts +56 -73
  70. package/dist/types/excalidraw/actions/actionMenu.d.ts +42 -65
  71. package/dist/types/excalidraw/actions/actionNavigate.d.ts +18 -367
  72. package/dist/types/excalidraw/actions/actionProperties.d.ts +142 -2566
  73. package/dist/types/excalidraw/actions/actionSelectAll.d.ts +42 -63
  74. package/dist/types/excalidraw/actions/actionStyles.d.ts +39 -55
  75. package/dist/types/excalidraw/actions/actionTextAutoResize.d.ts +4 -4
  76. package/dist/types/excalidraw/actions/actionToggleArrowBinding.d.ts +173 -0
  77. package/dist/types/excalidraw/actions/actionToggleGridMode.d.ts +54 -71
  78. package/dist/types/excalidraw/actions/actionToggleMidpointSnapping.d.ts +173 -0
  79. package/dist/types/excalidraw/actions/actionToggleObjectsSnapMode.d.ts +54 -71
  80. package/dist/types/excalidraw/actions/actionToggleSearchMenu.d.ts +42 -65
  81. package/dist/types/excalidraw/actions/actionToggleShapeSwitch.d.ts +1 -1
  82. package/dist/types/excalidraw/actions/actionToggleStats.d.ts +53 -70
  83. package/dist/types/excalidraw/actions/actionToggleViewMode.d.ts +54 -71
  84. package/dist/types/excalidraw/actions/actionToggleZenMode.d.ts +54 -71
  85. package/dist/types/excalidraw/actions/actionZindex.d.ts +8 -9
  86. package/dist/types/excalidraw/actions/index.d.ts +3 -0
  87. package/dist/types/excalidraw/actions/register.d.ts +2 -2
  88. package/dist/types/excalidraw/actions/shortcuts.d.ts +1 -1
  89. package/dist/types/excalidraw/actions/types.d.ts +4 -4
  90. package/dist/types/excalidraw/appState.d.ts +38 -34
  91. package/dist/types/excalidraw/charts/charts.bar.d.ts +2 -0
  92. package/dist/types/excalidraw/charts/charts.constants.d.ts +48 -0
  93. package/dist/types/excalidraw/charts/charts.helpers.d.ts +32 -0
  94. package/dist/types/excalidraw/charts/charts.line.d.ts +2 -0
  95. package/dist/types/excalidraw/charts/charts.parse.d.ts +10 -0
  96. package/dist/types/excalidraw/charts/charts.radar.d.ts +2 -0
  97. package/dist/types/excalidraw/charts/charts.types.d.ts +18 -0
  98. package/dist/types/excalidraw/charts/index.d.ts +7 -0
  99. package/dist/types/excalidraw/clipboard.d.ts +15 -40
  100. package/dist/types/excalidraw/components/Actions.d.ts +5 -2
  101. package/dist/types/excalidraw/components/App.d.ts +92 -55
  102. package/dist/types/excalidraw/components/AppStateObserver.d.ts +37 -0
  103. package/dist/types/excalidraw/components/Card.d.ts +1 -3
  104. package/dist/types/excalidraw/components/ColorPicker/ColorInput.d.ts +2 -4
  105. package/dist/types/excalidraw/components/ColorPicker/ColorPicker.d.ts +0 -1
  106. package/dist/types/excalidraw/components/ColorPicker/colorPickerUtils.d.ts +0 -1
  107. package/dist/types/excalidraw/components/ColorPicker/keyboardNavHandlers.d.ts +0 -1
  108. package/dist/types/excalidraw/components/CommandPalette/types.d.ts +2 -4
  109. package/dist/types/excalidraw/components/ConvertElementTypePopup.d.ts +2 -2
  110. package/dist/types/excalidraw/components/DarkModeToggle.d.ts +1 -1
  111. package/dist/types/excalidraw/components/DefaultSidebar.d.ts +9 -13
  112. package/dist/types/excalidraw/components/ElementLinkDialog.d.ts +1 -1
  113. package/dist/types/excalidraw/components/Ellipsify.d.ts +1 -2
  114. package/dist/types/excalidraw/components/ErrorDialog.d.ts +1 -1
  115. package/dist/types/excalidraw/components/EyeDropper.d.ts +0 -1
  116. package/dist/types/excalidraw/components/FilledButton.d.ts +2 -1
  117. package/dist/types/excalidraw/components/FontPicker/keyboardNavHandlers.d.ts +0 -1
  118. package/dist/types/excalidraw/components/HelpDialog.d.ts +1 -1
  119. package/dist/types/excalidraw/components/IconPicker.d.ts +14 -9
  120. package/dist/types/excalidraw/components/InlineIcon.d.ts +2 -2
  121. package/dist/types/excalidraw/components/LibraryMenuControlButtons.d.ts +1 -1
  122. package/dist/types/excalidraw/components/LibraryMenuHeaderContent.d.ts +1 -2
  123. package/dist/types/excalidraw/components/LibraryUnit.d.ts +2 -3
  124. package/dist/types/excalidraw/components/LoadingMessage.d.ts +0 -1
  125. package/dist/types/excalidraw/components/MobileMenu.d.ts +1 -1
  126. package/dist/types/excalidraw/components/MobileToolBar.d.ts +0 -1
  127. package/dist/types/excalidraw/components/Modal.d.ts +0 -1
  128. package/dist/types/excalidraw/components/OverwriteConfirm/OverwriteConfirm.d.ts +1 -1
  129. package/dist/types/excalidraw/components/PasteChartDialog.d.ts +4 -5
  130. package/dist/types/excalidraw/components/PropertiesPopover.d.ts +1 -1
  131. package/dist/types/excalidraw/components/RadioGroup.d.ts +0 -1
  132. package/dist/types/excalidraw/components/RadioSelection.d.ts +4 -4
  133. package/dist/types/excalidraw/components/Range.d.ts +10 -4
  134. package/dist/types/excalidraw/components/ScrollableList.d.ts +0 -1
  135. package/dist/types/excalidraw/components/Sidebar/Sidebar.d.ts +15 -21
  136. package/dist/types/excalidraw/components/Sidebar/SidebarHeader.d.ts +1 -1
  137. package/dist/types/excalidraw/components/Sidebar/SidebarTab.d.ts +1 -2
  138. package/dist/types/excalidraw/components/Sidebar/SidebarTabTrigger.d.ts +1 -2
  139. package/dist/types/excalidraw/components/Sidebar/SidebarTabTriggers.d.ts +1 -2
  140. package/dist/types/excalidraw/components/Sidebar/SidebarTabs.d.ts +1 -2
  141. package/dist/types/excalidraw/components/Spinner.d.ts +4 -4
  142. package/dist/types/excalidraw/components/Stats/CanvasGrid.d.ts +0 -1
  143. package/dist/types/excalidraw/components/Stats/Collapsible.d.ts +0 -1
  144. package/dist/types/excalidraw/components/Stats/DragInput.d.ts +0 -1
  145. package/dist/types/excalidraw/components/Stats/index.d.ts +7 -8
  146. package/dist/types/excalidraw/components/Stats/utils.d.ts +1 -1
  147. package/dist/types/excalidraw/components/TTDDialog/Chat/ChatHistoryMenu.d.ts +15 -0
  148. package/dist/types/excalidraw/components/TTDDialog/Chat/ChatInterface.d.ts +23 -0
  149. package/dist/types/excalidraw/components/TTDDialog/Chat/ChatMessage.d.ts +14 -0
  150. package/dist/types/excalidraw/components/TTDDialog/Chat/TTDChatPanel.d.ts +27 -0
  151. package/dist/types/excalidraw/components/TTDDialog/Chat/index.d.ts +3 -0
  152. package/dist/types/excalidraw/components/TTDDialog/Chat/useChatAgent.d.ts +8 -0
  153. package/dist/types/excalidraw/components/TTDDialog/CodeMirrorEditor.d.ts +11 -0
  154. package/dist/types/excalidraw/components/TTDDialog/MermaidToExcalidraw.d.ts +3 -2
  155. package/dist/types/excalidraw/components/TTDDialog/TTDContext.d.ts +13 -0
  156. package/dist/types/excalidraw/components/TTDDialog/TTDDialog.d.ts +12 -29
  157. package/dist/types/excalidraw/components/TTDDialog/TTDDialogInput.d.ts +3 -3
  158. package/dist/types/excalidraw/components/TTDDialog/TTDDialogOutput.d.ts +5 -2
  159. package/dist/types/excalidraw/components/TTDDialog/TTDDialogPanel.d.ts +13 -9
  160. package/dist/types/excalidraw/components/TTDDialog/TTDDialogTab.d.ts +1 -2
  161. package/dist/types/excalidraw/components/TTDDialog/TTDDialogTabTrigger.d.ts +1 -2
  162. package/dist/types/excalidraw/components/TTDDialog/TTDDialogTabTriggers.d.ts +1 -2
  163. package/dist/types/excalidraw/components/TTDDialog/TTDPreviewPanel.d.ts +9 -0
  164. package/dist/types/excalidraw/components/TTDDialog/TTDWelcomeMessage.d.ts +1 -0
  165. package/dist/types/excalidraw/components/TTDDialog/TextToDiagram.d.ts +9 -0
  166. package/dist/types/excalidraw/components/TTDDialog/common.d.ts +16 -16
  167. package/dist/types/excalidraw/components/TTDDialog/hooks/useChatManagement.d.ts +13 -0
  168. package/dist/types/excalidraw/components/TTDDialog/hooks/useMermaidRenderer.d.ts +14 -0
  169. package/dist/types/excalidraw/components/TTDDialog/hooks/useTextGeneration.d.ts +7 -0
  170. package/dist/types/excalidraw/components/TTDDialog/mermaid-lang-lite.d.ts +2 -0
  171. package/dist/types/excalidraw/components/TTDDialog/types.d.ts +95 -0
  172. package/dist/types/excalidraw/components/TTDDialog/useTTDChatStorage.d.ts +22 -0
  173. package/dist/types/excalidraw/components/TTDDialog/utils/chat.d.ts +10 -0
  174. package/dist/types/excalidraw/components/TTDDialog/utils/mermaidAutoFix.d.ts +1 -0
  175. package/dist/types/excalidraw/components/TTDDialog/utils/mermaidError.d.ts +10 -0
  176. package/dist/types/excalidraw/components/TTDDialog/utils/mermaidValidation.d.ts +1 -0
  177. package/dist/types/excalidraw/components/Toast.d.ts +11 -7
  178. package/dist/types/excalidraw/components/Trans.d.ts +2 -2
  179. package/dist/types/excalidraw/components/canvases/InteractiveCanvas.d.ts +5 -2
  180. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenu.d.ts +48 -38
  181. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuContent.d.ts +7 -6
  182. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuGroup.d.ts +3 -3
  183. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuItem.d.ts +13 -22
  184. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuItemCheckbox.d.ts +5 -0
  185. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuItemContent.d.ts +5 -4
  186. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuItemContentRadio.d.ts +2 -2
  187. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuItemCustom.d.ts +2 -2
  188. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuItemLink.d.ts +6 -6
  189. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuSub.d.ts +23 -0
  190. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuSubContent.d.ts +8 -0
  191. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuSubTrigger.d.ts +12 -0
  192. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuTrigger.d.ts +3 -4
  193. package/dist/types/excalidraw/components/dropdownMenu/common.d.ts +2 -2
  194. package/dist/types/excalidraw/components/dropdownMenu/dropdownMenuUtils.d.ts +2 -0
  195. package/dist/types/excalidraw/components/hoc/withInternalFallback.d.ts +1 -1
  196. package/dist/types/excalidraw/components/hyperlink/helpers.d.ts +1 -1
  197. package/dist/types/excalidraw/components/icons.d.ts +44 -21
  198. package/dist/types/excalidraw/components/main-menu/DefaultItems.d.ts +20 -2
  199. package/dist/types/excalidraw/components/main-menu/MainMenu.d.ts +39 -32
  200. package/dist/types/excalidraw/components/shapes.d.ts +74 -1
  201. package/dist/types/excalidraw/data/blob.d.ts +328 -7
  202. package/dist/types/excalidraw/data/encode.d.ts +4 -4
  203. package/dist/types/excalidraw/data/encryption.d.ts +5 -5
  204. package/dist/types/excalidraw/data/filesystem.d.ts +5 -7
  205. package/dist/types/excalidraw/data/index.d.ts +4 -5
  206. package/dist/types/excalidraw/data/json.d.ts +171 -4
  207. package/dist/types/excalidraw/data/library.d.ts +24 -9
  208. package/dist/types/excalidraw/data/resave.d.ts +7 -2
  209. package/dist/types/excalidraw/data/restore.d.ts +25 -10
  210. package/dist/types/excalidraw/editor-jotai.d.ts +11 -11
  211. package/dist/types/excalidraw/errors.d.ts +14 -0
  212. package/dist/types/excalidraw/hooks/useOutsideClick.d.ts +4 -3
  213. package/dist/types/excalidraw/hooks/useScrollPosition.d.ts +1 -2
  214. package/dist/types/excalidraw/i18n.d.ts +2 -2
  215. package/dist/types/excalidraw/renderer/animation.d.ts +12 -0
  216. package/dist/types/excalidraw/renderer/helpers.d.ts +6 -8
  217. package/dist/types/excalidraw/renderer/interactiveScene.d.ts +8 -14
  218. package/dist/types/excalidraw/scene/Renderer.d.ts +5 -2
  219. package/dist/types/excalidraw/scene/export.d.ts +2 -2
  220. package/dist/types/excalidraw/scene/scroll.d.ts +1 -6
  221. package/dist/types/excalidraw/scene/types.d.ts +19 -2
  222. package/dist/types/excalidraw/snapping.d.ts +5 -5
  223. package/dist/types/excalidraw/subset/harfbuzz/harfbuzz-bindings.d.ts +1 -1
  224. package/dist/types/excalidraw/subset/harfbuzz/harfbuzz-loader.d.ts +1 -1
  225. package/dist/types/excalidraw/subset/harfbuzz/harfbuzz-wasm.d.ts +1 -1
  226. package/dist/types/excalidraw/subset/woff2/woff2-loader.d.ts +2 -2
  227. package/dist/types/excalidraw/subset/woff2/woff2-wasm.d.ts +1 -1
  228. package/dist/types/excalidraw/textAutoResizeHandle.d.ts +15 -0
  229. package/dist/types/excalidraw/types.d.ts +109 -21
  230. package/dist/types/excalidraw/wysiwyg/textWysiwyg.d.ts +7 -3
  231. package/dist/types/math/src/curve.d.ts +4 -1
  232. package/dist/types/math/src/point.d.ts +7 -2
  233. package/dist/types/math/src/polygon.d.ts +2 -2
  234. package/dist/types/math/src/range.d.ts +1 -3
  235. package/dist/types/math/src/segment.d.ts +3 -3
  236. package/dist/types/math/src/types.d.ts +25 -1
  237. package/dist/types/utils/src/bbox.d.ts +1 -1
  238. package/dist/types/utils/src/export.d.ts +5 -5
  239. package/dist/types/utils/src/shape.d.ts +6 -6
  240. package/dist/types/utils/src/withinBounds.d.ts +2 -2
  241. package/package.json +7 -1
  242. package/dist/types/excalidraw/charts.d.ts +0 -27
  243. package/dist/types/excalidraw/components/DiagramToCodePlugin/DiagramToCodePlugin.d.ts +0 -4
  244. package/dist/types/excalidraw/components/ExcalidrawLogo.d.ts +0 -16
  245. package/dist/types/excalidraw/components/InitializeApp.d.ts +0 -10
  246. package/dist/types/excalidraw/components/TTDDialog/TTDDialogTrigger.d.ts +0 -8
  247. package/dist/types/excalidraw/components/footer/FooterCenter.d.ts +0 -8
  248. package/dist/types/excalidraw/components/live-collaboration/LiveCollaborationTrigger.d.ts +0 -22
  249. package/dist/types/excalidraw/components/welcome-screen/WelcomeScreen.Center.d.ts +0 -58
  250. package/dist/types/excalidraw/components/welcome-screen/WelcomeScreen.Hints.d.ts +0 -19
  251. package/dist/types/excalidraw/components/welcome-screen/WelcomeScreen.d.ts +0 -85
  252. package/dist/types/excalidraw/data/reconcile.d.ts +0 -7
  253. package/dist/types/excalidraw/index.d.ts +0 -46
  254. package/dist/types/excalidraw/polyfill.d.ts +0 -2
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import type { ExcalidrawLinearElement } from "@excalidraw/element/types";
3
2
  export declare const actionToggleLinearEditor: {
4
3
  name: "toggleLinearEditor";
@@ -9,40 +8,40 @@ export declare const actionToggleLinearEditor: {
9
8
  category: "element";
10
9
  };
11
10
  predicate: (elements: readonly import("@excalidraw/element/types").ExcalidrawElement[], appState: import("../types").AppState, _: import("../types").ExcalidrawProps, app: import("../types").AppClassProperties) => boolean;
12
- perform(elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, _: any, app: import("../types").AppClassProperties): {
11
+ perform(elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, _: unknown, app: import("../types").AppClassProperties): {
13
12
  appState: {
14
13
  selectedLinearElement: {
15
14
  isEditing: boolean;
16
- elementId: string & {
15
+ elementId: import("@excalidraw/element/types").ExcalidrawElement["id"] & {
17
16
  _brand: "excalidrawLinearElementId";
18
17
  };
19
18
  selectedPointsIndices: readonly number[] | null;
20
- pointerDownState: Readonly<{
19
+ initialState: Readonly<{
21
20
  prevSelectedPointsIndices: readonly number[] | null;
22
21
  lastClickedPoint: number;
23
- lastClickedIsEndPoint: boolean;
24
- origin: Readonly<{
25
- x: number;
26
- y: number;
27
- }> | null;
22
+ origin: Readonly<import("@excalidraw/math").GlobalPoint> | null;
28
23
  segmentMidpoint: {
29
- value: import("../../math/src").GlobalPoint | null;
24
+ value: import("@excalidraw/math").GlobalPoint | null;
30
25
  index: number | null;
31
26
  added: boolean;
32
27
  };
28
+ arrowStartIsInside: boolean;
29
+ altFocusPoint: Readonly<import("@excalidraw/math").GlobalPoint> | null;
33
30
  }>;
34
31
  isDragging: boolean;
35
- lastUncommittedPoint: import("../../math/src").LocalPoint | null;
32
+ lastUncommittedPoint: import("@excalidraw/math").LocalPoint | null;
33
+ lastCommittedPoint: import("@excalidraw/math").LocalPoint | null;
36
34
  pointerOffset: Readonly<{
37
35
  x: number;
38
36
  y: number;
39
37
  }>;
40
- startBindingElement: import("@excalidraw/element/types").ExcalidrawBindableElement | "keep" | null;
41
- endBindingElement: import("@excalidraw/element/types").ExcalidrawBindableElement | "keep" | null;
42
38
  hoverPointIndex: number;
43
- segmentMidPointHoveredCoords: import("../../math/src").GlobalPoint | null;
39
+ segmentMidPointHoveredCoords: import("@excalidraw/math").GlobalPoint | null;
40
+ hoveredFocusPointBinding: "start" | "end" | null;
41
+ draggedFocusPointBinding: "start" | "end" | null;
44
42
  elbowed: boolean;
45
43
  customLineAngle: number | null;
44
+ pointerDownState: never;
46
45
  };
47
46
  contextMenu: {
48
47
  items: import("../components/ContextMenu").ContextMenuItems;
@@ -51,18 +50,24 @@ export declare const actionToggleLinearEditor: {
51
50
  } | null;
52
51
  showWelcomeScreen: boolean;
53
52
  isLoading: boolean;
54
- errorMessage: import("react").ReactNode;
53
+ errorMessage: React.ReactNode;
55
54
  activeEmbeddable: {
56
55
  element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
57
- state: "active" | "hover";
56
+ state: "hover" | "active";
58
57
  } | null;
59
58
  newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
60
59
  resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
61
60
  multiElement: import("@excalidraw/element/types").NonDeleted<ExcalidrawLinearElement> | null;
62
61
  selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
63
62
  isBindingEnabled: boolean;
63
+ boxSelectionMode: import("../types").BoxSelectionMode;
64
+ bindingPreference: "enabled" | "disabled";
65
+ isMidpointSnappingEnabled: boolean;
64
66
  startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
65
- suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
67
+ suggestedBinding: {
68
+ element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
69
+ midPoint?: import("@excalidraw/math").GlobalPoint;
70
+ } | null;
66
71
  frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
67
72
  frameRendering: {
68
73
  enabled: boolean;
@@ -72,7 +77,7 @@ export declare const actionToggleLinearEditor: {
72
77
  };
73
78
  editingFrame: string | null;
74
79
  elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
75
- editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
80
+ editingTextElement: import("@excalidraw/element/types").ExcalidrawTextElement | null;
76
81
  activeTool: {
77
82
  lastActiveTool: import("../types").ActiveTool | null;
78
83
  locked: boolean;
@@ -90,19 +95,19 @@ export declare const actionToggleLinearEditor: {
90
95
  exportScale: number;
91
96
  currentItemStrokeColor: string;
92
97
  currentItemBackgroundColor: string;
93
- currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
98
+ currentItemFillStyle: import("@excalidraw/element/types").ExcalidrawElement["fillStyle"];
94
99
  currentItemStrokeWidth: number;
95
- currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
100
+ currentItemStrokeStyle: import("@excalidraw/element/types").ExcalidrawElement["strokeStyle"];
96
101
  currentItemRoughness: number;
97
102
  currentItemOpacity: number;
98
- currentItemFontFamily: number;
103
+ currentItemFontFamily: import("@excalidraw/element/types").FontFamilyValues;
99
104
  currentItemFontSize: number;
100
- currentItemTextAlign: string;
105
+ currentItemTextAlign: import("@excalidraw/element/types").TextAlign;
101
106
  currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
102
107
  currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
103
- currentHoveredFontFamily: number | null;
108
+ currentHoveredFontFamily: import("@excalidraw/element/types").FontFamilyValues | null;
104
109
  currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
105
- currentItemArrowType: "round" | "sharp" | "elbow";
110
+ currentItemArrowType: "sharp" | "round" | "elbow";
106
111
  viewBackgroundColor: string;
107
112
  scrollX: number;
108
113
  scrollY: number;
@@ -111,26 +116,30 @@ export declare const actionToggleLinearEditor: {
111
116
  name: string | null;
112
117
  isResizing: boolean;
113
118
  isRotating: boolean;
114
- zoom: Readonly<{
115
- value: import("../types").NormalizedZoomValue;
116
- }>;
119
+ zoom: import("../types").Zoom;
117
120
  openMenu: "canvas" | null;
118
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
121
+ openPopup: "canvasBackground" | "elementBackground" | "elementStroke" | "fontFamily" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
119
122
  openSidebar: {
120
- name: string;
121
- tab?: string | undefined;
123
+ name: import("../types").SidebarName;
124
+ tab?: import("../types").SidebarTabName;
122
125
  } | null;
123
- openDialog: {
126
+ openDialog: null | {
124
127
  name: "imageExport" | "help" | "jsonExport";
125
128
  } | {
126
129
  name: "ttd";
127
- tab: "mermaid" | "text-to-diagram";
130
+ tab: "text-to-diagram" | "mermaid";
128
131
  } | {
129
132
  name: "commandPalette";
133
+ } | {
134
+ name: "settings";
130
135
  } | {
131
136
  name: "elementLinkSelector";
132
- sourceElementId: string;
133
- } | null;
137
+ sourceElementId: import("@excalidraw/element/types").ExcalidrawElement["id"];
138
+ } | {
139
+ name: "charts";
140
+ data: import("../charts").Spreadsheet;
141
+ rawText: string;
142
+ };
134
143
  defaultSidebarDockedPreference: boolean;
135
144
  lastPointerDownWith: import("@excalidraw/element/types").PointerType;
136
145
  selectedElementIds: Readonly<{
@@ -145,9 +154,9 @@ export declare const actionToggleLinearEditor: {
145
154
  selectedElementsAreBeingDragged: boolean;
146
155
  shouldCacheIgnoreZoom: boolean;
147
156
  toast: {
148
- message: string;
149
- closable?: boolean | undefined;
150
- duration?: number | undefined;
157
+ message: React.ReactNode;
158
+ closable?: boolean;
159
+ duration?: number;
151
160
  } | null;
152
161
  zenModeEnabled: boolean;
153
162
  theme: import("@excalidraw/element/types").Theme;
@@ -158,44 +167,17 @@ export declare const actionToggleLinearEditor: {
158
167
  selectedGroupIds: {
159
168
  [groupId: string]: boolean;
160
169
  };
161
- editingGroupId: string | null;
170
+ editingGroupId: import("@excalidraw/element/types").GroupId | null;
162
171
  width: number;
163
172
  height: number;
164
173
  offsetTop: number;
165
174
  offsetLeft: number;
166
- fileHandle: import("browser-fs-access").FileSystemHandle | null;
167
- collaborators: Map<import("../types").SocketId, Readonly<{
168
- pointer?: import("../types").CollaboratorPointer | undefined;
169
- button?: "up" | "down" | undefined;
170
- selectedElementIds?: Readonly<{
171
- [id: string]: true;
172
- }> | undefined;
173
- username?: string | null | undefined;
174
- userState?: import("@excalidraw/common").UserIdleState | undefined;
175
- color?: {
176
- background: string;
177
- stroke: string;
178
- } | undefined;
179
- avatarUrl?: string | undefined;
180
- id?: string | undefined;
181
- socketId?: import("../types").SocketId | undefined;
182
- isCurrentUser?: boolean | undefined;
183
- isInCall?: boolean | undefined;
184
- isSpeaking?: boolean | undefined;
185
- isMuted?: boolean | undefined;
186
- }>>;
175
+ fileHandle: FileSystemFileHandle | null;
176
+ collaborators: Map<import("../types").SocketId, import("../types").Collaborator>;
187
177
  stats: {
188
178
  open: boolean;
189
179
  panels: number;
190
180
  };
191
- currentChartType: import("@excalidraw/element/types").ChartType;
192
- pasteDialog: {
193
- shown: false;
194
- data: null;
195
- } | {
196
- shown: true;
197
- data: import("../charts").Spreadsheet;
198
- };
199
181
  showHyperlinkPopup: false | "info" | "editor";
200
182
  snapLines: readonly import("../snapping").SnapLine[];
201
183
  originSnapOffset: {
@@ -206,15 +188,16 @@ export declare const actionToggleLinearEditor: {
206
188
  userToFollow: import("../types").UserToFollow | null;
207
189
  followedBy: Set<import("../types").SocketId>;
208
190
  isCropping: boolean;
209
- croppingElementId: string | null;
191
+ croppingElementId: import("@excalidraw/element/types").ExcalidrawElement["id"] | null;
210
192
  searchMatches: Readonly<{
211
- focusedId: string | null;
193
+ focusedId: import("@excalidraw/element/types").ExcalidrawElement["id"] | null;
212
194
  matches: readonly import("../types").SearchMatch[];
213
195
  }> | null;
214
196
  activeLockedId: string | null;
215
197
  lockedMultiSelections: {
216
198
  [groupId: string]: true;
217
199
  };
200
+ bindMode: import("@excalidraw/element/types").BindMode;
218
201
  };
219
202
  captureUpdate: "IMMEDIATELY";
220
203
  };
@@ -232,7 +215,7 @@ export declare const actionTogglePolygon: {
232
215
  category: "element";
233
216
  };
234
217
  predicate: (elements: readonly import("@excalidraw/element/types").ExcalidrawElement[], appState: import("../types").AppState, _: import("../types").ExcalidrawProps, app: import("../types").AppClassProperties) => boolean;
235
- perform(elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, _: any, app: import("../types").AppClassProperties): false | {
218
+ perform(elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, _: unknown, app: import("../types").AppClassProperties): false | {
236
219
  elements: ((Readonly<{
237
220
  id: string;
238
221
  x: number;
@@ -242,43 +225,34 @@ export declare const actionTogglePolygon: {
242
225
  fillStyle: import("@excalidraw/element/types").FillStyle;
243
226
  strokeWidth: number;
244
227
  strokeStyle: import("@excalidraw/element/types").StrokeStyle;
245
- roundness: {
228
+ roundness: null | {
246
229
  type: import("@excalidraw/element/types").RoundnessType;
247
- value?: number | undefined;
248
- } | null;
230
+ value?: number;
231
+ };
249
232
  roughness: number;
250
233
  opacity: number;
251
234
  width: number;
252
235
  height: number;
253
- angle: import("../../math/src").Radians;
236
+ angle: import("@excalidraw/math").Radians;
254
237
  seed: number;
255
238
  version: number;
256
239
  versionNonce: number;
257
240
  index: import("@excalidraw/element/types").FractionalIndex | null;
258
241
  isDeleted: boolean;
259
- groupIds: readonly string[];
242
+ groupIds: readonly import("@excalidraw/element/types").GroupId[];
260
243
  frameId: string | null;
261
- boundElements: readonly Readonly<{
262
- id: string;
263
- type: "text" | "arrow";
264
- }>[] | null;
244
+ boundElements: readonly import("@excalidraw/element/types").BoundElement[] | null;
265
245
  updated: number;
266
246
  link: string | null;
267
247
  locked: boolean;
268
- customData?: Record<string, any> | undefined;
248
+ customData?: Record<string, any>;
269
249
  }> & Readonly<{
270
- type: "text";
271
- fontSize: number;
272
- fontFamily: number;
273
- text: string;
274
- textAlign: string;
275
- verticalAlign: string;
276
- containerId: string | null;
277
- originalText: string;
278
- autoResize: boolean;
279
- lineHeight: number & {
280
- _brand: "unitlessLineHeight";
281
- };
250
+ type: "line" | "arrow";
251
+ points: readonly import("@excalidraw/math").LocalPoint[];
252
+ startBinding: import("@excalidraw/element/types").FixedPointBinding | null;
253
+ endBinding: import("@excalidraw/element/types").FixedPointBinding | null;
254
+ startArrowhead: import("@excalidraw/element/types").Arrowhead | null;
255
+ endArrowhead: import("@excalidraw/element/types").Arrowhead | null;
282
256
  }> & {
283
257
  index: import("@excalidraw/element/types").FractionalIndex;
284
258
  }) | (Readonly<{
@@ -290,32 +264,29 @@ export declare const actionTogglePolygon: {
290
264
  fillStyle: import("@excalidraw/element/types").FillStyle;
291
265
  strokeWidth: number;
292
266
  strokeStyle: import("@excalidraw/element/types").StrokeStyle;
293
- roundness: {
267
+ roundness: null | {
294
268
  type: import("@excalidraw/element/types").RoundnessType;
295
- value?: number | undefined;
296
- } | null;
269
+ value?: number;
270
+ };
297
271
  roughness: number;
298
272
  opacity: number;
299
273
  width: number;
300
274
  height: number;
301
- angle: import("../../math/src").Radians;
275
+ angle: import("@excalidraw/math").Radians;
302
276
  seed: number;
303
277
  version: number;
304
278
  versionNonce: number;
305
279
  index: import("@excalidraw/element/types").FractionalIndex | null;
306
280
  isDeleted: boolean;
307
- groupIds: readonly string[];
281
+ groupIds: readonly import("@excalidraw/element/types").GroupId[];
308
282
  frameId: string | null;
309
- boundElements: readonly Readonly<{
310
- id: string;
311
- type: "text" | "arrow";
312
- }>[] | null;
283
+ boundElements: readonly import("@excalidraw/element/types").BoundElement[] | null;
313
284
  updated: number;
314
285
  link: string | null;
315
286
  locked: boolean;
316
- customData?: Record<string, any> | undefined;
287
+ customData?: Record<string, any>;
317
288
  }> & {
318
- type: "rectangle";
289
+ type: "selection";
319
290
  } & {
320
291
  index: import("@excalidraw/element/types").FractionalIndex;
321
292
  }) | (Readonly<{
@@ -327,32 +298,29 @@ export declare const actionTogglePolygon: {
327
298
  fillStyle: import("@excalidraw/element/types").FillStyle;
328
299
  strokeWidth: number;
329
300
  strokeStyle: import("@excalidraw/element/types").StrokeStyle;
330
- roundness: {
301
+ roundness: null | {
331
302
  type: import("@excalidraw/element/types").RoundnessType;
332
- value?: number | undefined;
333
- } | null;
303
+ value?: number;
304
+ };
334
305
  roughness: number;
335
306
  opacity: number;
336
307
  width: number;
337
308
  height: number;
338
- angle: import("../../math/src").Radians;
309
+ angle: import("@excalidraw/math").Radians;
339
310
  seed: number;
340
311
  version: number;
341
312
  versionNonce: number;
342
313
  index: import("@excalidraw/element/types").FractionalIndex | null;
343
314
  isDeleted: boolean;
344
- groupIds: readonly string[];
315
+ groupIds: readonly import("@excalidraw/element/types").GroupId[];
345
316
  frameId: string | null;
346
- boundElements: readonly Readonly<{
347
- id: string;
348
- type: "text" | "arrow";
349
- }>[] | null;
317
+ boundElements: readonly import("@excalidraw/element/types").BoundElement[] | null;
350
318
  updated: number;
351
319
  link: string | null;
352
320
  locked: boolean;
353
- customData?: Record<string, any> | undefined;
321
+ customData?: Record<string, any>;
354
322
  }> & {
355
- type: "diamond";
323
+ type: "rectangle";
356
324
  } & {
357
325
  index: import("@excalidraw/element/types").FractionalIndex;
358
326
  }) | (Readonly<{
@@ -364,33 +332,29 @@ export declare const actionTogglePolygon: {
364
332
  fillStyle: import("@excalidraw/element/types").FillStyle;
365
333
  strokeWidth: number;
366
334
  strokeStyle: import("@excalidraw/element/types").StrokeStyle;
367
- roundness: {
335
+ roundness: null | {
368
336
  type: import("@excalidraw/element/types").RoundnessType;
369
- value?: number | undefined;
370
- } | null;
337
+ value?: number;
338
+ };
371
339
  roughness: number;
372
340
  opacity: number;
373
341
  width: number;
374
342
  height: number;
375
- angle: import("../../math/src").Radians;
343
+ angle: import("@excalidraw/math").Radians;
376
344
  seed: number;
377
345
  version: number;
378
346
  versionNonce: number;
379
347
  index: import("@excalidraw/element/types").FractionalIndex | null;
380
348
  isDeleted: boolean;
381
- groupIds: readonly string[];
349
+ groupIds: readonly import("@excalidraw/element/types").GroupId[];
382
350
  frameId: string | null;
383
- boundElements: readonly Readonly<{
384
- id: string;
385
- type: "text" | "arrow";
386
- }>[] | null;
351
+ boundElements: readonly import("@excalidraw/element/types").BoundElement[] | null;
387
352
  updated: number;
388
353
  link: string | null;
389
354
  locked: boolean;
390
- customData?: Record<string, any> | undefined;
355
+ customData?: Record<string, any>;
391
356
  }> & {
392
- type: "frame";
393
- name: string | null;
357
+ type: "diamond";
394
358
  } & {
395
359
  index: import("@excalidraw/element/types").FractionalIndex;
396
360
  }) | (Readonly<{
@@ -402,33 +366,29 @@ export declare const actionTogglePolygon: {
402
366
  fillStyle: import("@excalidraw/element/types").FillStyle;
403
367
  strokeWidth: number;
404
368
  strokeStyle: import("@excalidraw/element/types").StrokeStyle;
405
- roundness: {
369
+ roundness: null | {
406
370
  type: import("@excalidraw/element/types").RoundnessType;
407
- value?: number | undefined;
408
- } | null;
371
+ value?: number;
372
+ };
409
373
  roughness: number;
410
374
  opacity: number;
411
375
  width: number;
412
376
  height: number;
413
- angle: import("../../math/src").Radians;
377
+ angle: import("@excalidraw/math").Radians;
414
378
  seed: number;
415
379
  version: number;
416
380
  versionNonce: number;
417
381
  index: import("@excalidraw/element/types").FractionalIndex | null;
418
382
  isDeleted: boolean;
419
- groupIds: readonly string[];
383
+ groupIds: readonly import("@excalidraw/element/types").GroupId[];
420
384
  frameId: string | null;
421
- boundElements: readonly Readonly<{
422
- id: string;
423
- type: "text" | "arrow";
424
- }>[] | null;
385
+ boundElements: readonly import("@excalidraw/element/types").BoundElement[] | null;
425
386
  updated: number;
426
387
  link: string | null;
427
388
  locked: boolean;
428
- customData?: Record<string, any> | undefined;
389
+ customData?: Record<string, any>;
429
390
  }> & {
430
- type: "magicframe";
431
- name: string | null;
391
+ type: "ellipse";
432
392
  } & {
433
393
  index: import("@excalidraw/element/types").FractionalIndex;
434
394
  }) | (Readonly<{
@@ -440,30 +400,27 @@ export declare const actionTogglePolygon: {
440
400
  fillStyle: import("@excalidraw/element/types").FillStyle;
441
401
  strokeWidth: number;
442
402
  strokeStyle: import("@excalidraw/element/types").StrokeStyle;
443
- roundness: {
403
+ roundness: null | {
444
404
  type: import("@excalidraw/element/types").RoundnessType;
445
- value?: number | undefined;
446
- } | null;
405
+ value?: number;
406
+ };
447
407
  roughness: number;
448
408
  opacity: number;
449
409
  width: number;
450
410
  height: number;
451
- angle: import("../../math/src").Radians;
411
+ angle: import("@excalidraw/math").Radians;
452
412
  seed: number;
453
413
  version: number;
454
414
  versionNonce: number;
455
415
  index: import("@excalidraw/element/types").FractionalIndex | null;
456
416
  isDeleted: boolean;
457
- groupIds: readonly string[];
417
+ groupIds: readonly import("@excalidraw/element/types").GroupId[];
458
418
  frameId: string | null;
459
- boundElements: readonly Readonly<{
460
- id: string;
461
- type: "text" | "arrow";
462
- }>[] | null;
419
+ boundElements: readonly import("@excalidraw/element/types").BoundElement[] | null;
463
420
  updated: number;
464
421
  link: string | null;
465
422
  locked: boolean;
466
- customData?: Record<string, any> | undefined;
423
+ customData?: Record<string, any>;
467
424
  }> & Readonly<{
468
425
  type: "embeddable";
469
426
  }> & {
@@ -477,36 +434,32 @@ export declare const actionTogglePolygon: {
477
434
  fillStyle: import("@excalidraw/element/types").FillStyle;
478
435
  strokeWidth: number;
479
436
  strokeStyle: import("@excalidraw/element/types").StrokeStyle;
480
- roundness: {
437
+ roundness: null | {
481
438
  type: import("@excalidraw/element/types").RoundnessType;
482
- value?: number | undefined;
483
- } | null;
439
+ value?: number;
440
+ };
484
441
  roughness: number;
485
442
  opacity: number;
486
443
  width: number;
487
444
  height: number;
488
- angle: import("../../math/src").Radians;
445
+ angle: import("@excalidraw/math").Radians;
489
446
  seed: number;
490
447
  version: number;
491
448
  versionNonce: number;
492
449
  index: import("@excalidraw/element/types").FractionalIndex | null;
493
450
  isDeleted: boolean;
494
- groupIds: readonly string[];
451
+ groupIds: readonly import("@excalidraw/element/types").GroupId[];
495
452
  frameId: string | null;
496
- boundElements: readonly Readonly<{
497
- id: string;
498
- type: "text" | "arrow";
499
- }>[] | null;
453
+ boundElements: readonly import("@excalidraw/element/types").BoundElement[] | null;
500
454
  updated: number;
501
455
  link: string | null;
502
456
  locked: boolean;
503
- customData?: Record<string, any> | undefined;
457
+ customData?: Record<string, any>;
504
458
  }> & Readonly<{
505
- type: "image";
506
- fileId: import("@excalidraw/element/types").FileId | null;
507
- status: "pending" | "saved" | "error";
508
- scale: [number, number];
509
- crop: import("@excalidraw/element/types").ImageCrop | null;
459
+ type: "iframe";
460
+ customData?: {
461
+ generationData?: import("@excalidraw/element/types").MagicGenerationData;
462
+ };
510
463
  }> & {
511
464
  index: import("@excalidraw/element/types").FractionalIndex;
512
465
  }) | (Readonly<{
@@ -518,35 +471,33 @@ export declare const actionTogglePolygon: {
518
471
  fillStyle: import("@excalidraw/element/types").FillStyle;
519
472
  strokeWidth: number;
520
473
  strokeStyle: import("@excalidraw/element/types").StrokeStyle;
521
- roundness: {
474
+ roundness: null | {
522
475
  type: import("@excalidraw/element/types").RoundnessType;
523
- value?: number | undefined;
524
- } | null;
476
+ value?: number;
477
+ };
525
478
  roughness: number;
526
479
  opacity: number;
527
480
  width: number;
528
481
  height: number;
529
- angle: import("../../math/src").Radians;
482
+ angle: import("@excalidraw/math").Radians;
530
483
  seed: number;
531
484
  version: number;
532
485
  versionNonce: number;
533
486
  index: import("@excalidraw/element/types").FractionalIndex | null;
534
487
  isDeleted: boolean;
535
- groupIds: readonly string[];
488
+ groupIds: readonly import("@excalidraw/element/types").GroupId[];
536
489
  frameId: string | null;
537
- boundElements: readonly Readonly<{
538
- id: string;
539
- type: "text" | "arrow";
540
- }>[] | null;
490
+ boundElements: readonly import("@excalidraw/element/types").BoundElement[] | null;
541
491
  updated: number;
542
492
  link: string | null;
543
493
  locked: boolean;
544
- customData?: Record<string, any> | undefined;
494
+ customData?: Record<string, any>;
545
495
  }> & Readonly<{
546
- type: "iframe";
547
- customData?: {
548
- generationData?: import("@excalidraw/element/types").MagicGenerationData | undefined;
549
- } | undefined;
496
+ type: "image";
497
+ fileId: import("@excalidraw/element/types").FileId | null;
498
+ status: "pending" | "saved" | "error";
499
+ scale: [number, number];
500
+ crop: import("@excalidraw/element/types").ImageCrop | null;
550
501
  }> & {
551
502
  index: import("@excalidraw/element/types").FractionalIndex;
552
503
  }) | (Readonly<{
@@ -558,32 +509,30 @@ export declare const actionTogglePolygon: {
558
509
  fillStyle: import("@excalidraw/element/types").FillStyle;
559
510
  strokeWidth: number;
560
511
  strokeStyle: import("@excalidraw/element/types").StrokeStyle;
561
- roundness: {
512
+ roundness: null | {
562
513
  type: import("@excalidraw/element/types").RoundnessType;
563
- value?: number | undefined;
564
- } | null;
514
+ value?: number;
515
+ };
565
516
  roughness: number;
566
517
  opacity: number;
567
518
  width: number;
568
519
  height: number;
569
- angle: import("../../math/src").Radians;
520
+ angle: import("@excalidraw/math").Radians;
570
521
  seed: number;
571
522
  version: number;
572
523
  versionNonce: number;
573
524
  index: import("@excalidraw/element/types").FractionalIndex | null;
574
525
  isDeleted: boolean;
575
- groupIds: readonly string[];
526
+ groupIds: readonly import("@excalidraw/element/types").GroupId[];
576
527
  frameId: string | null;
577
- boundElements: readonly Readonly<{
578
- id: string;
579
- type: "text" | "arrow";
580
- }>[] | null;
528
+ boundElements: readonly import("@excalidraw/element/types").BoundElement[] | null;
581
529
  updated: number;
582
530
  link: string | null;
583
531
  locked: boolean;
584
- customData?: Record<string, any> | undefined;
532
+ customData?: Record<string, any>;
585
533
  }> & {
586
- type: "selection";
534
+ type: "frame";
535
+ name: string | null;
587
536
  } & {
588
537
  index: import("@excalidraw/element/types").FractionalIndex;
589
538
  }) | (Readonly<{
@@ -595,32 +544,30 @@ export declare const actionTogglePolygon: {
595
544
  fillStyle: import("@excalidraw/element/types").FillStyle;
596
545
  strokeWidth: number;
597
546
  strokeStyle: import("@excalidraw/element/types").StrokeStyle;
598
- roundness: {
547
+ roundness: null | {
599
548
  type: import("@excalidraw/element/types").RoundnessType;
600
- value?: number | undefined;
601
- } | null;
549
+ value?: number;
550
+ };
602
551
  roughness: number;
603
552
  opacity: number;
604
553
  width: number;
605
554
  height: number;
606
- angle: import("../../math/src").Radians;
555
+ angle: import("@excalidraw/math").Radians;
607
556
  seed: number;
608
557
  version: number;
609
558
  versionNonce: number;
610
559
  index: import("@excalidraw/element/types").FractionalIndex | null;
611
560
  isDeleted: boolean;
612
- groupIds: readonly string[];
561
+ groupIds: readonly import("@excalidraw/element/types").GroupId[];
613
562
  frameId: string | null;
614
- boundElements: readonly Readonly<{
615
- id: string;
616
- type: "text" | "arrow";
617
- }>[] | null;
563
+ boundElements: readonly import("@excalidraw/element/types").BoundElement[] | null;
618
564
  updated: number;
619
565
  link: string | null;
620
566
  locked: boolean;
621
- customData?: Record<string, any> | undefined;
567
+ customData?: Record<string, any>;
622
568
  }> & {
623
- type: "ellipse";
569
+ type: "magicframe";
570
+ name: string | null;
624
571
  } & {
625
572
  index: import("@excalidraw/element/types").FractionalIndex;
626
573
  }) | (Readonly<{
@@ -632,38 +579,40 @@ export declare const actionTogglePolygon: {
632
579
  fillStyle: import("@excalidraw/element/types").FillStyle;
633
580
  strokeWidth: number;
634
581
  strokeStyle: import("@excalidraw/element/types").StrokeStyle;
635
- roundness: {
582
+ roundness: null | {
636
583
  type: import("@excalidraw/element/types").RoundnessType;
637
- value?: number | undefined;
638
- } | null;
584
+ value?: number;
585
+ };
639
586
  roughness: number;
640
587
  opacity: number;
641
588
  width: number;
642
589
  height: number;
643
- angle: import("../../math/src").Radians;
590
+ angle: import("@excalidraw/math").Radians;
644
591
  seed: number;
645
592
  version: number;
646
593
  versionNonce: number;
647
594
  index: import("@excalidraw/element/types").FractionalIndex | null;
648
595
  isDeleted: boolean;
649
- groupIds: readonly string[];
596
+ groupIds: readonly import("@excalidraw/element/types").GroupId[];
650
597
  frameId: string | null;
651
- boundElements: readonly Readonly<{
652
- id: string;
653
- type: "text" | "arrow";
654
- }>[] | null;
598
+ boundElements: readonly import("@excalidraw/element/types").BoundElement[] | null;
655
599
  updated: number;
656
600
  link: string | null;
657
601
  locked: boolean;
658
- customData?: Record<string, any> | undefined;
602
+ customData?: Record<string, any>;
659
603
  }> & Readonly<{
660
- type: "line" | "arrow";
661
- points: readonly import("../../math/src").LocalPoint[];
662
- lastCommittedPoint: import("../../math/src").LocalPoint | null;
663
- startBinding: import("@excalidraw/element/types").PointBinding | null;
664
- endBinding: import("@excalidraw/element/types").PointBinding | null;
665
- startArrowhead: import("@excalidraw/element/types").Arrowhead | null;
666
- endArrowhead: import("@excalidraw/element/types").Arrowhead | null;
604
+ type: "text";
605
+ fontSize: number;
606
+ fontFamily: import("@excalidraw/element/types").FontFamilyValues;
607
+ text: string;
608
+ textAlign: import("@excalidraw/element/types").TextAlign;
609
+ verticalAlign: import("@excalidraw/element/types").VerticalAlign;
610
+ containerId: import("@excalidraw/element/types").ExcalidrawGenericElement["id"] | null;
611
+ originalText: string;
612
+ autoResize: boolean;
613
+ lineHeight: number & {
614
+ _brand: "unitlessLineHeight";
615
+ };
667
616
  }> & {
668
617
  index: import("@excalidraw/element/types").FractionalIndex;
669
618
  }) | (Readonly<{
@@ -675,36 +624,32 @@ export declare const actionTogglePolygon: {
675
624
  fillStyle: import("@excalidraw/element/types").FillStyle;
676
625
  strokeWidth: number;
677
626
  strokeStyle: import("@excalidraw/element/types").StrokeStyle;
678
- roundness: {
627
+ roundness: null | {
679
628
  type: import("@excalidraw/element/types").RoundnessType;
680
- value?: number | undefined;
681
- } | null;
629
+ value?: number;
630
+ };
682
631
  roughness: number;
683
632
  opacity: number;
684
633
  width: number;
685
634
  height: number;
686
- angle: import("../../math/src").Radians;
635
+ angle: import("@excalidraw/math").Radians;
687
636
  seed: number;
688
637
  version: number;
689
638
  versionNonce: number;
690
639
  index: import("@excalidraw/element/types").FractionalIndex | null;
691
640
  isDeleted: boolean;
692
- groupIds: readonly string[];
641
+ groupIds: readonly import("@excalidraw/element/types").GroupId[];
693
642
  frameId: string | null;
694
- boundElements: readonly Readonly<{
695
- id: string;
696
- type: "text" | "arrow";
697
- }>[] | null;
643
+ boundElements: readonly import("@excalidraw/element/types").BoundElement[] | null;
698
644
  updated: number;
699
645
  link: string | null;
700
646
  locked: boolean;
701
- customData?: Record<string, any> | undefined;
647
+ customData?: Record<string, any>;
702
648
  }> & Readonly<{
703
649
  type: "freedraw";
704
- points: readonly import("../../math/src").LocalPoint[];
650
+ points: readonly import("@excalidraw/math").LocalPoint[];
705
651
  pressures: readonly number[];
706
652
  simulatePressure: boolean;
707
- lastCommittedPoint: import("../../math/src").LocalPoint | null;
708
653
  }> & {
709
654
  index: import("@excalidraw/element/types").FractionalIndex;
710
655
  }))[];