@excalidraw/math 0.18.0-51ad895 → 0.18.0-51ca8ab

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