@excalidraw/common 0.18.0-4e471c107 → 0.18.0-4f68076

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