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