@excalidraw/common 0.18.0-200a6bd94 → 0.18.0-2a82821

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