@excalidraw/math 0.18.0-0fc927cb4 → 0.18.0-143b5b6

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 (369) hide show
  1. package/dist/dev/index.js +363 -163
  2. package/dist/dev/index.js.map +4 -4
  3. package/dist/prod/index.js +1 -1
  4. package/dist/types/common/debug.d.ts +21 -0
  5. package/dist/types/common/src/appEventBus.d.ts +27 -0
  6. package/dist/types/common/src/bounds.d.ts +10 -0
  7. package/dist/types/common/src/colors.d.ts +81 -39
  8. package/dist/types/common/src/constants.d.ts +103 -33
  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 -77
  17. package/dist/types/common/src/versionedSnapshotStore.d.ts +17 -0
  18. package/dist/types/element/src/Scene.d.ts +12 -8
  19. package/dist/types/element/src/align.d.ts +2 -2
  20. package/dist/types/element/src/arrowEndpointText.d.ts +49 -0
  21. package/dist/types/element/src/arrowheads.d.ts +3 -0
  22. package/dist/types/element/src/arrows/focus.d.ts +30 -0
  23. package/dist/types/element/src/arrows/helpers.d.ts +5 -0
  24. package/dist/types/element/src/binding.d.ts +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 +25 -3
  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 +11 -4
  43. package/dist/types/element/src/linearElementEditor.d.ts +48 -30
  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 +3 -2
  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 -219
  67. package/dist/types/excalidraw/actions/actionAlign.d.ts +12 -13
  68. package/dist/types/excalidraw/actions/actionBoundText.d.ts +150 -131
  69. package/dist/types/excalidraw/actions/actionCanvas.d.ts +543 -1562
  70. package/dist/types/excalidraw/actions/actionClipboard.d.ts +177 -899
  71. package/dist/types/excalidraw/actions/actionCropEditor.d.ts +73 -64
  72. package/dist/types/excalidraw/actions/actionDeleteSelected.d.ts +234 -208
  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 -77
  77. package/dist/types/excalidraw/actions/actionElementLock.d.ts +149 -130
  78. package/dist/types/excalidraw/actions/actionExport.d.ts +228 -1414
  79. package/dist/types/excalidraw/actions/actionFinalize.d.ts +11 -394
  80. package/dist/types/excalidraw/actions/actionFlip.d.ts +2 -3
  81. package/dist/types/excalidraw/actions/actionFrame.d.ts +359 -503
  82. package/dist/types/excalidraw/actions/actionGroup.d.ts +160 -149
  83. package/dist/types/excalidraw/actions/actionLinearEditor.d.ts +220 -197
  84. package/dist/types/excalidraw/actions/actionLink.d.ts +86 -77
  85. package/dist/types/excalidraw/actions/actionMenu.d.ts +75 -438
  86. package/dist/types/excalidraw/actions/actionNavigate.d.ts +18 -359
  87. package/dist/types/excalidraw/actions/actionProperties.d.ts +238 -2533
  88. package/dist/types/excalidraw/actions/actionSelectAll.d.ts +80 -75
  89. package/dist/types/excalidraw/actions/actionStyles.d.ts +74 -64
  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 -80
  93. package/dist/types/excalidraw/actions/actionToggleMidpointSnapping.d.ts +195 -0
  94. package/dist/types/excalidraw/actions/actionToggleObjectsSnapMode.d.ts +87 -78
  95. package/dist/types/excalidraw/actions/actionToggleSearchMenu.d.ts +76 -74
  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 -77
  99. package/dist/types/excalidraw/actions/actionToggleViewMode.d.ts +87 -78
  100. package/dist/types/excalidraw/actions/actionToggleZenMode.d.ts +87 -78
  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 +57 -26
  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 +57 -19
  119. package/dist/types/excalidraw/components/Actions.d.ts +33 -11
  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 -156
  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 +1 -2
  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 +25 -10
  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/scene/Renderer.d.ts +491 -19
  314. package/dist/types/excalidraw/scene/export.d.ts +4 -4
  315. package/dist/types/excalidraw/scene/index.d.ts +2 -2
  316. package/dist/types/excalidraw/scene/types.d.ts +28 -8
  317. package/dist/types/excalidraw/shortcut.d.ts +1 -0
  318. package/dist/types/excalidraw/snapping.d.ts +12 -12
  319. package/dist/types/excalidraw/subset/harfbuzz/harfbuzz-bindings.d.ts +1 -1
  320. package/dist/types/excalidraw/subset/harfbuzz/harfbuzz-loader.d.ts +1 -1
  321. package/dist/types/excalidraw/subset/harfbuzz/harfbuzz-wasm.d.ts +1 -1
  322. package/dist/types/excalidraw/subset/woff2/woff2-loader.d.ts +2 -2
  323. package/dist/types/excalidraw/subset/woff2/woff2-wasm.d.ts +1 -1
  324. package/dist/types/excalidraw/textAutoResizeHandle.d.ts +15 -0
  325. package/dist/types/excalidraw/types.d.ts +653 -60
  326. package/dist/types/excalidraw/viewport.d.ts +302 -0
  327. package/dist/types/excalidraw/wysiwyg/textWysiwyg.d.ts +19 -5
  328. package/dist/types/fractional-indexing/src/index.d.ts +29 -0
  329. package/dist/types/laser-pointer/src/index.d.ts +2 -0
  330. package/dist/types/laser-pointer/src/math.d.ts +16 -0
  331. package/dist/types/laser-pointer/src/simplify.d.ts +2 -0
  332. package/dist/types/laser-pointer/src/state.d.ts +36 -0
  333. package/dist/types/math/src/constants.d.ts +0 -1
  334. package/dist/types/math/src/curve.d.ts +23 -13
  335. package/dist/types/math/src/index.d.ts +1 -0
  336. package/dist/types/math/src/pca.d.ts +79 -0
  337. package/dist/types/math/src/point.d.ts +8 -2
  338. package/dist/types/math/src/polygon.d.ts +26 -2
  339. package/dist/types/math/src/range.d.ts +1 -3
  340. package/dist/types/math/src/segment.d.ts +10 -3
  341. package/dist/types/math/src/types.d.ts +25 -1
  342. package/dist/types/utils/src/export.d.ts +9 -8
  343. package/dist/types/utils/src/index.d.ts +1 -2
  344. package/dist/types/utils/src/shape.d.ts +8 -8
  345. package/package.json +2 -2
  346. package/dist/types/excalidraw/actions/actionEmbeddable.d.ts +0 -185
  347. package/dist/types/excalidraw/animation-frame-handler.d.ts +0 -16
  348. package/dist/types/excalidraw/charts.d.ts +0 -27
  349. package/dist/types/excalidraw/components/DiagramToCodePlugin/DiagramToCodePlugin.d.ts +0 -4
  350. package/dist/types/excalidraw/components/ExcalidrawLogo.d.ts +0 -16
  351. package/dist/types/excalidraw/components/FollowMode/FollowMode.d.ts +0 -10
  352. package/dist/types/excalidraw/components/HandButton.d.ts +0 -10
  353. package/dist/types/excalidraw/components/InitializeApp.d.ts +0 -10
  354. package/dist/types/excalidraw/components/TTDDialog/TTDDialogTrigger.d.ts +0 -9
  355. package/dist/types/excalidraw/components/ToolButton.d.ts +0 -49
  356. package/dist/types/excalidraw/components/footer/FooterCenter.d.ts +0 -8
  357. package/dist/types/excalidraw/components/live-collaboration/LiveCollaborationTrigger.d.ts +0 -10
  358. package/dist/types/excalidraw/components/shapes.d.ts +0 -62
  359. package/dist/types/excalidraw/components/welcome-screen/WelcomeScreen.Center.d.ts +0 -58
  360. package/dist/types/excalidraw/components/welcome-screen/WelcomeScreen.Hints.d.ts +0 -19
  361. package/dist/types/excalidraw/components/welcome-screen/WelcomeScreen.d.ts +0 -85
  362. package/dist/types/excalidraw/cursor.d.ts +0 -5
  363. package/dist/types/excalidraw/data/reconcile.d.ts +0 -7
  364. package/dist/types/excalidraw/index.d.ts +0 -47
  365. package/dist/types/excalidraw/polyfill.d.ts +0 -2
  366. package/dist/types/excalidraw/scene/scroll.d.ts +0 -23
  367. package/dist/types/excalidraw/scene/zoom.d.ts +0 -12
  368. package/dist/types/utils/src/bbox.d.ts +0 -9
  369. 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" | 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,26 +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
+ 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;
179
188
  };
180
189
  captureUpdate: "IMMEDIATELY";
181
190
  } | {
182
191
  elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[];
183
- appState: Readonly<AppState>;
192
+ appState: Readonly<import("../types").AppState>;
184
193
  captureUpdate: "EVENTUALLY";
185
194
  };
186
- 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;
187
196
  } & {
188
197
  keyTest?: undefined;
189
198
  };
@@ -193,7 +202,7 @@ export declare const actionRemoveAllElementsFromFrame: {
193
202
  trackEvent: {
194
203
  category: "history";
195
204
  };
196
- 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) => {
197
206
  elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[];
198
207
  appState: {
199
208
  selectedElementIds: {
@@ -206,18 +215,36 @@ export declare const actionRemoveAllElementsFromFrame: {
206
215
  } | null;
207
216
  showWelcomeScreen: boolean;
208
217
  isLoading: boolean;
209
- errorMessage: import("react").ReactNode;
218
+ errorMessage: React.ReactNode;
210
219
  activeEmbeddable: {
211
220
  element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
212
- state: "active" | "hover";
221
+ state: "hover" | "active";
213
222
  } | null;
214
223
  newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
215
224
  resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
216
225
  multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
217
226
  selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
218
227
  isBindingEnabled: boolean;
219
- startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
220
- 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;
221
248
  frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
222
249
  frameRendering: {
223
250
  enabled: boolean;
@@ -225,14 +252,18 @@ export declare const actionRemoveAllElementsFromFrame: {
225
252
  outline: boolean;
226
253
  clip: boolean;
227
254
  };
228
- editingFrame: string | null;
229
- elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
230
- 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;
231
258
  activeTool: {
232
259
  lastActiveTool: import("../types").ActiveTool | null;
233
260
  locked: boolean;
234
261
  fromSelection: boolean;
235
262
  } & import("../types").ActiveTool;
263
+ preferredSelectionTool: {
264
+ type: "selection" | "lasso";
265
+ initialized: boolean;
266
+ };
236
267
  penMode: boolean;
237
268
  penDetected: boolean;
238
269
  exportBackground: boolean;
@@ -240,48 +271,56 @@ export declare const actionRemoveAllElementsFromFrame: {
240
271
  exportWithDarkMode: boolean;
241
272
  exportScale: number;
242
273
  currentItemStrokeColor: string;
274
+ currentItemStickynoteStrokeColor: string;
275
+ currentItemStickynoteBackgroundColor: string;
243
276
  currentItemBackgroundColor: string;
244
- currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
245
- currentItemStrokeWidth: number;
246
- currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
277
+ currentItemFillStyle: ExcalidrawElement["fillStyle"];
278
+ currentItemStrokeWidthKey: import("@excalidraw/common").StrokeWidthKey;
279
+ currentItemStrokeStyle: ExcalidrawElement["strokeStyle"];
247
280
  currentItemRoughness: number;
281
+ currentItemStrokeVariability: import("@excalidraw/element/types").StrokeVariability;
248
282
  currentItemOpacity: number;
249
- currentItemFontFamily: number;
283
+ currentItemFontFamily: import("@excalidraw/element/types").FontFamilyValues;
250
284
  currentItemFontSize: number;
251
- currentItemTextAlign: string;
285
+ currentItemTextAlign: import("@excalidraw/element/types").TextAlign;
252
286
  currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
253
287
  currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
254
- currentHoveredFontFamily: number | null;
288
+ currentHoveredFontFamily: import("@excalidraw/element/types").FontFamilyValues | null;
255
289
  currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
256
- currentItemArrowType: "round" | "sharp" | "elbow";
290
+ currentItemArrowType: "sharp" | "round" | "elbow";
257
291
  viewBackgroundColor: string;
258
292
  scrollX: number;
259
293
  scrollY: number;
294
+ scrollConstraints: import("../types").ScrollConstraints | null;
260
295
  cursorButton: "up" | "down";
261
296
  scrolledOutside: boolean;
262
297
  name: string | null;
263
298
  isResizing: boolean;
264
299
  isRotating: boolean;
265
- zoom: Readonly<{
266
- value: import("../types").NormalizedZoomValue;
267
- }>;
268
- openMenu: "canvas" | "shape" | null;
269
- 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;
270
303
  openSidebar: {
271
- name: string;
272
- tab?: string | undefined;
304
+ name: import("../types").SidebarName;
305
+ tab?: import("../types").SidebarTabName;
273
306
  } | null;
274
- openDialog: {
307
+ openDialog: null | {
275
308
  name: "imageExport" | "help" | "jsonExport";
276
309
  } | {
277
310
  name: "ttd";
278
- tab: "mermaid" | "text-to-diagram";
311
+ tab: "text-to-diagram" | "mermaid";
279
312
  } | {
280
313
  name: "commandPalette";
314
+ } | {
315
+ name: "settings";
281
316
  } | {
282
317
  name: "elementLinkSelector";
283
- sourceElementId: string;
284
- } | null;
318
+ sourceElementId: ExcalidrawElement["id"];
319
+ } | {
320
+ name: "charts";
321
+ data: import("../charts").Spreadsheet;
322
+ rawText: string;
323
+ };
285
324
  defaultSidebarDockedPreference: boolean;
286
325
  lastPointerDownWith: import("@excalidraw/element/types").PointerType;
287
326
  hoveredElementIds: Readonly<{
@@ -293,9 +332,9 @@ export declare const actionRemoveAllElementsFromFrame: {
293
332
  selectedElementsAreBeingDragged: boolean;
294
333
  shouldCacheIgnoreZoom: boolean;
295
334
  toast: {
296
- message: string;
297
- closable?: boolean | undefined;
298
- duration?: number | undefined;
335
+ message: React.ReactNode;
336
+ closable?: boolean;
337
+ duration?: number;
299
338
  } | null;
300
339
  zenModeEnabled: boolean;
301
340
  theme: import("@excalidraw/element/types").Theme;
@@ -306,45 +345,18 @@ export declare const actionRemoveAllElementsFromFrame: {
306
345
  selectedGroupIds: {
307
346
  [groupId: string]: boolean;
308
347
  };
309
- editingGroupId: string | null;
348
+ editingGroupId: import("@excalidraw/element/types").GroupId | null;
310
349
  width: number;
311
350
  height: number;
312
351
  offsetTop: number;
313
352
  offsetLeft: number;
314
- fileHandle: import("browser-fs-access").FileSystemHandle | null;
315
- collaborators: Map<import("../types").SocketId, Readonly<{
316
- pointer?: import("../types").CollaboratorPointer | undefined;
317
- button?: "up" | "down" | undefined;
318
- selectedElementIds?: Readonly<{
319
- [id: string]: true;
320
- }> | undefined;
321
- username?: string | null | undefined;
322
- userState?: import("@excalidraw/common").UserIdleState | undefined;
323
- color?: {
324
- background: string;
325
- stroke: string;
326
- } | undefined;
327
- avatarUrl?: string | undefined;
328
- id?: string | undefined;
329
- socketId?: import("../types").SocketId | undefined;
330
- isCurrentUser?: boolean | undefined;
331
- isInCall?: boolean | undefined;
332
- isSpeaking?: boolean | undefined;
333
- isMuted?: boolean | undefined;
334
- }>>;
353
+ fileHandle: FileSystemFileHandle | null;
354
+ collaborators: Map<import("../types").SocketId, import("../types").Collaborator>;
335
355
  stats: {
336
356
  open: boolean;
337
357
  panels: number;
338
358
  };
339
- currentChartType: import("@excalidraw/element/types").ChartType;
340
- pasteDialog: {
341
- shown: false;
342
- data: null;
343
- } | {
344
- shown: true;
345
- data: import("../charts").Spreadsheet;
346
- };
347
- showHyperlinkPopup: false | "editor" | "info";
359
+ showHyperlinkPopup: false | "info" | "editor";
348
360
  selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
349
361
  snapLines: readonly import("../snapping").SnapLine[];
350
362
  originSnapOffset: {
@@ -352,26 +364,33 @@ export declare const actionRemoveAllElementsFromFrame: {
352
364
  y: number;
353
365
  } | null;
354
366
  objectsSnapModeEnabled: boolean;
355
- userToFollow: import("../types").UserToFollow | null;
356
- followedBy: Set<import("../types").SocketId>;
357
367
  isCropping: boolean;
358
- croppingElementId: string | null;
368
+ croppingElementId: ExcalidrawElement["id"] | null;
359
369
  searchMatches: Readonly<{
360
- focusedId: string | null;
370
+ focusedId: ExcalidrawElement["id"] | null;
361
371
  matches: readonly import("../types").SearchMatch[];
362
372
  }> | null;
363
373
  activeLockedId: string | null;
364
374
  lockedMultiSelections: {
365
375
  [groupId: string]: true;
366
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;
367
386
  };
368
387
  captureUpdate: "IMMEDIATELY";
369
388
  } | {
370
389
  elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[];
371
- appState: Readonly<AppState>;
390
+ appState: Readonly<import("../types").AppState>;
372
391
  captureUpdate: "EVENTUALLY";
373
392
  };
374
- 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;
375
394
  } & {
376
395
  keyTest?: undefined;
377
396
  };
@@ -382,7 +401,7 @@ export declare const actionupdateFrameRendering: {
382
401
  trackEvent: {
383
402
  category: "canvas";
384
403
  };
385
- 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>) => {
386
405
  elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[];
387
406
  appState: {
388
407
  frameRendering: {
@@ -398,213 +417,49 @@ export declare const actionupdateFrameRendering: {
398
417
  } | null;
399
418
  showWelcomeScreen: boolean;
400
419
  isLoading: boolean;
401
- errorMessage: import("react").ReactNode;
420
+ errorMessage: React.ReactNode;
402
421
  activeEmbeddable: {
403
422
  element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
404
- state: "active" | "hover";
423
+ state: "hover" | "active";
405
424
  } | null;
406
425
  newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
407
426
  resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
408
427
  multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
409
428
  selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
410
429
  isBindingEnabled: boolean;
411
- startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
412
- suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
413
- frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
414
- editingFrame: string | null;
415
- elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
416
- editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
417
- activeTool: {
418
- lastActiveTool: import("../types").ActiveTool | null;
419
- locked: boolean;
420
- fromSelection: boolean;
421
- } & import("../types").ActiveTool;
422
- penMode: boolean;
423
- penDetected: boolean;
424
- exportBackground: boolean;
425
- exportEmbedScene: boolean;
426
- exportWithDarkMode: boolean;
427
- exportScale: number;
428
- currentItemStrokeColor: string;
429
- currentItemBackgroundColor: string;
430
- currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
431
- currentItemStrokeWidth: number;
432
- currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
433
- currentItemRoughness: number;
434
- currentItemOpacity: number;
435
- currentItemFontFamily: number;
436
- currentItemFontSize: number;
437
- currentItemTextAlign: string;
438
- currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
439
- currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
440
- currentHoveredFontFamily: number | null;
441
- currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
442
- currentItemArrowType: "round" | "sharp" | "elbow";
443
- viewBackgroundColor: string;
444
- scrollX: number;
445
- scrollY: number;
446
- cursorButton: "up" | "down";
447
- scrolledOutside: boolean;
448
- name: string | null;
449
- isResizing: boolean;
450
- isRotating: boolean;
451
- zoom: Readonly<{
452
- value: import("../types").NormalizedZoomValue;
453
- }>;
454
- openMenu: "canvas" | "shape" | null;
455
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
456
- openSidebar: {
457
- name: string;
458
- 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;
459
438
  } | null;
460
- openDialog: {
461
- name: "imageExport" | "help" | "jsonExport";
462
- } | {
463
- name: "ttd";
464
- tab: "mermaid" | "text-to-diagram";
439
+ textToolHover: {
440
+ type: "text";
441
+ elementId: ExcalidrawElement["id"];
465
442
  } | {
466
- name: "commandPalette";
443
+ type: "container";
444
+ elementId: ExcalidrawElement["id"];
467
445
  } | {
468
- name: "elementLinkSelector";
469
- sourceElementId: string;
470
- } | null;
471
- defaultSidebarDockedPreference: boolean;
472
- lastPointerDownWith: import("@excalidraw/element/types").PointerType;
473
- selectedElementIds: Readonly<{
474
- [id: string]: true;
475
- }>;
476
- hoveredElementIds: Readonly<{
477
- [id: string]: true;
478
- }>;
479
- previousSelectedElementIds: {
480
- [id: string]: true;
481
- };
482
- selectedElementsAreBeingDragged: boolean;
483
- shouldCacheIgnoreZoom: boolean;
484
- toast: {
485
- message: string;
486
- closable?: boolean | undefined;
487
- duration?: number | undefined;
488
- } | null;
489
- zenModeEnabled: boolean;
490
- theme: import("@excalidraw/element/types").Theme;
491
- gridSize: number;
492
- gridStep: number;
493
- gridModeEnabled: boolean;
494
- viewModeEnabled: boolean;
495
- selectedGroupIds: {
496
- [groupId: string]: boolean;
497
- };
498
- editingGroupId: string | null;
499
- width: number;
500
- height: number;
501
- offsetTop: number;
502
- offsetLeft: number;
503
- fileHandle: import("browser-fs-access").FileSystemHandle | null;
504
- collaborators: Map<import("../types").SocketId, Readonly<{
505
- pointer?: import("../types").CollaboratorPointer | undefined;
506
- button?: "up" | "down" | undefined;
507
- selectedElementIds?: Readonly<{
508
- [id: string]: true;
509
- }> | undefined;
510
- username?: string | null | undefined;
511
- userState?: import("@excalidraw/common").UserIdleState | undefined;
512
- color?: {
513
- background: string;
514
- stroke: string;
515
- } | undefined;
516
- avatarUrl?: string | undefined;
517
- id?: string | undefined;
518
- socketId?: import("../types").SocketId | undefined;
519
- isCurrentUser?: boolean | undefined;
520
- isInCall?: boolean | undefined;
521
- isSpeaking?: boolean | undefined;
522
- isMuted?: boolean | undefined;
523
- }>>;
524
- stats: {
525
- open: boolean;
526
- panels: number;
527
- };
528
- currentChartType: import("@excalidraw/element/types").ChartType;
529
- pasteDialog: {
530
- shown: false;
531
- data: null;
532
- } | {
533
- shown: true;
534
- data: import("../charts").Spreadsheet;
535
- };
536
- showHyperlinkPopup: false | "editor" | "info";
537
- selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
538
- snapLines: readonly import("../snapping").SnapLine[];
539
- originSnapOffset: {
540
- x: number;
541
- y: number;
446
+ type: "arrow";
447
+ elementId: import("@excalidraw/element/types").ExcalidrawArrowElement["id"];
448
+ anchor: "start" | "end" | "label";
542
449
  } | null;
543
- objectsSnapModeEnabled: boolean;
544
- userToFollow: import("../types").UserToFollow | null;
545
- followedBy: Set<import("../types").SocketId>;
546
- isCropping: boolean;
547
- croppingElementId: string | null;
548
- searchMatches: Readonly<{
549
- focusedId: string | null;
550
- matches: readonly import("../types").SearchMatch[];
551
- }> | null;
552
- activeLockedId: string | null;
553
- lockedMultiSelections: {
554
- [groupId: string]: true;
555
- };
556
- };
557
- captureUpdate: "EVENTUALLY";
558
- };
559
- checked: (appState: AppState) => boolean;
560
- } & {
561
- keyTest?: undefined;
562
- };
563
- export declare const actionSetFrameAsActiveTool: {
564
- name: "setFrameAsActiveTool";
565
- label: string;
566
- trackEvent: {
567
- category: "toolbar";
568
- };
569
- icon: import("react/jsx-runtime").JSX.Element;
570
- viewMode: false;
571
- perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: any, app: AppClassProperties) => {
572
- elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[];
573
- appState: {
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;
574
454
  activeTool: {
575
455
  lastActiveTool: import("../types").ActiveTool | null;
576
456
  locked: boolean;
577
457
  fromSelection: boolean;
578
458
  } & import("../types").ActiveTool;
579
- contextMenu: {
580
- items: import("../components/ContextMenu").ContextMenuItems;
581
- top: number;
582
- left: number;
583
- } | null;
584
- showWelcomeScreen: boolean;
585
- isLoading: boolean;
586
- errorMessage: import("react").ReactNode;
587
- activeEmbeddable: {
588
- element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
589
- state: "active" | "hover";
590
- } | null;
591
- newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
592
- resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
593
- multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
594
- selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
595
- isBindingEnabled: boolean;
596
- startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
597
- suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
598
- frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
599
- frameRendering: {
600
- enabled: boolean;
601
- name: boolean;
602
- outline: boolean;
603
- clip: boolean;
459
+ preferredSelectionTool: {
460
+ type: "selection" | "lasso";
461
+ initialized: boolean;
604
462
  };
605
- editingFrame: string | null;
606
- elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
607
- editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
608
463
  penMode: boolean;
609
464
  penDetected: boolean;
610
465
  exportBackground: boolean;
@@ -612,48 +467,56 @@ export declare const actionSetFrameAsActiveTool: {
612
467
  exportWithDarkMode: boolean;
613
468
  exportScale: number;
614
469
  currentItemStrokeColor: string;
470
+ currentItemStickynoteStrokeColor: string;
471
+ currentItemStickynoteBackgroundColor: string;
615
472
  currentItemBackgroundColor: string;
616
- currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
617
- currentItemStrokeWidth: number;
618
- currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
473
+ currentItemFillStyle: ExcalidrawElement["fillStyle"];
474
+ currentItemStrokeWidthKey: import("@excalidraw/common").StrokeWidthKey;
475
+ currentItemStrokeStyle: ExcalidrawElement["strokeStyle"];
619
476
  currentItemRoughness: number;
477
+ currentItemStrokeVariability: import("@excalidraw/element/types").StrokeVariability;
620
478
  currentItemOpacity: number;
621
- currentItemFontFamily: number;
479
+ currentItemFontFamily: import("@excalidraw/element/types").FontFamilyValues;
622
480
  currentItemFontSize: number;
623
- currentItemTextAlign: string;
481
+ currentItemTextAlign: import("@excalidraw/element/types").TextAlign;
624
482
  currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
625
483
  currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
626
- currentHoveredFontFamily: number | null;
484
+ currentHoveredFontFamily: import("@excalidraw/element/types").FontFamilyValues | null;
627
485
  currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
628
- currentItemArrowType: "round" | "sharp" | "elbow";
486
+ currentItemArrowType: "sharp" | "round" | "elbow";
629
487
  viewBackgroundColor: string;
630
488
  scrollX: number;
631
489
  scrollY: number;
490
+ scrollConstraints: import("../types").ScrollConstraints | null;
632
491
  cursorButton: "up" | "down";
633
492
  scrolledOutside: boolean;
634
493
  name: string | null;
635
494
  isResizing: boolean;
636
495
  isRotating: boolean;
637
- zoom: Readonly<{
638
- value: import("../types").NormalizedZoomValue;
639
- }>;
640
- openMenu: "canvas" | "shape" | null;
641
- 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;
642
499
  openSidebar: {
643
- name: string;
644
- tab?: string | undefined;
500
+ name: import("../types").SidebarName;
501
+ tab?: import("../types").SidebarTabName;
645
502
  } | null;
646
- openDialog: {
503
+ openDialog: null | {
647
504
  name: "imageExport" | "help" | "jsonExport";
648
505
  } | {
649
506
  name: "ttd";
650
- tab: "mermaid" | "text-to-diagram";
507
+ tab: "text-to-diagram" | "mermaid";
651
508
  } | {
652
509
  name: "commandPalette";
510
+ } | {
511
+ name: "settings";
653
512
  } | {
654
513
  name: "elementLinkSelector";
655
- sourceElementId: string;
656
- } | null;
514
+ sourceElementId: ExcalidrawElement["id"];
515
+ } | {
516
+ name: "charts";
517
+ data: import("../charts").Spreadsheet;
518
+ rawText: string;
519
+ };
657
520
  defaultSidebarDockedPreference: boolean;
658
521
  lastPointerDownWith: import("@excalidraw/element/types").PointerType;
659
522
  selectedElementIds: Readonly<{
@@ -668,9 +531,9 @@ export declare const actionSetFrameAsActiveTool: {
668
531
  selectedElementsAreBeingDragged: boolean;
669
532
  shouldCacheIgnoreZoom: boolean;
670
533
  toast: {
671
- message: string;
672
- closable?: boolean | undefined;
673
- duration?: number | undefined;
534
+ message: React.ReactNode;
535
+ closable?: boolean;
536
+ duration?: number;
674
537
  } | null;
675
538
  zenModeEnabled: boolean;
676
539
  theme: import("@excalidraw/element/types").Theme;
@@ -681,45 +544,18 @@ export declare const actionSetFrameAsActiveTool: {
681
544
  selectedGroupIds: {
682
545
  [groupId: string]: boolean;
683
546
  };
684
- editingGroupId: string | null;
547
+ editingGroupId: import("@excalidraw/element/types").GroupId | null;
685
548
  width: number;
686
549
  height: number;
687
550
  offsetTop: number;
688
551
  offsetLeft: number;
689
- fileHandle: import("browser-fs-access").FileSystemHandle | null;
690
- collaborators: Map<import("../types").SocketId, Readonly<{
691
- pointer?: import("../types").CollaboratorPointer | undefined;
692
- button?: "up" | "down" | undefined;
693
- selectedElementIds?: Readonly<{
694
- [id: string]: true;
695
- }> | undefined;
696
- username?: string | null | undefined;
697
- userState?: import("@excalidraw/common").UserIdleState | undefined;
698
- color?: {
699
- background: string;
700
- stroke: string;
701
- } | undefined;
702
- avatarUrl?: string | undefined;
703
- id?: string | undefined;
704
- socketId?: import("../types").SocketId | undefined;
705
- isCurrentUser?: boolean | undefined;
706
- isInCall?: boolean | undefined;
707
- isSpeaking?: boolean | undefined;
708
- isMuted?: boolean | undefined;
709
- }>>;
552
+ fileHandle: FileSystemFileHandle | null;
553
+ collaborators: Map<import("../types").SocketId, import("../types").Collaborator>;
710
554
  stats: {
711
555
  open: boolean;
712
556
  panels: number;
713
557
  };
714
- currentChartType: import("@excalidraw/element/types").ChartType;
715
- pasteDialog: {
716
- shown: false;
717
- data: null;
718
- } | {
719
- shown: true;
720
- data: import("../charts").Spreadsheet;
721
- };
722
- showHyperlinkPopup: false | "editor" | "info";
558
+ showHyperlinkPopup: false | "info" | "editor";
723
559
  selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
724
560
  snapLines: readonly import("../snapping").SnapLine[];
725
561
  originSnapOffset: {
@@ -727,24 +563,31 @@ export declare const actionSetFrameAsActiveTool: {
727
563
  y: number;
728
564
  } | null;
729
565
  objectsSnapModeEnabled: boolean;
730
- userToFollow: import("../types").UserToFollow | null;
731
- followedBy: Set<import("../types").SocketId>;
732
566
  isCropping: boolean;
733
- croppingElementId: string | null;
567
+ croppingElementId: ExcalidrawElement["id"] | null;
734
568
  searchMatches: Readonly<{
735
- focusedId: string | null;
569
+ focusedId: ExcalidrawElement["id"] | null;
736
570
  matches: readonly import("../types").SearchMatch[];
737
571
  }> | null;
738
572
  activeLockedId: string | null;
739
573
  lockedMultiSelections: {
740
574
  [groupId: string]: true;
741
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;
742
585
  };
743
586
  captureUpdate: "EVENTUALLY";
744
587
  };
745
- keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
588
+ checked: (appState: Readonly<UIAppState>) => boolean;
746
589
  } & {
747
- keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
590
+ keyTest?: undefined;
748
591
  };
749
592
  export declare const actionWrapSelectionInFrame: {
750
593
  name: "wrapSelectionInFrame";
@@ -752,8 +595,8 @@ export declare const actionWrapSelectionInFrame: {
752
595
  trackEvent: {
753
596
  category: "element";
754
597
  };
755
- predicate: (elements: readonly ExcalidrawElement[], appState: AppState, _: import("../types").ExcalidrawProps, app: AppClassProperties) => boolean;
756
- perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: any, app: AppClassProperties) => {
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) => {
757
600
  elements: ((Readonly<{
758
601
  id: string;
759
602
  x: number;
@@ -763,10 +606,10 @@ export declare const actionWrapSelectionInFrame: {
763
606
  fillStyle: import("@excalidraw/element/types").FillStyle;
764
607
  strokeWidth: number;
765
608
  strokeStyle: import("@excalidraw/element/types").StrokeStyle;
766
- roundness: {
609
+ roundness: null | {
767
610
  type: import("@excalidraw/element/types").RoundnessType;
768
- value?: number | undefined;
769
- } | null;
611
+ value?: number;
612
+ };
770
613
  roughness: number;
771
614
  opacity: number;
772
615
  width: number;
@@ -777,22 +620,19 @@ export declare const actionWrapSelectionInFrame: {
777
620
  versionNonce: number;
778
621
  index: import("@excalidraw/element/types").FractionalIndex | null;
779
622
  isDeleted: boolean;
780
- groupIds: readonly string[];
623
+ groupIds: readonly import("@excalidraw/element/types").GroupId[];
781
624
  frameId: string | null;
782
- boundElements: readonly Readonly<{
783
- id: string;
784
- type: "arrow" | "text";
785
- }>[] | null;
625
+ boundElements: readonly import("@excalidraw/element/types").BoundElement[] | null;
786
626
  updated: number;
627
+ created: number | null;
787
628
  link: string | null;
788
629
  locked: boolean;
789
- customData?: Record<string, any> | undefined;
630
+ customData?: Record<string, any>;
790
631
  }> & Readonly<{
791
632
  type: "line" | "arrow";
792
633
  points: readonly import("@excalidraw/math").LocalPoint[];
793
- lastCommittedPoint: import("@excalidraw/math").LocalPoint | null;
794
- startBinding: import("@excalidraw/element/types").PointBinding | null;
795
- endBinding: import("@excalidraw/element/types").PointBinding | null;
634
+ startBinding: import("@excalidraw/element/types").FixedPointBinding | null;
635
+ endBinding: import("@excalidraw/element/types").FixedPointBinding | null;
796
636
  startArrowhead: import("@excalidraw/element/types").Arrowhead | null;
797
637
  endArrowhead: import("@excalidraw/element/types").Arrowhead | null;
798
638
  }> & {
@@ -806,10 +646,10 @@ export declare const actionWrapSelectionInFrame: {
806
646
  fillStyle: import("@excalidraw/element/types").FillStyle;
807
647
  strokeWidth: number;
808
648
  strokeStyle: import("@excalidraw/element/types").StrokeStyle;
809
- roundness: {
649
+ roundness: null | {
810
650
  type: import("@excalidraw/element/types").RoundnessType;
811
- value?: number | undefined;
812
- } | null;
651
+ value?: number;
652
+ };
813
653
  roughness: number;
814
654
  opacity: number;
815
655
  width: number;
@@ -820,16 +660,14 @@ export declare const actionWrapSelectionInFrame: {
820
660
  versionNonce: number;
821
661
  index: import("@excalidraw/element/types").FractionalIndex | null;
822
662
  isDeleted: boolean;
823
- groupIds: readonly string[];
663
+ groupIds: readonly import("@excalidraw/element/types").GroupId[];
824
664
  frameId: string | null;
825
- boundElements: readonly Readonly<{
826
- id: string;
827
- type: "arrow" | "text";
828
- }>[] | null;
665
+ boundElements: readonly import("@excalidraw/element/types").BoundElement[] | null;
829
666
  updated: number;
667
+ created: number | null;
830
668
  link: string | null;
831
669
  locked: boolean;
832
- customData?: Record<string, any> | undefined;
670
+ customData?: Record<string, any>;
833
671
  }> & {
834
672
  type: "selection";
835
673
  } & {
@@ -843,10 +681,10 @@ export declare const actionWrapSelectionInFrame: {
843
681
  fillStyle: import("@excalidraw/element/types").FillStyle;
844
682
  strokeWidth: number;
845
683
  strokeStyle: import("@excalidraw/element/types").StrokeStyle;
846
- roundness: {
684
+ roundness: null | {
847
685
  type: import("@excalidraw/element/types").RoundnessType;
848
- value?: number | undefined;
849
- } | null;
686
+ value?: number;
687
+ };
850
688
  roughness: number;
851
689
  opacity: number;
852
690
  width: number;
@@ -857,16 +695,14 @@ export declare const actionWrapSelectionInFrame: {
857
695
  versionNonce: number;
858
696
  index: import("@excalidraw/element/types").FractionalIndex | null;
859
697
  isDeleted: boolean;
860
- groupIds: readonly string[];
698
+ groupIds: readonly import("@excalidraw/element/types").GroupId[];
861
699
  frameId: string | null;
862
- boundElements: readonly Readonly<{
863
- id: string;
864
- type: "arrow" | "text";
865
- }>[] | null;
700
+ boundElements: readonly import("@excalidraw/element/types").BoundElement[] | null;
866
701
  updated: number;
702
+ created: number | null;
867
703
  link: string | null;
868
704
  locked: boolean;
869
- customData?: Record<string, any> | undefined;
705
+ customData?: Record<string, any>;
870
706
  }> & {
871
707
  type: "rectangle";
872
708
  } & {
@@ -880,10 +716,10 @@ export declare const actionWrapSelectionInFrame: {
880
716
  fillStyle: import("@excalidraw/element/types").FillStyle;
881
717
  strokeWidth: number;
882
718
  strokeStyle: import("@excalidraw/element/types").StrokeStyle;
883
- roundness: {
719
+ roundness: null | {
884
720
  type: import("@excalidraw/element/types").RoundnessType;
885
- value?: number | undefined;
886
- } | null;
721
+ value?: number;
722
+ };
887
723
  roughness: number;
888
724
  opacity: number;
889
725
  width: number;
@@ -894,16 +730,50 @@ export declare const actionWrapSelectionInFrame: {
894
730
  versionNonce: number;
895
731
  index: import("@excalidraw/element/types").FractionalIndex | null;
896
732
  isDeleted: boolean;
897
- groupIds: readonly string[];
733
+ groupIds: readonly import("@excalidraw/element/types").GroupId[];
898
734
  frameId: string | null;
899
- boundElements: readonly Readonly<{
900
- id: string;
901
- type: "arrow" | "text";
902
- }>[] | null;
735
+ boundElements: readonly import("@excalidraw/element/types").BoundElement[] | null;
903
736
  updated: number;
737
+ created: number | null;
904
738
  link: string | null;
905
739
  locked: boolean;
906
- customData?: Record<string, any> | undefined;
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
+ };
759
+ roughness: number;
760
+ opacity: number;
761
+ width: number;
762
+ height: number;
763
+ angle: import("@excalidraw/math").Radians;
764
+ seed: number;
765
+ version: number;
766
+ versionNonce: number;
767
+ index: import("@excalidraw/element/types").FractionalIndex | null;
768
+ isDeleted: boolean;
769
+ groupIds: readonly import("@excalidraw/element/types").GroupId[];
770
+ frameId: string | null;
771
+ boundElements: readonly import("@excalidraw/element/types").BoundElement[] | null;
772
+ updated: number;
773
+ created: number | null;
774
+ link: string | null;
775
+ locked: boolean;
776
+ customData?: Record<string, any>;
907
777
  }> & {
908
778
  type: "diamond";
909
779
  } & {
@@ -917,10 +787,10 @@ export declare const actionWrapSelectionInFrame: {
917
787
  fillStyle: import("@excalidraw/element/types").FillStyle;
918
788
  strokeWidth: number;
919
789
  strokeStyle: import("@excalidraw/element/types").StrokeStyle;
920
- roundness: {
790
+ roundness: null | {
921
791
  type: import("@excalidraw/element/types").RoundnessType;
922
- value?: number | undefined;
923
- } | null;
792
+ value?: number;
793
+ };
924
794
  roughness: number;
925
795
  opacity: number;
926
796
  width: number;
@@ -931,16 +801,14 @@ export declare const actionWrapSelectionInFrame: {
931
801
  versionNonce: number;
932
802
  index: import("@excalidraw/element/types").FractionalIndex | null;
933
803
  isDeleted: boolean;
934
- groupIds: readonly string[];
804
+ groupIds: readonly import("@excalidraw/element/types").GroupId[];
935
805
  frameId: string | null;
936
- boundElements: readonly Readonly<{
937
- id: string;
938
- type: "arrow" | "text";
939
- }>[] | null;
806
+ boundElements: readonly import("@excalidraw/element/types").BoundElement[] | null;
940
807
  updated: number;
808
+ created: number | null;
941
809
  link: string | null;
942
810
  locked: boolean;
943
- customData?: Record<string, any> | undefined;
811
+ customData?: Record<string, any>;
944
812
  }> & {
945
813
  type: "ellipse";
946
814
  } & {
@@ -954,10 +822,10 @@ export declare const actionWrapSelectionInFrame: {
954
822
  fillStyle: import("@excalidraw/element/types").FillStyle;
955
823
  strokeWidth: number;
956
824
  strokeStyle: import("@excalidraw/element/types").StrokeStyle;
957
- roundness: {
825
+ roundness: null | {
958
826
  type: import("@excalidraw/element/types").RoundnessType;
959
- value?: number | undefined;
960
- } | null;
827
+ value?: number;
828
+ };
961
829
  roughness: number;
962
830
  opacity: number;
963
831
  width: number;
@@ -968,16 +836,14 @@ export declare const actionWrapSelectionInFrame: {
968
836
  versionNonce: number;
969
837
  index: import("@excalidraw/element/types").FractionalIndex | null;
970
838
  isDeleted: boolean;
971
- groupIds: readonly string[];
839
+ groupIds: readonly import("@excalidraw/element/types").GroupId[];
972
840
  frameId: string | null;
973
- boundElements: readonly Readonly<{
974
- id: string;
975
- type: "arrow" | "text";
976
- }>[] | null;
841
+ boundElements: readonly import("@excalidraw/element/types").BoundElement[] | null;
977
842
  updated: number;
843
+ created: number | null;
978
844
  link: string | null;
979
845
  locked: boolean;
980
- customData?: Record<string, any> | undefined;
846
+ customData?: Record<string, any>;
981
847
  }> & Readonly<{
982
848
  type: "embeddable";
983
849
  }> & {
@@ -991,10 +857,10 @@ export declare const actionWrapSelectionInFrame: {
991
857
  fillStyle: import("@excalidraw/element/types").FillStyle;
992
858
  strokeWidth: number;
993
859
  strokeStyle: import("@excalidraw/element/types").StrokeStyle;
994
- roundness: {
860
+ roundness: null | {
995
861
  type: import("@excalidraw/element/types").RoundnessType;
996
- value?: number | undefined;
997
- } | null;
862
+ value?: number;
863
+ };
998
864
  roughness: number;
999
865
  opacity: number;
1000
866
  width: number;
@@ -1005,21 +871,19 @@ export declare const actionWrapSelectionInFrame: {
1005
871
  versionNonce: number;
1006
872
  index: import("@excalidraw/element/types").FractionalIndex | null;
1007
873
  isDeleted: boolean;
1008
- groupIds: readonly string[];
874
+ groupIds: readonly import("@excalidraw/element/types").GroupId[];
1009
875
  frameId: string | null;
1010
- boundElements: readonly Readonly<{
1011
- id: string;
1012
- type: "arrow" | "text";
1013
- }>[] | null;
876
+ boundElements: readonly import("@excalidraw/element/types").BoundElement[] | null;
1014
877
  updated: number;
878
+ created: number | null;
1015
879
  link: string | null;
1016
880
  locked: boolean;
1017
- customData?: Record<string, any> | undefined;
881
+ customData?: Record<string, any>;
1018
882
  }> & Readonly<{
1019
883
  type: "iframe";
1020
884
  customData?: {
1021
- generationData?: import("@excalidraw/element/types").MagicGenerationData | undefined;
1022
- } | undefined;
885
+ generationData?: import("@excalidraw/element/types").MagicGenerationData;
886
+ };
1023
887
  }> & {
1024
888
  index: import("@excalidraw/element/types").FractionalIndex;
1025
889
  }) | (Readonly<{
@@ -1031,10 +895,10 @@ export declare const actionWrapSelectionInFrame: {
1031
895
  fillStyle: import("@excalidraw/element/types").FillStyle;
1032
896
  strokeWidth: number;
1033
897
  strokeStyle: import("@excalidraw/element/types").StrokeStyle;
1034
- roundness: {
898
+ roundness: null | {
1035
899
  type: import("@excalidraw/element/types").RoundnessType;
1036
- value?: number | undefined;
1037
- } | null;
900
+ value?: number;
901
+ };
1038
902
  roughness: number;
1039
903
  opacity: number;
1040
904
  width: number;
@@ -1045,20 +909,18 @@ export declare const actionWrapSelectionInFrame: {
1045
909
  versionNonce: number;
1046
910
  index: import("@excalidraw/element/types").FractionalIndex | null;
1047
911
  isDeleted: boolean;
1048
- groupIds: readonly string[];
912
+ groupIds: readonly import("@excalidraw/element/types").GroupId[];
1049
913
  frameId: string | null;
1050
- boundElements: readonly Readonly<{
1051
- id: string;
1052
- type: "arrow" | "text";
1053
- }>[] | null;
914
+ boundElements: readonly import("@excalidraw/element/types").BoundElement[] | null;
1054
915
  updated: number;
916
+ created: number | null;
1055
917
  link: string | null;
1056
918
  locked: boolean;
1057
- customData?: Record<string, any> | undefined;
919
+ customData?: Record<string, any>;
1058
920
  }> & Readonly<{
1059
921
  type: "image";
1060
922
  fileId: import("@excalidraw/element/types").FileId | null;
1061
- status: "pending" | "error" | "saved";
923
+ status: "pending" | "saved" | "error";
1062
924
  scale: [number, number];
1063
925
  crop: import("@excalidraw/element/types").ImageCrop | null;
1064
926
  }> & {
@@ -1072,10 +934,10 @@ export declare const actionWrapSelectionInFrame: {
1072
934
  fillStyle: import("@excalidraw/element/types").FillStyle;
1073
935
  strokeWidth: number;
1074
936
  strokeStyle: import("@excalidraw/element/types").StrokeStyle;
1075
- roundness: {
937
+ roundness: null | {
1076
938
  type: import("@excalidraw/element/types").RoundnessType;
1077
- value?: number | undefined;
1078
- } | null;
939
+ value?: number;
940
+ };
1079
941
  roughness: number;
1080
942
  opacity: number;
1081
943
  width: number;
@@ -1086,16 +948,14 @@ export declare const actionWrapSelectionInFrame: {
1086
948
  versionNonce: number;
1087
949
  index: import("@excalidraw/element/types").FractionalIndex | null;
1088
950
  isDeleted: boolean;
1089
- groupIds: readonly string[];
951
+ groupIds: readonly import("@excalidraw/element/types").GroupId[];
1090
952
  frameId: string | null;
1091
- boundElements: readonly Readonly<{
1092
- id: string;
1093
- type: "arrow" | "text";
1094
- }>[] | null;
953
+ boundElements: readonly import("@excalidraw/element/types").BoundElement[] | null;
1095
954
  updated: number;
955
+ created: number | null;
1096
956
  link: string | null;
1097
957
  locked: boolean;
1098
- customData?: Record<string, any> | undefined;
958
+ customData?: Record<string, any>;
1099
959
  }> & {
1100
960
  type: "frame";
1101
961
  name: string | null;
@@ -1110,10 +970,10 @@ export declare const actionWrapSelectionInFrame: {
1110
970
  fillStyle: import("@excalidraw/element/types").FillStyle;
1111
971
  strokeWidth: number;
1112
972
  strokeStyle: import("@excalidraw/element/types").StrokeStyle;
1113
- roundness: {
973
+ roundness: null | {
1114
974
  type: import("@excalidraw/element/types").RoundnessType;
1115
- value?: number | undefined;
1116
- } | null;
975
+ value?: number;
976
+ };
1117
977
  roughness: number;
1118
978
  opacity: number;
1119
979
  width: number;
@@ -1124,16 +984,14 @@ export declare const actionWrapSelectionInFrame: {
1124
984
  versionNonce: number;
1125
985
  index: import("@excalidraw/element/types").FractionalIndex | null;
1126
986
  isDeleted: boolean;
1127
- groupIds: readonly string[];
987
+ groupIds: readonly import("@excalidraw/element/types").GroupId[];
1128
988
  frameId: string | null;
1129
- boundElements: readonly Readonly<{
1130
- id: string;
1131
- type: "arrow" | "text";
1132
- }>[] | null;
989
+ boundElements: readonly import("@excalidraw/element/types").BoundElement[] | null;
1133
990
  updated: number;
991
+ created: number | null;
1134
992
  link: string | null;
1135
993
  locked: boolean;
1136
- customData?: Record<string, any> | undefined;
994
+ customData?: Record<string, any>;
1137
995
  }> & {
1138
996
  type: "magicframe";
1139
997
  name: string | null;
@@ -1148,10 +1006,10 @@ export declare const actionWrapSelectionInFrame: {
1148
1006
  fillStyle: import("@excalidraw/element/types").FillStyle;
1149
1007
  strokeWidth: number;
1150
1008
  strokeStyle: import("@excalidraw/element/types").StrokeStyle;
1151
- roundness: {
1009
+ roundness: null | {
1152
1010
  type: import("@excalidraw/element/types").RoundnessType;
1153
- value?: number | undefined;
1154
- } | null;
1011
+ value?: number;
1012
+ };
1155
1013
  roughness: number;
1156
1014
  opacity: number;
1157
1015
  width: number;
@@ -1162,29 +1020,29 @@ export declare const actionWrapSelectionInFrame: {
1162
1020
  versionNonce: number;
1163
1021
  index: import("@excalidraw/element/types").FractionalIndex | null;
1164
1022
  isDeleted: boolean;
1165
- groupIds: readonly string[];
1023
+ groupIds: readonly import("@excalidraw/element/types").GroupId[];
1166
1024
  frameId: string | null;
1167
- boundElements: readonly Readonly<{
1168
- id: string;
1169
- type: "arrow" | "text";
1170
- }>[] | null;
1025
+ boundElements: readonly import("@excalidraw/element/types").BoundElement[] | null;
1171
1026
  updated: number;
1027
+ created: number | null;
1172
1028
  link: string | null;
1173
1029
  locked: boolean;
1174
- customData?: Record<string, any> | undefined;
1030
+ customData?: Record<string, any>;
1175
1031
  }> & Readonly<{
1176
1032
  type: "text";
1177
1033
  fontSize: number;
1178
- fontFamily: number;
1034
+ fontFamily: import("@excalidraw/element/types").FontFamilyValues;
1035
+ baseFontSize: number | null;
1179
1036
  text: string;
1180
- textAlign: string;
1181
- verticalAlign: string;
1182
- 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;
1183
1040
  originalText: string;
1184
1041
  autoResize: boolean;
1185
1042
  lineHeight: number & {
1186
1043
  _brand: "unitlessLineHeight";
1187
1044
  };
1045
+ labelPosition?: number | null;
1188
1046
  }> & {
1189
1047
  index: import("@excalidraw/element/types").FractionalIndex;
1190
1048
  }) | (Readonly<{
@@ -1196,10 +1054,10 @@ export declare const actionWrapSelectionInFrame: {
1196
1054
  fillStyle: import("@excalidraw/element/types").FillStyle;
1197
1055
  strokeWidth: number;
1198
1056
  strokeStyle: import("@excalidraw/element/types").StrokeStyle;
1199
- roundness: {
1057
+ roundness: null | {
1200
1058
  type: import("@excalidraw/element/types").RoundnessType;
1201
- value?: number | undefined;
1202
- } | null;
1059
+ value?: number;
1060
+ };
1203
1061
  roughness: number;
1204
1062
  opacity: number;
1205
1063
  width: number;
@@ -1210,22 +1068,20 @@ export declare const actionWrapSelectionInFrame: {
1210
1068
  versionNonce: number;
1211
1069
  index: import("@excalidraw/element/types").FractionalIndex | null;
1212
1070
  isDeleted: boolean;
1213
- groupIds: readonly string[];
1071
+ groupIds: readonly import("@excalidraw/element/types").GroupId[];
1214
1072
  frameId: string | null;
1215
- boundElements: readonly Readonly<{
1216
- id: string;
1217
- type: "arrow" | "text";
1218
- }>[] | null;
1073
+ boundElements: readonly import("@excalidraw/element/types").BoundElement[] | null;
1219
1074
  updated: number;
1075
+ created: number | null;
1220
1076
  link: string | null;
1221
1077
  locked: boolean;
1222
- customData?: Record<string, any> | undefined;
1078
+ customData?: Record<string, any>;
1223
1079
  }> & Readonly<{
1224
1080
  type: "freedraw";
1225
1081
  points: readonly import("@excalidraw/math").LocalPoint[];
1226
1082
  pressures: readonly number[];
1227
1083
  simulatePressure: boolean;
1228
- lastCommittedPoint: import("@excalidraw/math").LocalPoint | null;
1084
+ strokeOptions: import("@excalidraw/element/types").StrokeOptions;
1229
1085
  }> & {
1230
1086
  index: import("@excalidraw/element/types").FractionalIndex;
1231
1087
  }) | import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameElement>)[];