@zsviczian/excalidraw 0.17.6-12 → 0.17.6-14

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