@excalidraw/common 0.18.0-4e0441e → 0.18.0-4e758db

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