@excalidraw/element 0.18.0-d2463f87d → 0.18.0-d9e8a33

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