@excalidraw/math 0.18.0-9ba0f5d → 0.18.0-9fbeaed

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