@excalidraw/element 0.18.0-91c7748 → 0.18.0-a52cd20

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