@zsviczian/excalidraw 0.18.0-12 → 0.18.0-14

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