@excalidraw/excalidraw 0.18.0-d92384b77-2 → 0.18.0-dda3affcb

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 (427) hide show
  1. package/CHANGELOG.md +40 -14
  2. package/README.md +1 -1
  3. package/dist/dev/chunk-CP5DND7P.js +7 -0
  4. package/dist/dev/chunk-CP5DND7P.js.map +7 -0
  5. package/dist/dev/chunk-CRKRRBMD.js +5677 -0
  6. package/dist/dev/chunk-CRKRRBMD.js.map +7 -0
  7. package/dist/dev/chunk-FB2NA5UG.js +4132 -0
  8. package/dist/dev/chunk-FB2NA5UG.js.map +7 -0
  9. package/dist/dev/{chunk-LMHBUWQS.js → chunk-QF5FRM6O.js} +16 -5
  10. package/dist/dev/chunk-QF5FRM6O.js.map +7 -0
  11. package/dist/dev/data/{image-6FU7Z7FE.js → image-IWGLHPIX.js} +3 -3
  12. package/dist/dev/index.css +3020 -2947
  13. package/dist/dev/index.css.map +3 -3
  14. package/dist/dev/index.js +30758 -24190
  15. package/dist/dev/index.js.map +4 -4
  16. package/dist/dev/locales/{en-OZCJJ2HN.js → en-SMAPCEOQ.js} +2 -2
  17. package/dist/dev/subset-shared.chunk.js +2 -2
  18. package/dist/dev/subset-worker.chunk.js +2 -2
  19. package/dist/prod/chunk-A66AFZZU.js +7 -0
  20. package/dist/prod/chunk-HHV2PJKY.js +4 -0
  21. package/dist/prod/chunk-I4UNSFV6.js +12 -0
  22. package/dist/prod/chunk-LS7FJGPW.js +86 -0
  23. package/dist/prod/data/image-4SM4COIL.js +1 -0
  24. package/dist/prod/index.css +1 -1
  25. package/dist/prod/index.js +27 -16
  26. package/dist/prod/locales/{en-B4ZKOASM.js → en-TYY6KWIJ.js} +1 -1
  27. package/dist/prod/subset-shared.chunk.js +1 -1
  28. package/dist/prod/subset-worker.chunk.js +1 -1
  29. package/dist/types/{excalidraw/binaryheap.d.ts → common/src/binary-heap.d.ts} +12 -12
  30. package/dist/types/{excalidraw → common/src}/colors.d.ts +62 -61
  31. package/dist/types/{excalidraw → common/src}/constants.d.ts +344 -323
  32. package/dist/types/{excalidraw → common/src}/emitter.d.ts +16 -16
  33. package/dist/types/{excalidraw/fonts/FontMetadata.d.ts → common/src/font-metadata.d.ts} +48 -38
  34. package/dist/types/common/src/index.d.ts +12 -0
  35. package/dist/types/{excalidraw → common/src}/keys.d.ts +189 -189
  36. package/dist/types/{excalidraw → common/src}/points.d.ts +9 -7
  37. package/dist/types/common/src/promise-pool.d.ts +6 -0
  38. package/dist/types/{excalidraw → common/src}/queue.d.ts +9 -9
  39. package/dist/types/{excalidraw → common/src}/random.d.ts +3 -3
  40. package/dist/types/{excalidraw/data → common/src}/url.d.ts +7 -7
  41. package/dist/types/{excalidraw → common/src}/utility-types.d.ts +38 -33
  42. package/dist/types/{excalidraw → common/src}/utils.d.ts +267 -256
  43. package/dist/types/{excalidraw/scene → element/src}/Scene.d.ts +76 -79
  44. package/dist/types/element/src/align.d.ts +8 -0
  45. package/dist/types/{excalidraw/element → element/src}/binding.d.ts +110 -99
  46. package/dist/types/{excalidraw/element → element/src}/bounds.d.ts +89 -77
  47. package/dist/types/element/src/collision.d.ts +32 -0
  48. package/dist/types/{excalidraw/scene → element/src}/comparisons.d.ts +8 -8
  49. package/dist/types/{excalidraw/element → element/src}/containerCache.d.ts +11 -11
  50. package/dist/types/{excalidraw/element → element/src}/cropElement.d.ts +19 -19
  51. package/dist/types/{excalidraw/change.d.ts → element/src/delta.d.ts} +226 -191
  52. package/dist/types/element/src/distance.d.ts +3 -0
  53. package/dist/types/{excalidraw → element/src}/distribute.d.ts +7 -6
  54. package/dist/types/{excalidraw/element → element/src}/dragElements.d.ts +33 -32
  55. package/dist/types/element/src/duplicate.d.ts +63 -0
  56. package/dist/types/{excalidraw/element → element/src}/elbowArrow.d.ts +17 -16
  57. package/dist/types/{excalidraw/element → element/src}/elementLink.d.ts +13 -13
  58. package/dist/types/element/src/embeddable.d.ts +10 -0
  59. package/dist/types/{excalidraw/element → element/src}/flowchart.d.ts +26 -25
  60. package/dist/types/{excalidraw → element/src}/fractionalIndex.d.ts +57 -48
  61. package/dist/types/{excalidraw → element/src}/frame.d.ts +70 -69
  62. package/dist/types/{excalidraw → element/src}/groups.d.ts +34 -33
  63. package/dist/types/{excalidraw/element → element/src}/heading.d.ts +15 -16
  64. package/dist/types/{excalidraw/element → element/src}/image.d.ts +32 -32
  65. package/dist/types/element/src/index.d.ts +57 -0
  66. package/dist/types/{excalidraw/element → element/src}/linearElementEditor.d.ts +117 -130
  67. package/dist/types/element/src/mutateElement.d.ts +21 -0
  68. package/dist/types/{excalidraw/element → element/src}/newElement.d.ts +62 -101
  69. package/dist/types/{excalidraw/renderer → element/src}/renderElement.d.ts +28 -28
  70. package/dist/types/{excalidraw/element → element/src}/resizeElements.d.ts +32 -31
  71. package/dist/types/{excalidraw/element → element/src}/resizeTest.d.ts +15 -15
  72. package/dist/types/{excalidraw/scene → element/src}/selection.d.ts +38 -32
  73. package/dist/types/element/src/shape.d.ts +42 -0
  74. package/dist/types/{excalidraw/element → element/src}/showSelectedShapeActions.d.ts +3 -3
  75. package/dist/types/{excalidraw/element → element/src}/sizeHelpers.d.ts +35 -35
  76. package/dist/types/{excalidraw/element → element/src}/sortElements.d.ts +2 -2
  77. package/dist/types/element/src/store.d.ts +232 -0
  78. package/dist/types/{excalidraw/element → element/src}/textElement.d.ts +40 -39
  79. package/dist/types/{excalidraw/element → element/src}/textMeasurements.d.ts +41 -41
  80. package/dist/types/{excalidraw/element → element/src}/textWrapping.d.ts +13 -13
  81. package/dist/types/{excalidraw/element → element/src}/transformHandles.d.ts +55 -55
  82. package/dist/types/{excalidraw/element → element/src}/typeChecks.d.ts +57 -39
  83. package/dist/types/{excalidraw/element → element/src}/types.d.ts +295 -282
  84. package/dist/types/element/src/utils.d.ts +31 -0
  85. package/dist/types/{excalidraw → element/src}/zindex.d.ts +7 -6
  86. package/dist/types/excalidraw/actions/actionAddToLibrary.d.ts +525 -534
  87. package/dist/types/excalidraw/actions/actionAlign.d.ts +110 -110
  88. package/dist/types/excalidraw/actions/actionBoundText.d.ts +387 -393
  89. package/dist/types/excalidraw/actions/actionCanvas.d.ts +2403 -2266
  90. package/dist/types/excalidraw/actions/actionClipboard.d.ts +1167 -1183
  91. package/dist/types/excalidraw/actions/actionCropEditor.d.ts +188 -191
  92. package/dist/types/excalidraw/actions/actionDeleteSelected.d.ts +565 -573
  93. package/dist/types/excalidraw/actions/actionDistribute.d.ts +35 -35
  94. package/dist/types/excalidraw/actions/actionDuplicateSelection.d.ts +18 -22
  95. package/dist/types/excalidraw/actions/actionElementLink.d.ts +210 -213
  96. package/dist/types/excalidraw/actions/actionElementLock.d.ts +373 -381
  97. package/dist/types/excalidraw/{element/embeddable.d.ts → actions/actionEmbeddable.d.ts} +185 -198
  98. package/dist/types/excalidraw/actions/actionExport.d.ts +1639 -1666
  99. package/dist/types/excalidraw/actions/actionFinalize.d.ts +397 -362
  100. package/dist/types/excalidraw/actions/actionFlip.d.ts +35 -35
  101. package/dist/types/excalidraw/actions/actionFrame.d.ts +1241 -1253
  102. package/dist/types/excalidraw/actions/actionGroup.d.ts +385 -391
  103. package/dist/types/excalidraw/actions/actionHistory.d.ts +6 -7
  104. package/dist/types/excalidraw/actions/actionLinearEditor.d.ts +713 -192
  105. package/dist/types/excalidraw/actions/actionLink.d.ts +189 -192
  106. package/dist/types/excalidraw/actions/actionMenu.d.ts +545 -554
  107. package/dist/types/excalidraw/actions/actionNavigate.d.ts +361 -367
  108. package/dist/types/excalidraw/actions/actionProperties.d.ts +2759 -2796
  109. package/dist/types/excalidraw/actions/actionSelectAll.d.ts +188 -191
  110. package/dist/types/excalidraw/actions/actionStyles.d.ts +202 -205
  111. package/dist/types/excalidraw/actions/actionTextAutoResize.d.ts +17 -17
  112. package/dist/types/excalidraw/actions/actionToggleGridMode.d.ts +191 -194
  113. package/dist/types/excalidraw/actions/actionToggleObjectsSnapMode.d.ts +189 -192
  114. package/dist/types/excalidraw/actions/actionToggleSearchMenu.d.ts +182 -357
  115. package/dist/types/excalidraw/actions/actionToggleShapeSwitch.d.ts +19 -0
  116. package/dist/types/excalidraw/actions/actionToggleStats.d.ts +188 -192
  117. package/dist/types/excalidraw/actions/actionToggleViewMode.d.ts +189 -193
  118. package/dist/types/excalidraw/actions/actionToggleZenMode.d.ts +189 -193
  119. package/dist/types/excalidraw/actions/actionZindex.d.ts +75 -75
  120. package/dist/types/excalidraw/actions/index.d.ts +28 -27
  121. package/dist/types/excalidraw/actions/manager.d.ts +21 -21
  122. package/dist/types/excalidraw/actions/register.d.ts +5 -5
  123. package/dist/types/excalidraw/actions/shortcuts.d.ts +4 -4
  124. package/dist/types/excalidraw/actions/types.d.ts +47 -46
  125. package/dist/types/excalidraw/analytics.d.ts +1 -1
  126. package/dist/types/excalidraw/animated-trail.d.ts +39 -33
  127. package/dist/types/excalidraw/animation-frame-handler.d.ts +16 -16
  128. package/dist/types/excalidraw/appState.d.ts +96 -86
  129. package/dist/types/excalidraw/charts.d.ts +27 -27
  130. package/dist/types/excalidraw/clients.d.ts +14 -14
  131. package/dist/types/excalidraw/clipboard.d.ts +66 -66
  132. package/dist/types/excalidraw/components/Actions.d.ts +30 -34
  133. package/dist/types/excalidraw/components/ActiveConfirmDialog.d.ts +4 -4
  134. package/dist/types/excalidraw/components/App.d.ts +560 -544
  135. package/dist/types/excalidraw/components/Avatar.d.ts +11 -11
  136. package/dist/types/excalidraw/components/BraveMeasureTextError.d.ts +2 -2
  137. package/dist/types/excalidraw/components/Button.d.ts +17 -17
  138. package/dist/types/excalidraw/components/ButtonIcon.d.ts +16 -15
  139. package/dist/types/excalidraw/components/ButtonIconCycle.d.ts +11 -11
  140. package/dist/types/excalidraw/components/ButtonSeparator.d.ts +1 -1
  141. package/dist/types/excalidraw/components/Card.d.ts +7 -7
  142. package/dist/types/excalidraw/components/CheckboxItem.d.ts +8 -8
  143. package/dist/types/excalidraw/components/ColorPicker/ColorInput.d.ts +10 -9
  144. package/dist/types/excalidraw/components/ColorPicker/ColorPicker.d.ts +23 -19
  145. package/dist/types/excalidraw/components/ColorPicker/CustomColorList.d.ts +8 -8
  146. package/dist/types/excalidraw/components/ColorPicker/HotkeyLabel.d.ts +7 -8
  147. package/dist/types/excalidraw/components/ColorPicker/Picker.d.ts +17 -18
  148. package/dist/types/excalidraw/components/ColorPicker/PickerColorList.d.ts +9 -10
  149. package/dist/types/excalidraw/components/ColorPicker/PickerHeading.d.ts +5 -5
  150. package/dist/types/excalidraw/components/ColorPicker/ShadeList.d.ts +8 -8
  151. package/dist/types/excalidraw/components/ColorPicker/TopPicks.d.ts +9 -9
  152. package/dist/types/excalidraw/components/ColorPicker/colorPickerUtils.d.ts +21 -21
  153. package/dist/types/excalidraw/components/ColorPicker/keyboardNavHandlers.d.ts +21 -21
  154. package/dist/types/excalidraw/components/CommandPalette/CommandPalette.d.ts +18 -18
  155. package/dist/types/excalidraw/components/CommandPalette/defaultCommandPaletteItems.d.ts +2 -2
  156. package/dist/types/excalidraw/components/CommandPalette/types.d.ts +26 -26
  157. package/dist/types/excalidraw/components/ConfirmDialog.d.ts +10 -10
  158. package/dist/types/excalidraw/components/ContextMenu.d.ts +16 -16
  159. package/dist/types/excalidraw/components/ConvertElementTypePopup.d.ts +23 -0
  160. package/dist/types/excalidraw/components/DarkModeToggle.d.ts +7 -7
  161. package/dist/types/excalidraw/components/DefaultSidebar.d.ts +31 -31
  162. package/dist/types/excalidraw/components/DiagramToCodePlugin/DiagramToCodePlugin.d.ts +4 -4
  163. package/dist/types/excalidraw/components/Dialog.d.ts +13 -13
  164. package/dist/types/excalidraw/components/DialogActionButton.d.ts +10 -10
  165. package/dist/types/excalidraw/{element → components}/ElementCanvasButtons.d.ts +7 -7
  166. package/dist/types/excalidraw/components/ElementLinkDialog.d.ts +12 -11
  167. package/dist/types/excalidraw/components/Ellipsify.d.ts +4 -0
  168. package/dist/types/excalidraw/components/ErrorDialog.d.ts +5 -5
  169. package/dist/types/excalidraw/components/ExcalidrawLogo.d.ts +16 -16
  170. package/dist/types/excalidraw/components/EyeDropper.d.ts +28 -28
  171. package/dist/types/excalidraw/components/FilledButton.d.ts +18 -18
  172. package/dist/types/excalidraw/components/FixedSideContainer.d.ts +9 -9
  173. package/dist/types/excalidraw/components/FollowMode/FollowMode.d.ts +10 -10
  174. package/dist/types/excalidraw/components/FontPicker/FontPicker.d.ts +21 -21
  175. package/dist/types/excalidraw/components/FontPicker/FontPickerList.d.ts +26 -26
  176. package/dist/types/excalidraw/components/FontPicker/FontPickerTrigger.d.ts +6 -6
  177. package/dist/types/excalidraw/components/FontPicker/keyboardNavHandlers.d.ts +14 -14
  178. package/dist/types/excalidraw/components/HandButton.d.ts +10 -10
  179. package/dist/types/excalidraw/components/HelpButton.d.ts +7 -7
  180. package/dist/types/excalidraw/components/HelpDialog.d.ts +4 -4
  181. package/dist/types/excalidraw/components/HintViewer.d.ts +10 -10
  182. package/dist/types/excalidraw/components/IconPicker.d.ts +15 -15
  183. package/dist/types/excalidraw/components/ImageExportDialog.d.ts +14 -14
  184. package/dist/types/excalidraw/components/InitializeApp.d.ts +10 -10
  185. package/dist/types/excalidraw/components/InlineIcon.d.ts +3 -3
  186. package/dist/types/excalidraw/components/Island.d.ts +10 -10
  187. package/dist/types/excalidraw/components/JSONExportDialog.d.ts +15 -15
  188. package/dist/types/excalidraw/components/LaserPointerButton.d.ts +10 -10
  189. package/dist/types/excalidraw/components/LayerUI.d.ts +31 -31
  190. package/dist/types/excalidraw/components/LibraryMenu.d.ts +10 -10
  191. package/dist/types/excalidraw/components/LibraryMenuBrowseButton.d.ts +7 -7
  192. package/dist/types/excalidraw/components/LibraryMenuControlButtons.d.ts +9 -9
  193. package/dist/types/excalidraw/components/LibraryMenuHeaderContent.d.ts +18 -18
  194. package/dist/types/excalidraw/components/LibraryMenuItems.d.ts +14 -14
  195. package/dist/types/excalidraw/components/LibraryMenuSection.d.ts +23 -23
  196. package/dist/types/excalidraw/components/LibraryUnit.d.ts +15 -15
  197. package/dist/types/excalidraw/components/LoadingMessage.d.ts +6 -6
  198. package/dist/types/excalidraw/components/LockButton.d.ts +10 -10
  199. package/dist/types/excalidraw/components/MagicButton.d.ts +10 -10
  200. package/dist/types/excalidraw/components/MobileMenu.d.ts +25 -25
  201. package/dist/types/excalidraw/components/Modal.d.ts +12 -12
  202. package/dist/types/excalidraw/components/OverwriteConfirm/OverwriteConfirm.d.ts +17 -17
  203. package/dist/types/excalidraw/components/OverwriteConfirm/OverwriteConfirmActions.d.ts +17 -17
  204. package/dist/types/excalidraw/components/OverwriteConfirm/OverwriteConfirmState.d.ts +22 -22
  205. package/dist/types/excalidraw/components/Paragraph.d.ts +4 -4
  206. package/dist/types/excalidraw/components/PasteChartDialog.d.ts +8 -8
  207. package/dist/types/excalidraw/components/PenModeButton.d.ts +12 -12
  208. package/dist/types/excalidraw/components/Popover.d.ts +15 -15
  209. package/dist/types/excalidraw/components/ProjectName.d.ts +10 -10
  210. package/dist/types/excalidraw/components/PropertiesPopover.d.ts +15 -15
  211. package/dist/types/excalidraw/components/PublishLibrary.d.ts +16 -16
  212. package/dist/types/excalidraw/components/QuickSearch.d.ts +9 -9
  213. package/dist/types/excalidraw/components/RadioGroup.d.ts +14 -14
  214. package/dist/types/excalidraw/components/{ButtonIconSelect.d.ts → RadioSelection.d.ts} +20 -20
  215. package/dist/types/excalidraw/components/Range.d.ts +8 -8
  216. package/dist/types/excalidraw/components/SVGLayer.d.ts +7 -7
  217. package/dist/types/excalidraw/components/ScrollableList.d.ts +9 -9
  218. package/dist/types/excalidraw/components/SearchMenu.d.ts +5 -5
  219. package/dist/types/excalidraw/components/Section.d.ts +6 -6
  220. package/dist/types/excalidraw/components/ShareableLinkDialog.d.ts +7 -7
  221. package/dist/types/excalidraw/components/Sidebar/Sidebar.d.ts +76 -76
  222. package/dist/types/excalidraw/components/Sidebar/SidebarHeader.d.ts +7 -7
  223. package/dist/types/excalidraw/components/Sidebar/SidebarTab.d.ts +9 -9
  224. package/dist/types/excalidraw/components/Sidebar/SidebarTabTrigger.d.ts +10 -10
  225. package/dist/types/excalidraw/components/Sidebar/SidebarTabTriggers.d.ts +7 -7
  226. package/dist/types/excalidraw/components/Sidebar/SidebarTabs.d.ts +7 -7
  227. package/dist/types/excalidraw/components/Sidebar/SidebarTrigger.d.ts +6 -6
  228. package/dist/types/excalidraw/components/Sidebar/common.d.ts +34 -34
  229. package/dist/types/excalidraw/components/Spinner.d.ts +8 -8
  230. package/dist/types/excalidraw/components/Stack.d.ts +15 -15
  231. package/dist/types/excalidraw/components/Stats/Angle.d.ts +11 -11
  232. package/dist/types/excalidraw/components/Stats/CanvasGrid.d.ts +11 -11
  233. package/dist/types/excalidraw/components/Stats/Collapsible.d.ts +11 -10
  234. package/dist/types/excalidraw/components/Stats/Dimension.d.ts +11 -11
  235. package/dist/types/excalidraw/components/Stats/DragInput.d.ts +45 -35
  236. package/dist/types/excalidraw/components/Stats/FontSize.d.ts +11 -11
  237. package/dist/types/excalidraw/components/Stats/MultiAngle.d.ts +11 -11
  238. package/dist/types/excalidraw/components/Stats/MultiDimension.d.ts +14 -14
  239. package/dist/types/excalidraw/components/Stats/MultiFontSize.d.ts +12 -12
  240. package/dist/types/excalidraw/components/Stats/MultiPosition.d.ts +14 -14
  241. package/dist/types/excalidraw/components/Stats/Position.d.ts +12 -12
  242. package/dist/types/excalidraw/components/Stats/index.d.ts +36 -36
  243. package/dist/types/excalidraw/components/Stats/utils.d.ts +19 -26
  244. package/dist/types/excalidraw/components/Switch.d.ts +9 -9
  245. package/dist/types/excalidraw/components/TTDDialog/MermaidToExcalidraw.d.ts +6 -6
  246. package/dist/types/excalidraw/components/TTDDialog/TTDDialog.d.ts +30 -30
  247. package/dist/types/excalidraw/components/TTDDialog/TTDDialogInput.d.ts +9 -9
  248. package/dist/types/excalidraw/components/TTDDialog/TTDDialogOutput.d.ts +8 -8
  249. package/dist/types/excalidraw/components/TTDDialog/TTDDialogPanel.d.ts +17 -17
  250. package/dist/types/excalidraw/components/TTDDialog/TTDDialogPanels.d.ts +4 -4
  251. package/dist/types/excalidraw/components/TTDDialog/TTDDialogSubmitShortcut.d.ts +1 -1
  252. package/dist/types/excalidraw/components/TTDDialog/TTDDialogTab.d.ts +8 -8
  253. package/dist/types/excalidraw/components/TTDDialog/TTDDialogTabTrigger.d.ts +9 -9
  254. package/dist/types/excalidraw/components/TTDDialog/TTDDialogTabTriggers.d.ts +7 -7
  255. package/dist/types/excalidraw/components/TTDDialog/TTDDialogTabs.d.ts +11 -11
  256. package/dist/types/excalidraw/components/TTDDialog/TTDDialogTrigger.d.ts +9 -9
  257. package/dist/types/excalidraw/components/TTDDialog/common.d.ts +33 -33
  258. package/dist/types/excalidraw/components/TextField.d.ts +21 -21
  259. package/dist/types/excalidraw/components/Toast.d.ts +9 -9
  260. package/dist/types/excalidraw/components/ToolButton.d.ts +49 -49
  261. package/dist/types/excalidraw/components/Tooltip.d.ts +18 -18
  262. package/dist/types/excalidraw/components/Trans.d.ts +9 -9
  263. package/dist/types/excalidraw/components/UnlockPopup.d.ts +8 -0
  264. package/dist/types/excalidraw/components/UserList.d.ts +18 -18
  265. package/dist/types/excalidraw/components/canvases/InteractiveCanvas.d.ts +30 -29
  266. package/dist/types/excalidraw/components/canvases/NewElementCanvas.d.ts +14 -14
  267. package/dist/types/excalidraw/components/canvases/StaticCanvas.d.ts +19 -19
  268. package/dist/types/excalidraw/components/canvases/index.d.ts +3 -3
  269. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenu.d.ts +86 -86
  270. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuContent.d.ts +15 -15
  271. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuGroup.d.ts +11 -11
  272. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuItem.d.ts +46 -46
  273. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuItemContent.d.ts +8 -8
  274. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuItemContentRadio.d.ts +18 -18
  275. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuItemCustom.d.ts +7 -7
  276. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuItemLink.d.ts +16 -16
  277. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuSeparator.d.ts +5 -5
  278. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuTrigger.d.ts +11 -11
  279. package/dist/types/excalidraw/components/dropdownMenu/common.d.ts +6 -6
  280. package/dist/types/excalidraw/components/dropdownMenu/dropdownMenuUtils.d.ts +3 -3
  281. package/dist/types/excalidraw/components/footer/Footer.d.ts +12 -12
  282. package/dist/types/excalidraw/components/footer/FooterCenter.d.ts +8 -8
  283. package/dist/types/excalidraw/components/hoc/withInternalFallback.d.ts +4 -4
  284. package/dist/types/excalidraw/components/hyperlink/Hyperlink.d.ts +19 -18
  285. package/dist/types/excalidraw/components/hyperlink/helpers.d.ts +10 -9
  286. package/dist/types/excalidraw/components/icons.d.ts +225 -221
  287. package/dist/types/excalidraw/components/live-collaboration/LiveCollaborationTrigger.d.ts +10 -10
  288. package/dist/types/excalidraw/components/main-menu/DefaultItems.d.ts +64 -64
  289. package/dist/types/excalidraw/components/main-menu/MainMenu.d.ts +83 -80
  290. package/dist/types/excalidraw/components/shapes.d.ts +62 -0
  291. package/dist/types/excalidraw/components/welcome-screen/WelcomeScreen.Center.d.ts +58 -58
  292. package/dist/types/excalidraw/components/welcome-screen/WelcomeScreen.Hints.d.ts +19 -19
  293. package/dist/types/excalidraw/components/welcome-screen/WelcomeScreen.d.ts +85 -85
  294. package/dist/types/excalidraw/context/tunnels.d.ts +21 -21
  295. package/dist/types/excalidraw/context/ui-appState.d.ts +4 -4
  296. package/dist/types/excalidraw/cursor.d.ts +5 -5
  297. package/dist/types/excalidraw/data/EditorLocalStorage.d.ts +8 -8
  298. package/dist/types/excalidraw/data/ai/types.d.ts +242 -242
  299. package/dist/types/excalidraw/data/blob.d.ts +53 -53
  300. package/dist/types/excalidraw/data/encode.d.ts +55 -55
  301. package/dist/types/excalidraw/data/encryption.d.ts +9 -9
  302. package/dist/types/excalidraw/data/filesystem.d.ts +21 -21
  303. package/dist/types/excalidraw/data/image.d.ts +9 -9
  304. package/dist/types/excalidraw/data/index.d.ts +22 -22
  305. package/dist/types/excalidraw/data/json.d.ts +16 -16
  306. package/dist/types/excalidraw/data/library.d.ts +112 -112
  307. package/dist/types/excalidraw/data/reconcile.d.ts +7 -6
  308. package/dist/types/excalidraw/data/resave.d.ts +5 -5
  309. package/dist/types/excalidraw/data/restore.d.ts +26 -21
  310. package/dist/types/excalidraw/data/transform.d.ts +81 -81
  311. package/dist/types/excalidraw/data/types.d.ts +45 -45
  312. package/dist/types/excalidraw/deburr.d.ts +1 -1
  313. package/dist/types/excalidraw/editor-jotai.d.ts +56 -56
  314. package/dist/types/excalidraw/eraser/index.d.ts +12 -0
  315. package/dist/types/excalidraw/errors.d.ts +29 -32
  316. package/dist/types/excalidraw/fonts/Cascadia/index.d.ts +2 -2
  317. package/dist/types/excalidraw/fonts/ComicShanns/index.d.ts +2 -2
  318. package/dist/types/excalidraw/fonts/Emoji/index.d.ts +2 -2
  319. package/dist/types/excalidraw/fonts/ExcalidrawFontFace.d.ts +25 -25
  320. package/dist/types/excalidraw/fonts/Excalifont/index.d.ts +2 -2
  321. package/dist/types/excalidraw/fonts/Fonts.d.ts +79 -89
  322. package/dist/types/excalidraw/fonts/Helvetica/index.d.ts +2 -2
  323. package/dist/types/excalidraw/fonts/Liberation/index.d.ts +2 -2
  324. package/dist/types/excalidraw/fonts/Lilita/index.d.ts +2 -2
  325. package/dist/types/excalidraw/fonts/Nunito/index.d.ts +2 -2
  326. package/dist/types/excalidraw/fonts/Virgil/index.d.ts +2 -2
  327. package/dist/types/excalidraw/fonts/Xiaolai/index.d.ts +8 -8
  328. package/dist/types/excalidraw/fonts/index.d.ts +1 -1
  329. package/dist/types/excalidraw/gesture.d.ts +6 -6
  330. package/dist/types/excalidraw/history.d.ts +48 -40
  331. package/dist/types/excalidraw/hooks/useCallbackRefState.d.ts +1 -1
  332. package/dist/types/excalidraw/hooks/useCopiedIndicator.d.ts +5 -5
  333. package/dist/types/excalidraw/hooks/useCreatePortalContainer.d.ts +4 -4
  334. package/dist/types/excalidraw/hooks/useEmitter.d.ts +2 -2
  335. package/dist/types/excalidraw/hooks/useLibraryItemSvg.d.ts +11 -11
  336. package/dist/types/excalidraw/hooks/useOutsideClick.d.ts +20 -20
  337. package/dist/types/excalidraw/hooks/useScrollPosition.d.ts +2 -2
  338. package/dist/types/excalidraw/hooks/useStable.d.ts +1 -1
  339. package/dist/types/excalidraw/hooks/useStableCallback.d.ts +4 -4
  340. package/dist/types/excalidraw/hooks/useTransition.d.ts +2 -2
  341. package/dist/types/excalidraw/i18n.d.ts +24 -24
  342. package/dist/types/excalidraw/index-node.d.ts +1 -1
  343. package/dist/types/excalidraw/index.d.ts +47 -45
  344. package/dist/types/excalidraw/laser-trails.d.ts +20 -20
  345. package/dist/types/excalidraw/lasso/index.d.ts +16 -0
  346. package/dist/types/excalidraw/lasso/utils.d.ts +13 -0
  347. package/dist/types/excalidraw/mermaid.d.ts +2 -2
  348. package/dist/types/excalidraw/polyfill.d.ts +2 -2
  349. package/dist/types/excalidraw/reactUtils.d.ts +14 -14
  350. package/dist/types/excalidraw/renderer/helpers.d.ts +18 -13
  351. package/dist/types/excalidraw/renderer/interactiveScene.d.ts +20 -20
  352. package/dist/types/excalidraw/renderer/renderNewElementScene.d.ts +7 -7
  353. package/dist/types/excalidraw/renderer/renderSnaps.d.ts +2 -2
  354. package/dist/types/excalidraw/renderer/roundRect.d.ts +11 -11
  355. package/dist/types/excalidraw/renderer/staticScene.d.ts +14 -11
  356. package/dist/types/excalidraw/renderer/staticSvgScene.d.ts +5 -5
  357. package/dist/types/excalidraw/scene/Renderer.d.ts +27 -28
  358. package/dist/types/excalidraw/scene/export.d.ts +36 -36
  359. package/dist/types/excalidraw/scene/index.d.ts +4 -4
  360. package/dist/types/excalidraw/scene/normalize.d.ts +4 -4
  361. package/dist/types/excalidraw/scene/scroll.d.ts +23 -23
  362. package/dist/types/excalidraw/scene/scrollbars.d.ts +11 -12
  363. package/dist/types/excalidraw/scene/types.d.ts +120 -118
  364. package/dist/types/excalidraw/scene/zoom.d.ts +12 -12
  365. package/dist/types/excalidraw/snapping.d.ts +111 -112
  366. package/dist/types/excalidraw/subset/harfbuzz/harfbuzz-bindings.d.ts +45 -45
  367. package/dist/types/excalidraw/subset/harfbuzz/harfbuzz-loader.d.ts +13 -13
  368. package/dist/types/excalidraw/subset/harfbuzz/harfbuzz-wasm.d.ts +2 -2
  369. package/dist/types/excalidraw/subset/subset-main.d.ts +12 -12
  370. package/dist/types/excalidraw/subset/subset-shared.chunk.d.ts +32 -32
  371. package/dist/types/excalidraw/subset/subset-worker.chunk.d.ts +15 -15
  372. package/dist/types/excalidraw/subset/woff2/woff2-bindings.d.ts +31 -31
  373. package/dist/types/excalidraw/subset/woff2/woff2-loader.d.ts +14 -14
  374. package/dist/types/excalidraw/subset/woff2/woff2-wasm.d.ts +2 -2
  375. package/dist/types/excalidraw/types.d.ts +706 -687
  376. package/dist/types/excalidraw/workers.d.ts +36 -36
  377. package/dist/types/excalidraw/{element → wysiwyg}/textWysiwyg.d.ts +24 -22
  378. package/dist/types/math/{angle.d.ts → src/angle.d.ts} +19 -17
  379. package/dist/types/math/src/constants.d.ts +3 -0
  380. package/dist/types/math/src/curve.d.ts +74 -0
  381. package/dist/types/math/{ellipse.d.ts → src/ellipse.d.ts} +44 -44
  382. package/dist/types/math/{index.d.ts → src/index.d.ts} +13 -12
  383. package/dist/types/math/{line.d.ts → src/line.d.ts} +17 -17
  384. package/dist/types/math/{point.d.ts → src/point.d.ts} +122 -122
  385. package/dist/types/math/{polygon.d.ts → src/polygon.d.ts} +6 -5
  386. package/dist/types/math/{range.d.ts → src/range.d.ts} +44 -44
  387. package/dist/types/math/{rectangle.d.ts → src/rectangle.d.ts} +5 -3
  388. package/dist/types/math/{segment.d.ts → src/segment.d.ts} +39 -39
  389. package/dist/types/math/{triangle.d.ts → src/triangle.d.ts} +11 -11
  390. package/dist/types/math/{types.d.ts → src/types.d.ts} +106 -105
  391. package/dist/types/math/{utils.d.ts → src/utils.d.ts} +7 -7
  392. package/dist/types/math/{vector.d.ts → src/vector.d.ts} +94 -88
  393. package/dist/types/utils/{bbox.d.ts → src/bbox.d.ts} +9 -9
  394. package/dist/types/utils/{export.d.ts → src/export.d.ts} +35 -35
  395. package/dist/types/utils/{index.d.ts → src/index.d.ts} +4 -4
  396. package/dist/types/utils/{geometry → src}/shape.d.ts +58 -71
  397. package/dist/types/utils/{withinBounds.d.ts → src/withinBounds.d.ts} +19 -19
  398. package/history.ts +149 -110
  399. package/package.json +25 -10
  400. package/dist/dev/chunk-DVMEY4GX.js +0 -7
  401. package/dist/dev/chunk-DVMEY4GX.js.map +0 -7
  402. package/dist/dev/chunk-LMHBUWQS.js.map +0 -7
  403. package/dist/dev/chunk-MNBVKM3L.js +0 -25634
  404. package/dist/dev/chunk-MNBVKM3L.js.map +0 -7
  405. package/dist/dev/chunk-OKSO7T74.js +0 -4132
  406. package/dist/dev/chunk-OKSO7T74.js.map +0 -7
  407. package/dist/prod/chunk-6U3AYISY.js +0 -12
  408. package/dist/prod/chunk-AIZYGWGQ.js +0 -1
  409. package/dist/prod/chunk-EIO257PC.js +0 -86
  410. package/dist/prod/chunk-SP3IBIIJ.js +0 -34
  411. package/dist/prod/data/image-UOG3QKNC.js +0 -1
  412. package/dist/types/excalidraw/align.d.ts +0 -7
  413. package/dist/types/excalidraw/components/ButtonSelect.d.ts +0 -9
  414. package/dist/types/excalidraw/element/collision.d.ts +0 -26
  415. package/dist/types/excalidraw/element/distance.d.ts +0 -3
  416. package/dist/types/excalidraw/element/index.d.ts +0 -26
  417. package/dist/types/excalidraw/element/mutateElement.d.ts +0 -13
  418. package/dist/types/excalidraw/element/utils.d.ts +0 -21
  419. package/dist/types/excalidraw/scene/Shape.d.ts +0 -17
  420. package/dist/types/excalidraw/scene/ShapeCache.d.ts +0 -25
  421. package/dist/types/excalidraw/shapes.d.ts +0 -85
  422. package/dist/types/excalidraw/store.d.ts +0 -129
  423. package/dist/types/excalidraw/visualdebug.d.ts +0 -41
  424. package/dist/types/math/curve.d.ts +0 -40
  425. package/dist/types/utils/collision.d.ts +0 -9
  426. /package/dist/dev/data/{image-6FU7Z7FE.js.map → image-IWGLHPIX.js.map} +0 -0
  427. /package/dist/dev/locales/{en-OZCJJ2HN.js.map → en-SMAPCEOQ.js.map} +0 -0
@@ -1,1183 +1,1167 @@
1
- /// <reference types="react" />
2
- export declare const actionCopy: {
3
- name: "copy";
4
- label: string;
5
- icon: import("react/jsx-runtime").JSX.Element;
6
- trackEvent: {
7
- category: "element";
8
- };
9
- perform: (elements: readonly import("../element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, event: ClipboardEvent | null, app: import("../types").AppClassProperties) => Promise<{
10
- captureUpdate: "EVENTUALLY";
11
- appState: {
12
- errorMessage: any;
13
- contextMenu: {
14
- items: import("../components/ContextMenu").ContextMenuItems;
15
- top: number;
16
- left: number;
17
- } | null;
18
- showWelcomeScreen: boolean;
19
- isLoading: boolean;
20
- activeEmbeddable: {
21
- element: import("../element/types").NonDeletedExcalidrawElement;
22
- state: "hover" | "active";
23
- } | null;
24
- newElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawNonSelectionElement> | null;
25
- resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
26
- multiElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawLinearElement> | null;
27
- selectionElement: import("../element/types").NonDeletedExcalidrawElement | null;
28
- isBindingEnabled: boolean;
29
- startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
30
- suggestedBindings: import("../element/binding").SuggestedBinding[];
31
- frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameLikeElement> | null;
32
- frameRendering: {
33
- enabled: boolean;
34
- name: boolean;
35
- outline: boolean;
36
- clip: boolean;
37
- };
38
- editingFrame: string | null;
39
- elementsToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawElement>[] | null;
40
- editingTextElement: import("../element/types").NonDeletedExcalidrawElement | null;
41
- editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
42
- activeTool: {
43
- lastActiveTool: import("../types").ActiveTool | null;
44
- locked: boolean;
45
- } & import("../types").ActiveTool;
46
- penMode: boolean;
47
- penDetected: boolean;
48
- exportBackground: boolean;
49
- exportEmbedScene: boolean;
50
- exportWithDarkMode: boolean;
51
- exportScale: number;
52
- currentItemStrokeColor: string;
53
- currentItemBackgroundColor: string;
54
- currentItemFillStyle: import("../element/types").FillStyle;
55
- currentItemStrokeWidth: number;
56
- currentItemStrokeStyle: import("../element/types").StrokeStyle;
57
- currentItemRoughness: number;
58
- currentItemOpacity: number;
59
- currentItemFontFamily: number;
60
- currentItemFontSize: number;
61
- currentItemTextAlign: string;
62
- currentItemStartArrowhead: import("../element/types").Arrowhead | null;
63
- currentItemEndArrowhead: import("../element/types").Arrowhead | null;
64
- currentHoveredFontFamily: number | null;
65
- currentItemRoundness: import("../element/types").StrokeRoundness;
66
- currentItemArrowType: "round" | "sharp" | "elbow";
67
- viewBackgroundColor: string;
68
- scrollX: number;
69
- scrollY: number;
70
- cursorButton: "up" | "down";
71
- scrolledOutside: boolean;
72
- name: string | null;
73
- isResizing: boolean;
74
- isRotating: boolean;
75
- zoom: Readonly<{
76
- value: import("../types").NormalizedZoomValue;
77
- }>;
78
- openMenu: "canvas" | "shape" | null;
79
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
80
- openSidebar: {
81
- name: string;
82
- tab?: string | undefined;
83
- } | null;
84
- openDialog: {
85
- name: "imageExport" | "help" | "jsonExport";
86
- } | {
87
- name: "ttd";
88
- tab: "text-to-diagram" | "mermaid";
89
- } | {
90
- name: "commandPalette";
91
- } | {
92
- name: "elementLinkSelector";
93
- sourceElementId: string;
94
- } | null;
95
- defaultSidebarDockedPreference: boolean;
96
- lastPointerDownWith: import("../element/types").PointerType;
97
- selectedElementIds: Readonly<{
98
- [id: string]: true;
99
- }>;
100
- hoveredElementIds: Readonly<{
101
- [id: string]: true;
102
- }>;
103
- previousSelectedElementIds: {
104
- [id: string]: true;
105
- };
106
- selectedElementsAreBeingDragged: boolean;
107
- shouldCacheIgnoreZoom: boolean;
108
- toast: {
109
- message: string;
110
- closable?: boolean | undefined;
111
- duration?: number | undefined;
112
- } | null;
113
- zenModeEnabled: boolean;
114
- theme: import("../element/types").Theme;
115
- gridSize: number;
116
- gridStep: number;
117
- gridModeEnabled: boolean;
118
- viewModeEnabled: boolean;
119
- selectedGroupIds: {
120
- [groupId: string]: boolean;
121
- };
122
- editingGroupId: string | null;
123
- width: number;
124
- height: number;
125
- offsetTop: number;
126
- offsetLeft: number;
127
- fileHandle: import("browser-fs-access").FileSystemHandle | null;
128
- collaborators: Map<import("../types").SocketId, Readonly<{
129
- pointer?: import("../types").CollaboratorPointer | undefined;
130
- button?: "up" | "down" | undefined;
131
- selectedElementIds?: Readonly<{
132
- [id: string]: true;
133
- }> | undefined;
134
- username?: string | null | undefined;
135
- userState?: import("../constants").UserIdleState | undefined;
136
- color?: {
137
- background: string;
138
- stroke: string;
139
- } | undefined;
140
- avatarUrl?: string | undefined;
141
- id?: string | undefined;
142
- socketId?: import("../types").SocketId | undefined;
143
- isCurrentUser?: boolean | undefined;
144
- isInCall?: boolean | undefined;
145
- isSpeaking?: boolean | undefined;
146
- isMuted?: boolean | undefined;
147
- }>>;
148
- stats: {
149
- open: boolean;
150
- panels: number;
151
- };
152
- currentChartType: import("../element/types").ChartType;
153
- pasteDialog: {
154
- shown: false;
155
- data: null;
156
- } | {
157
- shown: true;
158
- data: import("../charts").Spreadsheet;
159
- };
160
- pendingImageElementId: string | null;
161
- showHyperlinkPopup: false | "info" | "editor";
162
- selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
163
- snapLines: readonly import("../snapping").SnapLine[];
164
- originSnapOffset: {
165
- x: number;
166
- y: number;
167
- } | null;
168
- objectsSnapModeEnabled: boolean;
169
- userToFollow: import("../types").UserToFollow | null;
170
- followedBy: Set<import("../types").SocketId>;
171
- isCropping: boolean;
172
- croppingElementId: string | null;
173
- searchMatches: readonly {
174
- id: string;
175
- focus: boolean;
176
- matchedLines: {
177
- offsetX: number;
178
- offsetY: number;
179
- width: number;
180
- height: number;
181
- }[];
182
- }[];
183
- };
184
- } | {
185
- captureUpdate: "EVENTUALLY";
186
- appState?: undefined;
187
- }>;
188
- keyTest: undefined;
189
- } & {
190
- keyTest?: undefined;
191
- };
192
- export declare const actionPaste: {
193
- name: "paste";
194
- label: string;
195
- trackEvent: {
196
- category: "element";
197
- };
198
- perform: (elements: readonly import("../element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, data: any, app: import("../types").AppClassProperties) => Promise<false | {
199
- captureUpdate: "EVENTUALLY";
200
- appState: {
201
- errorMessage: string;
202
- contextMenu: {
203
- items: import("../components/ContextMenu").ContextMenuItems;
204
- top: number;
205
- left: number;
206
- } | null;
207
- showWelcomeScreen: boolean;
208
- isLoading: boolean;
209
- activeEmbeddable: {
210
- element: import("../element/types").NonDeletedExcalidrawElement;
211
- state: "hover" | "active";
212
- } | null;
213
- newElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawNonSelectionElement> | null;
214
- resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
215
- multiElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawLinearElement> | null;
216
- selectionElement: import("../element/types").NonDeletedExcalidrawElement | null;
217
- isBindingEnabled: boolean;
218
- startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
219
- suggestedBindings: import("../element/binding").SuggestedBinding[];
220
- frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameLikeElement> | null;
221
- frameRendering: {
222
- enabled: boolean;
223
- name: boolean;
224
- outline: boolean;
225
- clip: boolean;
226
- };
227
- editingFrame: string | null;
228
- elementsToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawElement>[] | null;
229
- editingTextElement: import("../element/types").NonDeletedExcalidrawElement | null;
230
- editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
231
- activeTool: {
232
- lastActiveTool: import("../types").ActiveTool | null;
233
- locked: boolean;
234
- } & import("../types").ActiveTool;
235
- penMode: boolean;
236
- penDetected: boolean;
237
- exportBackground: boolean;
238
- exportEmbedScene: boolean;
239
- exportWithDarkMode: boolean;
240
- exportScale: number;
241
- currentItemStrokeColor: string;
242
- currentItemBackgroundColor: string;
243
- currentItemFillStyle: import("../element/types").FillStyle;
244
- currentItemStrokeWidth: number;
245
- currentItemStrokeStyle: import("../element/types").StrokeStyle;
246
- currentItemRoughness: number;
247
- currentItemOpacity: number;
248
- currentItemFontFamily: number;
249
- currentItemFontSize: number;
250
- currentItemTextAlign: string;
251
- currentItemStartArrowhead: import("../element/types").Arrowhead | null;
252
- currentItemEndArrowhead: import("../element/types").Arrowhead | null;
253
- currentHoveredFontFamily: number | null;
254
- currentItemRoundness: import("../element/types").StrokeRoundness;
255
- currentItemArrowType: "round" | "sharp" | "elbow";
256
- viewBackgroundColor: string;
257
- scrollX: number;
258
- scrollY: number;
259
- cursorButton: "up" | "down";
260
- scrolledOutside: boolean;
261
- name: string | null;
262
- isResizing: boolean;
263
- isRotating: boolean;
264
- zoom: Readonly<{
265
- value: import("../types").NormalizedZoomValue;
266
- }>;
267
- openMenu: "canvas" | "shape" | null;
268
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
269
- openSidebar: {
270
- name: string;
271
- tab?: string | undefined;
272
- } | null;
273
- openDialog: {
274
- name: "imageExport" | "help" | "jsonExport";
275
- } | {
276
- name: "ttd";
277
- tab: "text-to-diagram" | "mermaid";
278
- } | {
279
- name: "commandPalette";
280
- } | {
281
- name: "elementLinkSelector";
282
- sourceElementId: string;
283
- } | null;
284
- defaultSidebarDockedPreference: boolean;
285
- lastPointerDownWith: import("../element/types").PointerType;
286
- selectedElementIds: Readonly<{
287
- [id: string]: true;
288
- }>;
289
- hoveredElementIds: Readonly<{
290
- [id: string]: true;
291
- }>;
292
- previousSelectedElementIds: {
293
- [id: string]: true;
294
- };
295
- selectedElementsAreBeingDragged: boolean;
296
- shouldCacheIgnoreZoom: boolean;
297
- toast: {
298
- message: string;
299
- closable?: boolean | undefined;
300
- duration?: number | undefined;
301
- } | null;
302
- zenModeEnabled: boolean;
303
- theme: import("../element/types").Theme;
304
- gridSize: number;
305
- gridStep: number;
306
- gridModeEnabled: boolean;
307
- viewModeEnabled: boolean;
308
- selectedGroupIds: {
309
- [groupId: string]: boolean;
310
- };
311
- editingGroupId: string | null;
312
- width: number;
313
- height: number;
314
- offsetTop: number;
315
- offsetLeft: number;
316
- fileHandle: import("browser-fs-access").FileSystemHandle | null;
317
- collaborators: Map<import("../types").SocketId, Readonly<{
318
- pointer?: import("../types").CollaboratorPointer | undefined;
319
- button?: "up" | "down" | undefined;
320
- selectedElementIds?: Readonly<{
321
- [id: string]: true;
322
- }> | undefined;
323
- username?: string | null | undefined;
324
- userState?: import("../constants").UserIdleState | undefined;
325
- color?: {
326
- background: string;
327
- stroke: string;
328
- } | undefined;
329
- avatarUrl?: string | undefined;
330
- id?: string | undefined;
331
- socketId?: import("../types").SocketId | undefined;
332
- isCurrentUser?: boolean | undefined;
333
- isInCall?: boolean | undefined;
334
- isSpeaking?: boolean | undefined;
335
- isMuted?: boolean | undefined;
336
- }>>;
337
- stats: {
338
- open: boolean;
339
- panels: number;
340
- };
341
- currentChartType: import("../element/types").ChartType;
342
- pasteDialog: {
343
- shown: false;
344
- data: null;
345
- } | {
346
- shown: true;
347
- data: import("../charts").Spreadsheet;
348
- };
349
- pendingImageElementId: string | null;
350
- showHyperlinkPopup: false | "info" | "editor";
351
- selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
352
- snapLines: readonly import("../snapping").SnapLine[];
353
- originSnapOffset: {
354
- x: number;
355
- y: number;
356
- } | null;
357
- objectsSnapModeEnabled: boolean;
358
- userToFollow: import("../types").UserToFollow | null;
359
- followedBy: Set<import("../types").SocketId>;
360
- isCropping: boolean;
361
- croppingElementId: string | null;
362
- searchMatches: readonly {
363
- id: string;
364
- focus: boolean;
365
- matchedLines: {
366
- offsetX: number;
367
- offsetY: number;
368
- width: number;
369
- height: number;
370
- }[];
371
- }[];
372
- };
373
- } | {
374
- captureUpdate: "EVENTUALLY";
375
- appState?: undefined;
376
- }>;
377
- keyTest: undefined;
378
- } & {
379
- keyTest?: undefined;
380
- };
381
- export declare const actionCut: {
382
- name: "cut";
383
- label: string;
384
- icon: import("react/jsx-runtime").JSX.Element;
385
- trackEvent: {
386
- category: "element";
387
- };
388
- perform: (elements: readonly import("../element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, event: ClipboardEvent | null, app: import("../types").AppClassProperties) => false | {
389
- elements: import("../element/types").OrderedExcalidrawElement[];
390
- appState: {
391
- editingLinearElement: null;
392
- contextMenu: {
393
- items: import("../components/ContextMenu").ContextMenuItems;
394
- top: number;
395
- left: number;
396
- } | null;
397
- showWelcomeScreen: boolean;
398
- isLoading: boolean;
399
- errorMessage: import("react").ReactNode;
400
- activeEmbeddable: {
401
- element: import("../element/types").NonDeletedExcalidrawElement;
402
- state: "hover" | "active";
403
- } | null;
404
- newElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawNonSelectionElement> | null;
405
- resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
406
- multiElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawLinearElement> | null;
407
- selectionElement: import("../element/types").NonDeletedExcalidrawElement | null;
408
- isBindingEnabled: boolean;
409
- startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
410
- suggestedBindings: import("../element/binding").SuggestedBinding[];
411
- frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameLikeElement> | null;
412
- frameRendering: {
413
- enabled: boolean;
414
- name: boolean;
415
- outline: boolean;
416
- clip: boolean;
417
- };
418
- editingFrame: string | null;
419
- elementsToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawElement>[] | null;
420
- editingTextElement: import("../element/types").NonDeletedExcalidrawElement | null;
421
- activeTool: {
422
- lastActiveTool: import("../types").ActiveTool | null;
423
- locked: boolean;
424
- } & import("../types").ActiveTool;
425
- penMode: boolean;
426
- penDetected: boolean;
427
- exportBackground: boolean;
428
- exportEmbedScene: boolean;
429
- exportWithDarkMode: boolean;
430
- exportScale: number;
431
- currentItemStrokeColor: string;
432
- currentItemBackgroundColor: string;
433
- currentItemFillStyle: import("../element/types").FillStyle;
434
- currentItemStrokeWidth: number;
435
- currentItemStrokeStyle: import("../element/types").StrokeStyle;
436
- currentItemRoughness: number;
437
- currentItemOpacity: number;
438
- currentItemFontFamily: number;
439
- currentItemFontSize: number;
440
- currentItemTextAlign: string;
441
- currentItemStartArrowhead: import("../element/types").Arrowhead | null;
442
- currentItemEndArrowhead: import("../element/types").Arrowhead | null;
443
- currentHoveredFontFamily: number | null;
444
- currentItemRoundness: import("../element/types").StrokeRoundness;
445
- currentItemArrowType: "round" | "sharp" | "elbow";
446
- viewBackgroundColor: string;
447
- scrollX: number;
448
- scrollY: number;
449
- cursorButton: "up" | "down";
450
- scrolledOutside: boolean;
451
- name: string | null;
452
- isResizing: boolean;
453
- isRotating: boolean;
454
- zoom: Readonly<{
455
- value: import("../types").NormalizedZoomValue;
456
- }>;
457
- openMenu: "canvas" | "shape" | null;
458
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
459
- openSidebar: {
460
- name: string;
461
- tab?: string | undefined;
462
- } | null;
463
- openDialog: {
464
- name: "imageExport" | "help" | "jsonExport";
465
- } | {
466
- name: "ttd";
467
- tab: "text-to-diagram" | "mermaid";
468
- } | {
469
- name: "commandPalette";
470
- } | {
471
- name: "elementLinkSelector";
472
- sourceElementId: string;
473
- } | null;
474
- defaultSidebarDockedPreference: boolean;
475
- lastPointerDownWith: import("../element/types").PointerType;
476
- selectedElementIds: Readonly<{
477
- [id: string]: true;
478
- }>;
479
- hoveredElementIds: Readonly<{
480
- [id: string]: true;
481
- }>;
482
- previousSelectedElementIds: {
483
- [id: string]: true;
484
- };
485
- selectedElementsAreBeingDragged: boolean;
486
- shouldCacheIgnoreZoom: boolean;
487
- toast: {
488
- message: string;
489
- closable?: boolean | undefined;
490
- duration?: number | undefined;
491
- } | null;
492
- zenModeEnabled: boolean;
493
- theme: import("../element/types").Theme;
494
- gridSize: number;
495
- gridStep: number;
496
- gridModeEnabled: boolean;
497
- viewModeEnabled: boolean;
498
- selectedGroupIds: {
499
- [groupId: string]: boolean;
500
- };
501
- editingGroupId: string | null;
502
- width: number;
503
- height: number;
504
- offsetTop: number;
505
- offsetLeft: number;
506
- fileHandle: import("browser-fs-access").FileSystemHandle | null;
507
- collaborators: Map<import("../types").SocketId, Readonly<{
508
- pointer?: import("../types").CollaboratorPointer | undefined;
509
- button?: "up" | "down" | undefined;
510
- selectedElementIds?: Readonly<{
511
- [id: string]: true;
512
- }> | undefined;
513
- username?: string | null | undefined;
514
- userState?: import("../constants").UserIdleState | undefined;
515
- color?: {
516
- background: string;
517
- stroke: string;
518
- } | undefined;
519
- avatarUrl?: string | undefined;
520
- id?: string | undefined;
521
- socketId?: import("../types").SocketId | undefined;
522
- isCurrentUser?: boolean | undefined;
523
- isInCall?: boolean | undefined;
524
- isSpeaking?: boolean | undefined;
525
- isMuted?: boolean | undefined;
526
- }>>;
527
- stats: {
528
- open: boolean;
529
- panels: number;
530
- };
531
- currentChartType: import("../element/types").ChartType;
532
- pasteDialog: {
533
- shown: false;
534
- data: null;
535
- } | {
536
- shown: true;
537
- data: import("../charts").Spreadsheet;
538
- };
539
- pendingImageElementId: string | null;
540
- showHyperlinkPopup: false | "info" | "editor";
541
- selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
542
- snapLines: readonly import("../snapping").SnapLine[];
543
- originSnapOffset: {
544
- x: number;
545
- y: number;
546
- } | null;
547
- objectsSnapModeEnabled: boolean;
548
- userToFollow: import("../types").UserToFollow | null;
549
- followedBy: Set<import("../types").SocketId>;
550
- isCropping: boolean;
551
- croppingElementId: string | null;
552
- searchMatches: readonly {
553
- id: string;
554
- focus: boolean;
555
- matchedLines: {
556
- offsetX: number;
557
- offsetY: number;
558
- width: number;
559
- height: number;
560
- }[];
561
- }[];
562
- };
563
- captureUpdate: "IMMEDIATELY";
564
- } | {
565
- elements: readonly import("../element/types").OrderedExcalidrawElement[];
566
- appState: {
567
- editingLinearElement: {
568
- selectedPointsIndices: number[];
569
- startBindingElement: import("../element/types").ExcalidrawBindableElement | "keep" | null;
570
- endBindingElement: import("../element/types").ExcalidrawBindableElement | "keep" | null;
571
- elementId: string & {
572
- _brand: "excalidrawLinearElementId";
573
- };
574
- pointerDownState: Readonly<{
575
- prevSelectedPointsIndices: readonly number[] | null;
576
- lastClickedPoint: number;
577
- lastClickedIsEndPoint: boolean;
578
- origin: Readonly<{
579
- x: number;
580
- y: number;
581
- }> | null;
582
- segmentMidpoint: {
583
- value: import("@excalidraw/math").GlobalPoint | null;
584
- index: number | null;
585
- added: boolean;
586
- };
587
- }>;
588
- isDragging: boolean;
589
- lastUncommittedPoint: import("@excalidraw/math").LocalPoint | null;
590
- pointerOffset: Readonly<{
591
- x: number;
592
- y: number;
593
- }>;
594
- hoverPointIndex: number;
595
- segmentMidPointHoveredCoords: import("@excalidraw/math").GlobalPoint | null;
596
- elbowed: boolean;
597
- };
598
- contextMenu: {
599
- items: import("../components/ContextMenu").ContextMenuItems;
600
- top: number;
601
- left: number;
602
- } | null;
603
- showWelcomeScreen: boolean;
604
- isLoading: boolean;
605
- errorMessage: import("react").ReactNode;
606
- activeEmbeddable: {
607
- element: import("../element/types").NonDeletedExcalidrawElement;
608
- state: "hover" | "active";
609
- } | null;
610
- newElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawNonSelectionElement> | null;
611
- resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
612
- multiElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawLinearElement> | null;
613
- selectionElement: import("../element/types").NonDeletedExcalidrawElement | null;
614
- isBindingEnabled: boolean;
615
- startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
616
- suggestedBindings: import("../element/binding").SuggestedBinding[];
617
- frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameLikeElement> | null;
618
- frameRendering: {
619
- enabled: boolean;
620
- name: boolean;
621
- outline: boolean;
622
- clip: boolean;
623
- };
624
- editingFrame: string | null;
625
- elementsToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawElement>[] | null;
626
- editingTextElement: import("../element/types").NonDeletedExcalidrawElement | null;
627
- activeTool: {
628
- lastActiveTool: import("../types").ActiveTool | null;
629
- locked: boolean;
630
- } & import("../types").ActiveTool;
631
- penMode: boolean;
632
- penDetected: boolean;
633
- exportBackground: boolean;
634
- exportEmbedScene: boolean;
635
- exportWithDarkMode: boolean;
636
- exportScale: number;
637
- currentItemStrokeColor: string;
638
- currentItemBackgroundColor: string;
639
- currentItemFillStyle: import("../element/types").FillStyle;
640
- currentItemStrokeWidth: number;
641
- currentItemStrokeStyle: import("../element/types").StrokeStyle;
642
- currentItemRoughness: number;
643
- currentItemOpacity: number;
644
- currentItemFontFamily: number;
645
- currentItemFontSize: number;
646
- currentItemTextAlign: string;
647
- currentItemStartArrowhead: import("../element/types").Arrowhead | null;
648
- currentItemEndArrowhead: import("../element/types").Arrowhead | null;
649
- currentHoveredFontFamily: number | null;
650
- currentItemRoundness: import("../element/types").StrokeRoundness;
651
- currentItemArrowType: "round" | "sharp" | "elbow";
652
- viewBackgroundColor: string;
653
- scrollX: number;
654
- scrollY: number;
655
- cursorButton: "up" | "down";
656
- scrolledOutside: boolean;
657
- name: string | null;
658
- isResizing: boolean;
659
- isRotating: boolean;
660
- zoom: Readonly<{
661
- value: import("../types").NormalizedZoomValue;
662
- }>;
663
- openMenu: "canvas" | "shape" | null;
664
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
665
- openSidebar: {
666
- name: string;
667
- tab?: string | undefined;
668
- } | null;
669
- openDialog: {
670
- name: "imageExport" | "help" | "jsonExport";
671
- } | {
672
- name: "ttd";
673
- tab: "text-to-diagram" | "mermaid";
674
- } | {
675
- name: "commandPalette";
676
- } | {
677
- name: "elementLinkSelector";
678
- sourceElementId: string;
679
- } | null;
680
- defaultSidebarDockedPreference: boolean;
681
- lastPointerDownWith: import("../element/types").PointerType;
682
- selectedElementIds: Readonly<{
683
- [id: string]: true;
684
- }>;
685
- hoveredElementIds: Readonly<{
686
- [id: string]: true;
687
- }>;
688
- previousSelectedElementIds: {
689
- [id: string]: true;
690
- };
691
- selectedElementsAreBeingDragged: boolean;
692
- shouldCacheIgnoreZoom: boolean;
693
- toast: {
694
- message: string;
695
- closable?: boolean | undefined;
696
- duration?: number | undefined;
697
- } | null;
698
- zenModeEnabled: boolean;
699
- theme: import("../element/types").Theme;
700
- gridSize: number;
701
- gridStep: number;
702
- gridModeEnabled: boolean;
703
- viewModeEnabled: boolean;
704
- selectedGroupIds: {
705
- [groupId: string]: boolean;
706
- };
707
- editingGroupId: string | null;
708
- width: number;
709
- height: number;
710
- offsetTop: number;
711
- offsetLeft: number;
712
- fileHandle: import("browser-fs-access").FileSystemHandle | null;
713
- collaborators: Map<import("../types").SocketId, Readonly<{
714
- pointer?: import("../types").CollaboratorPointer | undefined;
715
- button?: "up" | "down" | undefined;
716
- selectedElementIds?: Readonly<{
717
- [id: string]: true;
718
- }> | undefined;
719
- username?: string | null | undefined;
720
- userState?: import("../constants").UserIdleState | undefined;
721
- color?: {
722
- background: string;
723
- stroke: string;
724
- } | undefined;
725
- avatarUrl?: string | undefined;
726
- id?: string | undefined;
727
- socketId?: import("../types").SocketId | undefined;
728
- isCurrentUser?: boolean | undefined;
729
- isInCall?: boolean | undefined;
730
- isSpeaking?: boolean | undefined;
731
- isMuted?: boolean | undefined;
732
- }>>;
733
- stats: {
734
- open: boolean;
735
- panels: number;
736
- };
737
- currentChartType: import("../element/types").ChartType;
738
- pasteDialog: {
739
- shown: false;
740
- data: null;
741
- } | {
742
- shown: true;
743
- data: import("../charts").Spreadsheet;
744
- };
745
- pendingImageElementId: string | null;
746
- showHyperlinkPopup: false | "info" | "editor";
747
- selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
748
- snapLines: readonly import("../snapping").SnapLine[];
749
- originSnapOffset: {
750
- x: number;
751
- y: number;
752
- } | null;
753
- objectsSnapModeEnabled: boolean;
754
- userToFollow: import("../types").UserToFollow | null;
755
- followedBy: Set<import("../types").SocketId>;
756
- isCropping: boolean;
757
- croppingElementId: string | null;
758
- searchMatches: readonly {
759
- id: string;
760
- focus: boolean;
761
- matchedLines: {
762
- offsetX: number;
763
- offsetY: number;
764
- width: number;
765
- height: number;
766
- }[];
767
- }[];
768
- };
769
- captureUpdate: "IMMEDIATELY";
770
- } | {
771
- elements: import("../element/types").ExcalidrawElement[];
772
- appState: {
773
- activeTool: {
774
- lastActiveTool: import("../types").ActiveTool | null;
775
- locked: boolean;
776
- } & import("../types").ActiveTool;
777
- multiElement: null;
778
- activeEmbeddable: null;
779
- selectedElementIds: Readonly<{
780
- [id: string]: true;
781
- }>;
782
- selectedGroupIds: {
783
- [groupId: string]: boolean;
784
- };
785
- editingGroupId: string | null;
786
- contextMenu: {
787
- items: import("../components/ContextMenu").ContextMenuItems;
788
- top: number;
789
- left: number;
790
- } | null;
791
- showWelcomeScreen: boolean;
792
- isLoading: boolean;
793
- errorMessage: import("react").ReactNode;
794
- newElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawNonSelectionElement> | null;
795
- resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
796
- selectionElement: import("../element/types").NonDeletedExcalidrawElement | null;
797
- isBindingEnabled: boolean;
798
- startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
799
- suggestedBindings: import("../element/binding").SuggestedBinding[];
800
- frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameLikeElement> | null;
801
- frameRendering: {
802
- enabled: boolean;
803
- name: boolean;
804
- outline: boolean;
805
- clip: boolean;
806
- };
807
- editingFrame: string | null;
808
- elementsToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawElement>[] | null;
809
- editingTextElement: import("../element/types").NonDeletedExcalidrawElement | null;
810
- editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
811
- penMode: boolean;
812
- penDetected: boolean;
813
- exportBackground: boolean;
814
- exportEmbedScene: boolean;
815
- exportWithDarkMode: boolean;
816
- exportScale: number;
817
- currentItemStrokeColor: string;
818
- currentItemBackgroundColor: string;
819
- currentItemFillStyle: import("../element/types").FillStyle;
820
- currentItemStrokeWidth: number;
821
- currentItemStrokeStyle: import("../element/types").StrokeStyle;
822
- currentItemRoughness: number;
823
- currentItemOpacity: number;
824
- currentItemFontFamily: number;
825
- currentItemFontSize: number;
826
- currentItemTextAlign: string;
827
- currentItemStartArrowhead: import("../element/types").Arrowhead | null;
828
- currentItemEndArrowhead: import("../element/types").Arrowhead | null;
829
- currentHoveredFontFamily: number | null;
830
- currentItemRoundness: import("../element/types").StrokeRoundness;
831
- currentItemArrowType: "round" | "sharp" | "elbow";
832
- viewBackgroundColor: string;
833
- scrollX: number;
834
- scrollY: number;
835
- cursorButton: "up" | "down";
836
- scrolledOutside: boolean;
837
- name: string | null;
838
- isResizing: boolean;
839
- isRotating: boolean;
840
- zoom: Readonly<{
841
- value: import("../types").NormalizedZoomValue;
842
- }>;
843
- openMenu: "canvas" | "shape" | null;
844
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
845
- openSidebar: {
846
- name: string;
847
- tab?: string | undefined;
848
- } | null;
849
- openDialog: {
850
- name: "imageExport" | "help" | "jsonExport";
851
- } | {
852
- name: "ttd";
853
- tab: "text-to-diagram" | "mermaid";
854
- } | {
855
- name: "commandPalette";
856
- } | {
857
- name: "elementLinkSelector";
858
- sourceElementId: string;
859
- } | null;
860
- defaultSidebarDockedPreference: boolean;
861
- lastPointerDownWith: import("../element/types").PointerType;
862
- hoveredElementIds: Readonly<{
863
- [id: string]: true;
864
- }>;
865
- previousSelectedElementIds: {
866
- [id: string]: true;
867
- };
868
- selectedElementsAreBeingDragged: boolean;
869
- shouldCacheIgnoreZoom: boolean;
870
- toast: {
871
- message: string;
872
- closable?: boolean | undefined;
873
- duration?: number | undefined;
874
- } | null;
875
- zenModeEnabled: boolean;
876
- theme: import("../element/types").Theme;
877
- gridSize: number;
878
- gridStep: number;
879
- gridModeEnabled: boolean;
880
- viewModeEnabled: boolean;
881
- width: number;
882
- height: number;
883
- offsetTop: number;
884
- offsetLeft: number;
885
- fileHandle: import("browser-fs-access").FileSystemHandle | null;
886
- collaborators: Map<import("../types").SocketId, Readonly<{
887
- pointer?: import("../types").CollaboratorPointer | undefined;
888
- button?: "up" | "down" | undefined;
889
- selectedElementIds?: Readonly<{
890
- [id: string]: true;
891
- }> | undefined;
892
- username?: string | null | undefined;
893
- userState?: import("../constants").UserIdleState | undefined;
894
- color?: {
895
- background: string;
896
- stroke: string;
897
- } | undefined;
898
- avatarUrl?: string | undefined;
899
- id?: string | undefined;
900
- socketId?: import("../types").SocketId | undefined;
901
- isCurrentUser?: boolean | undefined;
902
- isInCall?: boolean | undefined;
903
- isSpeaking?: boolean | undefined;
904
- isMuted?: boolean | undefined;
905
- }>>;
906
- stats: {
907
- open: boolean;
908
- panels: number;
909
- };
910
- currentChartType: import("../element/types").ChartType;
911
- pasteDialog: {
912
- shown: false;
913
- data: null;
914
- } | {
915
- shown: true;
916
- data: import("../charts").Spreadsheet;
917
- };
918
- pendingImageElementId: string | null;
919
- showHyperlinkPopup: false | "info" | "editor";
920
- selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
921
- snapLines: readonly import("../snapping").SnapLine[];
922
- originSnapOffset: {
923
- x: number;
924
- y: number;
925
- } | null;
926
- objectsSnapModeEnabled: boolean;
927
- userToFollow: import("../types").UserToFollow | null;
928
- followedBy: Set<import("../types").SocketId>;
929
- isCropping: boolean;
930
- croppingElementId: string | null;
931
- searchMatches: readonly {
932
- id: string;
933
- focus: boolean;
934
- matchedLines: {
935
- offsetX: number;
936
- offsetY: number;
937
- width: number;
938
- height: number;
939
- }[];
940
- }[];
941
- };
942
- captureUpdate: "IMMEDIATELY" | "EVENTUALLY";
943
- };
944
- keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
945
- } & {
946
- keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
947
- };
948
- export declare const actionCopyAsSvg: {
949
- name: "copyAsSvg";
950
- label: string;
951
- icon: import("react/jsx-runtime").JSX.Element;
952
- trackEvent: {
953
- category: "element";
954
- };
955
- perform: (elements: readonly import("../element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, _data: any, app: import("../types").AppClassProperties) => Promise<{
956
- captureUpdate: "EVENTUALLY";
957
- appState?: undefined;
958
- } | {
959
- appState: {
960
- toast: {
961
- message: string;
962
- };
963
- errorMessage?: undefined;
964
- };
965
- captureUpdate: "EVENTUALLY";
966
- } | {
967
- appState: {
968
- errorMessage: any;
969
- toast?: undefined;
970
- };
971
- captureUpdate: "EVENTUALLY";
972
- }>;
973
- predicate: (elements: readonly import("../element/types").ExcalidrawElement[]) => boolean;
974
- keywords: string[];
975
- } & {
976
- keyTest?: undefined;
977
- };
978
- export declare const actionCopyAsPng: {
979
- name: "copyAsPng";
980
- label: string;
981
- icon: import("react/jsx-runtime").JSX.Element;
982
- trackEvent: {
983
- category: "element";
984
- };
985
- perform: (elements: readonly import("../element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, _data: any, app: import("../types").AppClassProperties) => Promise<{
986
- captureUpdate: "EVENTUALLY";
987
- appState?: undefined;
988
- } | {
989
- appState: {
990
- errorMessage: any;
991
- contextMenu: {
992
- items: import("../components/ContextMenu").ContextMenuItems;
993
- top: number;
994
- left: number;
995
- } | null;
996
- showWelcomeScreen: boolean;
997
- isLoading: boolean;
998
- activeEmbeddable: {
999
- element: import("../element/types").NonDeletedExcalidrawElement;
1000
- state: "hover" | "active";
1001
- } | null;
1002
- newElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawNonSelectionElement> | null;
1003
- resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
1004
- multiElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawLinearElement> | null;
1005
- selectionElement: import("../element/types").NonDeletedExcalidrawElement | null;
1006
- isBindingEnabled: boolean;
1007
- startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
1008
- suggestedBindings: import("../element/binding").SuggestedBinding[];
1009
- frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameLikeElement> | null;
1010
- frameRendering: {
1011
- enabled: boolean;
1012
- name: boolean;
1013
- outline: boolean;
1014
- clip: boolean;
1015
- };
1016
- editingFrame: string | null;
1017
- elementsToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawElement>[] | null;
1018
- editingTextElement: import("../element/types").NonDeletedExcalidrawElement | null;
1019
- editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
1020
- activeTool: {
1021
- lastActiveTool: import("../types").ActiveTool | null;
1022
- locked: boolean;
1023
- } & import("../types").ActiveTool;
1024
- penMode: boolean;
1025
- penDetected: boolean;
1026
- exportBackground: boolean;
1027
- exportEmbedScene: boolean;
1028
- exportWithDarkMode: boolean;
1029
- exportScale: number;
1030
- currentItemStrokeColor: string;
1031
- currentItemBackgroundColor: string;
1032
- currentItemFillStyle: import("../element/types").FillStyle;
1033
- currentItemStrokeWidth: number;
1034
- currentItemStrokeStyle: import("../element/types").StrokeStyle;
1035
- currentItemRoughness: number;
1036
- currentItemOpacity: number;
1037
- currentItemFontFamily: number;
1038
- currentItemFontSize: number;
1039
- currentItemTextAlign: string;
1040
- currentItemStartArrowhead: import("../element/types").Arrowhead | null;
1041
- currentItemEndArrowhead: import("../element/types").Arrowhead | null;
1042
- currentHoveredFontFamily: number | null;
1043
- currentItemRoundness: import("../element/types").StrokeRoundness;
1044
- currentItemArrowType: "round" | "sharp" | "elbow";
1045
- viewBackgroundColor: string;
1046
- scrollX: number;
1047
- scrollY: number;
1048
- cursorButton: "up" | "down";
1049
- scrolledOutside: boolean;
1050
- name: string | null;
1051
- isResizing: boolean;
1052
- isRotating: boolean;
1053
- zoom: Readonly<{
1054
- value: import("../types").NormalizedZoomValue;
1055
- }>;
1056
- openMenu: "canvas" | "shape" | null;
1057
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
1058
- openSidebar: {
1059
- name: string;
1060
- tab?: string | undefined;
1061
- } | null;
1062
- openDialog: {
1063
- name: "imageExport" | "help" | "jsonExport";
1064
- } | {
1065
- name: "ttd";
1066
- tab: "text-to-diagram" | "mermaid";
1067
- } | {
1068
- name: "commandPalette";
1069
- } | {
1070
- name: "elementLinkSelector";
1071
- sourceElementId: string;
1072
- } | null;
1073
- defaultSidebarDockedPreference: boolean;
1074
- lastPointerDownWith: import("../element/types").PointerType;
1075
- selectedElementIds: Readonly<{
1076
- [id: string]: true;
1077
- }>;
1078
- hoveredElementIds: Readonly<{
1079
- [id: string]: true;
1080
- }>;
1081
- previousSelectedElementIds: {
1082
- [id: string]: true;
1083
- };
1084
- selectedElementsAreBeingDragged: boolean;
1085
- shouldCacheIgnoreZoom: boolean;
1086
- toast: {
1087
- message: string;
1088
- closable?: boolean | undefined;
1089
- duration?: number | undefined;
1090
- } | null;
1091
- zenModeEnabled: boolean;
1092
- theme: import("../element/types").Theme;
1093
- gridSize: number;
1094
- gridStep: number;
1095
- gridModeEnabled: boolean;
1096
- viewModeEnabled: boolean;
1097
- selectedGroupIds: {
1098
- [groupId: string]: boolean;
1099
- };
1100
- editingGroupId: string | null;
1101
- width: number;
1102
- height: number;
1103
- offsetTop: number;
1104
- offsetLeft: number;
1105
- fileHandle: import("browser-fs-access").FileSystemHandle | null;
1106
- collaborators: Map<import("../types").SocketId, Readonly<{
1107
- pointer?: import("../types").CollaboratorPointer | undefined;
1108
- button?: "up" | "down" | undefined;
1109
- selectedElementIds?: Readonly<{
1110
- [id: string]: true;
1111
- }> | undefined;
1112
- username?: string | null | undefined;
1113
- userState?: import("../constants").UserIdleState | undefined;
1114
- color?: {
1115
- background: string;
1116
- stroke: string;
1117
- } | undefined;
1118
- avatarUrl?: string | undefined;
1119
- id?: string | undefined;
1120
- socketId?: import("../types").SocketId | undefined;
1121
- isCurrentUser?: boolean | undefined;
1122
- isInCall?: boolean | undefined;
1123
- isSpeaking?: boolean | undefined;
1124
- isMuted?: boolean | undefined;
1125
- }>>;
1126
- stats: {
1127
- open: boolean;
1128
- panels: number;
1129
- };
1130
- currentChartType: import("../element/types").ChartType;
1131
- pasteDialog: {
1132
- shown: false;
1133
- data: null;
1134
- } | {
1135
- shown: true;
1136
- data: import("../charts").Spreadsheet;
1137
- };
1138
- pendingImageElementId: string | null;
1139
- showHyperlinkPopup: false | "info" | "editor";
1140
- selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
1141
- snapLines: readonly import("../snapping").SnapLine[];
1142
- originSnapOffset: {
1143
- x: number;
1144
- y: number;
1145
- } | null;
1146
- objectsSnapModeEnabled: boolean;
1147
- userToFollow: import("../types").UserToFollow | null;
1148
- followedBy: Set<import("../types").SocketId>;
1149
- isCropping: boolean;
1150
- croppingElementId: string | null;
1151
- searchMatches: readonly {
1152
- id: string;
1153
- focus: boolean;
1154
- matchedLines: {
1155
- offsetX: number;
1156
- offsetY: number;
1157
- width: number;
1158
- height: number;
1159
- }[];
1160
- }[];
1161
- };
1162
- captureUpdate: "EVENTUALLY";
1163
- }>;
1164
- predicate: (elements: readonly import("../element/types").ExcalidrawElement[]) => boolean;
1165
- keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
1166
- keywords: string[];
1167
- } & {
1168
- keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
1169
- };
1170
- export declare const copyText: {
1171
- name: "copyText";
1172
- label: string;
1173
- trackEvent: {
1174
- category: "element";
1175
- };
1176
- perform: (elements: readonly import("../element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, _: any, app: import("../types").AppClassProperties) => {
1177
- captureUpdate: "EVENTUALLY";
1178
- };
1179
- predicate: (elements: readonly import("../element/types").ExcalidrawElement[], appState: import("../types").AppState, _: import("../types").ExcalidrawProps, app: import("../types").AppClassProperties) => boolean;
1180
- keywords: string[];
1181
- } & {
1182
- keyTest?: undefined;
1183
- };
1
+ /// <reference types="react" />
2
+ export declare const actionCopy: {
3
+ name: "copy";
4
+ label: string;
5
+ icon: import("react/jsx-runtime").JSX.Element;
6
+ trackEvent: {
7
+ category: "element";
8
+ };
9
+ perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, event: ClipboardEvent | null, app: import("../types").AppClassProperties) => Promise<{
10
+ captureUpdate: "EVENTUALLY";
11
+ appState: {
12
+ errorMessage: any;
13
+ contextMenu: {
14
+ items: import("../components/ContextMenu").ContextMenuItems;
15
+ top: number;
16
+ left: number;
17
+ } | null;
18
+ showWelcomeScreen: boolean;
19
+ isLoading: boolean;
20
+ activeEmbeddable: {
21
+ element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
22
+ state: "active" | "hover";
23
+ } | null;
24
+ newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
25
+ resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
26
+ multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
27
+ selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
28
+ isBindingEnabled: boolean;
29
+ startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
30
+ suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
31
+ frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
32
+ frameRendering: {
33
+ enabled: boolean;
34
+ name: boolean;
35
+ outline: boolean;
36
+ clip: boolean;
37
+ };
38
+ editingFrame: string | null;
39
+ elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
40
+ editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
41
+ activeTool: {
42
+ lastActiveTool: import("../types").ActiveTool | null;
43
+ locked: boolean;
44
+ fromSelection: boolean;
45
+ } & import("../types").ActiveTool;
46
+ penMode: boolean;
47
+ penDetected: boolean;
48
+ exportBackground: boolean;
49
+ exportEmbedScene: boolean;
50
+ exportWithDarkMode: boolean;
51
+ exportScale: number;
52
+ currentItemStrokeColor: string;
53
+ currentItemBackgroundColor: string;
54
+ currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
55
+ currentItemStrokeWidth: number;
56
+ currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
57
+ currentItemRoughness: number;
58
+ currentItemOpacity: number;
59
+ currentItemFontFamily: number;
60
+ currentItemFontSize: number;
61
+ currentItemTextAlign: string;
62
+ currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
63
+ currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
64
+ currentHoveredFontFamily: number | null;
65
+ currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
66
+ currentItemArrowType: "round" | "sharp" | "elbow";
67
+ viewBackgroundColor: string;
68
+ scrollX: number;
69
+ scrollY: number;
70
+ cursorButton: "up" | "down";
71
+ scrolledOutside: boolean;
72
+ name: string | null;
73
+ isResizing: boolean;
74
+ isRotating: boolean;
75
+ zoom: Readonly<{
76
+ value: import("../types").NormalizedZoomValue;
77
+ }>;
78
+ openMenu: "canvas" | "shape" | null;
79
+ openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
80
+ openSidebar: {
81
+ name: string;
82
+ tab?: string | undefined;
83
+ } | null;
84
+ openDialog: {
85
+ name: "imageExport" | "help" | "jsonExport";
86
+ } | {
87
+ name: "ttd";
88
+ tab: "mermaid" | "text-to-diagram";
89
+ } | {
90
+ name: "commandPalette";
91
+ } | {
92
+ name: "elementLinkSelector";
93
+ sourceElementId: string;
94
+ } | null;
95
+ defaultSidebarDockedPreference: boolean;
96
+ lastPointerDownWith: import("@excalidraw/element/types").PointerType;
97
+ selectedElementIds: Readonly<{
98
+ [id: string]: true;
99
+ }>;
100
+ hoveredElementIds: Readonly<{
101
+ [id: string]: true;
102
+ }>;
103
+ previousSelectedElementIds: {
104
+ [id: string]: true;
105
+ };
106
+ selectedElementsAreBeingDragged: boolean;
107
+ shouldCacheIgnoreZoom: boolean;
108
+ toast: {
109
+ message: string;
110
+ closable?: boolean | undefined;
111
+ duration?: number | undefined;
112
+ } | null;
113
+ zenModeEnabled: boolean;
114
+ theme: import("@excalidraw/element/types").Theme;
115
+ gridSize: number;
116
+ gridStep: number;
117
+ gridModeEnabled: boolean;
118
+ viewModeEnabled: boolean;
119
+ selectedGroupIds: {
120
+ [groupId: string]: boolean;
121
+ };
122
+ editingGroupId: string | null;
123
+ width: number;
124
+ height: number;
125
+ offsetTop: number;
126
+ offsetLeft: number;
127
+ fileHandle: import("browser-fs-access").FileSystemHandle | null;
128
+ collaborators: Map<import("../types").SocketId, Readonly<{
129
+ pointer?: import("../types").CollaboratorPointer | undefined;
130
+ button?: "up" | "down" | undefined;
131
+ selectedElementIds?: Readonly<{
132
+ [id: string]: true;
133
+ }> | undefined;
134
+ username?: string | null | undefined;
135
+ userState?: import("@excalidraw/common").UserIdleState | undefined;
136
+ color?: {
137
+ background: string;
138
+ stroke: string;
139
+ } | undefined;
140
+ avatarUrl?: string | undefined;
141
+ id?: string | undefined;
142
+ socketId?: import("../types").SocketId | undefined;
143
+ isCurrentUser?: boolean | undefined;
144
+ isInCall?: boolean | undefined;
145
+ isSpeaking?: boolean | undefined;
146
+ isMuted?: boolean | undefined;
147
+ }>>;
148
+ stats: {
149
+ open: boolean;
150
+ panels: number;
151
+ };
152
+ currentChartType: import("@excalidraw/element/types").ChartType;
153
+ pasteDialog: {
154
+ shown: false;
155
+ data: null;
156
+ } | {
157
+ shown: true;
158
+ data: import("../charts").Spreadsheet;
159
+ };
160
+ showHyperlinkPopup: false | "editor" | "info";
161
+ selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
162
+ snapLines: readonly import("../snapping").SnapLine[];
163
+ originSnapOffset: {
164
+ x: number;
165
+ y: number;
166
+ } | null;
167
+ objectsSnapModeEnabled: boolean;
168
+ userToFollow: import("../types").UserToFollow | null;
169
+ followedBy: Set<import("../types").SocketId>;
170
+ isCropping: boolean;
171
+ croppingElementId: string | null;
172
+ searchMatches: Readonly<{
173
+ focusedId: string | null;
174
+ matches: readonly import("../types").SearchMatch[];
175
+ }> | null;
176
+ activeLockedId: string | null;
177
+ lockedMultiSelections: {
178
+ [groupId: string]: true;
179
+ };
180
+ };
181
+ } | {
182
+ captureUpdate: "EVENTUALLY";
183
+ appState?: undefined;
184
+ }>;
185
+ keyTest: undefined;
186
+ } & {
187
+ keyTest?: undefined;
188
+ };
189
+ export declare const actionPaste: {
190
+ name: "paste";
191
+ label: string;
192
+ trackEvent: {
193
+ category: "element";
194
+ };
195
+ perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, data: any, app: import("../types").AppClassProperties) => Promise<false | {
196
+ captureUpdate: "EVENTUALLY";
197
+ appState: {
198
+ errorMessage: string;
199
+ contextMenu: {
200
+ items: import("../components/ContextMenu").ContextMenuItems;
201
+ top: number;
202
+ left: number;
203
+ } | null;
204
+ showWelcomeScreen: boolean;
205
+ isLoading: boolean;
206
+ activeEmbeddable: {
207
+ element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
208
+ state: "active" | "hover";
209
+ } | null;
210
+ newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
211
+ resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
212
+ multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
213
+ selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
214
+ isBindingEnabled: boolean;
215
+ startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
216
+ suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
217
+ frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
218
+ frameRendering: {
219
+ enabled: boolean;
220
+ name: boolean;
221
+ outline: boolean;
222
+ clip: boolean;
223
+ };
224
+ editingFrame: string | null;
225
+ elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
226
+ editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
227
+ activeTool: {
228
+ lastActiveTool: import("../types").ActiveTool | null;
229
+ locked: boolean;
230
+ fromSelection: boolean;
231
+ } & import("../types").ActiveTool;
232
+ penMode: boolean;
233
+ penDetected: boolean;
234
+ exportBackground: boolean;
235
+ exportEmbedScene: boolean;
236
+ exportWithDarkMode: boolean;
237
+ exportScale: number;
238
+ currentItemStrokeColor: string;
239
+ currentItemBackgroundColor: string;
240
+ currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
241
+ currentItemStrokeWidth: number;
242
+ currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
243
+ currentItemRoughness: number;
244
+ currentItemOpacity: number;
245
+ currentItemFontFamily: number;
246
+ currentItemFontSize: number;
247
+ currentItemTextAlign: string;
248
+ currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
249
+ currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
250
+ currentHoveredFontFamily: number | null;
251
+ currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
252
+ currentItemArrowType: "round" | "sharp" | "elbow";
253
+ viewBackgroundColor: string;
254
+ scrollX: number;
255
+ scrollY: number;
256
+ cursorButton: "up" | "down";
257
+ scrolledOutside: boolean;
258
+ name: string | null;
259
+ isResizing: boolean;
260
+ isRotating: boolean;
261
+ zoom: Readonly<{
262
+ value: import("../types").NormalizedZoomValue;
263
+ }>;
264
+ openMenu: "canvas" | "shape" | null;
265
+ openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
266
+ openSidebar: {
267
+ name: string;
268
+ tab?: string | undefined;
269
+ } | null;
270
+ openDialog: {
271
+ name: "imageExport" | "help" | "jsonExport";
272
+ } | {
273
+ name: "ttd";
274
+ tab: "mermaid" | "text-to-diagram";
275
+ } | {
276
+ name: "commandPalette";
277
+ } | {
278
+ name: "elementLinkSelector";
279
+ sourceElementId: string;
280
+ } | null;
281
+ defaultSidebarDockedPreference: boolean;
282
+ lastPointerDownWith: import("@excalidraw/element/types").PointerType;
283
+ selectedElementIds: Readonly<{
284
+ [id: string]: true;
285
+ }>;
286
+ hoveredElementIds: Readonly<{
287
+ [id: string]: true;
288
+ }>;
289
+ previousSelectedElementIds: {
290
+ [id: string]: true;
291
+ };
292
+ selectedElementsAreBeingDragged: boolean;
293
+ shouldCacheIgnoreZoom: boolean;
294
+ toast: {
295
+ message: string;
296
+ closable?: boolean | undefined;
297
+ duration?: number | undefined;
298
+ } | null;
299
+ zenModeEnabled: boolean;
300
+ theme: import("@excalidraw/element/types").Theme;
301
+ gridSize: number;
302
+ gridStep: number;
303
+ gridModeEnabled: boolean;
304
+ viewModeEnabled: boolean;
305
+ selectedGroupIds: {
306
+ [groupId: string]: boolean;
307
+ };
308
+ editingGroupId: string | null;
309
+ width: number;
310
+ height: number;
311
+ offsetTop: number;
312
+ offsetLeft: number;
313
+ fileHandle: import("browser-fs-access").FileSystemHandle | null;
314
+ collaborators: Map<import("../types").SocketId, Readonly<{
315
+ pointer?: import("../types").CollaboratorPointer | undefined;
316
+ button?: "up" | "down" | undefined;
317
+ selectedElementIds?: Readonly<{
318
+ [id: string]: true;
319
+ }> | undefined;
320
+ username?: string | null | undefined;
321
+ userState?: import("@excalidraw/common").UserIdleState | undefined;
322
+ color?: {
323
+ background: string;
324
+ stroke: string;
325
+ } | undefined;
326
+ avatarUrl?: string | undefined;
327
+ id?: string | undefined;
328
+ socketId?: import("../types").SocketId | undefined;
329
+ isCurrentUser?: boolean | undefined;
330
+ isInCall?: boolean | undefined;
331
+ isSpeaking?: boolean | undefined;
332
+ isMuted?: boolean | undefined;
333
+ }>>;
334
+ stats: {
335
+ open: boolean;
336
+ panels: number;
337
+ };
338
+ currentChartType: import("@excalidraw/element/types").ChartType;
339
+ pasteDialog: {
340
+ shown: false;
341
+ data: null;
342
+ } | {
343
+ shown: true;
344
+ data: import("../charts").Spreadsheet;
345
+ };
346
+ showHyperlinkPopup: false | "editor" | "info";
347
+ selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
348
+ snapLines: readonly import("../snapping").SnapLine[];
349
+ originSnapOffset: {
350
+ x: number;
351
+ y: number;
352
+ } | null;
353
+ objectsSnapModeEnabled: boolean;
354
+ userToFollow: import("../types").UserToFollow | null;
355
+ followedBy: Set<import("../types").SocketId>;
356
+ isCropping: boolean;
357
+ croppingElementId: string | null;
358
+ searchMatches: Readonly<{
359
+ focusedId: string | null;
360
+ matches: readonly import("../types").SearchMatch[];
361
+ }> | null;
362
+ activeLockedId: string | null;
363
+ lockedMultiSelections: {
364
+ [groupId: string]: true;
365
+ };
366
+ };
367
+ } | {
368
+ captureUpdate: "EVENTUALLY";
369
+ appState?: undefined;
370
+ }>;
371
+ keyTest: undefined;
372
+ } & {
373
+ keyTest?: undefined;
374
+ };
375
+ export declare const actionCut: {
376
+ name: "cut";
377
+ label: string;
378
+ icon: import("react/jsx-runtime").JSX.Element;
379
+ trackEvent: {
380
+ category: "element";
381
+ };
382
+ perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, event: ClipboardEvent | null, app: import("../types").AppClassProperties) => false | {
383
+ elements: import("@excalidraw/element/types").OrderedExcalidrawElement[];
384
+ appState: {
385
+ selectedLinearElement: null;
386
+ contextMenu: {
387
+ items: import("../components/ContextMenu").ContextMenuItems;
388
+ top: number;
389
+ left: number;
390
+ } | null;
391
+ showWelcomeScreen: boolean;
392
+ isLoading: boolean;
393
+ errorMessage: import("react").ReactNode;
394
+ activeEmbeddable: {
395
+ element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
396
+ state: "active" | "hover";
397
+ } | null;
398
+ newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
399
+ resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
400
+ multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
401
+ selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
402
+ isBindingEnabled: boolean;
403
+ startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
404
+ suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
405
+ frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
406
+ frameRendering: {
407
+ enabled: boolean;
408
+ name: boolean;
409
+ outline: boolean;
410
+ clip: boolean;
411
+ };
412
+ editingFrame: string | null;
413
+ elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
414
+ editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
415
+ activeTool: {
416
+ lastActiveTool: import("../types").ActiveTool | null;
417
+ locked: boolean;
418
+ fromSelection: boolean;
419
+ } & import("../types").ActiveTool;
420
+ penMode: boolean;
421
+ penDetected: boolean;
422
+ exportBackground: boolean;
423
+ exportEmbedScene: boolean;
424
+ exportWithDarkMode: boolean;
425
+ exportScale: number;
426
+ currentItemStrokeColor: string;
427
+ currentItemBackgroundColor: string;
428
+ currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
429
+ currentItemStrokeWidth: number;
430
+ currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
431
+ currentItemRoughness: number;
432
+ currentItemOpacity: number;
433
+ currentItemFontFamily: number;
434
+ currentItemFontSize: number;
435
+ currentItemTextAlign: string;
436
+ currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
437
+ currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
438
+ currentHoveredFontFamily: number | null;
439
+ currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
440
+ currentItemArrowType: "round" | "sharp" | "elbow";
441
+ viewBackgroundColor: string;
442
+ scrollX: number;
443
+ scrollY: number;
444
+ cursorButton: "up" | "down";
445
+ scrolledOutside: boolean;
446
+ name: string | null;
447
+ isResizing: boolean;
448
+ isRotating: boolean;
449
+ zoom: Readonly<{
450
+ value: import("../types").NormalizedZoomValue;
451
+ }>;
452
+ openMenu: "canvas" | "shape" | null;
453
+ openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
454
+ openSidebar: {
455
+ name: string;
456
+ tab?: string | undefined;
457
+ } | null;
458
+ openDialog: {
459
+ name: "imageExport" | "help" | "jsonExport";
460
+ } | {
461
+ name: "ttd";
462
+ tab: "mermaid" | "text-to-diagram";
463
+ } | {
464
+ name: "commandPalette";
465
+ } | {
466
+ name: "elementLinkSelector";
467
+ sourceElementId: string;
468
+ } | null;
469
+ defaultSidebarDockedPreference: boolean;
470
+ lastPointerDownWith: import("@excalidraw/element/types").PointerType;
471
+ selectedElementIds: Readonly<{
472
+ [id: string]: true;
473
+ }>;
474
+ hoveredElementIds: Readonly<{
475
+ [id: string]: true;
476
+ }>;
477
+ previousSelectedElementIds: {
478
+ [id: string]: true;
479
+ };
480
+ selectedElementsAreBeingDragged: boolean;
481
+ shouldCacheIgnoreZoom: boolean;
482
+ toast: {
483
+ message: string;
484
+ closable?: boolean | undefined;
485
+ duration?: number | undefined;
486
+ } | null;
487
+ zenModeEnabled: boolean;
488
+ theme: import("@excalidraw/element/types").Theme;
489
+ gridSize: number;
490
+ gridStep: number;
491
+ gridModeEnabled: boolean;
492
+ viewModeEnabled: boolean;
493
+ selectedGroupIds: {
494
+ [groupId: string]: boolean;
495
+ };
496
+ editingGroupId: string | null;
497
+ width: number;
498
+ height: number;
499
+ offsetTop: number;
500
+ offsetLeft: number;
501
+ fileHandle: import("browser-fs-access").FileSystemHandle | null;
502
+ collaborators: Map<import("../types").SocketId, Readonly<{
503
+ pointer?: import("../types").CollaboratorPointer | undefined;
504
+ button?: "up" | "down" | undefined;
505
+ selectedElementIds?: Readonly<{
506
+ [id: string]: true;
507
+ }> | undefined;
508
+ username?: string | null | undefined;
509
+ userState?: import("@excalidraw/common").UserIdleState | undefined;
510
+ color?: {
511
+ background: string;
512
+ stroke: string;
513
+ } | undefined;
514
+ avatarUrl?: string | undefined;
515
+ id?: string | undefined;
516
+ socketId?: import("../types").SocketId | undefined;
517
+ isCurrentUser?: boolean | undefined;
518
+ isInCall?: boolean | undefined;
519
+ isSpeaking?: boolean | undefined;
520
+ isMuted?: boolean | undefined;
521
+ }>>;
522
+ stats: {
523
+ open: boolean;
524
+ panels: number;
525
+ };
526
+ currentChartType: import("@excalidraw/element/types").ChartType;
527
+ pasteDialog: {
528
+ shown: false;
529
+ data: null;
530
+ } | {
531
+ shown: true;
532
+ data: import("../charts").Spreadsheet;
533
+ };
534
+ showHyperlinkPopup: false | "editor" | "info";
535
+ snapLines: readonly import("../snapping").SnapLine[];
536
+ originSnapOffset: {
537
+ x: number;
538
+ y: number;
539
+ } | null;
540
+ objectsSnapModeEnabled: boolean;
541
+ userToFollow: import("../types").UserToFollow | null;
542
+ followedBy: Set<import("../types").SocketId>;
543
+ isCropping: boolean;
544
+ croppingElementId: string | null;
545
+ searchMatches: Readonly<{
546
+ focusedId: string | null;
547
+ matches: readonly import("../types").SearchMatch[];
548
+ }> | null;
549
+ activeLockedId: string | null;
550
+ lockedMultiSelections: {
551
+ [groupId: string]: true;
552
+ };
553
+ };
554
+ captureUpdate: "IMMEDIATELY";
555
+ } | {
556
+ elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[];
557
+ appState: {
558
+ selectedLinearElement: {
559
+ selectedPointsIndices: number[];
560
+ startBindingElement: import("@excalidraw/element/types").ExcalidrawBindableElement | "keep" | null;
561
+ endBindingElement: import("@excalidraw/element/types").ExcalidrawBindableElement | "keep" | null;
562
+ elementId: string & {
563
+ _brand: "excalidrawLinearElementId";
564
+ };
565
+ pointerDownState: Readonly<{
566
+ prevSelectedPointsIndices: readonly number[] | null;
567
+ lastClickedPoint: number;
568
+ lastClickedIsEndPoint: boolean;
569
+ origin: Readonly<{
570
+ x: number;
571
+ y: number;
572
+ }> | null;
573
+ segmentMidpoint: {
574
+ value: import("@excalidraw/math").GlobalPoint | null;
575
+ index: number | null;
576
+ added: boolean;
577
+ };
578
+ }>;
579
+ isDragging: boolean;
580
+ lastUncommittedPoint: import("@excalidraw/math").LocalPoint | null;
581
+ pointerOffset: Readonly<{
582
+ x: number;
583
+ y: number;
584
+ }>;
585
+ hoverPointIndex: number;
586
+ segmentMidPointHoveredCoords: import("@excalidraw/math").GlobalPoint | null;
587
+ elbowed: boolean;
588
+ customLineAngle: number | null;
589
+ isEditing: boolean;
590
+ };
591
+ contextMenu: {
592
+ items: import("../components/ContextMenu").ContextMenuItems;
593
+ top: number;
594
+ left: number;
595
+ } | null;
596
+ showWelcomeScreen: boolean;
597
+ isLoading: boolean;
598
+ errorMessage: import("react").ReactNode;
599
+ activeEmbeddable: {
600
+ element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
601
+ state: "active" | "hover";
602
+ } | null;
603
+ newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
604
+ resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
605
+ multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
606
+ selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
607
+ isBindingEnabled: boolean;
608
+ startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
609
+ suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
610
+ frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
611
+ frameRendering: {
612
+ enabled: boolean;
613
+ name: boolean;
614
+ outline: boolean;
615
+ clip: boolean;
616
+ };
617
+ editingFrame: string | null;
618
+ elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
619
+ editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
620
+ activeTool: {
621
+ lastActiveTool: import("../types").ActiveTool | null;
622
+ locked: boolean;
623
+ fromSelection: boolean;
624
+ } & import("../types").ActiveTool;
625
+ penMode: boolean;
626
+ penDetected: boolean;
627
+ exportBackground: boolean;
628
+ exportEmbedScene: boolean;
629
+ exportWithDarkMode: boolean;
630
+ exportScale: number;
631
+ currentItemStrokeColor: string;
632
+ currentItemBackgroundColor: string;
633
+ currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
634
+ currentItemStrokeWidth: number;
635
+ currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
636
+ currentItemRoughness: number;
637
+ currentItemOpacity: number;
638
+ currentItemFontFamily: number;
639
+ currentItemFontSize: number;
640
+ currentItemTextAlign: string;
641
+ currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
642
+ currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
643
+ currentHoveredFontFamily: number | null;
644
+ currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
645
+ currentItemArrowType: "round" | "sharp" | "elbow";
646
+ viewBackgroundColor: string;
647
+ scrollX: number;
648
+ scrollY: number;
649
+ cursorButton: "up" | "down";
650
+ scrolledOutside: boolean;
651
+ name: string | null;
652
+ isResizing: boolean;
653
+ isRotating: boolean;
654
+ zoom: Readonly<{
655
+ value: import("../types").NormalizedZoomValue;
656
+ }>;
657
+ openMenu: "canvas" | "shape" | null;
658
+ openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
659
+ openSidebar: {
660
+ name: string;
661
+ tab?: string | undefined;
662
+ } | null;
663
+ openDialog: {
664
+ name: "imageExport" | "help" | "jsonExport";
665
+ } | {
666
+ name: "ttd";
667
+ tab: "mermaid" | "text-to-diagram";
668
+ } | {
669
+ name: "commandPalette";
670
+ } | {
671
+ name: "elementLinkSelector";
672
+ sourceElementId: string;
673
+ } | null;
674
+ defaultSidebarDockedPreference: boolean;
675
+ lastPointerDownWith: import("@excalidraw/element/types").PointerType;
676
+ selectedElementIds: Readonly<{
677
+ [id: string]: true;
678
+ }>;
679
+ hoveredElementIds: Readonly<{
680
+ [id: string]: true;
681
+ }>;
682
+ previousSelectedElementIds: {
683
+ [id: string]: true;
684
+ };
685
+ selectedElementsAreBeingDragged: boolean;
686
+ shouldCacheIgnoreZoom: boolean;
687
+ toast: {
688
+ message: string;
689
+ closable?: boolean | undefined;
690
+ duration?: number | undefined;
691
+ } | null;
692
+ zenModeEnabled: boolean;
693
+ theme: import("@excalidraw/element/types").Theme;
694
+ gridSize: number;
695
+ gridStep: number;
696
+ gridModeEnabled: boolean;
697
+ viewModeEnabled: boolean;
698
+ selectedGroupIds: {
699
+ [groupId: string]: boolean;
700
+ };
701
+ editingGroupId: string | null;
702
+ width: number;
703
+ height: number;
704
+ offsetTop: number;
705
+ offsetLeft: number;
706
+ fileHandle: import("browser-fs-access").FileSystemHandle | null;
707
+ collaborators: Map<import("../types").SocketId, Readonly<{
708
+ pointer?: import("../types").CollaboratorPointer | undefined;
709
+ button?: "up" | "down" | undefined;
710
+ selectedElementIds?: Readonly<{
711
+ [id: string]: true;
712
+ }> | undefined;
713
+ username?: string | null | undefined;
714
+ userState?: import("@excalidraw/common").UserIdleState | undefined;
715
+ color?: {
716
+ background: string;
717
+ stroke: string;
718
+ } | undefined;
719
+ avatarUrl?: string | undefined;
720
+ id?: string | undefined;
721
+ socketId?: import("../types").SocketId | undefined;
722
+ isCurrentUser?: boolean | undefined;
723
+ isInCall?: boolean | undefined;
724
+ isSpeaking?: boolean | undefined;
725
+ isMuted?: boolean | undefined;
726
+ }>>;
727
+ stats: {
728
+ open: boolean;
729
+ panels: number;
730
+ };
731
+ currentChartType: import("@excalidraw/element/types").ChartType;
732
+ pasteDialog: {
733
+ shown: false;
734
+ data: null;
735
+ } | {
736
+ shown: true;
737
+ data: import("../charts").Spreadsheet;
738
+ };
739
+ showHyperlinkPopup: false | "editor" | "info";
740
+ snapLines: readonly import("../snapping").SnapLine[];
741
+ originSnapOffset: {
742
+ x: number;
743
+ y: number;
744
+ } | null;
745
+ objectsSnapModeEnabled: boolean;
746
+ userToFollow: import("../types").UserToFollow | null;
747
+ followedBy: Set<import("../types").SocketId>;
748
+ isCropping: boolean;
749
+ croppingElementId: string | null;
750
+ searchMatches: Readonly<{
751
+ focusedId: string | null;
752
+ matches: readonly import("../types").SearchMatch[];
753
+ }> | null;
754
+ activeLockedId: string | null;
755
+ lockedMultiSelections: {
756
+ [groupId: string]: true;
757
+ };
758
+ };
759
+ captureUpdate: "IMMEDIATELY";
760
+ } | {
761
+ elements: import("@excalidraw/element/types").ExcalidrawElement[];
762
+ appState: {
763
+ activeTool: {
764
+ lastActiveTool: import("../types").ActiveTool | null;
765
+ locked: boolean;
766
+ fromSelection: boolean;
767
+ } & import("../types").ActiveTool;
768
+ multiElement: null;
769
+ activeEmbeddable: null;
770
+ selectedLinearElement: null;
771
+ editingGroupId: string | null;
772
+ selectedElementIds: Readonly<{
773
+ [id: string]: true;
774
+ }>;
775
+ selectedGroupIds: {
776
+ [groupId: string]: boolean;
777
+ };
778
+ contextMenu: {
779
+ items: import("../components/ContextMenu").ContextMenuItems;
780
+ top: number;
781
+ left: number;
782
+ } | null;
783
+ showWelcomeScreen: boolean;
784
+ isLoading: boolean;
785
+ errorMessage: import("react").ReactNode;
786
+ newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
787
+ resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
788
+ selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
789
+ isBindingEnabled: boolean;
790
+ startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
791
+ suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
792
+ frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
793
+ frameRendering: {
794
+ enabled: boolean;
795
+ name: boolean;
796
+ outline: boolean;
797
+ clip: boolean;
798
+ };
799
+ editingFrame: string | null;
800
+ elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
801
+ editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
802
+ penMode: boolean;
803
+ penDetected: boolean;
804
+ exportBackground: boolean;
805
+ exportEmbedScene: boolean;
806
+ exportWithDarkMode: boolean;
807
+ exportScale: number;
808
+ currentItemStrokeColor: string;
809
+ currentItemBackgroundColor: string;
810
+ currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
811
+ currentItemStrokeWidth: number;
812
+ currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
813
+ currentItemRoughness: number;
814
+ currentItemOpacity: number;
815
+ currentItemFontFamily: number;
816
+ currentItemFontSize: number;
817
+ currentItemTextAlign: string;
818
+ currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
819
+ currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
820
+ currentHoveredFontFamily: number | null;
821
+ currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
822
+ currentItemArrowType: "round" | "sharp" | "elbow";
823
+ viewBackgroundColor: string;
824
+ scrollX: number;
825
+ scrollY: number;
826
+ cursorButton: "up" | "down";
827
+ scrolledOutside: boolean;
828
+ name: string | null;
829
+ isResizing: boolean;
830
+ isRotating: boolean;
831
+ zoom: Readonly<{
832
+ value: import("../types").NormalizedZoomValue;
833
+ }>;
834
+ openMenu: "canvas" | "shape" | null;
835
+ openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
836
+ openSidebar: {
837
+ name: string;
838
+ tab?: string | undefined;
839
+ } | null;
840
+ openDialog: {
841
+ name: "imageExport" | "help" | "jsonExport";
842
+ } | {
843
+ name: "ttd";
844
+ tab: "mermaid" | "text-to-diagram";
845
+ } | {
846
+ name: "commandPalette";
847
+ } | {
848
+ name: "elementLinkSelector";
849
+ sourceElementId: string;
850
+ } | null;
851
+ defaultSidebarDockedPreference: boolean;
852
+ lastPointerDownWith: import("@excalidraw/element/types").PointerType;
853
+ hoveredElementIds: Readonly<{
854
+ [id: string]: true;
855
+ }>;
856
+ previousSelectedElementIds: {
857
+ [id: string]: true;
858
+ };
859
+ selectedElementsAreBeingDragged: boolean;
860
+ shouldCacheIgnoreZoom: boolean;
861
+ toast: {
862
+ message: string;
863
+ closable?: boolean | undefined;
864
+ duration?: number | undefined;
865
+ } | null;
866
+ zenModeEnabled: boolean;
867
+ theme: import("@excalidraw/element/types").Theme;
868
+ gridSize: number;
869
+ gridStep: number;
870
+ gridModeEnabled: boolean;
871
+ viewModeEnabled: boolean;
872
+ width: number;
873
+ height: number;
874
+ offsetTop: number;
875
+ offsetLeft: number;
876
+ fileHandle: import("browser-fs-access").FileSystemHandle | null;
877
+ collaborators: Map<import("../types").SocketId, Readonly<{
878
+ pointer?: import("../types").CollaboratorPointer | undefined;
879
+ button?: "up" | "down" | undefined;
880
+ selectedElementIds?: Readonly<{
881
+ [id: string]: true;
882
+ }> | undefined;
883
+ username?: string | null | undefined;
884
+ userState?: import("@excalidraw/common").UserIdleState | undefined;
885
+ color?: {
886
+ background: string;
887
+ stroke: string;
888
+ } | undefined;
889
+ avatarUrl?: string | undefined;
890
+ id?: string | undefined;
891
+ socketId?: import("../types").SocketId | undefined;
892
+ isCurrentUser?: boolean | undefined;
893
+ isInCall?: boolean | undefined;
894
+ isSpeaking?: boolean | undefined;
895
+ isMuted?: boolean | undefined;
896
+ }>>;
897
+ stats: {
898
+ open: boolean;
899
+ panels: number;
900
+ };
901
+ currentChartType: import("@excalidraw/element/types").ChartType;
902
+ pasteDialog: {
903
+ shown: false;
904
+ data: null;
905
+ } | {
906
+ shown: true;
907
+ data: import("../charts").Spreadsheet;
908
+ };
909
+ showHyperlinkPopup: false | "editor" | "info";
910
+ snapLines: readonly import("../snapping").SnapLine[];
911
+ originSnapOffset: {
912
+ x: number;
913
+ y: number;
914
+ } | null;
915
+ objectsSnapModeEnabled: boolean;
916
+ userToFollow: import("../types").UserToFollow | null;
917
+ followedBy: Set<import("../types").SocketId>;
918
+ isCropping: boolean;
919
+ croppingElementId: string | null;
920
+ searchMatches: Readonly<{
921
+ focusedId: string | null;
922
+ matches: readonly import("../types").SearchMatch[];
923
+ }> | null;
924
+ activeLockedId: string | null;
925
+ lockedMultiSelections: {
926
+ [groupId: string]: true;
927
+ };
928
+ };
929
+ captureUpdate: "IMMEDIATELY" | "EVENTUALLY";
930
+ };
931
+ keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
932
+ } & {
933
+ keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
934
+ };
935
+ export declare const actionCopyAsSvg: {
936
+ name: "copyAsSvg";
937
+ label: string;
938
+ icon: import("react/jsx-runtime").JSX.Element;
939
+ trackEvent: {
940
+ category: "element";
941
+ };
942
+ perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, _data: any, app: import("../types").AppClassProperties) => Promise<{
943
+ captureUpdate: "EVENTUALLY";
944
+ appState?: undefined;
945
+ } | {
946
+ appState: {
947
+ toast: {
948
+ message: string;
949
+ };
950
+ errorMessage?: undefined;
951
+ };
952
+ captureUpdate: "EVENTUALLY";
953
+ } | {
954
+ appState: {
955
+ errorMessage: any;
956
+ toast?: undefined;
957
+ };
958
+ captureUpdate: "EVENTUALLY";
959
+ }>;
960
+ predicate: (elements: readonly import("@excalidraw/element/types").ExcalidrawElement[]) => boolean;
961
+ keywords: string[];
962
+ } & {
963
+ keyTest?: undefined;
964
+ };
965
+ export declare const actionCopyAsPng: {
966
+ name: "copyAsPng";
967
+ label: string;
968
+ icon: import("react/jsx-runtime").JSX.Element;
969
+ trackEvent: {
970
+ category: "element";
971
+ };
972
+ perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, _data: any, app: import("../types").AppClassProperties) => Promise<{
973
+ captureUpdate: "EVENTUALLY";
974
+ appState?: undefined;
975
+ } | {
976
+ appState: {
977
+ errorMessage: any;
978
+ contextMenu: {
979
+ items: import("../components/ContextMenu").ContextMenuItems;
980
+ top: number;
981
+ left: number;
982
+ } | null;
983
+ showWelcomeScreen: boolean;
984
+ isLoading: boolean;
985
+ activeEmbeddable: {
986
+ element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
987
+ state: "active" | "hover";
988
+ } | null;
989
+ newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
990
+ resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
991
+ multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
992
+ selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
993
+ isBindingEnabled: boolean;
994
+ startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
995
+ suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
996
+ frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
997
+ frameRendering: {
998
+ enabled: boolean;
999
+ name: boolean;
1000
+ outline: boolean;
1001
+ clip: boolean;
1002
+ };
1003
+ editingFrame: string | null;
1004
+ elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
1005
+ editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
1006
+ activeTool: {
1007
+ lastActiveTool: import("../types").ActiveTool | null;
1008
+ locked: boolean;
1009
+ fromSelection: boolean;
1010
+ } & import("../types").ActiveTool;
1011
+ penMode: boolean;
1012
+ penDetected: boolean;
1013
+ exportBackground: boolean;
1014
+ exportEmbedScene: boolean;
1015
+ exportWithDarkMode: boolean;
1016
+ exportScale: number;
1017
+ currentItemStrokeColor: string;
1018
+ currentItemBackgroundColor: string;
1019
+ currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
1020
+ currentItemStrokeWidth: number;
1021
+ currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
1022
+ currentItemRoughness: number;
1023
+ currentItemOpacity: number;
1024
+ currentItemFontFamily: number;
1025
+ currentItemFontSize: number;
1026
+ currentItemTextAlign: string;
1027
+ currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
1028
+ currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
1029
+ currentHoveredFontFamily: number | null;
1030
+ currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
1031
+ currentItemArrowType: "round" | "sharp" | "elbow";
1032
+ viewBackgroundColor: string;
1033
+ scrollX: number;
1034
+ scrollY: number;
1035
+ cursorButton: "up" | "down";
1036
+ scrolledOutside: boolean;
1037
+ name: string | null;
1038
+ isResizing: boolean;
1039
+ isRotating: boolean;
1040
+ zoom: Readonly<{
1041
+ value: import("../types").NormalizedZoomValue;
1042
+ }>;
1043
+ openMenu: "canvas" | "shape" | null;
1044
+ openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
1045
+ openSidebar: {
1046
+ name: string;
1047
+ tab?: string | undefined;
1048
+ } | null;
1049
+ openDialog: {
1050
+ name: "imageExport" | "help" | "jsonExport";
1051
+ } | {
1052
+ name: "ttd";
1053
+ tab: "mermaid" | "text-to-diagram";
1054
+ } | {
1055
+ name: "commandPalette";
1056
+ } | {
1057
+ name: "elementLinkSelector";
1058
+ sourceElementId: string;
1059
+ } | null;
1060
+ defaultSidebarDockedPreference: boolean;
1061
+ lastPointerDownWith: import("@excalidraw/element/types").PointerType;
1062
+ selectedElementIds: Readonly<{
1063
+ [id: string]: true;
1064
+ }>;
1065
+ hoveredElementIds: Readonly<{
1066
+ [id: string]: true;
1067
+ }>;
1068
+ previousSelectedElementIds: {
1069
+ [id: string]: true;
1070
+ };
1071
+ selectedElementsAreBeingDragged: boolean;
1072
+ shouldCacheIgnoreZoom: boolean;
1073
+ toast: {
1074
+ message: string;
1075
+ closable?: boolean | undefined;
1076
+ duration?: number | undefined;
1077
+ } | null;
1078
+ zenModeEnabled: boolean;
1079
+ theme: import("@excalidraw/element/types").Theme;
1080
+ gridSize: number;
1081
+ gridStep: number;
1082
+ gridModeEnabled: boolean;
1083
+ viewModeEnabled: boolean;
1084
+ selectedGroupIds: {
1085
+ [groupId: string]: boolean;
1086
+ };
1087
+ editingGroupId: string | null;
1088
+ width: number;
1089
+ height: number;
1090
+ offsetTop: number;
1091
+ offsetLeft: number;
1092
+ fileHandle: import("browser-fs-access").FileSystemHandle | null;
1093
+ collaborators: Map<import("../types").SocketId, Readonly<{
1094
+ pointer?: import("../types").CollaboratorPointer | undefined;
1095
+ button?: "up" | "down" | undefined;
1096
+ selectedElementIds?: Readonly<{
1097
+ [id: string]: true;
1098
+ }> | undefined;
1099
+ username?: string | null | undefined;
1100
+ userState?: import("@excalidraw/common").UserIdleState | undefined;
1101
+ color?: {
1102
+ background: string;
1103
+ stroke: string;
1104
+ } | undefined;
1105
+ avatarUrl?: string | undefined;
1106
+ id?: string | undefined;
1107
+ socketId?: import("../types").SocketId | undefined;
1108
+ isCurrentUser?: boolean | undefined;
1109
+ isInCall?: boolean | undefined;
1110
+ isSpeaking?: boolean | undefined;
1111
+ isMuted?: boolean | undefined;
1112
+ }>>;
1113
+ stats: {
1114
+ open: boolean;
1115
+ panels: number;
1116
+ };
1117
+ currentChartType: import("@excalidraw/element/types").ChartType;
1118
+ pasteDialog: {
1119
+ shown: false;
1120
+ data: null;
1121
+ } | {
1122
+ shown: true;
1123
+ data: import("../charts").Spreadsheet;
1124
+ };
1125
+ showHyperlinkPopup: false | "editor" | "info";
1126
+ selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
1127
+ snapLines: readonly import("../snapping").SnapLine[];
1128
+ originSnapOffset: {
1129
+ x: number;
1130
+ y: number;
1131
+ } | null;
1132
+ objectsSnapModeEnabled: boolean;
1133
+ userToFollow: import("../types").UserToFollow | null;
1134
+ followedBy: Set<import("../types").SocketId>;
1135
+ isCropping: boolean;
1136
+ croppingElementId: string | null;
1137
+ searchMatches: Readonly<{
1138
+ focusedId: string | null;
1139
+ matches: readonly import("../types").SearchMatch[];
1140
+ }> | null;
1141
+ activeLockedId: string | null;
1142
+ lockedMultiSelections: {
1143
+ [groupId: string]: true;
1144
+ };
1145
+ };
1146
+ captureUpdate: "EVENTUALLY";
1147
+ }>;
1148
+ predicate: (elements: readonly import("@excalidraw/element/types").ExcalidrawElement[]) => boolean;
1149
+ keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
1150
+ keywords: string[];
1151
+ } & {
1152
+ keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
1153
+ };
1154
+ export declare const copyText: {
1155
+ name: "copyText";
1156
+ label: string;
1157
+ trackEvent: {
1158
+ category: "element";
1159
+ };
1160
+ perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, _: any, app: import("../types").AppClassProperties) => {
1161
+ captureUpdate: "EVENTUALLY";
1162
+ };
1163
+ predicate: (elements: readonly import("@excalidraw/element/types").ExcalidrawElement[], appState: import("../types").AppState, _: import("../types").ExcalidrawProps, app: import("../types").AppClassProperties) => boolean;
1164
+ keywords: string[];
1165
+ } & {
1166
+ keyTest?: undefined;
1167
+ };