@excalidraw/common 0.18.0-a8acc82 → 0.18.0-a9ca16e

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