@excalidraw/common 0.18.0-3085f4a → 0.18.0-39103bd

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 (332) hide show
  1. package/dist/dev/index.js +1700 -333
  2. package/dist/dev/index.js.map +4 -4
  3. package/dist/prod/index.js +3 -3
  4. package/dist/types/common/debug.d.ts +21 -0
  5. package/dist/types/common/src/appEventBus.d.ts +27 -0
  6. package/dist/types/common/src/bounds.d.ts +10 -0
  7. package/dist/types/common/src/colors.d.ts +59 -39
  8. package/dist/types/common/src/constants.d.ts +48 -35
  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/points.d.ts +1 -1
  14. package/dist/types/common/src/utility-types.d.ts +0 -1
  15. package/dist/types/common/src/utils.d.ts +48 -78
  16. package/dist/types/common/src/versionedSnapshotStore.d.ts +17 -0
  17. package/dist/types/element/src/Scene.d.ts +12 -8
  18. package/dist/types/element/src/align.d.ts +2 -2
  19. package/dist/types/element/src/arrowEndpointText.d.ts +49 -0
  20. package/dist/types/element/src/arrowheads.d.ts +3 -0
  21. package/dist/types/element/src/arrows/focus.d.ts +30 -0
  22. package/dist/types/element/src/arrows/helpers.d.ts +5 -0
  23. package/dist/types/element/src/binding.d.ts +79 -51
  24. package/dist/types/element/src/bounds.d.ts +26 -19
  25. package/dist/types/element/src/collision.d.ts +7 -2
  26. package/dist/types/element/src/comparisons.d.ts +8 -7
  27. package/dist/types/element/src/convertToShape.d.ts +23 -0
  28. package/dist/types/element/src/distribute.d.ts +3 -2
  29. package/dist/types/element/src/dragElements.d.ts +30 -3
  30. package/dist/types/element/src/duplicate.d.ts +7 -6
  31. package/dist/types/element/src/elbowArrow.d.ts +2 -0
  32. package/dist/types/element/src/embeddable.d.ts +2 -2
  33. package/dist/types/element/src/flowchart.d.ts +7 -7
  34. package/dist/types/element/src/fractionalIndex.d.ts +4 -4
  35. package/dist/types/element/src/frame.d.ts +16 -11
  36. package/dist/types/element/src/groups.d.ts +9 -9
  37. package/dist/types/element/src/heading.d.ts +2 -1
  38. package/dist/types/element/src/image.d.ts +1 -11
  39. package/dist/types/element/src/index.d.ts +8 -4
  40. package/dist/types/element/src/linearElementEditor.d.ts +38 -30
  41. package/dist/types/element/src/mutateElement.d.ts +5 -1
  42. package/dist/types/element/src/newElement.d.ts +20 -6
  43. package/dist/types/element/src/positionElementsOnGrid.d.ts +2 -0
  44. package/dist/types/element/src/renderElement.d.ts +4 -10
  45. package/dist/types/element/src/resizeElements.d.ts +12 -12
  46. package/dist/types/element/src/resizeTest.d.ts +6 -5
  47. package/dist/types/element/src/selection.d.ts +14 -14
  48. package/dist/types/element/src/shape.d.ts +9 -8
  49. package/dist/types/element/src/textElement.d.ts +14 -11
  50. package/dist/types/element/src/textMeasurements.d.ts +1 -3
  51. package/dist/types/element/src/textWrapping.d.ts +26 -0
  52. package/dist/types/{excalidraw/data → element/src}/transform.d.ts +3 -3
  53. package/dist/types/element/src/transformHandles.d.ts +8 -27
  54. package/dist/types/element/src/typeChecks.d.ts +29 -31
  55. package/dist/types/element/src/types.d.ts +20 -14
  56. package/dist/types/element/src/utils.d.ts +9 -4
  57. package/dist/types/element/src/zindex.d.ts +7 -1
  58. package/dist/types/excalidraw/actions/actionAddToLibrary.d.ts +191 -213
  59. package/dist/types/excalidraw/actions/actionAlign.d.ts +12 -13
  60. package/dist/types/excalidraw/actions/actionBoundText.d.ts +112 -127
  61. package/dist/types/excalidraw/actions/actionCanvas.d.ts +447 -1599
  62. package/dist/types/excalidraw/actions/actionClipboard.d.ts +139 -895
  63. package/dist/types/excalidraw/actions/actionCropEditor.d.ts +54 -62
  64. package/dist/types/excalidraw/actions/actionDeleteSelected.d.ts +180 -205
  65. package/dist/types/excalidraw/actions/actionDeselect.d.ts +162 -0
  66. package/dist/types/excalidraw/actions/actionDistribute.d.ts +4 -6
  67. package/dist/types/excalidraw/actions/actionDuplicateSelection.d.ts +3 -4
  68. package/dist/types/excalidraw/actions/actionElementLink.d.ts +61 -75
  69. package/dist/types/excalidraw/actions/actionElementLock.d.ts +111 -126
  70. package/dist/types/excalidraw/actions/actionExport.d.ts +189 -1409
  71. package/dist/types/excalidraw/actions/actionFinalize.d.ts +10 -394
  72. package/dist/types/excalidraw/actions/actionFlip.d.ts +2 -3
  73. package/dist/types/excalidraw/actions/actionFrame.d.ts +292 -537
  74. package/dist/types/excalidraw/actions/actionGroup.d.ts +122 -145
  75. package/dist/types/excalidraw/actions/actionLinearEditor.d.ts +193 -237
  76. package/dist/types/excalidraw/actions/actionLink.d.ts +67 -75
  77. package/dist/types/excalidraw/actions/actionMenu.d.ts +56 -436
  78. package/dist/types/excalidraw/actions/actionNavigate.d.ts +18 -359
  79. package/dist/types/excalidraw/actions/actionProperties.d.ts +191 -2527
  80. package/dist/types/excalidraw/actions/actionSelectAll.d.ts +61 -73
  81. package/dist/types/excalidraw/actions/actionStyles.d.ts +54 -61
  82. package/dist/types/excalidraw/actions/actionTextAutoResize.d.ts +4 -4
  83. package/dist/types/excalidraw/actions/actionToggleArrowBinding.d.ts +178 -0
  84. package/dist/types/excalidraw/actions/actionToggleGridMode.d.ts +69 -78
  85. package/dist/types/excalidraw/actions/actionToggleMidpointSnapping.d.ts +178 -0
  86. package/dist/types/excalidraw/actions/actionToggleObjectsSnapMode.d.ts +68 -76
  87. package/dist/types/excalidraw/actions/actionToggleSearchMenu.d.ts +57 -72
  88. package/dist/types/excalidraw/actions/actionToggleShapeSwitch.d.ts +2 -2
  89. package/dist/types/excalidraw/actions/actionToggleStats.d.ts +67 -75
  90. package/dist/types/excalidraw/actions/actionToggleViewMode.d.ts +68 -76
  91. package/dist/types/excalidraw/actions/actionToggleZenMode.d.ts +68 -76
  92. package/dist/types/excalidraw/actions/actionZindex.d.ts +8 -9
  93. package/dist/types/excalidraw/actions/index.d.ts +5 -3
  94. package/dist/types/excalidraw/actions/manager.d.ts +1 -0
  95. package/dist/types/excalidraw/actions/register.d.ts +2 -2
  96. package/dist/types/excalidraw/actions/shortcuts.d.ts +1 -1
  97. package/dist/types/excalidraw/actions/types.d.ts +11 -7
  98. package/dist/types/excalidraw/{animated-trail.d.ts → animatedTrail.d.ts} +4 -3
  99. package/dist/types/excalidraw/appState.d.ts +46 -37
  100. package/dist/types/excalidraw/charts/charts.bar.d.ts +2 -0
  101. package/dist/types/excalidraw/charts/charts.constants.d.ts +48 -0
  102. package/dist/types/excalidraw/charts/charts.helpers.d.ts +32 -0
  103. package/dist/types/excalidraw/charts/charts.line.d.ts +2 -0
  104. package/dist/types/excalidraw/charts/charts.parse.d.ts +10 -0
  105. package/dist/types/excalidraw/charts/charts.radar.d.ts +2 -0
  106. package/dist/types/excalidraw/charts/charts.types.d.ts +18 -0
  107. package/dist/types/excalidraw/charts/index.d.ts +7 -0
  108. package/dist/types/excalidraw/clipboard.d.ts +59 -21
  109. package/dist/types/excalidraw/components/Actions.d.ts +33 -11
  110. package/dist/types/excalidraw/components/ActiveConfirmDialog.d.ts +1 -1
  111. package/dist/types/excalidraw/components/App.arrowText.d.ts +72 -0
  112. package/dist/types/excalidraw/components/App.cursor.d.ts +31 -0
  113. package/dist/types/excalidraw/components/App.d.ts +444 -123
  114. package/dist/types/excalidraw/components/App.drawshape.d.ts +55 -0
  115. package/dist/types/excalidraw/components/App.flowchart.d.ts +21 -0
  116. package/dist/types/excalidraw/components/App.viewport.d.ts +73 -0
  117. package/dist/types/excalidraw/components/AppStateObserver.d.ts +37 -0
  118. package/dist/types/excalidraw/components/Card.d.ts +1 -3
  119. package/dist/types/excalidraw/components/ColorPicker/ColorInput.d.ts +2 -4
  120. package/dist/types/excalidraw/components/ColorPicker/ColorPicker.d.ts +2 -3
  121. package/dist/types/excalidraw/components/ColorPicker/Picker.d.ts +2 -0
  122. package/dist/types/excalidraw/components/ColorPicker/PickerColorList.d.ts +2 -1
  123. package/dist/types/excalidraw/components/ColorPicker/ShadeList.d.ts +2 -1
  124. package/dist/types/excalidraw/components/ColorPicker/colorPickerUtils.d.ts +1 -2
  125. package/dist/types/excalidraw/components/ColorPicker/keyboardNavHandlers.d.ts +0 -1
  126. package/dist/types/excalidraw/components/CommandPalette/CommandPalette.d.ts +1 -0
  127. package/dist/types/excalidraw/components/CommandPalette/defaultCommandPaletteItems.d.ts +1 -2
  128. package/dist/types/excalidraw/components/CommandPalette/types.d.ts +2 -4
  129. package/dist/types/excalidraw/components/ConvertElementTypePopup.d.ts +4 -4
  130. package/dist/types/excalidraw/components/CursorHint.d.ts +46 -0
  131. package/dist/types/excalidraw/components/DarkModeToggle.d.ts +1 -1
  132. package/dist/types/excalidraw/components/DefaultSidebar.d.ts +9 -13
  133. package/dist/types/excalidraw/components/ElementLinkDialog.d.ts +1 -1
  134. package/dist/types/excalidraw/components/Ellipsify.d.ts +1 -2
  135. package/dist/types/excalidraw/components/ErrorDialog.d.ts +1 -1
  136. package/dist/types/excalidraw/components/EyeDropper.d.ts +1 -2
  137. package/dist/types/excalidraw/components/FilledButton.d.ts +2 -1
  138. package/dist/types/excalidraw/components/FontPicker/FontPicker.d.ts +2 -1
  139. package/dist/types/excalidraw/components/FontPicker/FontPickerTrigger.d.ts +3 -1
  140. package/dist/types/excalidraw/components/FontPicker/keyboardNavHandlers.d.ts +0 -1
  141. package/dist/types/excalidraw/components/HelpDialog.d.ts +1 -1
  142. package/dist/types/excalidraw/components/HintViewer.d.ts +4 -3
  143. package/dist/types/excalidraw/components/{ToolButton.d.ts → IconButton.d.ts} +16 -19
  144. package/dist/types/excalidraw/components/IconPicker.d.ts +14 -9
  145. package/dist/types/excalidraw/components/InlineIcon.d.ts +3 -1
  146. package/dist/types/excalidraw/components/Island.d.ts +7 -0
  147. package/dist/types/excalidraw/components/LaserPointerButton.d.ts +2 -4
  148. package/dist/types/excalidraw/components/LayerUI.d.ts +5 -2
  149. package/dist/types/excalidraw/components/LibraryMenu.d.ts +1 -1
  150. package/dist/types/excalidraw/components/LibraryMenuControlButtons.d.ts +1 -1
  151. package/dist/types/excalidraw/components/LibraryMenuHeaderContent.d.ts +1 -2
  152. package/dist/types/excalidraw/components/LibraryMenuSection.d.ts +1 -1
  153. package/dist/types/excalidraw/components/LibraryUnit.d.ts +2 -3
  154. package/dist/types/excalidraw/components/LoadingMessage.d.ts +0 -1
  155. package/dist/types/excalidraw/components/LockButton.d.ts +3 -4
  156. package/dist/types/excalidraw/components/MagicButton.d.ts +0 -2
  157. package/dist/types/excalidraw/components/MobileMenu.d.ts +5 -7
  158. package/dist/types/excalidraw/components/MobileToolbar.d.ts +9 -0
  159. package/dist/types/excalidraw/components/Modal.d.ts +0 -1
  160. package/dist/types/excalidraw/components/OverwriteConfirm/OverwriteConfirm.d.ts +1 -1
  161. package/dist/types/excalidraw/components/OverwriteConfirm/OverwriteConfirmState.d.ts +1 -1
  162. package/dist/types/excalidraw/components/PasteChartDialog.d.ts +4 -5
  163. package/dist/types/excalidraw/components/PenModeButton.d.ts +2 -5
  164. package/dist/types/excalidraw/components/Popover.d.ts +2 -3
  165. package/dist/types/excalidraw/components/PropertiesPopover.d.ts +2 -1
  166. package/dist/types/excalidraw/components/{ButtonIcon.d.ts → RadioButton.d.ts} +2 -5
  167. package/dist/types/excalidraw/components/RadioGroup.d.ts +0 -1
  168. package/dist/types/excalidraw/components/RadioSelection.d.ts +4 -4
  169. package/dist/types/excalidraw/components/Range.d.ts +10 -4
  170. package/dist/types/excalidraw/components/SVGLayer.d.ts +1 -1
  171. package/dist/types/excalidraw/components/ScrollableList.d.ts +0 -1
  172. package/dist/types/excalidraw/components/SearchMenu.d.ts +1 -1
  173. package/dist/types/excalidraw/components/Sidebar/Sidebar.d.ts +16 -22
  174. package/dist/types/excalidraw/components/Sidebar/SidebarHeader.d.ts +1 -1
  175. package/dist/types/excalidraw/components/Sidebar/SidebarTab.d.ts +1 -2
  176. package/dist/types/excalidraw/components/Sidebar/SidebarTabTrigger.d.ts +1 -2
  177. package/dist/types/excalidraw/components/Sidebar/SidebarTabTriggers.d.ts +1 -2
  178. package/dist/types/excalidraw/components/Sidebar/SidebarTabs.d.ts +1 -2
  179. package/dist/types/excalidraw/components/Spinner.d.ts +4 -4
  180. package/dist/types/excalidraw/components/Stats/Angle.d.ts +2 -2
  181. package/dist/types/excalidraw/components/Stats/CanvasGrid.d.ts +0 -1
  182. package/dist/types/excalidraw/components/Stats/Collapsible.d.ts +0 -1
  183. package/dist/types/excalidraw/components/Stats/Dimension.d.ts +2 -2
  184. package/dist/types/excalidraw/components/Stats/DragInput.d.ts +2 -3
  185. package/dist/types/excalidraw/components/Stats/MultiAngle.d.ts +2 -2
  186. package/dist/types/excalidraw/components/Stats/MultiDimension.d.ts +2 -2
  187. package/dist/types/excalidraw/components/Stats/MultiPosition.d.ts +2 -2
  188. package/dist/types/excalidraw/components/Stats/Position.d.ts +3 -3
  189. package/dist/types/excalidraw/components/Stats/index.d.ts +7 -8
  190. package/dist/types/excalidraw/components/Stats/utils.d.ts +1 -1
  191. package/dist/types/excalidraw/components/TTDDialog/Chat/ChatHistoryMenu.d.ts +15 -0
  192. package/dist/types/excalidraw/components/TTDDialog/Chat/ChatInterface.d.ts +23 -0
  193. package/dist/types/excalidraw/components/TTDDialog/Chat/ChatMessage.d.ts +14 -0
  194. package/dist/types/excalidraw/components/TTDDialog/Chat/TTDChatPanel.d.ts +27 -0
  195. package/dist/types/excalidraw/components/TTDDialog/Chat/index.d.ts +3 -0
  196. package/dist/types/excalidraw/components/TTDDialog/Chat/useChatAgent.d.ts +8 -0
  197. package/dist/types/excalidraw/components/TTDDialog/CodeMirrorEditor.d.ts +11 -0
  198. package/dist/types/excalidraw/components/TTDDialog/MermaidToExcalidraw.d.ts +3 -2
  199. package/dist/types/excalidraw/components/TTDDialog/TTDContext.d.ts +13 -0
  200. package/dist/types/excalidraw/components/TTDDialog/TTDDialog.d.ts +12 -29
  201. package/dist/types/excalidraw/components/TTDDialog/TTDDialogInput.d.ts +3 -3
  202. package/dist/types/excalidraw/components/TTDDialog/TTDDialogOutput.d.ts +5 -2
  203. package/dist/types/excalidraw/components/TTDDialog/TTDDialogPanel.d.ts +13 -9
  204. package/dist/types/excalidraw/components/TTDDialog/TTDDialogTab.d.ts +1 -2
  205. package/dist/types/excalidraw/components/TTDDialog/TTDDialogTabTrigger.d.ts +1 -2
  206. package/dist/types/excalidraw/components/TTDDialog/TTDDialogTabTriggers.d.ts +1 -2
  207. package/dist/types/excalidraw/components/TTDDialog/TTDPreviewPanel.d.ts +9 -0
  208. package/dist/types/excalidraw/components/TTDDialog/TTDWelcomeMessage.d.ts +1 -0
  209. package/dist/types/excalidraw/components/TTDDialog/TextToDiagram.d.ts +9 -0
  210. package/dist/types/excalidraw/components/TTDDialog/common.d.ts +16 -16
  211. package/dist/types/excalidraw/components/TTDDialog/hooks/useChatManagement.d.ts +13 -0
  212. package/dist/types/excalidraw/components/TTDDialog/hooks/useMermaidRenderer.d.ts +14 -0
  213. package/dist/types/excalidraw/components/TTDDialog/hooks/useTextGeneration.d.ts +7 -0
  214. package/dist/types/excalidraw/components/TTDDialog/mermaid-lang-lite.d.ts +2 -0
  215. package/dist/types/excalidraw/components/TTDDialog/types.d.ts +95 -0
  216. package/dist/types/excalidraw/components/TTDDialog/useTTDChatStorage.d.ts +22 -0
  217. package/dist/types/excalidraw/components/TTDDialog/utils/chat.d.ts +10 -0
  218. package/dist/types/excalidraw/components/TTDDialog/utils/mermaidAutoFix.d.ts +1 -0
  219. package/dist/types/excalidraw/components/TTDDialog/utils/mermaidError.d.ts +10 -0
  220. package/dist/types/excalidraw/components/TTDDialog/utils/mermaidValidation.d.ts +1 -0
  221. package/dist/types/excalidraw/components/TextField.d.ts +1 -0
  222. package/dist/types/excalidraw/components/Toast.d.ts +11 -7
  223. package/dist/types/excalidraw/components/ToolPopover.d.ts +22 -0
  224. package/dist/types/excalidraw/components/Toolbar.d.ts +11 -0
  225. package/dist/types/excalidraw/components/Tools.d.ts +145 -0
  226. package/dist/types/excalidraw/components/Trans.d.ts +2 -2
  227. package/dist/types/excalidraw/components/canvases/InteractiveCanvas.d.ts +10 -4
  228. package/dist/types/excalidraw/components/canvases/NewElementCanvas.d.ts +1 -0
  229. package/dist/types/excalidraw/components/canvases/StaticCanvas.d.ts +1 -1
  230. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenu.d.ts +47 -35
  231. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuContent.d.ts +7 -5
  232. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuGroup.d.ts +3 -3
  233. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuItem.d.ts +13 -22
  234. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuItemCheckbox.d.ts +5 -0
  235. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuItemContent.d.ts +5 -4
  236. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuItemContentRadio.d.ts +2 -2
  237. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuItemCustom.d.ts +2 -2
  238. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuItemLink.d.ts +6 -6
  239. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuSub.d.ts +23 -0
  240. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuSubContent.d.ts +8 -0
  241. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuSubTrigger.d.ts +12 -0
  242. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuTrigger.d.ts +3 -4
  243. package/dist/types/excalidraw/components/dropdownMenu/common.d.ts +2 -2
  244. package/dist/types/excalidraw/components/dropdownMenu/dropdownMenuUtils.d.ts +2 -0
  245. package/dist/types/excalidraw/components/footer/Footer.d.ts +3 -1
  246. package/dist/types/excalidraw/components/hoc/withInternalFallback.d.ts +1 -1
  247. package/dist/types/excalidraw/components/hyperlink/helpers.d.ts +3 -3
  248. package/dist/types/excalidraw/components/icons.d.ts +52 -22
  249. package/dist/types/excalidraw/components/main-menu/DefaultItems.d.ts +24 -3
  250. package/dist/types/excalidraw/components/main-menu/MainMenu.d.ts +39 -35
  251. package/dist/types/excalidraw/components/positionElementBesideCursor.d.ts +26 -0
  252. package/dist/types/excalidraw/components/shapeActionPredicates.d.ts +39 -0
  253. package/dist/types/excalidraw/data/blob.d.ts +339 -12
  254. package/dist/types/excalidraw/data/encode.d.ts +4 -4
  255. package/dist/types/excalidraw/data/encryption.d.ts +5 -5
  256. package/dist/types/excalidraw/data/filesystem.d.ts +5 -7
  257. package/dist/types/excalidraw/data/index.d.ts +8 -9
  258. package/dist/types/excalidraw/data/json.d.ts +175 -3
  259. package/dist/types/excalidraw/data/library.d.ts +25 -10
  260. package/dist/types/excalidraw/data/resave.d.ts +7 -2
  261. package/dist/types/excalidraw/data/restore.d.ts +25 -10
  262. package/dist/types/excalidraw/data/types.d.ts +4 -1
  263. package/dist/types/excalidraw/drawShapeTrail.d.ts +16 -0
  264. package/dist/types/excalidraw/editor-jotai.d.ts +11 -11
  265. package/dist/types/excalidraw/eraser/index.d.ts +2 -3
  266. package/dist/types/excalidraw/errors.d.ts +14 -0
  267. package/dist/types/excalidraw/hooks/useAppStateValue.d.ts +29 -0
  268. package/dist/types/excalidraw/hooks/useLibraryItemSvg.d.ts +2 -2
  269. package/dist/types/excalidraw/hooks/useOutsideClick.d.ts +4 -3
  270. package/dist/types/excalidraw/hooks/useScrollPosition.d.ts +1 -2
  271. package/dist/types/excalidraw/hooks/useTextEditorFocus.d.ts +14 -0
  272. package/dist/types/excalidraw/i18n.d.ts +2 -2
  273. package/dist/types/excalidraw/{laser-trails.d.ts → laserTrails.d.ts} +5 -7
  274. package/dist/types/excalidraw/lasso/index.d.ts +2 -3
  275. package/dist/types/excalidraw/renderer/animation.d.ts +16 -0
  276. package/dist/types/excalidraw/renderer/helpers.d.ts +6 -8
  277. package/dist/types/excalidraw/renderer/interactiveScene.d.ts +7 -15
  278. package/dist/types/excalidraw/scene/Renderer.d.ts +428 -18
  279. package/dist/types/excalidraw/scene/export.d.ts +4 -4
  280. package/dist/types/excalidraw/scene/index.d.ts +2 -2
  281. package/dist/types/excalidraw/scene/types.d.ts +26 -8
  282. package/dist/types/excalidraw/shortcut.d.ts +1 -0
  283. package/dist/types/excalidraw/snapping.d.ts +12 -12
  284. package/dist/types/excalidraw/subset/harfbuzz/harfbuzz-bindings.d.ts +1 -1
  285. package/dist/types/excalidraw/subset/harfbuzz/harfbuzz-loader.d.ts +1 -1
  286. package/dist/types/excalidraw/subset/harfbuzz/harfbuzz-wasm.d.ts +1 -1
  287. package/dist/types/excalidraw/subset/woff2/woff2-loader.d.ts +2 -2
  288. package/dist/types/excalidraw/subset/woff2/woff2-wasm.d.ts +1 -1
  289. package/dist/types/excalidraw/textAutoResizeHandle.d.ts +15 -0
  290. package/dist/types/excalidraw/types.d.ts +486 -51
  291. package/dist/types/excalidraw/viewport.d.ts +272 -0
  292. package/dist/types/excalidraw/wysiwyg/textWysiwyg.d.ts +8 -5
  293. package/dist/types/fractional-indexing/src/index.d.ts +29 -0
  294. package/dist/types/laser-pointer/src/index.d.ts +2 -0
  295. package/dist/types/laser-pointer/src/math.d.ts +16 -0
  296. package/dist/types/laser-pointer/src/simplify.d.ts +2 -0
  297. package/dist/types/laser-pointer/src/state.d.ts +36 -0
  298. package/dist/types/math/src/constants.d.ts +0 -1
  299. package/dist/types/math/src/curve.d.ts +4 -1
  300. package/dist/types/math/src/index.d.ts +1 -0
  301. package/dist/types/math/src/pca.d.ts +79 -0
  302. package/dist/types/math/src/point.d.ts +8 -2
  303. package/dist/types/math/src/polygon.d.ts +26 -2
  304. package/dist/types/math/src/range.d.ts +1 -3
  305. package/dist/types/math/src/segment.d.ts +4 -3
  306. package/dist/types/math/src/types.d.ts +25 -1
  307. package/dist/types/utils/src/export.d.ts +8 -8
  308. package/dist/types/utils/src/index.d.ts +1 -2
  309. package/dist/types/utils/src/shape.d.ts +6 -6
  310. package/package.json +7 -1
  311. package/dist/types/excalidraw/actions/actionEmbeddable.d.ts +0 -185
  312. package/dist/types/excalidraw/animation-frame-handler.d.ts +0 -16
  313. package/dist/types/excalidraw/charts.d.ts +0 -27
  314. package/dist/types/excalidraw/components/DiagramToCodePlugin/DiagramToCodePlugin.d.ts +0 -4
  315. package/dist/types/excalidraw/components/ExcalidrawLogo.d.ts +0 -16
  316. package/dist/types/excalidraw/components/HandButton.d.ts +0 -10
  317. package/dist/types/excalidraw/components/InitializeApp.d.ts +0 -10
  318. package/dist/types/excalidraw/components/TTDDialog/TTDDialogTrigger.d.ts +0 -9
  319. package/dist/types/excalidraw/components/footer/FooterCenter.d.ts +0 -8
  320. package/dist/types/excalidraw/components/live-collaboration/LiveCollaborationTrigger.d.ts +0 -10
  321. package/dist/types/excalidraw/components/shapes.d.ts +0 -190
  322. package/dist/types/excalidraw/components/welcome-screen/WelcomeScreen.Center.d.ts +0 -58
  323. package/dist/types/excalidraw/components/welcome-screen/WelcomeScreen.Hints.d.ts +0 -19
  324. package/dist/types/excalidraw/components/welcome-screen/WelcomeScreen.d.ts +0 -85
  325. package/dist/types/excalidraw/cursor.d.ts +0 -5
  326. package/dist/types/excalidraw/data/reconcile.d.ts +0 -7
  327. package/dist/types/excalidraw/index.d.ts +0 -47
  328. package/dist/types/excalidraw/polyfill.d.ts +0 -2
  329. package/dist/types/excalidraw/scene/scroll.d.ts +0 -23
  330. package/dist/types/excalidraw/scene/zoom.d.ts +0 -12
  331. package/dist/types/utils/src/bbox.d.ts +0 -9
  332. package/dist/types/utils/src/withinBounds.d.ts +0 -19
@@ -1,13 +1,12 @@
1
- /// <reference types="react" />
2
1
  import type { ExcalidrawElement } from "@excalidraw/element/types";
3
- import type { AppClassProperties, AppState } from "../types";
2
+ import type { AppClassProperties, UIAppState } from "../types";
4
3
  export declare const actionSelectAllElementsInFrame: {
5
4
  name: "selectAllElementsInFrame";
6
5
  label: string;
7
6
  trackEvent: {
8
7
  category: "canvas";
9
8
  };
10
- perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: any, app: AppClassProperties) => {
9
+ perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, _: unknown, app: AppClassProperties) => {
11
10
  elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[];
12
11
  appState: {
13
12
  selectedElementIds: Record<string, true>;
@@ -18,18 +17,27 @@ export declare const actionSelectAllElementsInFrame: {
18
17
  } | null;
19
18
  showWelcomeScreen: boolean;
20
19
  isLoading: boolean;
21
- errorMessage: import("react").ReactNode;
20
+ errorMessage: React.ReactNode;
22
21
  activeEmbeddable: {
23
22
  element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
24
- state: "active" | "hover";
23
+ state: "hover" | "active";
25
24
  } | null;
26
25
  newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
27
26
  resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
28
27
  multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
29
28
  selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
30
29
  isBindingEnabled: boolean;
31
- startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
32
- suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
30
+ boxSelectionMode: import("../types").BoxSelectionMode;
31
+ bindingPreference: "enabled" | "disabled";
32
+ isMidpointSnappingEnabled: boolean;
33
+ suggestedBinding: {
34
+ element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
35
+ midPoint?: import("@excalidraw/math").GlobalPoint;
36
+ } | null;
37
+ hoveredArrowTextAnchor: {
38
+ elementId: import("@excalidraw/element/types").ExcalidrawArrowElement["id"];
39
+ anchor: "start" | "end" | "label";
40
+ } | null;
33
41
  frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
34
42
  frameRendering: {
35
43
  enabled: boolean;
@@ -37,14 +45,18 @@ export declare const actionSelectAllElementsInFrame: {
37
45
  outline: boolean;
38
46
  clip: boolean;
39
47
  };
40
- editingFrame: string | null;
41
- elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
42
- editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
48
+ editingFrame: import("@excalidraw/element/types").ExcalidrawFrameLikeElement["id"] | null;
49
+ elementsToHighlight: readonly import("@excalidraw/element/types").NonDeletedExcalidrawElement[] | null;
50
+ editingTextElement: import("@excalidraw/element/types").ExcalidrawTextElement | null;
43
51
  activeTool: {
44
52
  lastActiveTool: import("../types").ActiveTool | null;
45
53
  locked: boolean;
46
54
  fromSelection: boolean;
47
55
  } & import("../types").ActiveTool;
56
+ preferredSelectionTool: {
57
+ type: "selection" | "lasso";
58
+ initialized: boolean;
59
+ };
48
60
  penMode: boolean;
49
61
  penDetected: boolean;
50
62
  exportBackground: boolean;
@@ -53,47 +65,53 @@ export declare const actionSelectAllElementsInFrame: {
53
65
  exportScale: number;
54
66
  currentItemStrokeColor: string;
55
67
  currentItemBackgroundColor: string;
56
- currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
57
- currentItemStrokeWidth: number;
58
- currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
68
+ currentItemFillStyle: ExcalidrawElement["fillStyle"];
69
+ currentItemStrokeWidthKey: import("@excalidraw/common").StrokeWidthKey;
70
+ currentItemStrokeStyle: ExcalidrawElement["strokeStyle"];
59
71
  currentItemRoughness: number;
72
+ currentItemStrokeVariability: import("@excalidraw/element/types").StrokeVariability;
60
73
  currentItemOpacity: number;
61
- currentItemFontFamily: number;
74
+ currentItemFontFamily: import("@excalidraw/element/types").FontFamilyValues;
62
75
  currentItemFontSize: number;
63
- currentItemTextAlign: string;
76
+ currentItemTextAlign: import("@excalidraw/element/types").TextAlign;
64
77
  currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
65
78
  currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
66
- currentHoveredFontFamily: number | null;
79
+ currentHoveredFontFamily: import("@excalidraw/element/types").FontFamilyValues | null;
67
80
  currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
68
- currentItemArrowType: "round" | "sharp" | "elbow";
81
+ currentItemArrowType: "sharp" | "round" | "elbow";
69
82
  viewBackgroundColor: string;
70
83
  scrollX: number;
71
84
  scrollY: number;
85
+ scrollConstraints: import("../types").ScrollConstraints | null;
72
86
  cursorButton: "up" | "down";
73
87
  scrolledOutside: boolean;
74
88
  name: string | null;
75
89
  isResizing: boolean;
76
90
  isRotating: boolean;
77
- zoom: Readonly<{
78
- value: import("../types").NormalizedZoomValue;
79
- }>;
80
- openMenu: "canvas" | "shape" | null;
81
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
91
+ zoom: import("../types").Zoom;
92
+ openMenu: "canvas" | null;
93
+ openPopup: "canvasBackground" | "elementBackground" | "elementStroke" | "fontFamily" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
82
94
  openSidebar: {
83
- name: string;
84
- tab?: string | undefined;
95
+ name: import("../types").SidebarName;
96
+ tab?: import("../types").SidebarTabName;
85
97
  } | null;
86
- openDialog: {
98
+ openDialog: null | {
87
99
  name: "imageExport" | "help" | "jsonExport";
88
100
  } | {
89
101
  name: "ttd";
90
- tab: "mermaid" | "text-to-diagram";
102
+ tab: "text-to-diagram" | "mermaid";
91
103
  } | {
92
104
  name: "commandPalette";
105
+ } | {
106
+ name: "settings";
93
107
  } | {
94
108
  name: "elementLinkSelector";
95
- sourceElementId: string;
96
- } | null;
109
+ sourceElementId: ExcalidrawElement["id"];
110
+ } | {
111
+ name: "charts";
112
+ data: import("../charts").Spreadsheet;
113
+ rawText: string;
114
+ };
97
115
  defaultSidebarDockedPreference: boolean;
98
116
  lastPointerDownWith: import("@excalidraw/element/types").PointerType;
99
117
  hoveredElementIds: Readonly<{
@@ -105,9 +123,9 @@ export declare const actionSelectAllElementsInFrame: {
105
123
  selectedElementsAreBeingDragged: boolean;
106
124
  shouldCacheIgnoreZoom: boolean;
107
125
  toast: {
108
- message: string;
109
- closable?: boolean | undefined;
110
- duration?: number | undefined;
126
+ message: React.ReactNode;
127
+ closable?: boolean;
128
+ duration?: number;
111
129
  } | null;
112
130
  zenModeEnabled: boolean;
113
131
  theme: import("@excalidraw/element/types").Theme;
@@ -118,45 +136,18 @@ export declare const actionSelectAllElementsInFrame: {
118
136
  selectedGroupIds: {
119
137
  [groupId: string]: boolean;
120
138
  };
121
- editingGroupId: string | null;
139
+ editingGroupId: import("@excalidraw/element/types").GroupId | null;
122
140
  width: number;
123
141
  height: number;
124
142
  offsetTop: number;
125
143
  offsetLeft: number;
126
- fileHandle: import("browser-fs-access").FileSystemHandle | null;
127
- collaborators: Map<import("../types").SocketId, Readonly<{
128
- pointer?: import("../types").CollaboratorPointer | undefined;
129
- button?: "up" | "down" | undefined;
130
- selectedElementIds?: Readonly<{
131
- [id: string]: true;
132
- }> | undefined;
133
- username?: string | null | undefined;
134
- userState?: import("@excalidraw/common").UserIdleState | undefined;
135
- color?: {
136
- background: string;
137
- stroke: string;
138
- } | undefined;
139
- avatarUrl?: string | undefined;
140
- id?: string | undefined;
141
- socketId?: import("../types").SocketId | undefined;
142
- isCurrentUser?: boolean | undefined;
143
- isInCall?: boolean | undefined;
144
- isSpeaking?: boolean | undefined;
145
- isMuted?: boolean | undefined;
146
- }>>;
144
+ fileHandle: FileSystemFileHandle | null;
145
+ collaborators: Map<import("../types").SocketId, import("../types").Collaborator>;
147
146
  stats: {
148
147
  open: boolean;
149
148
  panels: number;
150
149
  };
151
- currentChartType: import("@excalidraw/element/types").ChartType;
152
- pasteDialog: {
153
- shown: false;
154
- data: null;
155
- } | {
156
- shown: true;
157
- data: import("../charts").Spreadsheet;
158
- };
159
- showHyperlinkPopup: false | "editor" | "info";
150
+ showHyperlinkPopup: false | "info" | "editor";
160
151
  selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
161
152
  snapLines: readonly import("../snapping").SnapLine[];
162
153
  originSnapOffset: {
@@ -167,23 +158,24 @@ export declare const actionSelectAllElementsInFrame: {
167
158
  userToFollow: import("../types").UserToFollow | null;
168
159
  followedBy: Set<import("../types").SocketId>;
169
160
  isCropping: boolean;
170
- croppingElementId: string | null;
161
+ croppingElementId: ExcalidrawElement["id"] | null;
171
162
  searchMatches: Readonly<{
172
- focusedId: string | null;
163
+ focusedId: ExcalidrawElement["id"] | null;
173
164
  matches: readonly import("../types").SearchMatch[];
174
165
  }> | null;
175
166
  activeLockedId: string | null;
176
167
  lockedMultiSelections: {
177
168
  [groupId: string]: true;
178
169
  };
170
+ bindMode: import("@excalidraw/element/types").BindMode;
179
171
  };
180
172
  captureUpdate: "IMMEDIATELY";
181
173
  } | {
182
174
  elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[];
183
- appState: Readonly<AppState>;
175
+ appState: Readonly<import("../types").AppState>;
184
176
  captureUpdate: "EVENTUALLY";
185
177
  };
186
- predicate: (elements: readonly ExcalidrawElement[], appState: AppState, _: import("../types").ExcalidrawProps, app: AppClassProperties) => boolean;
178
+ predicate: (elements: readonly ExcalidrawElement[], appState: import("../types").AppState, _: import("../types").ExcalidrawProps, app: AppClassProperties) => boolean;
187
179
  } & {
188
180
  keyTest?: undefined;
189
181
  };
@@ -193,7 +185,7 @@ export declare const actionRemoveAllElementsFromFrame: {
193
185
  trackEvent: {
194
186
  category: "history";
195
187
  };
196
- perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: any, app: AppClassProperties) => {
188
+ perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, _: unknown, app: AppClassProperties) => {
197
189
  elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[];
198
190
  appState: {
199
191
  selectedElementIds: {
@@ -206,18 +198,27 @@ export declare const actionRemoveAllElementsFromFrame: {
206
198
  } | null;
207
199
  showWelcomeScreen: boolean;
208
200
  isLoading: boolean;
209
- errorMessage: import("react").ReactNode;
201
+ errorMessage: React.ReactNode;
210
202
  activeEmbeddable: {
211
203
  element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
212
- state: "active" | "hover";
204
+ state: "hover" | "active";
213
205
  } | null;
214
206
  newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
215
207
  resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
216
208
  multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
217
209
  selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
218
210
  isBindingEnabled: boolean;
219
- startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
220
- suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
211
+ boxSelectionMode: import("../types").BoxSelectionMode;
212
+ bindingPreference: "enabled" | "disabled";
213
+ isMidpointSnappingEnabled: boolean;
214
+ suggestedBinding: {
215
+ element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
216
+ midPoint?: import("@excalidraw/math").GlobalPoint;
217
+ } | null;
218
+ hoveredArrowTextAnchor: {
219
+ elementId: import("@excalidraw/element/types").ExcalidrawArrowElement["id"];
220
+ anchor: "start" | "end" | "label";
221
+ } | null;
221
222
  frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
222
223
  frameRendering: {
223
224
  enabled: boolean;
@@ -225,14 +226,18 @@ export declare const actionRemoveAllElementsFromFrame: {
225
226
  outline: boolean;
226
227
  clip: boolean;
227
228
  };
228
- editingFrame: string | null;
229
- elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
230
- editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
229
+ editingFrame: import("@excalidraw/element/types").ExcalidrawFrameLikeElement["id"] | null;
230
+ elementsToHighlight: readonly import("@excalidraw/element/types").NonDeletedExcalidrawElement[] | null;
231
+ editingTextElement: import("@excalidraw/element/types").ExcalidrawTextElement | null;
231
232
  activeTool: {
232
233
  lastActiveTool: import("../types").ActiveTool | null;
233
234
  locked: boolean;
234
235
  fromSelection: boolean;
235
236
  } & import("../types").ActiveTool;
237
+ preferredSelectionTool: {
238
+ type: "selection" | "lasso";
239
+ initialized: boolean;
240
+ };
236
241
  penMode: boolean;
237
242
  penDetected: boolean;
238
243
  exportBackground: boolean;
@@ -241,47 +246,53 @@ export declare const actionRemoveAllElementsFromFrame: {
241
246
  exportScale: number;
242
247
  currentItemStrokeColor: string;
243
248
  currentItemBackgroundColor: string;
244
- currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
245
- currentItemStrokeWidth: number;
246
- currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
249
+ currentItemFillStyle: ExcalidrawElement["fillStyle"];
250
+ currentItemStrokeWidthKey: import("@excalidraw/common").StrokeWidthKey;
251
+ currentItemStrokeStyle: ExcalidrawElement["strokeStyle"];
247
252
  currentItemRoughness: number;
253
+ currentItemStrokeVariability: import("@excalidraw/element/types").StrokeVariability;
248
254
  currentItemOpacity: number;
249
- currentItemFontFamily: number;
255
+ currentItemFontFamily: import("@excalidraw/element/types").FontFamilyValues;
250
256
  currentItemFontSize: number;
251
- currentItemTextAlign: string;
257
+ currentItemTextAlign: import("@excalidraw/element/types").TextAlign;
252
258
  currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
253
259
  currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
254
- currentHoveredFontFamily: number | null;
260
+ currentHoveredFontFamily: import("@excalidraw/element/types").FontFamilyValues | null;
255
261
  currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
256
- currentItemArrowType: "round" | "sharp" | "elbow";
262
+ currentItemArrowType: "sharp" | "round" | "elbow";
257
263
  viewBackgroundColor: string;
258
264
  scrollX: number;
259
265
  scrollY: number;
266
+ scrollConstraints: import("../types").ScrollConstraints | null;
260
267
  cursorButton: "up" | "down";
261
268
  scrolledOutside: boolean;
262
269
  name: string | null;
263
270
  isResizing: boolean;
264
271
  isRotating: boolean;
265
- zoom: Readonly<{
266
- value: import("../types").NormalizedZoomValue;
267
- }>;
268
- openMenu: "canvas" | "shape" | null;
269
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
272
+ zoom: import("../types").Zoom;
273
+ openMenu: "canvas" | null;
274
+ openPopup: "canvasBackground" | "elementBackground" | "elementStroke" | "fontFamily" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
270
275
  openSidebar: {
271
- name: string;
272
- tab?: string | undefined;
276
+ name: import("../types").SidebarName;
277
+ tab?: import("../types").SidebarTabName;
273
278
  } | null;
274
- openDialog: {
279
+ openDialog: null | {
275
280
  name: "imageExport" | "help" | "jsonExport";
276
281
  } | {
277
282
  name: "ttd";
278
- tab: "mermaid" | "text-to-diagram";
283
+ tab: "text-to-diagram" | "mermaid";
279
284
  } | {
280
285
  name: "commandPalette";
286
+ } | {
287
+ name: "settings";
281
288
  } | {
282
289
  name: "elementLinkSelector";
283
- sourceElementId: string;
284
- } | null;
290
+ sourceElementId: ExcalidrawElement["id"];
291
+ } | {
292
+ name: "charts";
293
+ data: import("../charts").Spreadsheet;
294
+ rawText: string;
295
+ };
285
296
  defaultSidebarDockedPreference: boolean;
286
297
  lastPointerDownWith: import("@excalidraw/element/types").PointerType;
287
298
  hoveredElementIds: Readonly<{
@@ -293,9 +304,9 @@ export declare const actionRemoveAllElementsFromFrame: {
293
304
  selectedElementsAreBeingDragged: boolean;
294
305
  shouldCacheIgnoreZoom: boolean;
295
306
  toast: {
296
- message: string;
297
- closable?: boolean | undefined;
298
- duration?: number | undefined;
307
+ message: React.ReactNode;
308
+ closable?: boolean;
309
+ duration?: number;
299
310
  } | null;
300
311
  zenModeEnabled: boolean;
301
312
  theme: import("@excalidraw/element/types").Theme;
@@ -306,45 +317,18 @@ export declare const actionRemoveAllElementsFromFrame: {
306
317
  selectedGroupIds: {
307
318
  [groupId: string]: boolean;
308
319
  };
309
- editingGroupId: string | null;
320
+ editingGroupId: import("@excalidraw/element/types").GroupId | null;
310
321
  width: number;
311
322
  height: number;
312
323
  offsetTop: number;
313
324
  offsetLeft: number;
314
- fileHandle: import("browser-fs-access").FileSystemHandle | null;
315
- collaborators: Map<import("../types").SocketId, Readonly<{
316
- pointer?: import("../types").CollaboratorPointer | undefined;
317
- button?: "up" | "down" | undefined;
318
- selectedElementIds?: Readonly<{
319
- [id: string]: true;
320
- }> | undefined;
321
- username?: string | null | undefined;
322
- userState?: import("@excalidraw/common").UserIdleState | undefined;
323
- color?: {
324
- background: string;
325
- stroke: string;
326
- } | undefined;
327
- avatarUrl?: string | undefined;
328
- id?: string | undefined;
329
- socketId?: import("../types").SocketId | undefined;
330
- isCurrentUser?: boolean | undefined;
331
- isInCall?: boolean | undefined;
332
- isSpeaking?: boolean | undefined;
333
- isMuted?: boolean | undefined;
334
- }>>;
325
+ fileHandle: FileSystemFileHandle | null;
326
+ collaborators: Map<import("../types").SocketId, import("../types").Collaborator>;
335
327
  stats: {
336
328
  open: boolean;
337
329
  panels: number;
338
330
  };
339
- currentChartType: import("@excalidraw/element/types").ChartType;
340
- pasteDialog: {
341
- shown: false;
342
- data: null;
343
- } | {
344
- shown: true;
345
- data: import("../charts").Spreadsheet;
346
- };
347
- showHyperlinkPopup: false | "editor" | "info";
331
+ showHyperlinkPopup: false | "info" | "editor";
348
332
  selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
349
333
  snapLines: readonly import("../snapping").SnapLine[];
350
334
  originSnapOffset: {
@@ -355,23 +339,24 @@ export declare const actionRemoveAllElementsFromFrame: {
355
339
  userToFollow: import("../types").UserToFollow | null;
356
340
  followedBy: Set<import("../types").SocketId>;
357
341
  isCropping: boolean;
358
- croppingElementId: string | null;
342
+ croppingElementId: ExcalidrawElement["id"] | null;
359
343
  searchMatches: Readonly<{
360
- focusedId: string | null;
344
+ focusedId: ExcalidrawElement["id"] | null;
361
345
  matches: readonly import("../types").SearchMatch[];
362
346
  }> | null;
363
347
  activeLockedId: string | null;
364
348
  lockedMultiSelections: {
365
349
  [groupId: string]: true;
366
350
  };
351
+ bindMode: import("@excalidraw/element/types").BindMode;
367
352
  };
368
353
  captureUpdate: "IMMEDIATELY";
369
354
  } | {
370
355
  elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[];
371
- appState: Readonly<AppState>;
356
+ appState: Readonly<import("../types").AppState>;
372
357
  captureUpdate: "EVENTUALLY";
373
358
  };
374
- predicate: (elements: readonly ExcalidrawElement[], appState: AppState, _: import("../types").ExcalidrawProps, app: AppClassProperties) => boolean;
359
+ predicate: (elements: readonly ExcalidrawElement[], appState: import("../types").AppState, _: import("../types").ExcalidrawProps, app: AppClassProperties) => boolean;
375
360
  } & {
376
361
  keyTest?: undefined;
377
362
  };
@@ -382,7 +367,7 @@ export declare const actionupdateFrameRendering: {
382
367
  trackEvent: {
383
368
  category: "canvas";
384
369
  };
385
- perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>) => {
370
+ perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>) => {
386
371
  elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[];
387
372
  appState: {
388
373
  frameRendering: {
@@ -398,27 +383,40 @@ export declare const actionupdateFrameRendering: {
398
383
  } | null;
399
384
  showWelcomeScreen: boolean;
400
385
  isLoading: boolean;
401
- errorMessage: import("react").ReactNode;
386
+ errorMessage: React.ReactNode;
402
387
  activeEmbeddable: {
403
388
  element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
404
- state: "active" | "hover";
389
+ state: "hover" | "active";
405
390
  } | null;
406
391
  newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
407
392
  resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
408
393
  multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
409
394
  selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
410
395
  isBindingEnabled: boolean;
411
- startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
412
- suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
396
+ boxSelectionMode: import("../types").BoxSelectionMode;
397
+ bindingPreference: "enabled" | "disabled";
398
+ isMidpointSnappingEnabled: boolean;
399
+ suggestedBinding: {
400
+ element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
401
+ midPoint?: import("@excalidraw/math").GlobalPoint;
402
+ } | null;
403
+ hoveredArrowTextAnchor: {
404
+ elementId: import("@excalidraw/element/types").ExcalidrawArrowElement["id"];
405
+ anchor: "start" | "end" | "label";
406
+ } | null;
413
407
  frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
414
- editingFrame: string | null;
415
- elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
416
- editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
408
+ editingFrame: import("@excalidraw/element/types").ExcalidrawFrameLikeElement["id"] | null;
409
+ elementsToHighlight: readonly import("@excalidraw/element/types").NonDeletedExcalidrawElement[] | null;
410
+ editingTextElement: import("@excalidraw/element/types").ExcalidrawTextElement | null;
417
411
  activeTool: {
418
412
  lastActiveTool: import("../types").ActiveTool | null;
419
413
  locked: boolean;
420
414
  fromSelection: boolean;
421
415
  } & import("../types").ActiveTool;
416
+ preferredSelectionTool: {
417
+ type: "selection" | "lasso";
418
+ initialized: boolean;
419
+ };
422
420
  penMode: boolean;
423
421
  penDetected: boolean;
424
422
  exportBackground: boolean;
@@ -427,233 +425,53 @@ export declare const actionupdateFrameRendering: {
427
425
  exportScale: number;
428
426
  currentItemStrokeColor: string;
429
427
  currentItemBackgroundColor: string;
430
- currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
431
- currentItemStrokeWidth: number;
432
- currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
428
+ currentItemFillStyle: ExcalidrawElement["fillStyle"];
429
+ currentItemStrokeWidthKey: import("@excalidraw/common").StrokeWidthKey;
430
+ currentItemStrokeStyle: ExcalidrawElement["strokeStyle"];
433
431
  currentItemRoughness: number;
432
+ currentItemStrokeVariability: import("@excalidraw/element/types").StrokeVariability;
434
433
  currentItemOpacity: number;
435
- currentItemFontFamily: number;
434
+ currentItemFontFamily: import("@excalidraw/element/types").FontFamilyValues;
436
435
  currentItemFontSize: number;
437
- currentItemTextAlign: string;
436
+ currentItemTextAlign: import("@excalidraw/element/types").TextAlign;
438
437
  currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
439
438
  currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
440
- currentHoveredFontFamily: number | null;
439
+ currentHoveredFontFamily: import("@excalidraw/element/types").FontFamilyValues | null;
441
440
  currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
442
- currentItemArrowType: "round" | "sharp" | "elbow";
441
+ currentItemArrowType: "sharp" | "round" | "elbow";
443
442
  viewBackgroundColor: string;
444
443
  scrollX: number;
445
444
  scrollY: number;
445
+ scrollConstraints: import("../types").ScrollConstraints | null;
446
446
  cursorButton: "up" | "down";
447
447
  scrolledOutside: boolean;
448
448
  name: string | null;
449
449
  isResizing: boolean;
450
450
  isRotating: boolean;
451
- zoom: Readonly<{
452
- value: import("../types").NormalizedZoomValue;
453
- }>;
454
- openMenu: "canvas" | "shape" | null;
455
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
451
+ zoom: import("../types").Zoom;
452
+ openMenu: "canvas" | null;
453
+ openPopup: "canvasBackground" | "elementBackground" | "elementStroke" | "fontFamily" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
456
454
  openSidebar: {
457
- name: string;
458
- tab?: string | undefined;
455
+ name: import("../types").SidebarName;
456
+ tab?: import("../types").SidebarTabName;
459
457
  } | null;
460
- openDialog: {
458
+ openDialog: null | {
461
459
  name: "imageExport" | "help" | "jsonExport";
462
460
  } | {
463
461
  name: "ttd";
464
- tab: "mermaid" | "text-to-diagram";
462
+ tab: "text-to-diagram" | "mermaid";
465
463
  } | {
466
464
  name: "commandPalette";
465
+ } | {
466
+ name: "settings";
467
467
  } | {
468
468
  name: "elementLinkSelector";
469
- sourceElementId: string;
470
- } | null;
471
- defaultSidebarDockedPreference: boolean;
472
- lastPointerDownWith: import("@excalidraw/element/types").PointerType;
473
- selectedElementIds: Readonly<{
474
- [id: string]: true;
475
- }>;
476
- hoveredElementIds: Readonly<{
477
- [id: string]: true;
478
- }>;
479
- previousSelectedElementIds: {
480
- [id: string]: true;
481
- };
482
- selectedElementsAreBeingDragged: boolean;
483
- shouldCacheIgnoreZoom: boolean;
484
- toast: {
485
- message: string;
486
- closable?: boolean | undefined;
487
- duration?: number | undefined;
488
- } | null;
489
- zenModeEnabled: boolean;
490
- theme: import("@excalidraw/element/types").Theme;
491
- gridSize: number;
492
- gridStep: number;
493
- gridModeEnabled: boolean;
494
- viewModeEnabled: boolean;
495
- selectedGroupIds: {
496
- [groupId: string]: boolean;
497
- };
498
- editingGroupId: string | null;
499
- width: number;
500
- height: number;
501
- offsetTop: number;
502
- offsetLeft: number;
503
- fileHandle: import("browser-fs-access").FileSystemHandle | null;
504
- collaborators: Map<import("../types").SocketId, Readonly<{
505
- pointer?: import("../types").CollaboratorPointer | undefined;
506
- button?: "up" | "down" | undefined;
507
- selectedElementIds?: Readonly<{
508
- [id: string]: true;
509
- }> | undefined;
510
- username?: string | null | undefined;
511
- userState?: import("@excalidraw/common").UserIdleState | undefined;
512
- color?: {
513
- background: string;
514
- stroke: string;
515
- } | undefined;
516
- avatarUrl?: string | undefined;
517
- id?: string | undefined;
518
- socketId?: import("../types").SocketId | undefined;
519
- isCurrentUser?: boolean | undefined;
520
- isInCall?: boolean | undefined;
521
- isSpeaking?: boolean | undefined;
522
- isMuted?: boolean | undefined;
523
- }>>;
524
- stats: {
525
- open: boolean;
526
- panels: number;
527
- };
528
- currentChartType: import("@excalidraw/element/types").ChartType;
529
- pasteDialog: {
530
- shown: false;
531
- data: null;
469
+ sourceElementId: ExcalidrawElement["id"];
532
470
  } | {
533
- shown: true;
471
+ name: "charts";
534
472
  data: import("../charts").Spreadsheet;
473
+ rawText: string;
535
474
  };
536
- showHyperlinkPopup: false | "editor" | "info";
537
- selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
538
- snapLines: readonly import("../snapping").SnapLine[];
539
- originSnapOffset: {
540
- x: number;
541
- y: number;
542
- } | null;
543
- objectsSnapModeEnabled: boolean;
544
- userToFollow: import("../types").UserToFollow | null;
545
- followedBy: Set<import("../types").SocketId>;
546
- isCropping: boolean;
547
- croppingElementId: string | null;
548
- searchMatches: Readonly<{
549
- focusedId: string | null;
550
- matches: readonly import("../types").SearchMatch[];
551
- }> | null;
552
- activeLockedId: string | null;
553
- lockedMultiSelections: {
554
- [groupId: string]: true;
555
- };
556
- };
557
- captureUpdate: "EVENTUALLY";
558
- };
559
- checked: (appState: AppState) => boolean;
560
- } & {
561
- keyTest?: undefined;
562
- };
563
- export declare const actionSetFrameAsActiveTool: {
564
- name: "setFrameAsActiveTool";
565
- label: string;
566
- trackEvent: {
567
- category: "toolbar";
568
- };
569
- icon: import("react/jsx-runtime").JSX.Element;
570
- viewMode: false;
571
- perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: any, app: AppClassProperties) => {
572
- elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[];
573
- appState: {
574
- activeTool: {
575
- lastActiveTool: import("../types").ActiveTool | null;
576
- locked: boolean;
577
- fromSelection: boolean;
578
- } & import("../types").ActiveTool;
579
- contextMenu: {
580
- items: import("../components/ContextMenu").ContextMenuItems;
581
- top: number;
582
- left: number;
583
- } | null;
584
- showWelcomeScreen: boolean;
585
- isLoading: boolean;
586
- errorMessage: import("react").ReactNode;
587
- activeEmbeddable: {
588
- element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
589
- state: "active" | "hover";
590
- } | null;
591
- newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
592
- resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
593
- multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
594
- selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
595
- isBindingEnabled: boolean;
596
- startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
597
- suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
598
- frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
599
- frameRendering: {
600
- enabled: boolean;
601
- name: boolean;
602
- outline: boolean;
603
- clip: boolean;
604
- };
605
- editingFrame: string | null;
606
- elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
607
- editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
608
- penMode: boolean;
609
- penDetected: boolean;
610
- exportBackground: boolean;
611
- exportEmbedScene: boolean;
612
- exportWithDarkMode: boolean;
613
- exportScale: number;
614
- currentItemStrokeColor: string;
615
- currentItemBackgroundColor: string;
616
- currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
617
- currentItemStrokeWidth: number;
618
- currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
619
- currentItemRoughness: number;
620
- currentItemOpacity: number;
621
- currentItemFontFamily: number;
622
- currentItemFontSize: number;
623
- currentItemTextAlign: string;
624
- currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
625
- currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
626
- currentHoveredFontFamily: number | null;
627
- currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
628
- currentItemArrowType: "round" | "sharp" | "elbow";
629
- viewBackgroundColor: string;
630
- scrollX: number;
631
- scrollY: number;
632
- cursorButton: "up" | "down";
633
- scrolledOutside: boolean;
634
- name: string | null;
635
- isResizing: boolean;
636
- isRotating: boolean;
637
- zoom: Readonly<{
638
- value: import("../types").NormalizedZoomValue;
639
- }>;
640
- openMenu: "canvas" | "shape" | null;
641
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
642
- openSidebar: {
643
- name: string;
644
- tab?: string | undefined;
645
- } | null;
646
- openDialog: {
647
- name: "imageExport" | "help" | "jsonExport";
648
- } | {
649
- name: "ttd";
650
- tab: "mermaid" | "text-to-diagram";
651
- } | {
652
- name: "commandPalette";
653
- } | {
654
- name: "elementLinkSelector";
655
- sourceElementId: string;
656
- } | null;
657
475
  defaultSidebarDockedPreference: boolean;
658
476
  lastPointerDownWith: import("@excalidraw/element/types").PointerType;
659
477
  selectedElementIds: Readonly<{
@@ -668,9 +486,9 @@ export declare const actionSetFrameAsActiveTool: {
668
486
  selectedElementsAreBeingDragged: boolean;
669
487
  shouldCacheIgnoreZoom: boolean;
670
488
  toast: {
671
- message: string;
672
- closable?: boolean | undefined;
673
- duration?: number | undefined;
489
+ message: React.ReactNode;
490
+ closable?: boolean;
491
+ duration?: number;
674
492
  } | null;
675
493
  zenModeEnabled: boolean;
676
494
  theme: import("@excalidraw/element/types").Theme;
@@ -681,45 +499,18 @@ export declare const actionSetFrameAsActiveTool: {
681
499
  selectedGroupIds: {
682
500
  [groupId: string]: boolean;
683
501
  };
684
- editingGroupId: string | null;
502
+ editingGroupId: import("@excalidraw/element/types").GroupId | null;
685
503
  width: number;
686
504
  height: number;
687
505
  offsetTop: number;
688
506
  offsetLeft: number;
689
- fileHandle: import("browser-fs-access").FileSystemHandle | null;
690
- collaborators: Map<import("../types").SocketId, Readonly<{
691
- pointer?: import("../types").CollaboratorPointer | undefined;
692
- button?: "up" | "down" | undefined;
693
- selectedElementIds?: Readonly<{
694
- [id: string]: true;
695
- }> | undefined;
696
- username?: string | null | undefined;
697
- userState?: import("@excalidraw/common").UserIdleState | undefined;
698
- color?: {
699
- background: string;
700
- stroke: string;
701
- } | undefined;
702
- avatarUrl?: string | undefined;
703
- id?: string | undefined;
704
- socketId?: import("../types").SocketId | undefined;
705
- isCurrentUser?: boolean | undefined;
706
- isInCall?: boolean | undefined;
707
- isSpeaking?: boolean | undefined;
708
- isMuted?: boolean | undefined;
709
- }>>;
507
+ fileHandle: FileSystemFileHandle | null;
508
+ collaborators: Map<import("../types").SocketId, import("../types").Collaborator>;
710
509
  stats: {
711
510
  open: boolean;
712
511
  panels: number;
713
512
  };
714
- currentChartType: import("@excalidraw/element/types").ChartType;
715
- pasteDialog: {
716
- shown: false;
717
- data: null;
718
- } | {
719
- shown: true;
720
- data: import("../charts").Spreadsheet;
721
- };
722
- showHyperlinkPopup: false | "editor" | "info";
513
+ showHyperlinkPopup: false | "info" | "editor";
723
514
  selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
724
515
  snapLines: readonly import("../snapping").SnapLine[];
725
516
  originSnapOffset: {
@@ -730,21 +521,22 @@ export declare const actionSetFrameAsActiveTool: {
730
521
  userToFollow: import("../types").UserToFollow | null;
731
522
  followedBy: Set<import("../types").SocketId>;
732
523
  isCropping: boolean;
733
- croppingElementId: string | null;
524
+ croppingElementId: ExcalidrawElement["id"] | null;
734
525
  searchMatches: Readonly<{
735
- focusedId: string | null;
526
+ focusedId: ExcalidrawElement["id"] | null;
736
527
  matches: readonly import("../types").SearchMatch[];
737
528
  }> | null;
738
529
  activeLockedId: string | null;
739
530
  lockedMultiSelections: {
740
531
  [groupId: string]: true;
741
532
  };
533
+ bindMode: import("@excalidraw/element/types").BindMode;
742
534
  };
743
535
  captureUpdate: "EVENTUALLY";
744
536
  };
745
- keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
537
+ checked: (appState: Readonly<UIAppState>) => boolean;
746
538
  } & {
747
- keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
539
+ keyTest?: undefined;
748
540
  };
749
541
  export declare const actionWrapSelectionInFrame: {
750
542
  name: "wrapSelectionInFrame";
@@ -752,8 +544,8 @@ export declare const actionWrapSelectionInFrame: {
752
544
  trackEvent: {
753
545
  category: "element";
754
546
  };
755
- predicate: (elements: readonly ExcalidrawElement[], appState: AppState, _: import("../types").ExcalidrawProps, app: AppClassProperties) => boolean;
756
- perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: any, app: AppClassProperties) => {
547
+ predicate: (elements: readonly ExcalidrawElement[], appState: import("../types").AppState, _: import("../types").ExcalidrawProps, app: AppClassProperties) => boolean;
548
+ perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, _: unknown, app: AppClassProperties) => {
757
549
  elements: ((Readonly<{
758
550
  id: string;
759
551
  x: number;
@@ -763,43 +555,34 @@ export declare const actionWrapSelectionInFrame: {
763
555
  fillStyle: import("@excalidraw/element/types").FillStyle;
764
556
  strokeWidth: number;
765
557
  strokeStyle: import("@excalidraw/element/types").StrokeStyle;
766
- roundness: {
558
+ roundness: null | {
767
559
  type: import("@excalidraw/element/types").RoundnessType;
768
- value?: number | undefined;
769
- } | null;
560
+ value?: number;
561
+ };
770
562
  roughness: number;
771
563
  opacity: number;
772
564
  width: number;
773
565
  height: number;
774
- angle: import("../../math/src").Radians;
566
+ angle: import("@excalidraw/math").Radians;
775
567
  seed: number;
776
568
  version: number;
777
569
  versionNonce: number;
778
570
  index: import("@excalidraw/element/types").FractionalIndex | null;
779
571
  isDeleted: boolean;
780
- groupIds: readonly string[];
572
+ groupIds: readonly import("@excalidraw/element/types").GroupId[];
781
573
  frameId: string | null;
782
- boundElements: readonly Readonly<{
783
- id: string;
784
- type: "text" | "arrow";
785
- }>[] | null;
574
+ boundElements: readonly import("@excalidraw/element/types").BoundElement[] | null;
786
575
  updated: number;
787
576
  link: string | null;
788
577
  locked: boolean;
789
- customData?: Record<string, any> | undefined;
578
+ customData?: Record<string, any>;
790
579
  }> & Readonly<{
791
- type: "text";
792
- fontSize: number;
793
- fontFamily: number;
794
- text: string;
795
- textAlign: string;
796
- verticalAlign: string;
797
- containerId: string | null;
798
- originalText: string;
799
- autoResize: boolean;
800
- lineHeight: number & {
801
- _brand: "unitlessLineHeight";
802
- };
580
+ type: "line" | "arrow";
581
+ points: readonly import("@excalidraw/math").LocalPoint[];
582
+ startBinding: import("@excalidraw/element/types").FixedPointBinding | null;
583
+ endBinding: import("@excalidraw/element/types").FixedPointBinding | null;
584
+ startArrowhead: import("@excalidraw/element/types").Arrowhead | null;
585
+ endArrowhead: import("@excalidraw/element/types").Arrowhead | null;
803
586
  }> & {
804
587
  index: import("@excalidraw/element/types").FractionalIndex;
805
588
  }) | (Readonly<{
@@ -811,32 +594,29 @@ export declare const actionWrapSelectionInFrame: {
811
594
  fillStyle: import("@excalidraw/element/types").FillStyle;
812
595
  strokeWidth: number;
813
596
  strokeStyle: import("@excalidraw/element/types").StrokeStyle;
814
- roundness: {
597
+ roundness: null | {
815
598
  type: import("@excalidraw/element/types").RoundnessType;
816
- value?: number | undefined;
817
- } | null;
599
+ value?: number;
600
+ };
818
601
  roughness: number;
819
602
  opacity: number;
820
603
  width: number;
821
604
  height: number;
822
- angle: import("../../math/src").Radians;
605
+ angle: import("@excalidraw/math").Radians;
823
606
  seed: number;
824
607
  version: number;
825
608
  versionNonce: number;
826
609
  index: import("@excalidraw/element/types").FractionalIndex | null;
827
610
  isDeleted: boolean;
828
- groupIds: readonly string[];
611
+ groupIds: readonly import("@excalidraw/element/types").GroupId[];
829
612
  frameId: string | null;
830
- boundElements: readonly Readonly<{
831
- id: string;
832
- type: "text" | "arrow";
833
- }>[] | null;
613
+ boundElements: readonly import("@excalidraw/element/types").BoundElement[] | null;
834
614
  updated: number;
835
615
  link: string | null;
836
616
  locked: boolean;
837
- customData?: Record<string, any> | undefined;
617
+ customData?: Record<string, any>;
838
618
  }> & {
839
- type: "rectangle";
619
+ type: "selection";
840
620
  } & {
841
621
  index: import("@excalidraw/element/types").FractionalIndex;
842
622
  }) | (Readonly<{
@@ -848,32 +628,29 @@ export declare const actionWrapSelectionInFrame: {
848
628
  fillStyle: import("@excalidraw/element/types").FillStyle;
849
629
  strokeWidth: number;
850
630
  strokeStyle: import("@excalidraw/element/types").StrokeStyle;
851
- roundness: {
631
+ roundness: null | {
852
632
  type: import("@excalidraw/element/types").RoundnessType;
853
- value?: number | undefined;
854
- } | null;
633
+ value?: number;
634
+ };
855
635
  roughness: number;
856
636
  opacity: number;
857
637
  width: number;
858
638
  height: number;
859
- angle: import("../../math/src").Radians;
639
+ angle: import("@excalidraw/math").Radians;
860
640
  seed: number;
861
641
  version: number;
862
642
  versionNonce: number;
863
643
  index: import("@excalidraw/element/types").FractionalIndex | null;
864
644
  isDeleted: boolean;
865
- groupIds: readonly string[];
645
+ groupIds: readonly import("@excalidraw/element/types").GroupId[];
866
646
  frameId: string | null;
867
- boundElements: readonly Readonly<{
868
- id: string;
869
- type: "text" | "arrow";
870
- }>[] | null;
647
+ boundElements: readonly import("@excalidraw/element/types").BoundElement[] | null;
871
648
  updated: number;
872
649
  link: string | null;
873
650
  locked: boolean;
874
- customData?: Record<string, any> | undefined;
651
+ customData?: Record<string, any>;
875
652
  }> & {
876
- type: "diamond";
653
+ type: "rectangle";
877
654
  } & {
878
655
  index: import("@excalidraw/element/types").FractionalIndex;
879
656
  }) | (Readonly<{
@@ -885,33 +662,29 @@ export declare const actionWrapSelectionInFrame: {
885
662
  fillStyle: import("@excalidraw/element/types").FillStyle;
886
663
  strokeWidth: number;
887
664
  strokeStyle: import("@excalidraw/element/types").StrokeStyle;
888
- roundness: {
665
+ roundness: null | {
889
666
  type: import("@excalidraw/element/types").RoundnessType;
890
- value?: number | undefined;
891
- } | null;
667
+ value?: number;
668
+ };
892
669
  roughness: number;
893
670
  opacity: number;
894
671
  width: number;
895
672
  height: number;
896
- angle: import("../../math/src").Radians;
673
+ angle: import("@excalidraw/math").Radians;
897
674
  seed: number;
898
675
  version: number;
899
676
  versionNonce: number;
900
677
  index: import("@excalidraw/element/types").FractionalIndex | null;
901
678
  isDeleted: boolean;
902
- groupIds: readonly string[];
679
+ groupIds: readonly import("@excalidraw/element/types").GroupId[];
903
680
  frameId: string | null;
904
- boundElements: readonly Readonly<{
905
- id: string;
906
- type: "text" | "arrow";
907
- }>[] | null;
681
+ boundElements: readonly import("@excalidraw/element/types").BoundElement[] | null;
908
682
  updated: number;
909
683
  link: string | null;
910
684
  locked: boolean;
911
- customData?: Record<string, any> | undefined;
685
+ customData?: Record<string, any>;
912
686
  }> & {
913
- type: "frame";
914
- name: string | null;
687
+ type: "diamond";
915
688
  } & {
916
689
  index: import("@excalidraw/element/types").FractionalIndex;
917
690
  }) | (Readonly<{
@@ -923,33 +696,29 @@ export declare const actionWrapSelectionInFrame: {
923
696
  fillStyle: import("@excalidraw/element/types").FillStyle;
924
697
  strokeWidth: number;
925
698
  strokeStyle: import("@excalidraw/element/types").StrokeStyle;
926
- roundness: {
699
+ roundness: null | {
927
700
  type: import("@excalidraw/element/types").RoundnessType;
928
- value?: number | undefined;
929
- } | null;
701
+ value?: number;
702
+ };
930
703
  roughness: number;
931
704
  opacity: number;
932
705
  width: number;
933
706
  height: number;
934
- angle: import("../../math/src").Radians;
707
+ angle: import("@excalidraw/math").Radians;
935
708
  seed: number;
936
709
  version: number;
937
710
  versionNonce: number;
938
711
  index: import("@excalidraw/element/types").FractionalIndex | null;
939
712
  isDeleted: boolean;
940
- groupIds: readonly string[];
713
+ groupIds: readonly import("@excalidraw/element/types").GroupId[];
941
714
  frameId: string | null;
942
- boundElements: readonly Readonly<{
943
- id: string;
944
- type: "text" | "arrow";
945
- }>[] | null;
715
+ boundElements: readonly import("@excalidraw/element/types").BoundElement[] | null;
946
716
  updated: number;
947
717
  link: string | null;
948
718
  locked: boolean;
949
- customData?: Record<string, any> | undefined;
719
+ customData?: Record<string, any>;
950
720
  }> & {
951
- type: "magicframe";
952
- name: string | null;
721
+ type: "ellipse";
953
722
  } & {
954
723
  index: import("@excalidraw/element/types").FractionalIndex;
955
724
  }) | (Readonly<{
@@ -961,30 +730,27 @@ export declare const actionWrapSelectionInFrame: {
961
730
  fillStyle: import("@excalidraw/element/types").FillStyle;
962
731
  strokeWidth: number;
963
732
  strokeStyle: import("@excalidraw/element/types").StrokeStyle;
964
- roundness: {
733
+ roundness: null | {
965
734
  type: import("@excalidraw/element/types").RoundnessType;
966
- value?: number | undefined;
967
- } | null;
735
+ value?: number;
736
+ };
968
737
  roughness: number;
969
738
  opacity: number;
970
739
  width: number;
971
740
  height: number;
972
- angle: import("../../math/src").Radians;
741
+ angle: import("@excalidraw/math").Radians;
973
742
  seed: number;
974
743
  version: number;
975
744
  versionNonce: number;
976
745
  index: import("@excalidraw/element/types").FractionalIndex | null;
977
746
  isDeleted: boolean;
978
- groupIds: readonly string[];
747
+ groupIds: readonly import("@excalidraw/element/types").GroupId[];
979
748
  frameId: string | null;
980
- boundElements: readonly Readonly<{
981
- id: string;
982
- type: "text" | "arrow";
983
- }>[] | null;
749
+ boundElements: readonly import("@excalidraw/element/types").BoundElement[] | null;
984
750
  updated: number;
985
751
  link: string | null;
986
752
  locked: boolean;
987
- customData?: Record<string, any> | undefined;
753
+ customData?: Record<string, any>;
988
754
  }> & Readonly<{
989
755
  type: "embeddable";
990
756
  }> & {
@@ -998,36 +764,32 @@ export declare const actionWrapSelectionInFrame: {
998
764
  fillStyle: import("@excalidraw/element/types").FillStyle;
999
765
  strokeWidth: number;
1000
766
  strokeStyle: import("@excalidraw/element/types").StrokeStyle;
1001
- roundness: {
767
+ roundness: null | {
1002
768
  type: import("@excalidraw/element/types").RoundnessType;
1003
- value?: number | undefined;
1004
- } | null;
769
+ value?: number;
770
+ };
1005
771
  roughness: number;
1006
772
  opacity: number;
1007
773
  width: number;
1008
774
  height: number;
1009
- angle: import("../../math/src").Radians;
775
+ angle: import("@excalidraw/math").Radians;
1010
776
  seed: number;
1011
777
  version: number;
1012
778
  versionNonce: number;
1013
779
  index: import("@excalidraw/element/types").FractionalIndex | null;
1014
780
  isDeleted: boolean;
1015
- groupIds: readonly string[];
781
+ groupIds: readonly import("@excalidraw/element/types").GroupId[];
1016
782
  frameId: string | null;
1017
- boundElements: readonly Readonly<{
1018
- id: string;
1019
- type: "text" | "arrow";
1020
- }>[] | null;
783
+ boundElements: readonly import("@excalidraw/element/types").BoundElement[] | null;
1021
784
  updated: number;
1022
785
  link: string | null;
1023
786
  locked: boolean;
1024
- customData?: Record<string, any> | undefined;
787
+ customData?: Record<string, any>;
1025
788
  }> & Readonly<{
1026
- type: "image";
1027
- fileId: import("@excalidraw/element/types").FileId | null;
1028
- status: "pending" | "saved" | "error";
1029
- scale: [number, number];
1030
- crop: import("@excalidraw/element/types").ImageCrop | null;
789
+ type: "iframe";
790
+ customData?: {
791
+ generationData?: import("@excalidraw/element/types").MagicGenerationData;
792
+ };
1031
793
  }> & {
1032
794
  index: import("@excalidraw/element/types").FractionalIndex;
1033
795
  }) | (Readonly<{
@@ -1039,35 +801,33 @@ export declare const actionWrapSelectionInFrame: {
1039
801
  fillStyle: import("@excalidraw/element/types").FillStyle;
1040
802
  strokeWidth: number;
1041
803
  strokeStyle: import("@excalidraw/element/types").StrokeStyle;
1042
- roundness: {
804
+ roundness: null | {
1043
805
  type: import("@excalidraw/element/types").RoundnessType;
1044
- value?: number | undefined;
1045
- } | null;
806
+ value?: number;
807
+ };
1046
808
  roughness: number;
1047
809
  opacity: number;
1048
810
  width: number;
1049
811
  height: number;
1050
- angle: import("../../math/src").Radians;
812
+ angle: import("@excalidraw/math").Radians;
1051
813
  seed: number;
1052
814
  version: number;
1053
815
  versionNonce: number;
1054
816
  index: import("@excalidraw/element/types").FractionalIndex | null;
1055
817
  isDeleted: boolean;
1056
- groupIds: readonly string[];
818
+ groupIds: readonly import("@excalidraw/element/types").GroupId[];
1057
819
  frameId: string | null;
1058
- boundElements: readonly Readonly<{
1059
- id: string;
1060
- type: "text" | "arrow";
1061
- }>[] | null;
820
+ boundElements: readonly import("@excalidraw/element/types").BoundElement[] | null;
1062
821
  updated: number;
1063
822
  link: string | null;
1064
823
  locked: boolean;
1065
- customData?: Record<string, any> | undefined;
824
+ customData?: Record<string, any>;
1066
825
  }> & Readonly<{
1067
- type: "iframe";
1068
- customData?: {
1069
- generationData?: import("@excalidraw/element/types").MagicGenerationData | undefined;
1070
- } | undefined;
826
+ type: "image";
827
+ fileId: import("@excalidraw/element/types").FileId | null;
828
+ status: "pending" | "saved" | "error";
829
+ scale: [number, number];
830
+ crop: import("@excalidraw/element/types").ImageCrop | null;
1071
831
  }> & {
1072
832
  index: import("@excalidraw/element/types").FractionalIndex;
1073
833
  }) | (Readonly<{
@@ -1079,32 +839,30 @@ export declare const actionWrapSelectionInFrame: {
1079
839
  fillStyle: import("@excalidraw/element/types").FillStyle;
1080
840
  strokeWidth: number;
1081
841
  strokeStyle: import("@excalidraw/element/types").StrokeStyle;
1082
- roundness: {
842
+ roundness: null | {
1083
843
  type: import("@excalidraw/element/types").RoundnessType;
1084
- value?: number | undefined;
1085
- } | null;
844
+ value?: number;
845
+ };
1086
846
  roughness: number;
1087
847
  opacity: number;
1088
848
  width: number;
1089
849
  height: number;
1090
- angle: import("../../math/src").Radians;
850
+ angle: import("@excalidraw/math").Radians;
1091
851
  seed: number;
1092
852
  version: number;
1093
853
  versionNonce: number;
1094
854
  index: import("@excalidraw/element/types").FractionalIndex | null;
1095
855
  isDeleted: boolean;
1096
- groupIds: readonly string[];
856
+ groupIds: readonly import("@excalidraw/element/types").GroupId[];
1097
857
  frameId: string | null;
1098
- boundElements: readonly Readonly<{
1099
- id: string;
1100
- type: "text" | "arrow";
1101
- }>[] | null;
858
+ boundElements: readonly import("@excalidraw/element/types").BoundElement[] | null;
1102
859
  updated: number;
1103
860
  link: string | null;
1104
861
  locked: boolean;
1105
- customData?: Record<string, any> | undefined;
862
+ customData?: Record<string, any>;
1106
863
  }> & {
1107
- type: "selection";
864
+ type: "frame";
865
+ name: string | null;
1108
866
  } & {
1109
867
  index: import("@excalidraw/element/types").FractionalIndex;
1110
868
  }) | (Readonly<{
@@ -1116,32 +874,30 @@ export declare const actionWrapSelectionInFrame: {
1116
874
  fillStyle: import("@excalidraw/element/types").FillStyle;
1117
875
  strokeWidth: number;
1118
876
  strokeStyle: import("@excalidraw/element/types").StrokeStyle;
1119
- roundness: {
877
+ roundness: null | {
1120
878
  type: import("@excalidraw/element/types").RoundnessType;
1121
- value?: number | undefined;
1122
- } | null;
879
+ value?: number;
880
+ };
1123
881
  roughness: number;
1124
882
  opacity: number;
1125
883
  width: number;
1126
884
  height: number;
1127
- angle: import("../../math/src").Radians;
885
+ angle: import("@excalidraw/math").Radians;
1128
886
  seed: number;
1129
887
  version: number;
1130
888
  versionNonce: number;
1131
889
  index: import("@excalidraw/element/types").FractionalIndex | null;
1132
890
  isDeleted: boolean;
1133
- groupIds: readonly string[];
891
+ groupIds: readonly import("@excalidraw/element/types").GroupId[];
1134
892
  frameId: string | null;
1135
- boundElements: readonly Readonly<{
1136
- id: string;
1137
- type: "text" | "arrow";
1138
- }>[] | null;
893
+ boundElements: readonly import("@excalidraw/element/types").BoundElement[] | null;
1139
894
  updated: number;
1140
895
  link: string | null;
1141
896
  locked: boolean;
1142
- customData?: Record<string, any> | undefined;
897
+ customData?: Record<string, any>;
1143
898
  }> & {
1144
- type: "ellipse";
899
+ type: "magicframe";
900
+ name: string | null;
1145
901
  } & {
1146
902
  index: import("@excalidraw/element/types").FractionalIndex;
1147
903
  }) | (Readonly<{
@@ -1153,38 +909,40 @@ export declare const actionWrapSelectionInFrame: {
1153
909
  fillStyle: import("@excalidraw/element/types").FillStyle;
1154
910
  strokeWidth: number;
1155
911
  strokeStyle: import("@excalidraw/element/types").StrokeStyle;
1156
- roundness: {
912
+ roundness: null | {
1157
913
  type: import("@excalidraw/element/types").RoundnessType;
1158
- value?: number | undefined;
1159
- } | null;
914
+ value?: number;
915
+ };
1160
916
  roughness: number;
1161
917
  opacity: number;
1162
918
  width: number;
1163
919
  height: number;
1164
- angle: import("../../math/src").Radians;
920
+ angle: import("@excalidraw/math").Radians;
1165
921
  seed: number;
1166
922
  version: number;
1167
923
  versionNonce: number;
1168
924
  index: import("@excalidraw/element/types").FractionalIndex | null;
1169
925
  isDeleted: boolean;
1170
- groupIds: readonly string[];
926
+ groupIds: readonly import("@excalidraw/element/types").GroupId[];
1171
927
  frameId: string | null;
1172
- boundElements: readonly Readonly<{
1173
- id: string;
1174
- type: "text" | "arrow";
1175
- }>[] | null;
928
+ boundElements: readonly import("@excalidraw/element/types").BoundElement[] | null;
1176
929
  updated: number;
1177
930
  link: string | null;
1178
931
  locked: boolean;
1179
- customData?: Record<string, any> | undefined;
932
+ customData?: Record<string, any>;
1180
933
  }> & Readonly<{
1181
- type: "line" | "arrow";
1182
- points: readonly import("../../math/src").LocalPoint[];
1183
- lastCommittedPoint: import("../../math/src").LocalPoint | null;
1184
- startBinding: import("@excalidraw/element/types").PointBinding | null;
1185
- endBinding: import("@excalidraw/element/types").PointBinding | null;
1186
- startArrowhead: import("@excalidraw/element/types").Arrowhead | null;
1187
- endArrowhead: import("@excalidraw/element/types").Arrowhead | null;
934
+ type: "text";
935
+ fontSize: number;
936
+ fontFamily: import("@excalidraw/element/types").FontFamilyValues;
937
+ text: string;
938
+ textAlign: import("@excalidraw/element/types").TextAlign;
939
+ verticalAlign: import("@excalidraw/element/types").VerticalAlign;
940
+ containerId: import("@excalidraw/element/types").ExcalidrawGenericElement["id"] | null;
941
+ originalText: string;
942
+ autoResize: boolean;
943
+ lineHeight: number & {
944
+ _brand: "unitlessLineHeight";
945
+ };
1188
946
  }> & {
1189
947
  index: import("@excalidraw/element/types").FractionalIndex;
1190
948
  }) | (Readonly<{
@@ -1196,36 +954,33 @@ export declare const actionWrapSelectionInFrame: {
1196
954
  fillStyle: import("@excalidraw/element/types").FillStyle;
1197
955
  strokeWidth: number;
1198
956
  strokeStyle: import("@excalidraw/element/types").StrokeStyle;
1199
- roundness: {
957
+ roundness: null | {
1200
958
  type: import("@excalidraw/element/types").RoundnessType;
1201
- value?: number | undefined;
1202
- } | null;
959
+ value?: number;
960
+ };
1203
961
  roughness: number;
1204
962
  opacity: number;
1205
963
  width: number;
1206
964
  height: number;
1207
- angle: import("../../math/src").Radians;
965
+ angle: import("@excalidraw/math").Radians;
1208
966
  seed: number;
1209
967
  version: number;
1210
968
  versionNonce: number;
1211
969
  index: import("@excalidraw/element/types").FractionalIndex | null;
1212
970
  isDeleted: boolean;
1213
- groupIds: readonly string[];
971
+ groupIds: readonly import("@excalidraw/element/types").GroupId[];
1214
972
  frameId: string | null;
1215
- boundElements: readonly Readonly<{
1216
- id: string;
1217
- type: "text" | "arrow";
1218
- }>[] | null;
973
+ boundElements: readonly import("@excalidraw/element/types").BoundElement[] | null;
1219
974
  updated: number;
1220
975
  link: string | null;
1221
976
  locked: boolean;
1222
- customData?: Record<string, any> | undefined;
977
+ customData?: Record<string, any>;
1223
978
  }> & Readonly<{
1224
979
  type: "freedraw";
1225
- points: readonly import("../../math/src").LocalPoint[];
980
+ points: readonly import("@excalidraw/math").LocalPoint[];
1226
981
  pressures: readonly number[];
1227
982
  simulatePressure: boolean;
1228
- lastCommittedPoint: import("../../math/src").LocalPoint | null;
983
+ strokeOptions: import("@excalidraw/element/types").StrokeOptions;
1229
984
  }> & {
1230
985
  index: import("@excalidraw/element/types").FractionalIndex;
1231
986
  }) | import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameElement>)[];