@zsviczian/excalidraw 0.17.1-obsidian-38 → 0.17.1-obsidian-39

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