@zsviczian/excalidraw 0.18.0-30 → 0.18.0-30-printFrame-test

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