@excalidraw/math 0.18.0-0fc927cb4 → 0.18.0-1118751

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