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