@excalidraw/math 0.18.0-3a5ef40 → 0.18.0-3c916c5

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 (284) hide show
  1. package/dist/dev/index.js +321 -118
  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 +66 -7
  8. package/dist/types/common/src/index.d.ts +3 -0
  9. package/dist/types/common/src/keys.d.ts +4 -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 +6 -3
  19. package/dist/types/element/src/binding.d.ts +94 -17
  20. package/dist/types/element/src/bounds.d.ts +32 -9
  21. package/dist/types/element/src/bucketFill.d.ts +110 -0
  22. package/dist/types/element/src/collision.d.ts +21 -5
  23. package/dist/types/element/src/comparisons.d.ts +8 -5
  24. package/dist/types/element/src/convertToShape.d.ts +23 -0
  25. package/dist/types/element/src/cropElement.d.ts +36 -4
  26. package/dist/types/element/src/delta.d.ts +30 -2
  27. package/dist/types/element/src/distribute.d.ts +5 -2
  28. package/dist/types/element/src/dragElements.d.ts +34 -2
  29. package/dist/types/element/src/duplicate.d.ts +64 -3
  30. package/dist/types/element/src/elbowArrow.d.ts +7 -0
  31. package/dist/types/element/src/embeddable.d.ts +3 -2
  32. package/dist/types/element/src/flowchart.d.ts +9 -11
  33. package/dist/types/element/src/fractionalIndex.d.ts +2 -2
  34. package/dist/types/element/src/frame.d.ts +30 -11
  35. package/dist/types/element/src/groups.d.ts +10 -15
  36. package/dist/types/element/src/image.d.ts +5 -2
  37. package/dist/types/element/src/index.d.ts +8 -1
  38. package/dist/types/element/src/linearElementEditor.d.ts +34 -11
  39. package/dist/types/element/src/listMarker.d.ts +39 -0
  40. package/dist/types/element/src/mutateElement.d.ts +3 -1
  41. package/dist/types/element/src/newElement.d.ts +55 -3
  42. package/dist/types/element/src/renderElement.d.ts +31 -7
  43. package/dist/types/element/src/renderEnvironment.d.ts +66 -0
  44. package/dist/types/element/src/resizeElements.d.ts +14 -4
  45. package/dist/types/element/src/selection.d.ts +11 -13
  46. package/dist/types/element/src/shape.d.ts +30 -2
  47. package/dist/types/element/src/sizeHelpers.d.ts +6 -0
  48. package/dist/types/element/src/sortElements.d.ts +10 -0
  49. package/dist/types/element/src/stickyNote.d.ts +191 -0
  50. package/dist/types/element/src/textElement.d.ts +23 -11
  51. package/dist/types/element/src/textMeasurements.d.ts +15 -11
  52. package/dist/types/element/src/textWrapping.d.ts +28 -1
  53. package/dist/types/element/src/transform.d.ts +31 -8
  54. package/dist/types/element/src/typeChecks.d.ts +29 -27
  55. package/dist/types/element/src/types.d.ts +48 -9
  56. package/dist/types/element/src/utils.d.ts +19 -6
  57. package/dist/types/element/src/zindex.d.ts +2 -2
  58. package/dist/types/excalidraw/actions/actionAddToLibrary.d.ts +125 -53
  59. package/dist/types/excalidraw/actions/actionAlign.d.ts +6 -6
  60. package/dist/types/excalidraw/actions/actionBoundText.d.ts +86 -213
  61. package/dist/types/excalidraw/actions/actionCanvas.d.ts +361 -1024
  62. package/dist/types/excalidraw/actions/actionClipboard.d.ts +84 -36
  63. package/dist/types/excalidraw/actions/actionCropEditor.d.ts +42 -18
  64. package/dist/types/excalidraw/actions/actionDeleteSelected.d.ts +4 -515
  65. package/dist/types/excalidraw/actions/actionDeselect.d.ts +182 -0
  66. package/dist/types/excalidraw/actions/actionDistribute.d.ts +2 -3
  67. package/dist/types/excalidraw/actions/actionElementLink.d.ts +38 -18
  68. package/dist/types/excalidraw/actions/actionElementLock.d.ts +85 -37
  69. package/dist/types/excalidraw/actions/actionExport.d.ts +138 -364
  70. package/dist/types/excalidraw/actions/actionFinalize.d.ts +1 -0
  71. package/dist/types/excalidraw/actions/actionFrame.d.ts +151 -684
  72. package/dist/types/excalidraw/actions/actionGroup.d.ts +100 -52
  73. package/dist/types/excalidraw/actions/actionLinearEditor.d.ts +97 -21
  74. package/dist/types/excalidraw/actions/actionLink.d.ts +43 -19
  75. package/dist/types/excalidraw/actions/actionMenu.d.ts +38 -18
  76. package/dist/types/excalidraw/actions/actionProperties.d.ts +120 -56
  77. package/dist/types/excalidraw/actions/actionSelectAll.d.ts +47 -23
  78. package/dist/types/excalidraw/actions/actionStyles.d.ts +43 -18
  79. package/dist/types/excalidraw/actions/actionTextAutoResize.d.ts +3 -3
  80. package/dist/types/excalidraw/actions/{actionEmbeddable.d.ts → actionToggleArrowBinding.d.ts} +57 -32
  81. package/dist/types/excalidraw/actions/actionToggleGridMode.d.ts +46 -23
  82. package/dist/types/excalidraw/actions/actionToggleMidpointSnapping.d.ts +195 -0
  83. package/dist/types/excalidraw/actions/actionToggleObjectsSnapMode.d.ts +43 -19
  84. package/dist/types/excalidraw/actions/actionToggleSearchMenu.d.ts +42 -23
  85. package/dist/types/excalidraw/actions/actionToggleShapeSwitch.d.ts +1 -1
  86. package/dist/types/excalidraw/actions/actionToggleShowHints.d.ts +197 -0
  87. package/dist/types/excalidraw/actions/actionToggleStats.d.ts +43 -19
  88. package/dist/types/excalidraw/actions/actionToggleViewMode.d.ts +44 -20
  89. package/dist/types/excalidraw/actions/actionToggleWrap.d.ts +12 -0
  90. package/dist/types/excalidraw/actions/actionToggleZenMode.d.ts +43 -19
  91. package/dist/types/excalidraw/actions/colorTargets.d.ts +39 -0
  92. package/dist/types/excalidraw/actions/index.d.ts +6 -2
  93. package/dist/types/excalidraw/actions/manager.d.ts +1 -0
  94. package/dist/types/excalidraw/actions/shortcuts.d.ts +1 -1
  95. package/dist/types/excalidraw/actions/types.d.ts +8 -4
  96. package/dist/types/excalidraw/{animated-trail.d.ts → animatedTrail.d.ts} +4 -3
  97. package/dist/types/excalidraw/appState.d.ts +43 -17
  98. package/dist/types/excalidraw/charts/charts.bar.d.ts +3 -0
  99. package/dist/types/excalidraw/charts/charts.constants.d.ts +48 -0
  100. package/dist/types/excalidraw/charts/charts.helpers.d.ts +33 -0
  101. package/dist/types/excalidraw/charts/charts.line.d.ts +3 -0
  102. package/dist/types/excalidraw/charts/charts.parse.d.ts +10 -0
  103. package/dist/types/excalidraw/charts/charts.radar.d.ts +3 -0
  104. package/dist/types/excalidraw/charts/charts.types.d.ts +18 -0
  105. package/dist/types/excalidraw/charts/index.d.ts +8 -0
  106. package/dist/types/excalidraw/clipboard.d.ts +2 -5
  107. package/dist/types/excalidraw/components/Actions.d.ts +17 -12
  108. package/dist/types/excalidraw/components/ActiveConfirmDialog.d.ts +1 -1
  109. package/dist/types/excalidraw/components/App.arrowText.d.ts +70 -0
  110. package/dist/types/excalidraw/components/App.bucketFill.d.ts +48 -0
  111. package/dist/types/excalidraw/components/App.clipboard.d.ts +31 -0
  112. package/dist/types/excalidraw/components/App.cursor.d.ts +38 -0
  113. package/dist/types/excalidraw/components/App.d.ts +372 -116
  114. package/dist/types/excalidraw/components/App.drawshape.d.ts +55 -0
  115. package/dist/types/excalidraw/components/App.duplicate.d.ts +101 -0
  116. package/dist/types/excalidraw/components/App.flowchart.d.ts +21 -0
  117. package/dist/types/excalidraw/components/App.host.d.ts +102 -0
  118. package/dist/types/excalidraw/components/App.modifiers.d.ts +38 -0
  119. package/dist/types/excalidraw/components/App.pan.d.ts +62 -0
  120. package/dist/types/excalidraw/components/App.selection.d.ts +265 -0
  121. package/dist/types/excalidraw/components/App.selectionTool.d.ts +93 -0
  122. package/dist/types/excalidraw/components/App.text.d.ts +146 -0
  123. package/dist/types/excalidraw/components/App.textTool.d.ts +140 -0
  124. package/dist/types/excalidraw/components/App.toolDrag.d.ts +63 -0
  125. package/dist/types/excalidraw/components/App.viewport.d.ts +123 -0
  126. package/dist/types/excalidraw/components/App.wheel.d.ts +26 -0
  127. package/dist/types/excalidraw/components/App.wrap.d.ts +31 -0
  128. package/dist/types/excalidraw/components/AppStateObserver.d.ts +37 -0
  129. package/dist/types/excalidraw/components/ColorPicker/ColorPicker.d.ts +9 -3
  130. package/dist/types/excalidraw/components/ColorPicker/CustomColorList.d.ts +3 -1
  131. package/dist/types/excalidraw/components/ColorPicker/Picker.d.ts +5 -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 -1
  136. package/dist/types/excalidraw/components/ColorPicker/colorTopPicksDnD.d.ts +11 -0
  137. package/dist/types/excalidraw/components/ColorPicker/keyboardNavHandlers.d.ts +2 -1
  138. package/dist/types/excalidraw/components/CommandPalette/defaultCommandPaletteItems.d.ts +1 -2
  139. package/dist/types/excalidraw/components/CommandPalette/types.d.ts +1 -1
  140. package/dist/types/excalidraw/components/ConvertElementTypePopup.d.ts +4 -3
  141. package/dist/types/excalidraw/components/CursorHint.d.ts +46 -0
  142. package/dist/types/excalidraw/components/EyeDropper.d.ts +1 -1
  143. package/dist/types/excalidraw/components/FileDropOverlay.d.ts +2 -0
  144. package/dist/types/excalidraw/components/FontPicker/FontPicker.d.ts +4 -1
  145. package/dist/types/excalidraw/components/FontPicker/FontPickerList.d.ts +6 -1
  146. package/dist/types/excalidraw/components/FontPicker/fontTopPicksDnD.d.ts +12 -0
  147. package/dist/types/excalidraw/components/IconButton.d.ts +48 -0
  148. package/dist/types/excalidraw/components/IconPicker.d.ts +14 -9
  149. package/dist/types/excalidraw/components/Island.d.ts +7 -0
  150. package/dist/types/excalidraw/components/LaserPointerButton.d.ts +2 -4
  151. package/dist/types/excalidraw/components/LayerUI.d.ts +5 -2
  152. package/dist/types/excalidraw/components/LibraryMenu.d.ts +1 -1
  153. package/dist/types/excalidraw/components/LibraryMenuSection.d.ts +6 -2
  154. package/dist/types/excalidraw/components/LibraryUnit.d.ts +7 -2
  155. package/dist/types/excalidraw/components/LockButton.d.ts +3 -4
  156. package/dist/types/excalidraw/components/MagicButton.d.ts +0 -2
  157. package/dist/types/excalidraw/components/MobileMenu.d.ts +4 -4
  158. package/dist/types/excalidraw/components/MobileToolbar.d.ts +9 -0
  159. package/dist/types/excalidraw/components/OverwriteConfirm/OverwriteConfirmState.d.ts +1 -1
  160. package/dist/types/excalidraw/components/PasteChartDialog.d.ts +4 -5
  161. package/dist/types/excalidraw/components/PenModeButton.d.ts +2 -5
  162. package/dist/types/excalidraw/components/Popover.d.ts +1 -3
  163. package/dist/types/excalidraw/components/{ButtonIcon.d.ts → RadioButton.d.ts} +2 -5
  164. package/dist/types/excalidraw/components/Range.d.ts +10 -4
  165. package/dist/types/excalidraw/components/SVGLayer.d.ts +1 -1
  166. package/dist/types/excalidraw/components/SearchMenu.d.ts +1 -1
  167. package/dist/types/excalidraw/components/Sidebar/Sidebar.d.ts +1 -1
  168. package/dist/types/excalidraw/components/Stats/Angle.d.ts +2 -2
  169. package/dist/types/excalidraw/components/Stats/Dimension.d.ts +2 -2
  170. package/dist/types/excalidraw/components/Stats/DragInput.d.ts +2 -2
  171. package/dist/types/excalidraw/components/Stats/MultiAngle.d.ts +2 -2
  172. package/dist/types/excalidraw/components/Stats/MultiDimension.d.ts +2 -2
  173. package/dist/types/excalidraw/components/Stats/MultiPosition.d.ts +2 -2
  174. package/dist/types/excalidraw/components/Stats/Position.d.ts +3 -3
  175. package/dist/types/excalidraw/components/Stats/utils.d.ts +4 -2
  176. package/dist/types/excalidraw/components/TTDDialog/CodeMirrorEditor.d.ts +11 -0
  177. package/dist/types/excalidraw/components/TTDDialog/MermaidToExcalidraw.d.ts +2 -1
  178. package/dist/types/excalidraw/components/TTDDialog/TTDContext.d.ts +4 -4
  179. package/dist/types/excalidraw/components/TTDDialog/TTDDialogInput.d.ts +3 -3
  180. package/dist/types/excalidraw/components/TTDDialog/TTDDialogOutput.d.ts +8 -2
  181. package/dist/types/excalidraw/components/TTDDialog/TTDPreviewPanel.d.ts +5 -2
  182. package/dist/types/excalidraw/components/TTDDialog/TextToDiagram.d.ts +2 -1
  183. package/dist/types/excalidraw/components/TTDDialog/common.d.ts +4 -1
  184. package/dist/types/excalidraw/components/TTDDialog/hooks/useTextGeneration.d.ts +3 -2
  185. package/dist/types/excalidraw/components/TTDDialog/mermaid-lang-lite.d.ts +2 -0
  186. package/dist/types/excalidraw/components/TTDDialog/types.d.ts +14 -1
  187. package/dist/types/excalidraw/components/TTDDialog/useTTDChatStorage.d.ts +3 -3
  188. package/dist/types/excalidraw/components/TTDDialog/utils/mermaidAutoFix.d.ts +1 -0
  189. package/dist/types/excalidraw/components/TTDDialog/utils/mermaidError.d.ts +26 -0
  190. package/dist/types/excalidraw/components/Toast.d.ts +8 -4
  191. package/dist/types/excalidraw/components/ToolPopover.d.ts +3 -6
  192. package/dist/types/excalidraw/components/Toolbar.d.ts +11 -0
  193. package/dist/types/excalidraw/components/Tools.d.ts +151 -0
  194. package/dist/types/excalidraw/components/Tooltip.d.ts +26 -2
  195. package/dist/types/excalidraw/components/TopPicksDnD/TopPicksContextMenu.d.ts +14 -0
  196. package/dist/types/excalidraw/components/TopPicksDnD/TopPicksTip.d.ts +11 -0
  197. package/dist/types/excalidraw/components/TopPicksDnD/topPicksDnD.d.ts +58 -0
  198. package/dist/types/excalidraw/components/UserList.d.ts +3 -2
  199. package/dist/types/excalidraw/components/ViewportStatusFrame/ViewportStatusFrame.d.ts +11 -0
  200. package/dist/types/excalidraw/components/canvases/InteractiveCanvas.d.ts +4 -2
  201. package/dist/types/excalidraw/components/canvases/NewElementCanvas.d.ts +3 -0
  202. package/dist/types/excalidraw/components/canvases/StaticCanvas.d.ts +1 -1
  203. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuItemContentRadio.d.ts +2 -1
  204. package/dist/types/excalidraw/components/footer/Footer.d.ts +3 -1
  205. package/dist/types/excalidraw/components/hyperlink/Hyperlink.d.ts +3 -2
  206. package/dist/types/excalidraw/components/hyperlink/helpers.d.ts +15 -4
  207. package/dist/types/excalidraw/components/icons.d.ts +27 -10
  208. package/dist/types/excalidraw/components/main-menu/DefaultItems.d.ts +12 -4
  209. package/dist/types/excalidraw/components/positionElementBesideCursor.d.ts +26 -0
  210. package/dist/types/excalidraw/components/shapeActionPredicates.d.ts +39 -0
  211. package/dist/types/excalidraw/data/blob.d.ts +117 -70
  212. package/dist/types/excalidraw/data/filesystem.d.ts +3 -5
  213. package/dist/types/excalidraw/data/index.d.ts +9 -10
  214. package/dist/types/excalidraw/data/json.d.ts +67 -35
  215. package/dist/types/excalidraw/data/library.d.ts +1 -1
  216. package/dist/types/excalidraw/data/resave.d.ts +7 -2
  217. package/dist/types/excalidraw/drawShapeTrail.d.ts +16 -0
  218. package/dist/types/excalidraw/eraser/index.d.ts +2 -3
  219. package/dist/types/excalidraw/fonts/Fonts.d.ts +12 -8
  220. package/dist/types/excalidraw/history.d.ts +10 -4
  221. package/dist/types/excalidraw/hooks/useAppStateValue.d.ts +29 -0
  222. package/dist/types/excalidraw/hooks/useLibraryItemSvg.d.ts +1 -1
  223. package/dist/types/excalidraw/hooks/useTextEditorFocus.d.ts +5 -5
  224. package/dist/types/excalidraw/{laser-trails.d.ts → laserTrails.d.ts} +5 -7
  225. package/dist/types/excalidraw/lasso/index.d.ts +2 -3
  226. package/dist/types/excalidraw/lasso/utils.d.ts +2 -0
  227. package/dist/types/excalidraw/mermaid.d.ts +7 -0
  228. package/dist/types/excalidraw/reactUtils.d.ts +1 -1
  229. package/dist/types/excalidraw/renderOverrides.d.ts +9 -0
  230. package/dist/types/excalidraw/renderer/animation.d.ts +15 -4
  231. package/dist/types/excalidraw/renderer/helpers.d.ts +25 -0
  232. package/dist/types/excalidraw/renderer/interactiveScene.d.ts +2 -4
  233. package/dist/types/excalidraw/renderer/staticScene.d.ts +11 -6
  234. package/dist/types/excalidraw/scene/Renderer.d.ts +490 -21
  235. package/dist/types/excalidraw/scene/export.d.ts +344 -21
  236. package/dist/types/excalidraw/scene/index.d.ts +2 -2
  237. package/dist/types/excalidraw/scene/types.d.ts +30 -5
  238. package/dist/types/excalidraw/snapping.d.ts +7 -7
  239. package/dist/types/excalidraw/textAutoResizeHandle.d.ts +15 -0
  240. package/dist/types/excalidraw/types.d.ts +670 -43
  241. package/dist/types/excalidraw/viewport.d.ts +302 -0
  242. package/dist/types/excalidraw/wysiwyg/textWysiwyg.d.ts +17 -3
  243. package/dist/types/fractional-indexing/src/index.d.ts +29 -0
  244. package/dist/types/laser-pointer/src/index.d.ts +2 -0
  245. package/dist/types/laser-pointer/src/math.d.ts +16 -0
  246. package/dist/types/laser-pointer/src/simplify.d.ts +2 -0
  247. package/dist/types/laser-pointer/src/state.d.ts +36 -0
  248. package/dist/types/math/src/constants.d.ts +0 -1
  249. package/dist/types/math/src/curve.d.ts +23 -13
  250. package/dist/types/math/src/index.d.ts +1 -0
  251. package/dist/types/math/src/pca.d.ts +79 -0
  252. package/dist/types/math/src/point.d.ts +8 -2
  253. package/dist/types/math/src/polygon.d.ts +25 -1
  254. package/dist/types/math/src/segment.d.ts +6 -0
  255. package/dist/types/math/src/types.d.ts +25 -1
  256. package/dist/types/utils/src/index.d.ts +4 -3
  257. package/dist/types/utils/src/shape.d.ts +2 -2
  258. package/package.json +2 -2
  259. package/dist/types/excalidraw/animation-frame-handler.d.ts +0 -16
  260. package/dist/types/excalidraw/charts.d.ts +0 -27
  261. package/dist/types/excalidraw/components/DiagramToCodePlugin/DiagramToCodePlugin.d.ts +0 -4
  262. package/dist/types/excalidraw/components/ExcalidrawLogo.d.ts +0 -15
  263. package/dist/types/excalidraw/components/FollowMode/FollowMode.d.ts +0 -10
  264. package/dist/types/excalidraw/components/HandButton.d.ts +0 -10
  265. package/dist/types/excalidraw/components/InitializeApp.d.ts +0 -10
  266. package/dist/types/excalidraw/components/MobileToolBar.d.ts +0 -10
  267. package/dist/types/excalidraw/components/TTDDialog/TTDDialogTrigger.d.ts +0 -8
  268. package/dist/types/excalidraw/components/TTDDialog/utils/TTDStreamFetch.d.ts +0 -24
  269. package/dist/types/excalidraw/components/ToolButton.d.ts +0 -49
  270. package/dist/types/excalidraw/components/footer/FooterCenter.d.ts +0 -8
  271. package/dist/types/excalidraw/components/live-collaboration/LiveCollaborationTrigger.d.ts +0 -11
  272. package/dist/types/excalidraw/components/shapes.d.ts +0 -190
  273. package/dist/types/excalidraw/components/welcome-screen/WelcomeScreen.Center.d.ts +0 -58
  274. package/dist/types/excalidraw/components/welcome-screen/WelcomeScreen.Hints.d.ts +0 -19
  275. package/dist/types/excalidraw/components/welcome-screen/WelcomeScreen.d.ts +0 -84
  276. package/dist/types/excalidraw/cursor.d.ts +0 -5
  277. package/dist/types/excalidraw/data/reconcile.d.ts +0 -7
  278. package/dist/types/excalidraw/index.d.ts +0 -47
  279. package/dist/types/excalidraw/polyfill.d.ts +0 -2
  280. package/dist/types/excalidraw/scene/scroll.d.ts +0 -18
  281. package/dist/types/excalidraw/scene/zoom.d.ts +0 -12
  282. package/dist/types/utils/src/bbox.d.ts +0 -9
  283. package/dist/types/utils/src/export.d.ts +0 -35
  284. 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,7 +135,7 @@ 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;
@@ -126,20 +153,12 @@ export declare const actionSelectAllElementsInFrame: {
126
153
  height: number;
127
154
  offsetTop: number;
128
155
  offsetLeft: number;
129
- fileHandle: import("browser-fs-access").FileSystemHandle | null;
156
+ fileHandle: FileSystemFileHandle | null;
130
157
  collaborators: Map<import("../types").SocketId, import("../types").Collaborator>;
131
158
  stats: {
132
159
  open: boolean;
133
160
  panels: number;
134
161
  };
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
162
  showHyperlinkPopup: false | "info" | "editor";
144
163
  selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
145
164
  snapLines: readonly import("../snapping").SnapLine[];
@@ -148,8 +167,6 @@ export declare const actionSelectAllElementsInFrame: {
148
167
  y: number;
149
168
  } | null;
150
169
  objectsSnapModeEnabled: boolean;
151
- userToFollow: import("../types").UserToFollow | null;
152
- followedBy: Set<import("../types").SocketId>;
153
170
  isCropping: boolean;
154
171
  croppingElementId: ExcalidrawElement["id"] | null;
155
172
  searchMatches: Readonly<{
@@ -161,6 +178,14 @@ export declare const actionSelectAllElementsInFrame: {
161
178
  [groupId: string]: true;
162
179
  };
163
180
  bindMode: import("@excalidraw/element/types").BindMode;
181
+ colorTopPicks: {
182
+ elementStroke: readonly string[] | null;
183
+ elementBackground: readonly string[] | null;
184
+ bucketFill: readonly string[] | null;
185
+ stickyNoteStroke: readonly string[] | null;
186
+ stickyNoteBackground: readonly string[] | null;
187
+ };
188
+ fontTopPicks: readonly import("@excalidraw/element/types").FontFamilyValues[] | null;
164
189
  };
165
190
  captureUpdate: "IMMEDIATELY";
166
191
  } | {
@@ -193,26 +218,44 @@ export declare const actionRemoveAllElementsFromFrame: {
193
218
  isLoading: boolean;
194
219
  errorMessage: React.ReactNode;
195
220
  activeEmbeddable: {
196
- element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
221
+ element: NonDeletedExcalidrawElement;
197
222
  state: "hover" | "active";
198
223
  } | null;
199
224
  newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
200
- resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
225
+ resizingElement: NonDeletedExcalidrawElement | null;
201
226
  multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
202
- selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
227
+ selectionElement: NonDeletedExcalidrawElement | null;
203
228
  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;
229
+ boxSelectionMode: import("../types").BoxSelectionMode;
230
+ bindingPreference: "enabled" | "disabled";
231
+ isMidpointSnappingEnabled: boolean;
232
+ showHints: boolean;
233
+ inputDevice: import("../types").InputDevice;
234
+ suggestedBinding: {
235
+ element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
236
+ midPoint?: import("@excalidraw/math").GlobalPoint;
237
+ } | null;
238
+ textToolHover: {
239
+ type: "text";
240
+ elementId: ExcalidrawElement["id"];
241
+ } | {
242
+ type: "container";
243
+ elementId: ExcalidrawElement["id"];
244
+ } | {
245
+ type: "arrow";
246
+ elementId: import("@excalidraw/element/types").ExcalidrawArrowElement["id"];
247
+ anchor: "start" | "end" | "label";
248
+ } | null;
249
+ frameToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawFrameLikeElement> | null;
207
250
  frameRendering: {
208
251
  enabled: boolean;
209
252
  name: boolean;
210
253
  outline: boolean;
211
254
  clip: boolean;
212
255
  };
213
- editingFrame: string | null;
214
- elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
215
- editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
256
+ editingFrame: ExcalidrawFrameLikeElement["id"] | null;
257
+ elementsToHighlight: readonly NonDeletedExcalidrawElement[] | null;
258
+ editingTextElement: import("@excalidraw/element/types").ExcalidrawTextElement | null;
216
259
  activeTool: {
217
260
  lastActiveTool: import("../types").ActiveTool | null;
218
261
  locked: boolean;
@@ -229,11 +272,14 @@ export declare const actionRemoveAllElementsFromFrame: {
229
272
  exportWithDarkMode: boolean;
230
273
  exportScale: number;
231
274
  currentItemStrokeColor: string;
275
+ currentItemStickynoteStrokeColor: string;
276
+ currentItemStickynoteBackgroundColor: string;
232
277
  currentItemBackgroundColor: string;
233
278
  currentItemFillStyle: ExcalidrawElement["fillStyle"];
234
- currentItemStrokeWidth: number;
279
+ currentItemStrokeWidthKey: import("@excalidraw/common").StrokeWidthKey;
235
280
  currentItemStrokeStyle: ExcalidrawElement["strokeStyle"];
236
281
  currentItemRoughness: number;
282
+ currentItemStrokeVariability: import("@excalidraw/element/types").StrokeVariability;
237
283
  currentItemOpacity: number;
238
284
  currentItemFontFamily: import("@excalidraw/element/types").FontFamilyValues;
239
285
  currentItemFontSize: number;
@@ -246,6 +292,7 @@ export declare const actionRemoveAllElementsFromFrame: {
246
292
  viewBackgroundColor: string;
247
293
  scrollX: number;
248
294
  scrollY: number;
295
+ scrollConstraints: import("../types").ScrollConstraints | null;
249
296
  cursorButton: "up" | "down";
250
297
  scrolledOutside: boolean;
251
298
  name: string | null;
@@ -270,6 +317,10 @@ export declare const actionRemoveAllElementsFromFrame: {
270
317
  } | {
271
318
  name: "elementLinkSelector";
272
319
  sourceElementId: ExcalidrawElement["id"];
320
+ } | {
321
+ name: "charts";
322
+ data: import("../charts").Spreadsheet;
323
+ rawText: string;
273
324
  };
274
325
  defaultSidebarDockedPreference: boolean;
275
326
  lastPointerDownWith: import("@excalidraw/element/types").PointerType;
@@ -282,7 +333,7 @@ export declare const actionRemoveAllElementsFromFrame: {
282
333
  selectedElementsAreBeingDragged: boolean;
283
334
  shouldCacheIgnoreZoom: boolean;
284
335
  toast: {
285
- message: string;
336
+ message: React.ReactNode;
286
337
  closable?: boolean;
287
338
  duration?: number;
288
339
  } | null;
@@ -300,20 +351,12 @@ export declare const actionRemoveAllElementsFromFrame: {
300
351
  height: number;
301
352
  offsetTop: number;
302
353
  offsetLeft: number;
303
- fileHandle: import("browser-fs-access").FileSystemHandle | null;
354
+ fileHandle: FileSystemFileHandle | null;
304
355
  collaborators: Map<import("../types").SocketId, import("../types").Collaborator>;
305
356
  stats: {
306
357
  open: boolean;
307
358
  panels: number;
308
359
  };
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
360
  showHyperlinkPopup: false | "info" | "editor";
318
361
  selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
319
362
  snapLines: readonly import("../snapping").SnapLine[];
@@ -322,8 +365,6 @@ export declare const actionRemoveAllElementsFromFrame: {
322
365
  y: number;
323
366
  } | null;
324
367
  objectsSnapModeEnabled: boolean;
325
- userToFollow: import("../types").UserToFollow | null;
326
- followedBy: Set<import("../types").SocketId>;
327
368
  isCropping: boolean;
328
369
  croppingElementId: ExcalidrawElement["id"] | null;
329
370
  searchMatches: Readonly<{
@@ -335,6 +376,14 @@ export declare const actionRemoveAllElementsFromFrame: {
335
376
  [groupId: string]: true;
336
377
  };
337
378
  bindMode: import("@excalidraw/element/types").BindMode;
379
+ colorTopPicks: {
380
+ elementStroke: readonly string[] | null;
381
+ elementBackground: readonly string[] | null;
382
+ bucketFill: readonly string[] | null;
383
+ stickyNoteStroke: readonly string[] | null;
384
+ stickyNoteBackground: readonly string[] | null;
385
+ };
386
+ fontTopPicks: readonly import("@excalidraw/element/types").FontFamilyValues[] | null;
338
387
  };
339
388
  captureUpdate: "IMMEDIATELY";
340
389
  } | {
@@ -371,197 +420,43 @@ export declare const actionupdateFrameRendering: {
371
420
  isLoading: boolean;
372
421
  errorMessage: React.ReactNode;
373
422
  activeEmbeddable: {
374
- element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
423
+ element: NonDeletedExcalidrawElement;
375
424
  state: "hover" | "active";
376
425
  } | null;
377
426
  newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
378
- resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
427
+ resizingElement: NonDeletedExcalidrawElement | null;
379
428
  multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
380
- selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
429
+ selectionElement: NonDeletedExcalidrawElement | null;
381
430
  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;
431
+ boxSelectionMode: import("../types").BoxSelectionMode;
432
+ bindingPreference: "enabled" | "disabled";
433
+ isMidpointSnappingEnabled: boolean;
434
+ showHints: boolean;
435
+ inputDevice: import("../types").InputDevice;
436
+ suggestedBinding: {
437
+ element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
438
+ midPoint?: import("@excalidraw/math").GlobalPoint;
432
439
  } | null;
433
- openDialog: null | {
434
- name: "imageExport" | "help" | "jsonExport";
435
- } | {
436
- name: "ttd";
437
- tab: "text-to-diagram" | "mermaid";
438
- } | {
439
- name: "commandPalette";
440
+ textToolHover: {
441
+ type: "text";
442
+ elementId: ExcalidrawElement["id"];
440
443
  } | {
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;
444
+ type: "container";
445
+ elementId: ExcalidrawElement["id"];
488
446
  } | {
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;
447
+ type: "arrow";
448
+ elementId: import("@excalidraw/element/types").ExcalidrawArrowElement["id"];
449
+ anchor: "start" | "end" | "label";
498
450
  } | 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: {
451
+ frameToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawFrameLikeElement> | null;
452
+ editingFrame: ExcalidrawFrameLikeElement["id"] | null;
453
+ elementsToHighlight: readonly NonDeletedExcalidrawElement[] | null;
454
+ editingTextElement: import("@excalidraw/element/types").ExcalidrawTextElement | null;
531
455
  activeTool: {
532
456
  lastActiveTool: import("../types").ActiveTool | null;
533
457
  locked: boolean;
534
458
  fromSelection: boolean;
535
459
  } & 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
460
  preferredSelectionTool: {
566
461
  type: "selection" | "lasso";
567
462
  initialized: boolean;
@@ -573,11 +468,14 @@ export declare const actionSetFrameAsActiveTool: {
573
468
  exportWithDarkMode: boolean;
574
469
  exportScale: number;
575
470
  currentItemStrokeColor: string;
471
+ currentItemStickynoteStrokeColor: string;
472
+ currentItemStickynoteBackgroundColor: string;
576
473
  currentItemBackgroundColor: string;
577
474
  currentItemFillStyle: ExcalidrawElement["fillStyle"];
578
- currentItemStrokeWidth: number;
475
+ currentItemStrokeWidthKey: import("@excalidraw/common").StrokeWidthKey;
579
476
  currentItemStrokeStyle: ExcalidrawElement["strokeStyle"];
580
477
  currentItemRoughness: number;
478
+ currentItemStrokeVariability: import("@excalidraw/element/types").StrokeVariability;
581
479
  currentItemOpacity: number;
582
480
  currentItemFontFamily: import("@excalidraw/element/types").FontFamilyValues;
583
481
  currentItemFontSize: number;
@@ -590,6 +488,7 @@ export declare const actionSetFrameAsActiveTool: {
590
488
  viewBackgroundColor: string;
591
489
  scrollX: number;
592
490
  scrollY: number;
491
+ scrollConstraints: import("../types").ScrollConstraints | null;
593
492
  cursorButton: "up" | "down";
594
493
  scrolledOutside: boolean;
595
494
  name: string | null;
@@ -614,6 +513,10 @@ export declare const actionSetFrameAsActiveTool: {
614
513
  } | {
615
514
  name: "elementLinkSelector";
616
515
  sourceElementId: ExcalidrawElement["id"];
516
+ } | {
517
+ name: "charts";
518
+ data: import("../charts").Spreadsheet;
519
+ rawText: string;
617
520
  };
618
521
  defaultSidebarDockedPreference: boolean;
619
522
  lastPointerDownWith: import("@excalidraw/element/types").PointerType;
@@ -629,7 +532,7 @@ export declare const actionSetFrameAsActiveTool: {
629
532
  selectedElementsAreBeingDragged: boolean;
630
533
  shouldCacheIgnoreZoom: boolean;
631
534
  toast: {
632
- message: string;
535
+ message: React.ReactNode;
633
536
  closable?: boolean;
634
537
  duration?: number;
635
538
  } | null;
@@ -647,20 +550,12 @@ export declare const actionSetFrameAsActiveTool: {
647
550
  height: number;
648
551
  offsetTop: number;
649
552
  offsetLeft: number;
650
- fileHandle: import("browser-fs-access").FileSystemHandle | null;
553
+ fileHandle: FileSystemFileHandle | null;
651
554
  collaborators: Map<import("../types").SocketId, import("../types").Collaborator>;
652
555
  stats: {
653
556
  open: boolean;
654
557
  panels: number;
655
558
  };
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
559
  showHyperlinkPopup: false | "info" | "editor";
665
560
  selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
666
561
  snapLines: readonly import("../snapping").SnapLine[];
@@ -669,8 +564,6 @@ export declare const actionSetFrameAsActiveTool: {
669
564
  y: number;
670
565
  } | null;
671
566
  objectsSnapModeEnabled: boolean;
672
- userToFollow: import("../types").UserToFollow | null;
673
- followedBy: Set<import("../types").SocketId>;
674
567
  isCropping: boolean;
675
568
  croppingElementId: ExcalidrawElement["id"] | null;
676
569
  searchMatches: Readonly<{
@@ -682,465 +575,39 @@ export declare const actionSetFrameAsActiveTool: {
682
575
  [groupId: string]: true;
683
576
  };
684
577
  bindMode: import("@excalidraw/element/types").BindMode;
578
+ colorTopPicks: {
579
+ elementStroke: readonly string[] | null;
580
+ elementBackground: readonly string[] | null;
581
+ bucketFill: readonly string[] | null;
582
+ stickyNoteStroke: readonly string[] | null;
583
+ stickyNoteBackground: readonly string[] | null;
584
+ };
585
+ fontTopPicks: readonly import("@excalidraw/element/types").FontFamilyValues[] | null;
685
586
  };
686
587
  captureUpdate: "EVENTUALLY";
687
588
  };
688
- keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
589
+ checked: (appState: Readonly<UIAppState>) => boolean;
689
590
  } & {
690
- keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
591
+ keyTest?: undefined;
691
592
  };
593
+ /**
594
+ * The frame that wrapping the selection removes instead: the one frame the
595
+ * selection holds (along with any of its children), or, with no frame
596
+ * selected, the frame whose children are all selected.
597
+ */
598
+ export declare const getFrameToUnwrap: (selectedElements: readonly ExcalidrawElement[], elementsMap: ElementsMap) => ExcalidrawFrameLikeElement | null;
599
+ /** removes the frame, keeping its children selected in its place */
600
+ export declare const unwrapFrame: (elements: readonly ExcalidrawElement[], appState: AppState, frame: ExcalidrawFrameLikeElement, app: AppClassProperties) => ActionResult;
601
+ /** wraps the selection in a new frame — edge to edge when it's an image */
602
+ export declare const wrapInFrame: (elements: readonly ExcalidrawElement[], appState: AppState, selectedElements: NonDeletedExcalidrawElement[], app: AppClassProperties) => ActionResult;
692
603
  export declare const actionWrapSelectionInFrame: {
693
604
  name: "wrapSelectionInFrame";
694
- label: string;
605
+ label: (elements: readonly ExcalidrawElement[], appState: Readonly<UIAppState>, app: AppClassProperties) => "labels.removeFrame" | "labels.wrapSelectionInFrame";
695
606
  trackEvent: {
696
607
  category: "element";
697
608
  };
698
609
  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
- };
610
+ perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: unknown, app: AppClassProperties) => ActionResult;
1144
611
  } & {
1145
612
  keyTest?: undefined;
1146
613
  };