@excalidraw/math 0.18.0-b7aac689a → 0.18.0-c108292

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