@excalidraw/math 0.18.0-b9d27d3 → 0.18.0-c0ad61c

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