@zsviczian/excalidraw 0.17.1-obsidian-58 → 0.17.6-10

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