@zsviczian/excalidraw 0.17.6-3 → 0.17.6-30

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 (390) hide show
  1. package/dist/excalidraw.development.js +13100 -1540
  2. package/dist/excalidraw.production.min.js +1 -1
  3. package/dist/excalidraw.production.min.js.LICENSE.txt +21 -1
  4. package/dist/styles.development.css +490 -376
  5. package/dist/styles.production.css +10 -8
  6. package/package.json +5 -4
  7. package/types/excalidraw/actions/actionAddToLibrary.d.ts +0 -605
  8. package/types/excalidraw/actions/actionAlign.d.ts +0 -108
  9. package/types/excalidraw/actions/actionBoundText.d.ts +0 -440
  10. package/types/excalidraw/actions/actionCanvas.d.ts +0 -2958
  11. package/types/excalidraw/actions/actionClipboard.d.ts +0 -1322
  12. package/types/excalidraw/actions/actionDeleteSelected.d.ts +0 -640
  13. package/types/excalidraw/actions/actionDistribute.d.ts +0 -34
  14. package/types/excalidraw/actions/actionDuplicateSelection.d.ts +0 -21
  15. package/types/excalidraw/actions/actionElementLock.d.ts +0 -428
  16. package/types/excalidraw/actions/actionExport.d.ts +0 -1884
  17. package/types/excalidraw/actions/actionFinalize.d.ts +0 -409
  18. package/types/excalidraw/actions/actionFlip.d.ts +0 -34
  19. package/types/excalidraw/actions/actionFrame.d.ts +0 -855
  20. package/types/excalidraw/actions/actionGroup.d.ts +0 -438
  21. package/types/excalidraw/actions/actionHistory.d.ts +0 -7
  22. package/types/excalidraw/actions/actionLinearEditor.d.ts +0 -215
  23. package/types/excalidraw/actions/actionLink.d.ts +0 -215
  24. package/types/excalidraw/actions/actionMenu.d.ts +0 -628
  25. package/types/excalidraw/actions/actionNavigate.d.ts +0 -414
  26. package/types/excalidraw/actions/actionProperties.d.ts +0 -3156
  27. package/types/excalidraw/actions/actionSelectAll.d.ts +0 -214
  28. package/types/excalidraw/actions/actionStyles.d.ts +0 -228
  29. package/types/excalidraw/actions/actionTextAutoResize.d.ts +0 -17
  30. package/types/excalidraw/actions/actionToggleGridMode.d.ts +0 -217
  31. package/types/excalidraw/actions/actionToggleObjectsSnapMode.d.ts +0 -215
  32. package/types/excalidraw/actions/actionToggleSearchMenu.d.ts +0 -407
  33. package/types/excalidraw/actions/actionToggleStats.d.ts +0 -215
  34. package/types/excalidraw/actions/actionToggleViewMode.d.ts +0 -216
  35. package/types/excalidraw/actions/actionToggleZenMode.d.ts +0 -216
  36. package/types/excalidraw/actions/actionZindex.d.ts +0 -74
  37. package/types/excalidraw/actions/index.d.ts +0 -26
  38. package/types/excalidraw/actions/manager.d.ts +0 -21
  39. package/types/excalidraw/actions/register.d.ts +0 -5
  40. package/types/excalidraw/actions/shortcuts.d.ts +0 -4
  41. package/types/excalidraw/actions/types.d.ts +0 -46
  42. package/types/excalidraw/align.d.ts +0 -6
  43. package/types/excalidraw/analytics.d.ts +0 -1
  44. package/types/excalidraw/animated-trail.d.ts +0 -33
  45. package/types/excalidraw/animation-frame-handler.d.ts +0 -16
  46. package/types/excalidraw/appState.d.ts +0 -89
  47. package/types/excalidraw/binaryheap.d.ts +0 -12
  48. package/types/excalidraw/change.d.ts +0 -191
  49. package/types/excalidraw/charts.d.ts +0 -27
  50. package/types/excalidraw/clients.d.ts +0 -14
  51. package/types/excalidraw/clipboard.d.ts +0 -44
  52. package/types/excalidraw/colors.d.ts +0 -61
  53. package/types/excalidraw/components/Actions.d.ts +0 -34
  54. package/types/excalidraw/components/ActiveConfirmDialog.d.ts +0 -4
  55. package/types/excalidraw/components/App.d.ts +0 -535
  56. package/types/excalidraw/components/Avatar.d.ts +0 -11
  57. package/types/excalidraw/components/BraveMeasureTextError.d.ts +0 -2
  58. package/types/excalidraw/components/Button.d.ts +0 -17
  59. package/types/excalidraw/components/ButtonIcon.d.ts +0 -14
  60. package/types/excalidraw/components/ButtonIconCycle.d.ts +0 -10
  61. package/types/excalidraw/components/ButtonIconSelect.d.ts +0 -19
  62. package/types/excalidraw/components/ButtonSelect.d.ts +0 -9
  63. package/types/excalidraw/components/ButtonSeparator.d.ts +0 -1
  64. package/types/excalidraw/components/Card.d.ts +0 -6
  65. package/types/excalidraw/components/CheckboxItem.d.ts +0 -8
  66. package/types/excalidraw/components/ColorPicker/ColorInput.d.ts +0 -9
  67. package/types/excalidraw/components/ColorPicker/ColorPicker.d.ts +0 -19
  68. package/types/excalidraw/components/ColorPicker/CustomColorList.d.ts +0 -8
  69. package/types/excalidraw/components/ColorPicker/HotkeyLabel.d.ts +0 -8
  70. package/types/excalidraw/components/ColorPicker/Picker.d.ts +0 -18
  71. package/types/excalidraw/components/ColorPicker/PickerColorList.d.ts +0 -10
  72. package/types/excalidraw/components/ColorPicker/PickerHeading.d.ts +0 -5
  73. package/types/excalidraw/components/ColorPicker/ShadeList.d.ts +0 -8
  74. package/types/excalidraw/components/ColorPicker/TopPicks.d.ts +0 -9
  75. package/types/excalidraw/components/ColorPicker/colorPickerUtils.d.ts +0 -21
  76. package/types/excalidraw/components/ColorPicker/keyboardNavHandlers.d.ts +0 -20
  77. package/types/excalidraw/components/CommandPalette/CommandPalette.d.ts +0 -18
  78. package/types/excalidraw/components/CommandPalette/defaultCommandPaletteItems.d.ts +0 -2
  79. package/types/excalidraw/components/CommandPalette/types.d.ts +0 -25
  80. package/types/excalidraw/components/ConfirmDialog.d.ts +0 -10
  81. package/types/excalidraw/components/ContextMenu.d.ts +0 -16
  82. package/types/excalidraw/components/DarkModeToggle.d.ts +0 -7
  83. package/types/excalidraw/components/DefaultSidebar.d.ts +0 -30
  84. package/types/excalidraw/components/DiagramToCodePlugin/DiagramToCodePlugin.d.ts +0 -4
  85. package/types/excalidraw/components/Dialog.d.ts +0 -13
  86. package/types/excalidraw/components/DialogActionButton.d.ts +0 -10
  87. package/types/excalidraw/components/ErrorDialog.d.ts +0 -5
  88. package/types/excalidraw/components/ExcalidrawLogo.d.ts +0 -15
  89. package/types/excalidraw/components/EyeDropper.d.ts +0 -27
  90. package/types/excalidraw/components/FilledButton.d.ts +0 -18
  91. package/types/excalidraw/components/FixedSideContainer.d.ts +0 -9
  92. package/types/excalidraw/components/FollowMode/FollowMode.d.ts +0 -10
  93. package/types/excalidraw/components/FontPicker/FontPicker.d.ts +0 -21
  94. package/types/excalidraw/components/FontPicker/FontPickerList.d.ts +0 -25
  95. package/types/excalidraw/components/FontPicker/FontPickerTrigger.d.ts +0 -6
  96. package/types/excalidraw/components/FontPicker/keyboardNavHandlers.d.ts +0 -13
  97. package/types/excalidraw/components/HandButton.d.ts +0 -10
  98. package/types/excalidraw/components/HelpButton.d.ts +0 -7
  99. package/types/excalidraw/components/HelpDialog.d.ts +0 -4
  100. package/types/excalidraw/components/HintViewer.d.ts +0 -10
  101. package/types/excalidraw/components/IconPicker.d.ts +0 -14
  102. package/types/excalidraw/components/ImageExportDialog.d.ts +0 -14
  103. package/types/excalidraw/components/InitializeApp.d.ts +0 -10
  104. package/types/excalidraw/components/InlineIcon.d.ts +0 -3
  105. package/types/excalidraw/components/Island.d.ts +0 -10
  106. package/types/excalidraw/components/JSONExportDialog.d.ts +0 -15
  107. package/types/excalidraw/components/LaserPointerButton.d.ts +0 -10
  108. package/types/excalidraw/components/LayerUI.d.ts +0 -30
  109. package/types/excalidraw/components/LibraryMenu.d.ts +0 -24
  110. package/types/excalidraw/components/LibraryMenuBrowseButton.d.ts +0 -7
  111. package/types/excalidraw/components/LibraryMenuControlButtons.d.ts +0 -9
  112. package/types/excalidraw/components/LibraryMenuHeaderContent.d.ts +0 -17
  113. package/types/excalidraw/components/LibraryMenuItems.d.ts +0 -14
  114. package/types/excalidraw/components/LibraryMenuSection.d.ts +0 -23
  115. package/types/excalidraw/components/LibraryUnit.d.ts +0 -14
  116. package/types/excalidraw/components/LoadingMessage.d.ts +0 -5
  117. package/types/excalidraw/components/LockButton.d.ts +0 -10
  118. package/types/excalidraw/components/MagicButton.d.ts +0 -9
  119. package/types/excalidraw/components/MagicSettings.d.ts +0 -8
  120. package/types/excalidraw/components/MobileMenu.d.ts +0 -24
  121. package/types/excalidraw/components/Modal.d.ts +0 -14
  122. package/types/excalidraw/components/OverwriteConfirm/OverwriteConfirm.d.ts +0 -17
  123. package/types/excalidraw/components/OverwriteConfirm/OverwriteConfirmActions.d.ts +0 -17
  124. package/types/excalidraw/components/OverwriteConfirm/OverwriteConfirmState.d.ts +0 -22
  125. package/types/excalidraw/components/Paragraph.d.ts +0 -4
  126. package/types/excalidraw/components/PasteChartDialog.d.ts +0 -8
  127. package/types/excalidraw/components/PenModeButton.d.ts +0 -12
  128. package/types/excalidraw/components/Popover.d.ts +0 -15
  129. package/types/excalidraw/components/ProjectName.d.ts +0 -10
  130. package/types/excalidraw/components/PropertiesPopover.d.ts +0 -15
  131. package/types/excalidraw/components/PublishLibrary.d.ts +0 -16
  132. package/types/excalidraw/components/QuickSearch.d.ts +0 -9
  133. package/types/excalidraw/components/RadioGroup.d.ts +0 -13
  134. package/types/excalidraw/components/SVGLayer.d.ts +0 -7
  135. package/types/excalidraw/components/ScrollableList.d.ts +0 -8
  136. package/types/excalidraw/components/SearchMenu.d.ts +0 -5
  137. package/types/excalidraw/components/Section.d.ts +0 -6
  138. package/types/excalidraw/components/ShareableLinkDialog.d.ts +0 -7
  139. package/types/excalidraw/components/Sidebar/Sidebar.d.ts +0 -76
  140. package/types/excalidraw/components/Sidebar/SidebarHeader.d.ts +0 -7
  141. package/types/excalidraw/components/Sidebar/SidebarTab.d.ts +0 -8
  142. package/types/excalidraw/components/Sidebar/SidebarTabTrigger.d.ts +0 -9
  143. package/types/excalidraw/components/Sidebar/SidebarTabTriggers.d.ts +0 -6
  144. package/types/excalidraw/components/Sidebar/SidebarTabs.d.ts +0 -6
  145. package/types/excalidraw/components/Sidebar/SidebarTrigger.d.ts +0 -6
  146. package/types/excalidraw/components/Sidebar/common.d.ts +0 -33
  147. package/types/excalidraw/components/Spinner.d.ts +0 -8
  148. package/types/excalidraw/components/Stack.d.ts +0 -16
  149. package/types/excalidraw/components/Stats/Angle.d.ts +0 -11
  150. package/types/excalidraw/components/Stats/CanvasGrid.d.ts +0 -10
  151. package/types/excalidraw/components/Stats/CanvasGridSize.d.ts +0 -10
  152. package/types/excalidraw/components/Stats/Collapsible.d.ts +0 -8
  153. package/types/excalidraw/components/Stats/Dimension.d.ts +0 -11
  154. package/types/excalidraw/components/Stats/DragInput.d.ts +0 -34
  155. package/types/excalidraw/components/Stats/FontSize.d.ts +0 -11
  156. package/types/excalidraw/components/Stats/MultiAngle.d.ts +0 -11
  157. package/types/excalidraw/components/Stats/MultiDimension.d.ts +0 -14
  158. package/types/excalidraw/components/Stats/MultiFontSize.d.ts +0 -12
  159. package/types/excalidraw/components/Stats/MultiPosition.d.ts +0 -14
  160. package/types/excalidraw/components/Stats/Position.d.ts +0 -12
  161. package/types/excalidraw/components/Stats/index.d.ts +0 -35
  162. package/types/excalidraw/components/Stats/utils.d.ts +0 -26
  163. package/types/excalidraw/components/Stats.d.ts +0 -11
  164. package/types/excalidraw/components/Switch.d.ts +0 -9
  165. package/types/excalidraw/components/TTDDialog/MermaidToExcalidraw.d.ts +0 -14
  166. package/types/excalidraw/components/TTDDialog/TTDDialog.d.ts +0 -29
  167. package/types/excalidraw/components/TTDDialog/TTDDialogInput.d.ts +0 -9
  168. package/types/excalidraw/components/TTDDialog/TTDDialogOutput.d.ts +0 -7
  169. package/types/excalidraw/components/TTDDialog/TTDDialogPanel.d.ts +0 -17
  170. package/types/excalidraw/components/TTDDialog/TTDDialogPanels.d.ts +0 -4
  171. package/types/excalidraw/components/TTDDialog/TTDDialogSubmitShortcut.d.ts +0 -1
  172. package/types/excalidraw/components/TTDDialog/TTDDialogTab.d.ts +0 -7
  173. package/types/excalidraw/components/TTDDialog/TTDDialogTabTrigger.d.ts +0 -8
  174. package/types/excalidraw/components/TTDDialog/TTDDialogTabTriggers.d.ts +0 -6
  175. package/types/excalidraw/components/TTDDialog/TTDDialogTabs.d.ts +0 -11
  176. package/types/excalidraw/components/TTDDialog/TTDDialogTrigger.d.ts +0 -8
  177. package/types/excalidraw/components/TTDDialog/common.d.ts +0 -32
  178. package/types/excalidraw/components/TextField.d.ts +0 -21
  179. package/types/excalidraw/components/Toast.d.ts +0 -9
  180. package/types/excalidraw/components/ToolButton.d.ts +0 -49
  181. package/types/excalidraw/components/Tooltip.d.ts +0 -18
  182. package/types/excalidraw/components/Trans.d.ts +0 -9
  183. package/types/excalidraw/components/UserList.d.ts +0 -18
  184. package/types/excalidraw/components/canvases/InteractiveCanvas.d.ts +0 -29
  185. package/types/excalidraw/components/canvases/NewElementCanvas.d.ts +0 -14
  186. package/types/excalidraw/components/canvases/StaticCanvas.d.ts +0 -19
  187. package/types/excalidraw/components/canvases/index.d.ts +0 -3
  188. package/types/excalidraw/components/dropdownMenu/DropdownMenu.d.ts +0 -86
  189. package/types/excalidraw/components/dropdownMenu/DropdownMenuContent.d.ts +0 -15
  190. package/types/excalidraw/components/dropdownMenu/DropdownMenuGroup.d.ts +0 -11
  191. package/types/excalidraw/components/dropdownMenu/DropdownMenuItem.d.ts +0 -45
  192. package/types/excalidraw/components/dropdownMenu/DropdownMenuItemContent.d.ts +0 -7
  193. package/types/excalidraw/components/dropdownMenu/DropdownMenuItemContentRadio.d.ts +0 -17
  194. package/types/excalidraw/components/dropdownMenu/DropdownMenuItemCustom.d.ts +0 -7
  195. package/types/excalidraw/components/dropdownMenu/DropdownMenuItemLink.d.ts +0 -15
  196. package/types/excalidraw/components/dropdownMenu/DropdownMenuSeparator.d.ts +0 -5
  197. package/types/excalidraw/components/dropdownMenu/DropdownMenuTrigger.d.ts +0 -10
  198. package/types/excalidraw/components/dropdownMenu/common.d.ts +0 -6
  199. package/types/excalidraw/components/dropdownMenu/dropdownMenuUtils.d.ts +0 -3
  200. package/types/excalidraw/components/footer/Footer.d.ts +0 -12
  201. package/types/excalidraw/components/footer/FooterCenter.d.ts +0 -8
  202. package/types/excalidraw/components/hoc/withInternalFallback.d.ts +0 -4
  203. package/types/excalidraw/components/hyperlink/Hyperlink.d.ts +0 -18
  204. package/types/excalidraw/components/hyperlink/helpers.d.ts +0 -8
  205. package/types/excalidraw/components/icons.d.ts +0 -212
  206. package/types/excalidraw/components/live-collaboration/LiveCollaborationTrigger.d.ts +0 -9
  207. package/types/excalidraw/components/main-menu/DefaultItems.d.ts +0 -64
  208. package/types/excalidraw/components/main-menu/MainMenu.d.ts +0 -80
  209. package/types/excalidraw/components/welcome-screen/WelcomeScreen.Center.d.ts +0 -59
  210. package/types/excalidraw/components/welcome-screen/WelcomeScreen.Hints.d.ts +0 -19
  211. package/types/excalidraw/components/welcome-screen/WelcomeScreen.d.ts +0 -86
  212. package/types/excalidraw/constants.d.ts +0 -322
  213. package/types/excalidraw/context/tunnels.d.ts +0 -20
  214. package/types/excalidraw/context/ui-appState.d.ts +0 -4
  215. package/types/excalidraw/cursor.d.ts +0 -6
  216. package/types/excalidraw/data/EditorLocalStorage.d.ts +0 -8
  217. package/types/excalidraw/data/ai/types.d.ts +0 -242
  218. package/types/excalidraw/data/blob.d.ts +0 -49
  219. package/types/excalidraw/data/encode.d.ts +0 -54
  220. package/types/excalidraw/data/encryption.d.ts +0 -9
  221. package/types/excalidraw/data/filesystem.d.ts +0 -20
  222. package/types/excalidraw/data/image.d.ts +0 -15
  223. package/types/excalidraw/data/index.d.ts +0 -22
  224. package/types/excalidraw/data/json.d.ts +0 -16
  225. package/types/excalidraw/data/library.d.ts +0 -106
  226. package/types/excalidraw/data/magic.d.ts +0 -23
  227. package/types/excalidraw/data/reconcile.d.ts +0 -6
  228. package/types/excalidraw/data/resave.d.ts +0 -5
  229. package/types/excalidraw/data/restore.d.ts +0 -21
  230. package/types/excalidraw/data/transform.d.ts +0 -81
  231. package/types/excalidraw/data/types.d.ts +0 -45
  232. package/types/excalidraw/data/url.d.ts +0 -8
  233. package/types/excalidraw/deburr.d.ts +0 -1
  234. package/types/excalidraw/dist/excalidraw.development.d.ts +0 -2
  235. package/types/excalidraw/dist/excalidraw.production.min.d.ts +0 -1
  236. package/types/excalidraw/distribute.d.ts +0 -6
  237. package/types/excalidraw/element/ElementCanvasButtons.d.ts +0 -7
  238. package/types/excalidraw/element/binding.d.ts +0 -99
  239. package/types/excalidraw/element/bounds.d.ts +0 -76
  240. package/types/excalidraw/element/collision.d.ts +0 -17
  241. package/types/excalidraw/element/containerCache.d.ts +0 -11
  242. package/types/excalidraw/element/dragElements.d.ts +0 -32
  243. package/types/excalidraw/element/embeddable.d.ts +0 -221
  244. package/types/excalidraw/element/flowchart.d.ts +0 -25
  245. package/types/excalidraw/element/heading.d.ts +0 -12
  246. package/types/excalidraw/element/image.d.ts +0 -32
  247. package/types/excalidraw/element/index.d.ts +0 -26
  248. package/types/excalidraw/element/linearElementEditor.d.ts +0 -128
  249. package/types/excalidraw/element/mutateElement.d.ts +0 -11
  250. package/types/excalidraw/element/newElement.d.ts +0 -105
  251. package/types/excalidraw/element/resizeElements.d.ts +0 -16
  252. package/types/excalidraw/element/resizeTest.d.ts +0 -15
  253. package/types/excalidraw/element/routing.d.ts +0 -12
  254. package/types/excalidraw/element/showSelectedShapeActions.d.ts +0 -3
  255. package/types/excalidraw/element/sizeHelpers.d.ts +0 -35
  256. package/types/excalidraw/element/sortElements.d.ts +0 -2
  257. package/types/excalidraw/element/textElement.d.ts +0 -73
  258. package/types/excalidraw/element/textWysiwyg.d.ts +0 -22
  259. package/types/excalidraw/element/transformHandles.d.ts +0 -55
  260. package/types/excalidraw/element/typeChecks.d.ts +0 -39
  261. package/types/excalidraw/element/types.d.ts +0 -253
  262. package/types/excalidraw/emitter.d.ts +0 -16
  263. package/types/excalidraw/entry.d.ts +0 -1
  264. package/types/excalidraw/env.d.cts +0 -1
  265. package/types/excalidraw/env.d.ts +0 -1
  266. package/types/excalidraw/errors.d.ts +0 -25
  267. package/types/excalidraw/fonts/ExcalidrawFont.d.ts +0 -37
  268. package/types/excalidraw/fonts/ExcalidrawFontFace.d.ts +0 -35
  269. package/types/excalidraw/fonts/index.d.ts +0 -87
  270. package/types/excalidraw/fonts/metadata.d.ts +0 -37
  271. package/types/excalidraw/fonts/subset/subset-main.d.ts +0 -12
  272. package/types/excalidraw/fonts/subset/subset-shared.chunk.d.ts +0 -32
  273. package/types/excalidraw/fonts/subset/subset-worker.chunk.d.ts +0 -15
  274. package/types/excalidraw/fonts/wasm/hb-subset-bindings.d.ts +0 -45
  275. package/types/excalidraw/fonts/wasm/hb-subset-loader.d.ts +0 -13
  276. package/types/excalidraw/fonts/wasm/hb-subset-wasm.d.ts +0 -2
  277. package/types/excalidraw/fonts/wasm/hb-subset.bindings.d.ts +0 -45
  278. package/types/excalidraw/fonts/wasm/hb-subset.loader.d.ts +0 -5
  279. package/types/excalidraw/fonts/wasm/hb-subset.wasm.d.ts +0 -2
  280. package/types/excalidraw/fonts/wasm/woff2-bindings.d.ts +0 -31
  281. package/types/excalidraw/fonts/wasm/woff2-loader.d.ts +0 -14
  282. package/types/excalidraw/fonts/wasm/woff2-wasm.d.ts +0 -2
  283. package/types/excalidraw/fonts/wasm/woff2.bindings.d.ts +0 -31
  284. package/types/excalidraw/fonts/wasm/woff2.loader.d.ts +0 -6
  285. package/types/excalidraw/fonts/wasm/woff2.wasm.d.ts +0 -2
  286. package/types/excalidraw/fonts/woff2/Cascadia/index.d.ts +0 -2
  287. package/types/excalidraw/fonts/woff2/Comic/index.d.ts +0 -2
  288. package/types/excalidraw/fonts/woff2/Emoji/index.d.ts +0 -2
  289. package/types/excalidraw/fonts/woff2/Excalifont/index.d.ts +0 -2
  290. package/types/excalidraw/fonts/woff2/Helvetica/index.d.ts +0 -2
  291. package/types/excalidraw/fonts/woff2/Liberation/index.d.ts +0 -2
  292. package/types/excalidraw/fonts/woff2/Lilita/index.d.ts +0 -2
  293. package/types/excalidraw/fonts/woff2/Nunito/index.d.ts +0 -2
  294. package/types/excalidraw/fonts/woff2/Virgil/index.d.ts +0 -2
  295. package/types/excalidraw/fonts/woff2/Xiaolai/index.d.ts +0 -8
  296. package/types/excalidraw/fractionalIndex.d.ts +0 -48
  297. package/types/excalidraw/frame.d.ts +0 -63
  298. package/types/excalidraw/ga.d.ts +0 -63
  299. package/types/excalidraw/gadirections.d.ts +0 -8
  300. package/types/excalidraw/galines.d.ts +0 -22
  301. package/types/excalidraw/gapoints.d.ts +0 -7
  302. package/types/excalidraw/gatransforms.d.ts +0 -10
  303. package/types/excalidraw/gesture.d.ts +0 -6
  304. package/types/excalidraw/groups.d.ts +0 -33
  305. package/types/excalidraw/history.d.ts +0 -40
  306. package/types/excalidraw/hooks/useCallbackRefState.d.ts +0 -1
  307. package/types/excalidraw/hooks/useCopiedIndicator.d.ts +0 -5
  308. package/types/excalidraw/hooks/useCreatePortalContainer.d.ts +0 -7
  309. package/types/excalidraw/hooks/useEmitter.d.ts +0 -2
  310. package/types/excalidraw/hooks/useLibraryItemSvg.d.ts +0 -11
  311. package/types/excalidraw/hooks/useOutsideClick.d.ts +0 -19
  312. package/types/excalidraw/hooks/useScrollPosition.d.ts +0 -1
  313. package/types/excalidraw/hooks/useStable.d.ts +0 -1
  314. package/types/excalidraw/hooks/useStableCallback.d.ts +0 -4
  315. package/types/excalidraw/hooks/useTransition.d.ts +0 -2
  316. package/types/excalidraw/i18n.d.ts +0 -24
  317. package/types/excalidraw/index-node.d.ts +0 -1
  318. package/types/excalidraw/index.d.ts +0 -63
  319. package/types/excalidraw/jotai.d.ts +0 -34
  320. package/types/excalidraw/keys.d.ts +0 -82
  321. package/types/excalidraw/laser-trails.d.ts +0 -20
  322. package/types/excalidraw/main.d.ts +0 -2
  323. package/types/excalidraw/math.d.ts +0 -79
  324. package/types/excalidraw/mermaid.d.ts +0 -2
  325. package/types/excalidraw/obsidianUtils.d.ts +0 -21
  326. package/types/excalidraw/points.d.ts +0 -7
  327. package/types/excalidraw/polyfill.d.ts +0 -2
  328. package/types/excalidraw/publicPath.d.ts +0 -1
  329. package/types/excalidraw/queue.d.ts +0 -9
  330. package/types/excalidraw/random.d.ts +0 -4
  331. package/types/excalidraw/reactUtils.d.ts +0 -14
  332. package/types/excalidraw/renderer/easingFunctions.d.ts +0 -6
  333. package/types/excalidraw/renderer/helpers.d.ts +0 -13
  334. package/types/excalidraw/renderer/interactiveScene.d.ts +0 -20
  335. package/types/excalidraw/renderer/renderElement.d.ts +0 -27
  336. package/types/excalidraw/renderer/renderNewElementScene.d.ts +0 -7
  337. package/types/excalidraw/renderer/renderSnaps.d.ts +0 -2
  338. package/types/excalidraw/renderer/roundRect.d.ts +0 -11
  339. package/types/excalidraw/renderer/staticScene.d.ts +0 -11
  340. package/types/excalidraw/renderer/staticSvgScene.d.ts +0 -5
  341. package/types/excalidraw/scene/Fonts.d.ts +0 -19
  342. package/types/excalidraw/scene/Renderer.d.ts +0 -28
  343. package/types/excalidraw/scene/Scene.d.ts +0 -78
  344. package/types/excalidraw/scene/Shape.d.ts +0 -17
  345. package/types/excalidraw/scene/ShapeCache.d.ts +0 -25
  346. package/types/excalidraw/scene/comparisons.d.ts +0 -487
  347. package/types/excalidraw/scene/export.d.ts +0 -29
  348. package/types/excalidraw/scene/index.d.ts +0 -4
  349. package/types/excalidraw/scene/normalize.d.ts +0 -4
  350. package/types/excalidraw/scene/scroll.d.ts +0 -23
  351. package/types/excalidraw/scene/scrollbars.d.ts +0 -12
  352. package/types/excalidraw/scene/selection.d.ts +0 -32
  353. package/types/excalidraw/scene/types.d.ts +0 -112
  354. package/types/excalidraw/scene/zoom.d.ts +0 -12
  355. package/types/excalidraw/shapes.d.ts +0 -85
  356. package/types/excalidraw/snapping.d.ts +0 -112
  357. package/types/excalidraw/store.d.ts +0 -129
  358. package/types/excalidraw/types.d.ts +0 -718
  359. package/types/excalidraw/utility-types.d.ts +0 -31
  360. package/types/excalidraw/utils.d.ts +0 -249
  361. package/types/excalidraw/visualdebug.d.ts +0 -35
  362. package/types/excalidraw/webpack.dev.config.d.ts +0 -81
  363. package/types/excalidraw/webpack.prod.config.d.ts +0 -97
  364. package/types/excalidraw/workers.d.ts +0 -36
  365. package/types/excalidraw/zindex.d.ts +0 -6
  366. package/types/math/angle.d.ts +0 -17
  367. package/types/math/arc.d.ts +0 -6
  368. package/types/math/curve.d.ts +0 -32
  369. package/types/math/ga/ga.d.ts +0 -63
  370. package/types/math/ga/gadirections.d.ts +0 -8
  371. package/types/math/ga/galines.d.ts +0 -22
  372. package/types/math/ga/gapoints.d.ts +0 -7
  373. package/types/math/ga/gatransforms.d.ts +0 -10
  374. package/types/math/index.d.ts +0 -12
  375. package/types/math/line.d.ts +0 -26
  376. package/types/math/point.d.ts +0 -140
  377. package/types/math/polygon.d.ts +0 -5
  378. package/types/math/range.d.ts +0 -44
  379. package/types/math/segment.d.ts +0 -32
  380. package/types/math/triangle.d.ts +0 -11
  381. package/types/math/types.d.ts +0 -96
  382. package/types/math/utils.d.ts +0 -6
  383. package/types/math/vector.d.ts +0 -88
  384. package/types/utils/bbox.d.ts +0 -9
  385. package/types/utils/collision.d.ts +0 -9
  386. package/types/utils/export.d.ts +0 -44
  387. package/types/utils/geometry/geometry.d.ts +0 -89
  388. package/types/utils/geometry/shape.d.ts +0 -71
  389. package/types/utils/index.d.ts +0 -4
  390. package/types/utils/withinBounds.d.ts +0 -19
@@ -1,3156 +0,0 @@
1
- import type { AppClassProperties, AppState, Primitive } from "../types";
2
- import type { Arrowhead, ExcalidrawBindableElement, ExcalidrawElement, ExcalidrawLinearElement } from "../element/types";
3
- import { LinearElementEditor } from "../element/linearElementEditor";
4
- export declare const changeProperty: (elements: readonly ExcalidrawElement[], appState: AppState, callback: (element: ExcalidrawElement) => ExcalidrawElement, includeBoundText?: boolean) => ExcalidrawElement[];
5
- export declare const getFormValue: <T extends Primitive>(elements: readonly ExcalidrawElement[], appState: AppState, getAttribute: (element: ExcalidrawElement) => T, isRelevantElement: true | ((element: ExcalidrawElement) => boolean), defaultValue: T | ((isSomeElementSelected: boolean) => T)) => T;
6
- export declare const actionChangeStrokeColor: {
7
- name: "changeStrokeColor";
8
- label: string;
9
- trackEvent: false;
10
- perform: (elements: readonly import("../element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, value: any, app: AppClassProperties) => any;
11
- PanelComponent: ({ elements, appState, updateData, appProps }: import("./types").PanelComponentProps) => JSX.Element;
12
- } & {
13
- keyTest?: undefined;
14
- };
15
- export declare const actionChangeBackgroundColor: {
16
- name: "changeBackgroundColor";
17
- label: string;
18
- trackEvent: false;
19
- perform: (elements: readonly import("../element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, value: any) => any;
20
- PanelComponent: ({ elements, appState, updateData, appProps }: import("./types").PanelComponentProps) => JSX.Element;
21
- } & {
22
- keyTest?: undefined;
23
- };
24
- export declare const actionChangeFillStyle: {
25
- name: "changeFillStyle";
26
- label: string;
27
- trackEvent: false;
28
- perform: (elements: readonly import("../element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, value: any, app: AppClassProperties) => {
29
- elements: ExcalidrawElement[];
30
- appState: {
31
- currentItemFillStyle: any;
32
- contextMenu: {
33
- items: import("../components/ContextMenu").ContextMenuItems;
34
- top: number;
35
- left: number;
36
- } | null;
37
- showWelcomeScreen: boolean;
38
- isLoading: boolean;
39
- errorMessage: import("react").ReactNode;
40
- activeEmbeddable: {
41
- element: import("../element/types").NonDeletedExcalidrawElement;
42
- state: "active" | "hover";
43
- } | null;
44
- newElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawNonSelectionElement> | null;
45
- resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
46
- multiElement: import("../element/types").NonDeleted<ExcalidrawLinearElement> | null;
47
- selectionElement: import("../element/types").NonDeletedExcalidrawElement | null;
48
- isBindingEnabled: boolean;
49
- startBoundElement: import("../element/types").NonDeleted<ExcalidrawBindableElement> | null;
50
- suggestedBindings: import("../element/binding").SuggestedBinding[];
51
- frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameLikeElement> | null;
52
- frameRendering: {
53
- enabled: boolean;
54
- name: boolean;
55
- outline: boolean;
56
- clip: boolean;
57
- };
58
- editingFrame: string | null;
59
- elementsToHighlight: import("../element/types").NonDeleted<ExcalidrawElement>[] | null;
60
- editingTextElement: import("../element/types").NonDeletedExcalidrawElement | null;
61
- editingLinearElement: LinearElementEditor | null;
62
- activeTool: {
63
- lastActiveTool: import("../types").ActiveTool | null;
64
- locked: boolean;
65
- } & import("../types").ActiveTool;
66
- penMode: boolean;
67
- penDetected: boolean;
68
- exportBackground: boolean;
69
- exportEmbedScene: boolean;
70
- exportWithDarkMode: boolean;
71
- exportScale: number;
72
- currentItemStrokeColor: string;
73
- currentItemBackgroundColor: string;
74
- currentItemStrokeWidth: number;
75
- currentItemStrokeStyle: import("../element/types").StrokeStyle;
76
- currentItemRoughness: number;
77
- currentItemOpacity: number;
78
- currentItemFontFamily: number;
79
- currentItemFontSize: number;
80
- currentItemTextAlign: string;
81
- currentItemStartArrowhead: Arrowhead | null;
82
- currentItemEndArrowhead: Arrowhead | null;
83
- currentHoveredFontFamily: number | null;
84
- currentItemRoundness: import("../element/types").StrokeRoundness;
85
- currentItemArrowType: "round" | "sharp" | "elbow";
86
- viewBackgroundColor: string;
87
- scrollX: number;
88
- scrollY: number;
89
- cursorButton: "up" | "down";
90
- scrolledOutside: boolean;
91
- name: string | null;
92
- isResizing: boolean;
93
- isRotating: boolean;
94
- zoom: Readonly<{
95
- value: import("../types").NormalizedZoomValue;
96
- }>;
97
- openMenu: "canvas" | "shape" | null;
98
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
99
- openSidebar: {
100
- name: string;
101
- tab?: string | undefined;
102
- } | null;
103
- openDialog: {
104
- name: "imageExport" | "help" | "jsonExport";
105
- } | {
106
- name: "ttd";
107
- tab: "mermaid" | "text-to-diagram";
108
- } | {
109
- name: "commandPalette";
110
- } | null;
111
- defaultSidebarDockedPreference: boolean;
112
- lastPointerDownWith: import("../element/types").PointerType;
113
- selectedElementIds: Readonly<{
114
- [id: string]: true;
115
- }>;
116
- previousSelectedElementIds: {
117
- [id: string]: true;
118
- };
119
- selectedElementsAreBeingDragged: boolean;
120
- shouldCacheIgnoreZoom: boolean;
121
- toast: {
122
- message: string;
123
- closable?: boolean | undefined;
124
- duration?: number | undefined;
125
- } | null;
126
- zenModeEnabled: boolean;
127
- theme: import("../element/types").Theme;
128
- gridSize: number;
129
- gridStep: number;
130
- gridModeEnabled: boolean;
131
- viewModeEnabled: boolean;
132
- selectedGroupIds: {
133
- [groupId: string]: boolean;
134
- };
135
- editingGroupId: string | null;
136
- width: number;
137
- height: number;
138
- offsetTop: number;
139
- offsetLeft: number;
140
- fileHandle: import("browser-fs-access").FileSystemHandle | null;
141
- collaborators: Map<import("../types").SocketId, Readonly<{
142
- pointer?: import("../types").CollaboratorPointer | undefined;
143
- button?: "up" | "down" | undefined;
144
- selectedElementIds?: Readonly<{
145
- [id: string]: true;
146
- }> | undefined;
147
- username?: string | null | undefined;
148
- userState?: import("../types").UserIdleState | undefined;
149
- color?: {
150
- background: string;
151
- stroke: string;
152
- } | undefined;
153
- avatarUrl?: string | undefined;
154
- id?: string | undefined;
155
- socketId?: import("../types").SocketId | undefined;
156
- isCurrentUser?: boolean | undefined;
157
- isInCall?: boolean | undefined;
158
- isSpeaking?: boolean | undefined;
159
- isMuted?: boolean | undefined;
160
- }>>;
161
- stats: {
162
- open: boolean;
163
- panels: number;
164
- };
165
- currentChartType: import("../element/types").ChartType;
166
- pasteDialog: {
167
- shown: false;
168
- data: null;
169
- } | {
170
- shown: true;
171
- data: import("../charts").Spreadsheet;
172
- };
173
- pendingImageElementId: string | null;
174
- showHyperlinkPopup: false | "info" | "editor";
175
- linkOpacity: number;
176
- trayModeEnabled: boolean;
177
- colorPalette?: {
178
- canvasBackground: import("../colors").ColorPaletteCustom;
179
- elementBackground: import("../colors").ColorPaletteCustom;
180
- elementStroke: import("../colors").ColorPaletteCustom;
181
- topPicks: {
182
- canvasBackground: [string, string, string, string, string];
183
- elementStroke: [string, string, string, string, string];
184
- elementBackground: [string, string, string, string, string];
185
- };
186
- } | undefined;
187
- allowWheelZoom?: boolean | undefined;
188
- allowPinchZoom?: boolean | undefined;
189
- pinnedScripts?: string[] | undefined;
190
- customPens?: any[] | undefined;
191
- currentStrokeOptions?: any;
192
- resetCustomPen?: any;
193
- gridColor: {
194
- Bold: string;
195
- Regular: string;
196
- };
197
- highlightSearchResult: boolean;
198
- dynamicStyle: {
199
- [x: string]: string;
200
- };
201
- frameColor: {
202
- stroke: string;
203
- fill: string;
204
- nameColor: string;
205
- };
206
- invertBindingBehaviour: boolean;
207
- selectedLinearElement: LinearElementEditor | null;
208
- snapLines: readonly import("../snapping").SnapLine[];
209
- originSnapOffset: {
210
- x: number;
211
- y: number;
212
- } | null;
213
- objectsSnapModeEnabled: boolean;
214
- userToFollow: import("../types").UserToFollow | null;
215
- followedBy: Set<import("../types").SocketId>;
216
- searchMatches: readonly {
217
- id: string;
218
- focus: boolean;
219
- matchedLines: {
220
- offsetX: number;
221
- offsetY: number;
222
- width: number;
223
- height: number;
224
- }[];
225
- }[];
226
- };
227
- storeAction: "capture";
228
- };
229
- PanelComponent: ({ elements, appState, updateData }: import("./types").PanelComponentProps) => JSX.Element;
230
- } & {
231
- keyTest?: undefined;
232
- };
233
- export declare const actionChangeStrokeWidth: {
234
- name: "changeStrokeWidth";
235
- label: string;
236
- trackEvent: false;
237
- perform: (elements: readonly import("../element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, value: any) => {
238
- elements: ExcalidrawElement[];
239
- appState: {
240
- currentItemStrokeWidth: any;
241
- contextMenu: {
242
- items: import("../components/ContextMenu").ContextMenuItems;
243
- top: number;
244
- left: number;
245
- } | null;
246
- showWelcomeScreen: boolean;
247
- isLoading: boolean;
248
- errorMessage: import("react").ReactNode;
249
- activeEmbeddable: {
250
- element: import("../element/types").NonDeletedExcalidrawElement;
251
- state: "active" | "hover";
252
- } | null;
253
- newElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawNonSelectionElement> | null;
254
- resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
255
- multiElement: import("../element/types").NonDeleted<ExcalidrawLinearElement> | null;
256
- selectionElement: import("../element/types").NonDeletedExcalidrawElement | null;
257
- isBindingEnabled: boolean;
258
- startBoundElement: import("../element/types").NonDeleted<ExcalidrawBindableElement> | null;
259
- suggestedBindings: import("../element/binding").SuggestedBinding[];
260
- frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameLikeElement> | null;
261
- frameRendering: {
262
- enabled: boolean;
263
- name: boolean;
264
- outline: boolean;
265
- clip: boolean;
266
- };
267
- editingFrame: string | null;
268
- elementsToHighlight: import("../element/types").NonDeleted<ExcalidrawElement>[] | null;
269
- editingTextElement: import("../element/types").NonDeletedExcalidrawElement | null;
270
- editingLinearElement: LinearElementEditor | null;
271
- activeTool: {
272
- lastActiveTool: import("../types").ActiveTool | null;
273
- locked: boolean;
274
- } & import("../types").ActiveTool;
275
- penMode: boolean;
276
- penDetected: boolean;
277
- exportBackground: boolean;
278
- exportEmbedScene: boolean;
279
- exportWithDarkMode: boolean;
280
- exportScale: number;
281
- currentItemStrokeColor: string;
282
- currentItemBackgroundColor: string;
283
- currentItemFillStyle: import("../element/types").FillStyle;
284
- currentItemStrokeStyle: import("../element/types").StrokeStyle;
285
- currentItemRoughness: number;
286
- currentItemOpacity: number;
287
- currentItemFontFamily: number;
288
- currentItemFontSize: number;
289
- currentItemTextAlign: string;
290
- currentItemStartArrowhead: Arrowhead | null;
291
- currentItemEndArrowhead: Arrowhead | null;
292
- currentHoveredFontFamily: number | null;
293
- currentItemRoundness: import("../element/types").StrokeRoundness;
294
- currentItemArrowType: "round" | "sharp" | "elbow";
295
- viewBackgroundColor: string;
296
- scrollX: number;
297
- scrollY: number;
298
- cursorButton: "up" | "down";
299
- scrolledOutside: boolean;
300
- name: string | null;
301
- isResizing: boolean;
302
- isRotating: boolean;
303
- zoom: Readonly<{
304
- value: import("../types").NormalizedZoomValue;
305
- }>;
306
- openMenu: "canvas" | "shape" | null;
307
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
308
- openSidebar: {
309
- name: string;
310
- tab?: string | undefined;
311
- } | null;
312
- openDialog: {
313
- name: "imageExport" | "help" | "jsonExport";
314
- } | {
315
- name: "ttd";
316
- tab: "mermaid" | "text-to-diagram";
317
- } | {
318
- name: "commandPalette";
319
- } | null;
320
- defaultSidebarDockedPreference: boolean;
321
- lastPointerDownWith: import("../element/types").PointerType;
322
- selectedElementIds: Readonly<{
323
- [id: string]: true;
324
- }>;
325
- previousSelectedElementIds: {
326
- [id: string]: true;
327
- };
328
- selectedElementsAreBeingDragged: boolean;
329
- shouldCacheIgnoreZoom: boolean;
330
- toast: {
331
- message: string;
332
- closable?: boolean | undefined;
333
- duration?: number | undefined;
334
- } | null;
335
- zenModeEnabled: boolean;
336
- theme: import("../element/types").Theme;
337
- gridSize: number;
338
- gridStep: number;
339
- gridModeEnabled: boolean;
340
- viewModeEnabled: boolean;
341
- selectedGroupIds: {
342
- [groupId: string]: boolean;
343
- };
344
- editingGroupId: string | null;
345
- width: number;
346
- height: number;
347
- offsetTop: number;
348
- offsetLeft: number;
349
- fileHandle: import("browser-fs-access").FileSystemHandle | null;
350
- collaborators: Map<import("../types").SocketId, Readonly<{
351
- pointer?: import("../types").CollaboratorPointer | undefined;
352
- button?: "up" | "down" | undefined;
353
- selectedElementIds?: Readonly<{
354
- [id: string]: true;
355
- }> | undefined;
356
- username?: string | null | undefined;
357
- userState?: import("../types").UserIdleState | undefined;
358
- color?: {
359
- background: string;
360
- stroke: string;
361
- } | undefined;
362
- avatarUrl?: string | undefined;
363
- id?: string | undefined;
364
- socketId?: import("../types").SocketId | undefined;
365
- isCurrentUser?: boolean | undefined;
366
- isInCall?: boolean | undefined;
367
- isSpeaking?: boolean | undefined;
368
- isMuted?: boolean | undefined;
369
- }>>;
370
- stats: {
371
- open: boolean;
372
- panels: number;
373
- };
374
- currentChartType: import("../element/types").ChartType;
375
- pasteDialog: {
376
- shown: false;
377
- data: null;
378
- } | {
379
- shown: true;
380
- data: import("../charts").Spreadsheet;
381
- };
382
- pendingImageElementId: string | null;
383
- showHyperlinkPopup: false | "info" | "editor";
384
- linkOpacity: number;
385
- trayModeEnabled: boolean;
386
- colorPalette?: {
387
- canvasBackground: import("../colors").ColorPaletteCustom;
388
- elementBackground: import("../colors").ColorPaletteCustom;
389
- elementStroke: import("../colors").ColorPaletteCustom;
390
- topPicks: {
391
- canvasBackground: [string, string, string, string, string];
392
- elementStroke: [string, string, string, string, string];
393
- elementBackground: [string, string, string, string, string];
394
- };
395
- } | undefined;
396
- allowWheelZoom?: boolean | undefined;
397
- allowPinchZoom?: boolean | undefined;
398
- pinnedScripts?: string[] | undefined;
399
- customPens?: any[] | undefined;
400
- currentStrokeOptions?: any;
401
- resetCustomPen?: any;
402
- gridColor: {
403
- Bold: string;
404
- Regular: string;
405
- };
406
- highlightSearchResult: boolean;
407
- dynamicStyle: {
408
- [x: string]: string;
409
- };
410
- frameColor: {
411
- stroke: string;
412
- fill: string;
413
- nameColor: string;
414
- };
415
- invertBindingBehaviour: boolean;
416
- selectedLinearElement: LinearElementEditor | null;
417
- snapLines: readonly import("../snapping").SnapLine[];
418
- originSnapOffset: {
419
- x: number;
420
- y: number;
421
- } | null;
422
- objectsSnapModeEnabled: boolean;
423
- userToFollow: import("../types").UserToFollow | null;
424
- followedBy: Set<import("../types").SocketId>;
425
- searchMatches: readonly {
426
- id: string;
427
- focus: boolean;
428
- matchedLines: {
429
- offsetX: number;
430
- offsetY: number;
431
- width: number;
432
- height: number;
433
- }[];
434
- }[];
435
- };
436
- storeAction: "capture";
437
- };
438
- PanelComponent: ({ elements, appState, updateData }: import("./types").PanelComponentProps) => JSX.Element;
439
- } & {
440
- keyTest?: undefined;
441
- };
442
- export declare const actionChangeSloppiness: {
443
- name: "changeSloppiness";
444
- label: string;
445
- trackEvent: false;
446
- perform: (elements: readonly import("../element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, value: any) => {
447
- elements: ExcalidrawElement[];
448
- appState: {
449
- currentItemRoughness: any;
450
- contextMenu: {
451
- items: import("../components/ContextMenu").ContextMenuItems;
452
- top: number;
453
- left: number;
454
- } | null;
455
- showWelcomeScreen: boolean;
456
- isLoading: boolean;
457
- errorMessage: import("react").ReactNode;
458
- activeEmbeddable: {
459
- element: import("../element/types").NonDeletedExcalidrawElement;
460
- state: "active" | "hover";
461
- } | null;
462
- newElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawNonSelectionElement> | null;
463
- resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
464
- multiElement: import("../element/types").NonDeleted<ExcalidrawLinearElement> | null;
465
- selectionElement: import("../element/types").NonDeletedExcalidrawElement | null;
466
- isBindingEnabled: boolean;
467
- startBoundElement: import("../element/types").NonDeleted<ExcalidrawBindableElement> | null;
468
- suggestedBindings: import("../element/binding").SuggestedBinding[];
469
- frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameLikeElement> | null;
470
- frameRendering: {
471
- enabled: boolean;
472
- name: boolean;
473
- outline: boolean;
474
- clip: boolean;
475
- };
476
- editingFrame: string | null;
477
- elementsToHighlight: import("../element/types").NonDeleted<ExcalidrawElement>[] | null;
478
- editingTextElement: import("../element/types").NonDeletedExcalidrawElement | null;
479
- editingLinearElement: LinearElementEditor | null;
480
- activeTool: {
481
- lastActiveTool: import("../types").ActiveTool | null;
482
- locked: boolean;
483
- } & import("../types").ActiveTool;
484
- penMode: boolean;
485
- penDetected: boolean;
486
- exportBackground: boolean;
487
- exportEmbedScene: boolean;
488
- exportWithDarkMode: boolean;
489
- exportScale: number;
490
- currentItemStrokeColor: string;
491
- currentItemBackgroundColor: string;
492
- currentItemFillStyle: import("../element/types").FillStyle;
493
- currentItemStrokeWidth: number;
494
- currentItemStrokeStyle: import("../element/types").StrokeStyle;
495
- currentItemOpacity: number;
496
- currentItemFontFamily: number;
497
- currentItemFontSize: number;
498
- currentItemTextAlign: string;
499
- currentItemStartArrowhead: Arrowhead | null;
500
- currentItemEndArrowhead: Arrowhead | null;
501
- currentHoveredFontFamily: number | null;
502
- currentItemRoundness: import("../element/types").StrokeRoundness;
503
- currentItemArrowType: "round" | "sharp" | "elbow";
504
- viewBackgroundColor: string;
505
- scrollX: number;
506
- scrollY: number;
507
- cursorButton: "up" | "down";
508
- scrolledOutside: boolean;
509
- name: string | null;
510
- isResizing: boolean;
511
- isRotating: boolean;
512
- zoom: Readonly<{
513
- value: import("../types").NormalizedZoomValue;
514
- }>;
515
- openMenu: "canvas" | "shape" | null;
516
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
517
- openSidebar: {
518
- name: string;
519
- tab?: string | undefined;
520
- } | null;
521
- openDialog: {
522
- name: "imageExport" | "help" | "jsonExport";
523
- } | {
524
- name: "ttd";
525
- tab: "mermaid" | "text-to-diagram";
526
- } | {
527
- name: "commandPalette";
528
- } | null;
529
- defaultSidebarDockedPreference: boolean;
530
- lastPointerDownWith: import("../element/types").PointerType;
531
- selectedElementIds: Readonly<{
532
- [id: string]: true;
533
- }>;
534
- previousSelectedElementIds: {
535
- [id: string]: true;
536
- };
537
- selectedElementsAreBeingDragged: boolean;
538
- shouldCacheIgnoreZoom: boolean;
539
- toast: {
540
- message: string;
541
- closable?: boolean | undefined;
542
- duration?: number | undefined;
543
- } | null;
544
- zenModeEnabled: boolean;
545
- theme: import("../element/types").Theme;
546
- gridSize: number;
547
- gridStep: number;
548
- gridModeEnabled: boolean;
549
- viewModeEnabled: boolean;
550
- selectedGroupIds: {
551
- [groupId: string]: boolean;
552
- };
553
- editingGroupId: string | null;
554
- width: number;
555
- height: number;
556
- offsetTop: number;
557
- offsetLeft: number;
558
- fileHandle: import("browser-fs-access").FileSystemHandle | null;
559
- collaborators: Map<import("../types").SocketId, Readonly<{
560
- pointer?: import("../types").CollaboratorPointer | undefined;
561
- button?: "up" | "down" | undefined;
562
- selectedElementIds?: Readonly<{
563
- [id: string]: true;
564
- }> | undefined;
565
- username?: string | null | undefined;
566
- userState?: import("../types").UserIdleState | undefined;
567
- color?: {
568
- background: string;
569
- stroke: string;
570
- } | undefined;
571
- avatarUrl?: string | undefined;
572
- id?: string | undefined;
573
- socketId?: import("../types").SocketId | undefined;
574
- isCurrentUser?: boolean | undefined;
575
- isInCall?: boolean | undefined;
576
- isSpeaking?: boolean | undefined;
577
- isMuted?: boolean | undefined;
578
- }>>;
579
- stats: {
580
- open: boolean;
581
- panels: number;
582
- };
583
- currentChartType: import("../element/types").ChartType;
584
- pasteDialog: {
585
- shown: false;
586
- data: null;
587
- } | {
588
- shown: true;
589
- data: import("../charts").Spreadsheet;
590
- };
591
- pendingImageElementId: string | null;
592
- showHyperlinkPopup: false | "info" | "editor";
593
- linkOpacity: number;
594
- trayModeEnabled: boolean;
595
- colorPalette?: {
596
- canvasBackground: import("../colors").ColorPaletteCustom;
597
- elementBackground: import("../colors").ColorPaletteCustom;
598
- elementStroke: import("../colors").ColorPaletteCustom;
599
- topPicks: {
600
- canvasBackground: [string, string, string, string, string];
601
- elementStroke: [string, string, string, string, string];
602
- elementBackground: [string, string, string, string, string];
603
- };
604
- } | undefined;
605
- allowWheelZoom?: boolean | undefined;
606
- allowPinchZoom?: boolean | undefined;
607
- pinnedScripts?: string[] | undefined;
608
- customPens?: any[] | undefined;
609
- currentStrokeOptions?: any;
610
- resetCustomPen?: any;
611
- gridColor: {
612
- Bold: string;
613
- Regular: string;
614
- };
615
- highlightSearchResult: boolean;
616
- dynamicStyle: {
617
- [x: string]: string;
618
- };
619
- frameColor: {
620
- stroke: string;
621
- fill: string;
622
- nameColor: string;
623
- };
624
- invertBindingBehaviour: boolean;
625
- selectedLinearElement: LinearElementEditor | null;
626
- snapLines: readonly import("../snapping").SnapLine[];
627
- originSnapOffset: {
628
- x: number;
629
- y: number;
630
- } | null;
631
- objectsSnapModeEnabled: boolean;
632
- userToFollow: import("../types").UserToFollow | null;
633
- followedBy: Set<import("../types").SocketId>;
634
- searchMatches: readonly {
635
- id: string;
636
- focus: boolean;
637
- matchedLines: {
638
- offsetX: number;
639
- offsetY: number;
640
- width: number;
641
- height: number;
642
- }[];
643
- }[];
644
- };
645
- storeAction: "capture";
646
- };
647
- PanelComponent: ({ elements, appState, updateData }: import("./types").PanelComponentProps) => JSX.Element;
648
- } & {
649
- keyTest?: undefined;
650
- };
651
- export declare const actionChangeStrokeStyle: {
652
- name: "changeStrokeStyle";
653
- label: string;
654
- trackEvent: false;
655
- perform: (elements: readonly import("../element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, value: any) => {
656
- elements: ExcalidrawElement[];
657
- appState: {
658
- currentItemStrokeStyle: any;
659
- contextMenu: {
660
- items: import("../components/ContextMenu").ContextMenuItems;
661
- top: number;
662
- left: number;
663
- } | null;
664
- showWelcomeScreen: boolean;
665
- isLoading: boolean;
666
- errorMessage: import("react").ReactNode;
667
- activeEmbeddable: {
668
- element: import("../element/types").NonDeletedExcalidrawElement;
669
- state: "active" | "hover";
670
- } | null;
671
- newElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawNonSelectionElement> | null;
672
- resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
673
- multiElement: import("../element/types").NonDeleted<ExcalidrawLinearElement> | null;
674
- selectionElement: import("../element/types").NonDeletedExcalidrawElement | null;
675
- isBindingEnabled: boolean;
676
- startBoundElement: import("../element/types").NonDeleted<ExcalidrawBindableElement> | null;
677
- suggestedBindings: import("../element/binding").SuggestedBinding[];
678
- frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameLikeElement> | null;
679
- frameRendering: {
680
- enabled: boolean;
681
- name: boolean;
682
- outline: boolean;
683
- clip: boolean;
684
- };
685
- editingFrame: string | null;
686
- elementsToHighlight: import("../element/types").NonDeleted<ExcalidrawElement>[] | null;
687
- editingTextElement: import("../element/types").NonDeletedExcalidrawElement | null;
688
- editingLinearElement: LinearElementEditor | null;
689
- activeTool: {
690
- lastActiveTool: import("../types").ActiveTool | null;
691
- locked: boolean;
692
- } & import("../types").ActiveTool;
693
- penMode: boolean;
694
- penDetected: boolean;
695
- exportBackground: boolean;
696
- exportEmbedScene: boolean;
697
- exportWithDarkMode: boolean;
698
- exportScale: number;
699
- currentItemStrokeColor: string;
700
- currentItemBackgroundColor: string;
701
- currentItemFillStyle: import("../element/types").FillStyle;
702
- currentItemStrokeWidth: number;
703
- currentItemRoughness: number;
704
- currentItemOpacity: number;
705
- currentItemFontFamily: number;
706
- currentItemFontSize: number;
707
- currentItemTextAlign: string;
708
- currentItemStartArrowhead: Arrowhead | null;
709
- currentItemEndArrowhead: Arrowhead | null;
710
- currentHoveredFontFamily: number | null;
711
- currentItemRoundness: import("../element/types").StrokeRoundness;
712
- currentItemArrowType: "round" | "sharp" | "elbow";
713
- viewBackgroundColor: string;
714
- scrollX: number;
715
- scrollY: number;
716
- cursorButton: "up" | "down";
717
- scrolledOutside: boolean;
718
- name: string | null;
719
- isResizing: boolean;
720
- isRotating: boolean;
721
- zoom: Readonly<{
722
- value: import("../types").NormalizedZoomValue;
723
- }>;
724
- openMenu: "canvas" | "shape" | null;
725
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
726
- openSidebar: {
727
- name: string;
728
- tab?: string | undefined;
729
- } | null;
730
- openDialog: {
731
- name: "imageExport" | "help" | "jsonExport";
732
- } | {
733
- name: "ttd";
734
- tab: "mermaid" | "text-to-diagram";
735
- } | {
736
- name: "commandPalette";
737
- } | null;
738
- defaultSidebarDockedPreference: boolean;
739
- lastPointerDownWith: import("../element/types").PointerType;
740
- selectedElementIds: Readonly<{
741
- [id: string]: true;
742
- }>;
743
- previousSelectedElementIds: {
744
- [id: string]: true;
745
- };
746
- selectedElementsAreBeingDragged: boolean;
747
- shouldCacheIgnoreZoom: boolean;
748
- toast: {
749
- message: string;
750
- closable?: boolean | undefined;
751
- duration?: number | undefined;
752
- } | null;
753
- zenModeEnabled: boolean;
754
- theme: import("../element/types").Theme;
755
- gridSize: number;
756
- gridStep: number;
757
- gridModeEnabled: boolean;
758
- viewModeEnabled: boolean;
759
- selectedGroupIds: {
760
- [groupId: string]: boolean;
761
- };
762
- editingGroupId: string | null;
763
- width: number;
764
- height: number;
765
- offsetTop: number;
766
- offsetLeft: number;
767
- fileHandle: import("browser-fs-access").FileSystemHandle | null;
768
- collaborators: Map<import("../types").SocketId, Readonly<{
769
- pointer?: import("../types").CollaboratorPointer | undefined;
770
- button?: "up" | "down" | undefined;
771
- selectedElementIds?: Readonly<{
772
- [id: string]: true;
773
- }> | undefined;
774
- username?: string | null | undefined;
775
- userState?: import("../types").UserIdleState | undefined;
776
- color?: {
777
- background: string;
778
- stroke: string;
779
- } | undefined;
780
- avatarUrl?: string | undefined;
781
- id?: string | undefined;
782
- socketId?: import("../types").SocketId | undefined;
783
- isCurrentUser?: boolean | undefined;
784
- isInCall?: boolean | undefined;
785
- isSpeaking?: boolean | undefined;
786
- isMuted?: boolean | undefined;
787
- }>>;
788
- stats: {
789
- open: boolean;
790
- panels: number;
791
- };
792
- currentChartType: import("../element/types").ChartType;
793
- pasteDialog: {
794
- shown: false;
795
- data: null;
796
- } | {
797
- shown: true;
798
- data: import("../charts").Spreadsheet;
799
- };
800
- pendingImageElementId: string | null;
801
- showHyperlinkPopup: false | "info" | "editor";
802
- linkOpacity: number;
803
- trayModeEnabled: boolean;
804
- colorPalette?: {
805
- canvasBackground: import("../colors").ColorPaletteCustom;
806
- elementBackground: import("../colors").ColorPaletteCustom;
807
- elementStroke: import("../colors").ColorPaletteCustom;
808
- topPicks: {
809
- canvasBackground: [string, string, string, string, string];
810
- elementStroke: [string, string, string, string, string];
811
- elementBackground: [string, string, string, string, string];
812
- };
813
- } | undefined;
814
- allowWheelZoom?: boolean | undefined;
815
- allowPinchZoom?: boolean | undefined;
816
- pinnedScripts?: string[] | undefined;
817
- customPens?: any[] | undefined;
818
- currentStrokeOptions?: any;
819
- resetCustomPen?: any;
820
- gridColor: {
821
- Bold: string;
822
- Regular: string;
823
- };
824
- highlightSearchResult: boolean;
825
- dynamicStyle: {
826
- [x: string]: string;
827
- };
828
- frameColor: {
829
- stroke: string;
830
- fill: string;
831
- nameColor: string;
832
- };
833
- invertBindingBehaviour: boolean;
834
- selectedLinearElement: LinearElementEditor | null;
835
- snapLines: readonly import("../snapping").SnapLine[];
836
- originSnapOffset: {
837
- x: number;
838
- y: number;
839
- } | null;
840
- objectsSnapModeEnabled: boolean;
841
- userToFollow: import("../types").UserToFollow | null;
842
- followedBy: Set<import("../types").SocketId>;
843
- searchMatches: readonly {
844
- id: string;
845
- focus: boolean;
846
- matchedLines: {
847
- offsetX: number;
848
- offsetY: number;
849
- width: number;
850
- height: number;
851
- }[];
852
- }[];
853
- };
854
- storeAction: "capture";
855
- };
856
- PanelComponent: ({ elements, appState, updateData }: import("./types").PanelComponentProps) => JSX.Element;
857
- } & {
858
- keyTest?: undefined;
859
- };
860
- export declare const actionChangeOpacity: {
861
- name: "changeOpacity";
862
- label: string;
863
- trackEvent: false;
864
- perform: (elements: readonly import("../element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, value: any) => {
865
- elements: ExcalidrawElement[];
866
- appState: {
867
- currentItemOpacity: any;
868
- contextMenu: {
869
- items: import("../components/ContextMenu").ContextMenuItems;
870
- top: number;
871
- left: number;
872
- } | null;
873
- showWelcomeScreen: boolean;
874
- isLoading: boolean;
875
- errorMessage: import("react").ReactNode;
876
- activeEmbeddable: {
877
- element: import("../element/types").NonDeletedExcalidrawElement;
878
- state: "active" | "hover";
879
- } | null;
880
- newElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawNonSelectionElement> | null;
881
- resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
882
- multiElement: import("../element/types").NonDeleted<ExcalidrawLinearElement> | null;
883
- selectionElement: import("../element/types").NonDeletedExcalidrawElement | null;
884
- isBindingEnabled: boolean;
885
- startBoundElement: import("../element/types").NonDeleted<ExcalidrawBindableElement> | null;
886
- suggestedBindings: import("../element/binding").SuggestedBinding[];
887
- frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameLikeElement> | null;
888
- frameRendering: {
889
- enabled: boolean;
890
- name: boolean;
891
- outline: boolean;
892
- clip: boolean;
893
- };
894
- editingFrame: string | null;
895
- elementsToHighlight: import("../element/types").NonDeleted<ExcalidrawElement>[] | null;
896
- editingTextElement: import("../element/types").NonDeletedExcalidrawElement | null;
897
- editingLinearElement: LinearElementEditor | null;
898
- activeTool: {
899
- lastActiveTool: import("../types").ActiveTool | null;
900
- locked: boolean;
901
- } & import("../types").ActiveTool;
902
- penMode: boolean;
903
- penDetected: boolean;
904
- exportBackground: boolean;
905
- exportEmbedScene: boolean;
906
- exportWithDarkMode: boolean;
907
- exportScale: number;
908
- currentItemStrokeColor: string;
909
- currentItemBackgroundColor: string;
910
- currentItemFillStyle: import("../element/types").FillStyle;
911
- currentItemStrokeWidth: number;
912
- currentItemStrokeStyle: import("../element/types").StrokeStyle;
913
- currentItemRoughness: number;
914
- currentItemFontFamily: number;
915
- currentItemFontSize: number;
916
- currentItemTextAlign: string;
917
- currentItemStartArrowhead: Arrowhead | null;
918
- currentItemEndArrowhead: Arrowhead | null;
919
- currentHoveredFontFamily: number | null;
920
- currentItemRoundness: import("../element/types").StrokeRoundness;
921
- currentItemArrowType: "round" | "sharp" | "elbow";
922
- viewBackgroundColor: string;
923
- scrollX: number;
924
- scrollY: number;
925
- cursorButton: "up" | "down";
926
- scrolledOutside: boolean;
927
- name: string | null;
928
- isResizing: boolean;
929
- isRotating: boolean;
930
- zoom: Readonly<{
931
- value: import("../types").NormalizedZoomValue;
932
- }>;
933
- openMenu: "canvas" | "shape" | null;
934
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
935
- openSidebar: {
936
- name: string;
937
- tab?: string | undefined;
938
- } | null;
939
- openDialog: {
940
- name: "imageExport" | "help" | "jsonExport";
941
- } | {
942
- name: "ttd";
943
- tab: "mermaid" | "text-to-diagram";
944
- } | {
945
- name: "commandPalette";
946
- } | null;
947
- defaultSidebarDockedPreference: boolean;
948
- lastPointerDownWith: import("../element/types").PointerType;
949
- selectedElementIds: Readonly<{
950
- [id: string]: true;
951
- }>;
952
- previousSelectedElementIds: {
953
- [id: string]: true;
954
- };
955
- selectedElementsAreBeingDragged: boolean;
956
- shouldCacheIgnoreZoom: boolean;
957
- toast: {
958
- message: string;
959
- closable?: boolean | undefined;
960
- duration?: number | undefined;
961
- } | null;
962
- zenModeEnabled: boolean;
963
- theme: import("../element/types").Theme;
964
- gridSize: number;
965
- gridStep: number;
966
- gridModeEnabled: boolean;
967
- viewModeEnabled: boolean;
968
- selectedGroupIds: {
969
- [groupId: string]: boolean;
970
- };
971
- editingGroupId: string | null;
972
- width: number;
973
- height: number;
974
- offsetTop: number;
975
- offsetLeft: number;
976
- fileHandle: import("browser-fs-access").FileSystemHandle | null;
977
- collaborators: Map<import("../types").SocketId, Readonly<{
978
- pointer?: import("../types").CollaboratorPointer | undefined;
979
- button?: "up" | "down" | undefined;
980
- selectedElementIds?: Readonly<{
981
- [id: string]: true;
982
- }> | undefined;
983
- username?: string | null | undefined;
984
- userState?: import("../types").UserIdleState | undefined;
985
- color?: {
986
- background: string;
987
- stroke: string;
988
- } | undefined;
989
- avatarUrl?: string | undefined;
990
- id?: string | undefined;
991
- socketId?: import("../types").SocketId | undefined;
992
- isCurrentUser?: boolean | undefined;
993
- isInCall?: boolean | undefined;
994
- isSpeaking?: boolean | undefined;
995
- isMuted?: boolean | undefined;
996
- }>>;
997
- stats: {
998
- open: boolean;
999
- panels: number;
1000
- };
1001
- currentChartType: import("../element/types").ChartType;
1002
- pasteDialog: {
1003
- shown: false;
1004
- data: null;
1005
- } | {
1006
- shown: true;
1007
- data: import("../charts").Spreadsheet;
1008
- };
1009
- pendingImageElementId: string | null;
1010
- showHyperlinkPopup: false | "info" | "editor";
1011
- linkOpacity: number;
1012
- trayModeEnabled: boolean;
1013
- colorPalette?: {
1014
- canvasBackground: import("../colors").ColorPaletteCustom;
1015
- elementBackground: import("../colors").ColorPaletteCustom;
1016
- elementStroke: import("../colors").ColorPaletteCustom;
1017
- topPicks: {
1018
- canvasBackground: [string, string, string, string, string];
1019
- elementStroke: [string, string, string, string, string];
1020
- elementBackground: [string, string, string, string, string];
1021
- };
1022
- } | undefined;
1023
- allowWheelZoom?: boolean | undefined;
1024
- allowPinchZoom?: boolean | undefined;
1025
- pinnedScripts?: string[] | undefined;
1026
- customPens?: any[] | undefined;
1027
- currentStrokeOptions?: any;
1028
- resetCustomPen?: any;
1029
- gridColor: {
1030
- Bold: string;
1031
- Regular: string;
1032
- };
1033
- highlightSearchResult: boolean;
1034
- dynamicStyle: {
1035
- [x: string]: string;
1036
- };
1037
- frameColor: {
1038
- stroke: string;
1039
- fill: string;
1040
- nameColor: string;
1041
- };
1042
- invertBindingBehaviour: boolean;
1043
- selectedLinearElement: LinearElementEditor | null;
1044
- snapLines: readonly import("../snapping").SnapLine[];
1045
- originSnapOffset: {
1046
- x: number;
1047
- y: number;
1048
- } | null;
1049
- objectsSnapModeEnabled: boolean;
1050
- userToFollow: import("../types").UserToFollow | null;
1051
- followedBy: Set<import("../types").SocketId>;
1052
- searchMatches: readonly {
1053
- id: string;
1054
- focus: boolean;
1055
- matchedLines: {
1056
- offsetX: number;
1057
- offsetY: number;
1058
- width: number;
1059
- height: number;
1060
- }[];
1061
- }[];
1062
- };
1063
- storeAction: "capture";
1064
- };
1065
- PanelComponent: ({ elements, appState, updateData }: import("./types").PanelComponentProps) => JSX.Element;
1066
- } & {
1067
- keyTest?: undefined;
1068
- };
1069
- export declare const getFontSize: (size: number, zoom: number) => number;
1070
- export declare const actionChangeFontSize: {
1071
- name: "changeFontSize";
1072
- label: string;
1073
- trackEvent: false;
1074
- perform: (elements: readonly import("../element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, value: any, app: AppClassProperties) => {
1075
- elements: ExcalidrawElement[];
1076
- appState: {
1077
- currentItemFontSize: number;
1078
- contextMenu: {
1079
- items: import("../components/ContextMenu").ContextMenuItems;
1080
- top: number;
1081
- left: number;
1082
- } | null;
1083
- showWelcomeScreen: boolean;
1084
- isLoading: boolean;
1085
- errorMessage: import("react").ReactNode;
1086
- activeEmbeddable: {
1087
- element: import("../element/types").NonDeletedExcalidrawElement;
1088
- state: "active" | "hover";
1089
- } | null;
1090
- newElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawNonSelectionElement> | null;
1091
- resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
1092
- multiElement: import("../element/types").NonDeleted<ExcalidrawLinearElement> | null;
1093
- selectionElement: import("../element/types").NonDeletedExcalidrawElement | null;
1094
- isBindingEnabled: boolean;
1095
- startBoundElement: import("../element/types").NonDeleted<ExcalidrawBindableElement> | null;
1096
- suggestedBindings: import("../element/binding").SuggestedBinding[];
1097
- frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameLikeElement> | null;
1098
- frameRendering: {
1099
- enabled: boolean;
1100
- name: boolean;
1101
- outline: boolean;
1102
- clip: boolean;
1103
- };
1104
- editingFrame: string | null;
1105
- elementsToHighlight: import("../element/types").NonDeleted<ExcalidrawElement>[] | null;
1106
- editingTextElement: import("../element/types").NonDeletedExcalidrawElement | null;
1107
- editingLinearElement: LinearElementEditor | null;
1108
- activeTool: {
1109
- lastActiveTool: import("../types").ActiveTool | null;
1110
- locked: boolean;
1111
- } & import("../types").ActiveTool;
1112
- penMode: boolean;
1113
- penDetected: boolean;
1114
- exportBackground: boolean;
1115
- exportEmbedScene: boolean;
1116
- exportWithDarkMode: boolean;
1117
- exportScale: number;
1118
- currentItemStrokeColor: string;
1119
- currentItemBackgroundColor: string;
1120
- currentItemFillStyle: import("../element/types").FillStyle;
1121
- currentItemStrokeWidth: number;
1122
- currentItemStrokeStyle: import("../element/types").StrokeStyle;
1123
- currentItemRoughness: number;
1124
- currentItemOpacity: number;
1125
- currentItemFontFamily: number;
1126
- currentItemTextAlign: string;
1127
- currentItemStartArrowhead: Arrowhead | null;
1128
- currentItemEndArrowhead: Arrowhead | null;
1129
- currentHoveredFontFamily: number | null;
1130
- currentItemRoundness: import("../element/types").StrokeRoundness;
1131
- currentItemArrowType: "round" | "sharp" | "elbow";
1132
- viewBackgroundColor: string;
1133
- scrollX: number;
1134
- scrollY: number;
1135
- cursorButton: "up" | "down";
1136
- scrolledOutside: boolean;
1137
- name: string | null;
1138
- isResizing: boolean;
1139
- isRotating: boolean;
1140
- zoom: Readonly<{
1141
- value: import("../types").NormalizedZoomValue;
1142
- }>;
1143
- openMenu: "canvas" | "shape" | null;
1144
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
1145
- openSidebar: {
1146
- name: string;
1147
- tab?: string | undefined;
1148
- } | null;
1149
- openDialog: {
1150
- name: "imageExport" | "help" | "jsonExport";
1151
- } | {
1152
- name: "ttd";
1153
- tab: "mermaid" | "text-to-diagram";
1154
- } | {
1155
- name: "commandPalette";
1156
- } | null;
1157
- defaultSidebarDockedPreference: boolean;
1158
- lastPointerDownWith: import("../element/types").PointerType;
1159
- selectedElementIds: Readonly<{
1160
- [id: string]: true;
1161
- }>;
1162
- previousSelectedElementIds: {
1163
- [id: string]: true;
1164
- };
1165
- selectedElementsAreBeingDragged: boolean;
1166
- shouldCacheIgnoreZoom: boolean;
1167
- toast: {
1168
- message: string;
1169
- closable?: boolean | undefined;
1170
- duration?: number | undefined;
1171
- } | null;
1172
- zenModeEnabled: boolean;
1173
- theme: import("../element/types").Theme;
1174
- gridSize: number;
1175
- gridStep: number;
1176
- gridModeEnabled: boolean;
1177
- viewModeEnabled: boolean;
1178
- selectedGroupIds: {
1179
- [groupId: string]: boolean;
1180
- };
1181
- editingGroupId: string | null;
1182
- width: number;
1183
- height: number;
1184
- offsetTop: number;
1185
- offsetLeft: number;
1186
- fileHandle: import("browser-fs-access").FileSystemHandle | null;
1187
- collaborators: Map<import("../types").SocketId, Readonly<{
1188
- pointer?: import("../types").CollaboratorPointer | undefined;
1189
- button?: "up" | "down" | undefined;
1190
- selectedElementIds?: Readonly<{
1191
- [id: string]: true;
1192
- }> | undefined;
1193
- username?: string | null | undefined;
1194
- userState?: import("../types").UserIdleState | undefined;
1195
- color?: {
1196
- background: string;
1197
- stroke: string;
1198
- } | undefined;
1199
- avatarUrl?: string | undefined;
1200
- id?: string | undefined;
1201
- socketId?: import("../types").SocketId | undefined;
1202
- isCurrentUser?: boolean | undefined;
1203
- isInCall?: boolean | undefined;
1204
- isSpeaking?: boolean | undefined;
1205
- isMuted?: boolean | undefined;
1206
- }>>;
1207
- stats: {
1208
- open: boolean;
1209
- panels: number;
1210
- };
1211
- currentChartType: import("../element/types").ChartType;
1212
- pasteDialog: {
1213
- shown: false;
1214
- data: null;
1215
- } | {
1216
- shown: true;
1217
- data: import("../charts").Spreadsheet;
1218
- };
1219
- pendingImageElementId: string | null;
1220
- showHyperlinkPopup: false | "info" | "editor";
1221
- linkOpacity: number;
1222
- trayModeEnabled: boolean;
1223
- colorPalette?: {
1224
- canvasBackground: import("../colors").ColorPaletteCustom;
1225
- elementBackground: import("../colors").ColorPaletteCustom;
1226
- elementStroke: import("../colors").ColorPaletteCustom;
1227
- topPicks: {
1228
- canvasBackground: [string, string, string, string, string];
1229
- elementStroke: [string, string, string, string, string];
1230
- elementBackground: [string, string, string, string, string];
1231
- };
1232
- } | undefined;
1233
- allowWheelZoom?: boolean | undefined;
1234
- allowPinchZoom?: boolean | undefined;
1235
- pinnedScripts?: string[] | undefined;
1236
- customPens?: any[] | undefined;
1237
- currentStrokeOptions?: any;
1238
- resetCustomPen?: any;
1239
- gridColor: {
1240
- Bold: string;
1241
- Regular: string;
1242
- };
1243
- highlightSearchResult: boolean;
1244
- dynamicStyle: {
1245
- [x: string]: string;
1246
- };
1247
- frameColor: {
1248
- stroke: string;
1249
- fill: string;
1250
- nameColor: string;
1251
- };
1252
- invertBindingBehaviour: boolean;
1253
- selectedLinearElement: LinearElementEditor | null;
1254
- snapLines: readonly import("../snapping").SnapLine[];
1255
- originSnapOffset: {
1256
- x: number;
1257
- y: number;
1258
- } | null;
1259
- objectsSnapModeEnabled: boolean;
1260
- userToFollow: import("../types").UserToFollow | null;
1261
- followedBy: Set<import("../types").SocketId>;
1262
- searchMatches: readonly {
1263
- id: string;
1264
- focus: boolean;
1265
- matchedLines: {
1266
- offsetX: number;
1267
- offsetY: number;
1268
- width: number;
1269
- height: number;
1270
- }[];
1271
- }[];
1272
- };
1273
- storeAction: "capture";
1274
- };
1275
- PanelComponent: ({ elements, appState, updateData, app }: import("./types").PanelComponentProps) => JSX.Element;
1276
- } & {
1277
- keyTest?: undefined;
1278
- };
1279
- export declare const actionDecreaseFontSize: {
1280
- name: "decreaseFontSize";
1281
- label: string;
1282
- icon: JSX.Element;
1283
- trackEvent: false;
1284
- perform: (elements: readonly import("../element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, value: any, app: AppClassProperties) => {
1285
- elements: ExcalidrawElement[];
1286
- appState: {
1287
- currentItemFontSize: number;
1288
- contextMenu: {
1289
- items: import("../components/ContextMenu").ContextMenuItems;
1290
- top: number;
1291
- left: number;
1292
- } | null;
1293
- showWelcomeScreen: boolean;
1294
- isLoading: boolean;
1295
- errorMessage: import("react").ReactNode;
1296
- activeEmbeddable: {
1297
- element: import("../element/types").NonDeletedExcalidrawElement;
1298
- state: "active" | "hover";
1299
- } | null;
1300
- newElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawNonSelectionElement> | null;
1301
- resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
1302
- multiElement: import("../element/types").NonDeleted<ExcalidrawLinearElement> | null;
1303
- selectionElement: import("../element/types").NonDeletedExcalidrawElement | null;
1304
- isBindingEnabled: boolean;
1305
- startBoundElement: import("../element/types").NonDeleted<ExcalidrawBindableElement> | null;
1306
- suggestedBindings: import("../element/binding").SuggestedBinding[];
1307
- frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameLikeElement> | null;
1308
- frameRendering: {
1309
- enabled: boolean;
1310
- name: boolean;
1311
- outline: boolean;
1312
- clip: boolean;
1313
- };
1314
- editingFrame: string | null;
1315
- elementsToHighlight: import("../element/types").NonDeleted<ExcalidrawElement>[] | null;
1316
- editingTextElement: import("../element/types").NonDeletedExcalidrawElement | null;
1317
- editingLinearElement: LinearElementEditor | null;
1318
- activeTool: {
1319
- lastActiveTool: import("../types").ActiveTool | null;
1320
- locked: boolean;
1321
- } & import("../types").ActiveTool;
1322
- penMode: boolean;
1323
- penDetected: boolean;
1324
- exportBackground: boolean;
1325
- exportEmbedScene: boolean;
1326
- exportWithDarkMode: boolean;
1327
- exportScale: number;
1328
- currentItemStrokeColor: string;
1329
- currentItemBackgroundColor: string;
1330
- currentItemFillStyle: import("../element/types").FillStyle;
1331
- currentItemStrokeWidth: number;
1332
- currentItemStrokeStyle: import("../element/types").StrokeStyle;
1333
- currentItemRoughness: number;
1334
- currentItemOpacity: number;
1335
- currentItemFontFamily: number;
1336
- currentItemTextAlign: string;
1337
- currentItemStartArrowhead: Arrowhead | null;
1338
- currentItemEndArrowhead: Arrowhead | null;
1339
- currentHoveredFontFamily: number | null;
1340
- currentItemRoundness: import("../element/types").StrokeRoundness;
1341
- currentItemArrowType: "round" | "sharp" | "elbow";
1342
- viewBackgroundColor: string;
1343
- scrollX: number;
1344
- scrollY: number;
1345
- cursorButton: "up" | "down";
1346
- scrolledOutside: boolean;
1347
- name: string | null;
1348
- isResizing: boolean;
1349
- isRotating: boolean;
1350
- zoom: Readonly<{
1351
- value: import("../types").NormalizedZoomValue;
1352
- }>;
1353
- openMenu: "canvas" | "shape" | null;
1354
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
1355
- openSidebar: {
1356
- name: string;
1357
- tab?: string | undefined;
1358
- } | null;
1359
- openDialog: {
1360
- name: "imageExport" | "help" | "jsonExport";
1361
- } | {
1362
- name: "ttd";
1363
- tab: "mermaid" | "text-to-diagram";
1364
- } | {
1365
- name: "commandPalette";
1366
- } | null;
1367
- defaultSidebarDockedPreference: boolean;
1368
- lastPointerDownWith: import("../element/types").PointerType;
1369
- selectedElementIds: Readonly<{
1370
- [id: string]: true;
1371
- }>;
1372
- previousSelectedElementIds: {
1373
- [id: string]: true;
1374
- };
1375
- selectedElementsAreBeingDragged: boolean;
1376
- shouldCacheIgnoreZoom: boolean;
1377
- toast: {
1378
- message: string;
1379
- closable?: boolean | undefined;
1380
- duration?: number | undefined;
1381
- } | null;
1382
- zenModeEnabled: boolean;
1383
- theme: import("../element/types").Theme;
1384
- gridSize: number;
1385
- gridStep: number;
1386
- gridModeEnabled: boolean;
1387
- viewModeEnabled: boolean;
1388
- selectedGroupIds: {
1389
- [groupId: string]: boolean;
1390
- };
1391
- editingGroupId: string | null;
1392
- width: number;
1393
- height: number;
1394
- offsetTop: number;
1395
- offsetLeft: number;
1396
- fileHandle: import("browser-fs-access").FileSystemHandle | null;
1397
- collaborators: Map<import("../types").SocketId, Readonly<{
1398
- pointer?: import("../types").CollaboratorPointer | undefined;
1399
- button?: "up" | "down" | undefined;
1400
- selectedElementIds?: Readonly<{
1401
- [id: string]: true;
1402
- }> | undefined;
1403
- username?: string | null | undefined;
1404
- userState?: import("../types").UserIdleState | undefined;
1405
- color?: {
1406
- background: string;
1407
- stroke: string;
1408
- } | undefined;
1409
- avatarUrl?: string | undefined;
1410
- id?: string | undefined;
1411
- socketId?: import("../types").SocketId | undefined;
1412
- isCurrentUser?: boolean | undefined;
1413
- isInCall?: boolean | undefined;
1414
- isSpeaking?: boolean | undefined;
1415
- isMuted?: boolean | undefined;
1416
- }>>;
1417
- stats: {
1418
- open: boolean;
1419
- panels: number;
1420
- };
1421
- currentChartType: import("../element/types").ChartType;
1422
- pasteDialog: {
1423
- shown: false;
1424
- data: null;
1425
- } | {
1426
- shown: true;
1427
- data: import("../charts").Spreadsheet;
1428
- };
1429
- pendingImageElementId: string | null;
1430
- showHyperlinkPopup: false | "info" | "editor";
1431
- linkOpacity: number;
1432
- trayModeEnabled: boolean;
1433
- colorPalette?: {
1434
- canvasBackground: import("../colors").ColorPaletteCustom;
1435
- elementBackground: import("../colors").ColorPaletteCustom;
1436
- elementStroke: import("../colors").ColorPaletteCustom;
1437
- topPicks: {
1438
- canvasBackground: [string, string, string, string, string];
1439
- elementStroke: [string, string, string, string, string];
1440
- elementBackground: [string, string, string, string, string];
1441
- };
1442
- } | undefined;
1443
- allowWheelZoom?: boolean | undefined;
1444
- allowPinchZoom?: boolean | undefined;
1445
- pinnedScripts?: string[] | undefined;
1446
- customPens?: any[] | undefined;
1447
- currentStrokeOptions?: any;
1448
- resetCustomPen?: any;
1449
- gridColor: {
1450
- Bold: string;
1451
- Regular: string;
1452
- };
1453
- highlightSearchResult: boolean;
1454
- dynamicStyle: {
1455
- [x: string]: string;
1456
- };
1457
- frameColor: {
1458
- stroke: string;
1459
- fill: string;
1460
- nameColor: string;
1461
- };
1462
- invertBindingBehaviour: boolean;
1463
- selectedLinearElement: LinearElementEditor | null;
1464
- snapLines: readonly import("../snapping").SnapLine[];
1465
- originSnapOffset: {
1466
- x: number;
1467
- y: number;
1468
- } | null;
1469
- objectsSnapModeEnabled: boolean;
1470
- userToFollow: import("../types").UserToFollow | null;
1471
- followedBy: Set<import("../types").SocketId>;
1472
- searchMatches: readonly {
1473
- id: string;
1474
- focus: boolean;
1475
- matchedLines: {
1476
- offsetX: number;
1477
- offsetY: number;
1478
- width: number;
1479
- height: number;
1480
- }[];
1481
- }[];
1482
- };
1483
- storeAction: "capture";
1484
- };
1485
- keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
1486
- } & {
1487
- keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
1488
- };
1489
- export declare const actionIncreaseFontSize: {
1490
- name: "increaseFontSize";
1491
- label: string;
1492
- icon: JSX.Element;
1493
- trackEvent: false;
1494
- perform: (elements: readonly import("../element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, value: any, app: AppClassProperties) => {
1495
- elements: ExcalidrawElement[];
1496
- appState: {
1497
- currentItemFontSize: number;
1498
- contextMenu: {
1499
- items: import("../components/ContextMenu").ContextMenuItems;
1500
- top: number;
1501
- left: number;
1502
- } | null;
1503
- showWelcomeScreen: boolean;
1504
- isLoading: boolean;
1505
- errorMessage: import("react").ReactNode;
1506
- activeEmbeddable: {
1507
- element: import("../element/types").NonDeletedExcalidrawElement;
1508
- state: "active" | "hover";
1509
- } | null;
1510
- newElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawNonSelectionElement> | null;
1511
- resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
1512
- multiElement: import("../element/types").NonDeleted<ExcalidrawLinearElement> | null;
1513
- selectionElement: import("../element/types").NonDeletedExcalidrawElement | null;
1514
- isBindingEnabled: boolean;
1515
- startBoundElement: import("../element/types").NonDeleted<ExcalidrawBindableElement> | null;
1516
- suggestedBindings: import("../element/binding").SuggestedBinding[];
1517
- frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameLikeElement> | null;
1518
- frameRendering: {
1519
- enabled: boolean;
1520
- name: boolean;
1521
- outline: boolean;
1522
- clip: boolean;
1523
- };
1524
- editingFrame: string | null;
1525
- elementsToHighlight: import("../element/types").NonDeleted<ExcalidrawElement>[] | null;
1526
- editingTextElement: import("../element/types").NonDeletedExcalidrawElement | null;
1527
- editingLinearElement: LinearElementEditor | null;
1528
- activeTool: {
1529
- lastActiveTool: import("../types").ActiveTool | null;
1530
- locked: boolean;
1531
- } & import("../types").ActiveTool;
1532
- penMode: boolean;
1533
- penDetected: boolean;
1534
- exportBackground: boolean;
1535
- exportEmbedScene: boolean;
1536
- exportWithDarkMode: boolean;
1537
- exportScale: number;
1538
- currentItemStrokeColor: string;
1539
- currentItemBackgroundColor: string;
1540
- currentItemFillStyle: import("../element/types").FillStyle;
1541
- currentItemStrokeWidth: number;
1542
- currentItemStrokeStyle: import("../element/types").StrokeStyle;
1543
- currentItemRoughness: number;
1544
- currentItemOpacity: number;
1545
- currentItemFontFamily: number;
1546
- currentItemTextAlign: string;
1547
- currentItemStartArrowhead: Arrowhead | null;
1548
- currentItemEndArrowhead: Arrowhead | null;
1549
- currentHoveredFontFamily: number | null;
1550
- currentItemRoundness: import("../element/types").StrokeRoundness;
1551
- currentItemArrowType: "round" | "sharp" | "elbow";
1552
- viewBackgroundColor: string;
1553
- scrollX: number;
1554
- scrollY: number;
1555
- cursorButton: "up" | "down";
1556
- scrolledOutside: boolean;
1557
- name: string | null;
1558
- isResizing: boolean;
1559
- isRotating: boolean;
1560
- zoom: Readonly<{
1561
- value: import("../types").NormalizedZoomValue;
1562
- }>;
1563
- openMenu: "canvas" | "shape" | null;
1564
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
1565
- openSidebar: {
1566
- name: string;
1567
- tab?: string | undefined;
1568
- } | null;
1569
- openDialog: {
1570
- name: "imageExport" | "help" | "jsonExport";
1571
- } | {
1572
- name: "ttd";
1573
- tab: "mermaid" | "text-to-diagram";
1574
- } | {
1575
- name: "commandPalette";
1576
- } | null;
1577
- defaultSidebarDockedPreference: boolean;
1578
- lastPointerDownWith: import("../element/types").PointerType;
1579
- selectedElementIds: Readonly<{
1580
- [id: string]: true;
1581
- }>;
1582
- previousSelectedElementIds: {
1583
- [id: string]: true;
1584
- };
1585
- selectedElementsAreBeingDragged: boolean;
1586
- shouldCacheIgnoreZoom: boolean;
1587
- toast: {
1588
- message: string;
1589
- closable?: boolean | undefined;
1590
- duration?: number | undefined;
1591
- } | null;
1592
- zenModeEnabled: boolean;
1593
- theme: import("../element/types").Theme;
1594
- gridSize: number;
1595
- gridStep: number;
1596
- gridModeEnabled: boolean;
1597
- viewModeEnabled: boolean;
1598
- selectedGroupIds: {
1599
- [groupId: string]: boolean;
1600
- };
1601
- editingGroupId: string | null;
1602
- width: number;
1603
- height: number;
1604
- offsetTop: number;
1605
- offsetLeft: number;
1606
- fileHandle: import("browser-fs-access").FileSystemHandle | null;
1607
- collaborators: Map<import("../types").SocketId, Readonly<{
1608
- pointer?: import("../types").CollaboratorPointer | undefined;
1609
- button?: "up" | "down" | undefined;
1610
- selectedElementIds?: Readonly<{
1611
- [id: string]: true;
1612
- }> | undefined;
1613
- username?: string | null | undefined;
1614
- userState?: import("../types").UserIdleState | undefined;
1615
- color?: {
1616
- background: string;
1617
- stroke: string;
1618
- } | undefined;
1619
- avatarUrl?: string | undefined;
1620
- id?: string | undefined;
1621
- socketId?: import("../types").SocketId | undefined;
1622
- isCurrentUser?: boolean | undefined;
1623
- isInCall?: boolean | undefined;
1624
- isSpeaking?: boolean | undefined;
1625
- isMuted?: boolean | undefined;
1626
- }>>;
1627
- stats: {
1628
- open: boolean;
1629
- panels: number;
1630
- };
1631
- currentChartType: import("../element/types").ChartType;
1632
- pasteDialog: {
1633
- shown: false;
1634
- data: null;
1635
- } | {
1636
- shown: true;
1637
- data: import("../charts").Spreadsheet;
1638
- };
1639
- pendingImageElementId: string | null;
1640
- showHyperlinkPopup: false | "info" | "editor";
1641
- linkOpacity: number;
1642
- trayModeEnabled: boolean;
1643
- colorPalette?: {
1644
- canvasBackground: import("../colors").ColorPaletteCustom;
1645
- elementBackground: import("../colors").ColorPaletteCustom;
1646
- elementStroke: import("../colors").ColorPaletteCustom;
1647
- topPicks: {
1648
- canvasBackground: [string, string, string, string, string];
1649
- elementStroke: [string, string, string, string, string];
1650
- elementBackground: [string, string, string, string, string];
1651
- };
1652
- } | undefined;
1653
- allowWheelZoom?: boolean | undefined;
1654
- allowPinchZoom?: boolean | undefined;
1655
- pinnedScripts?: string[] | undefined;
1656
- customPens?: any[] | undefined;
1657
- currentStrokeOptions?: any;
1658
- resetCustomPen?: any;
1659
- gridColor: {
1660
- Bold: string;
1661
- Regular: string;
1662
- };
1663
- highlightSearchResult: boolean;
1664
- dynamicStyle: {
1665
- [x: string]: string;
1666
- };
1667
- frameColor: {
1668
- stroke: string;
1669
- fill: string;
1670
- nameColor: string;
1671
- };
1672
- invertBindingBehaviour: boolean;
1673
- selectedLinearElement: LinearElementEditor | null;
1674
- snapLines: readonly import("../snapping").SnapLine[];
1675
- originSnapOffset: {
1676
- x: number;
1677
- y: number;
1678
- } | null;
1679
- objectsSnapModeEnabled: boolean;
1680
- userToFollow: import("../types").UserToFollow | null;
1681
- followedBy: Set<import("../types").SocketId>;
1682
- searchMatches: readonly {
1683
- id: string;
1684
- focus: boolean;
1685
- matchedLines: {
1686
- offsetX: number;
1687
- offsetY: number;
1688
- width: number;
1689
- height: number;
1690
- }[];
1691
- }[];
1692
- };
1693
- storeAction: "capture";
1694
- };
1695
- keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
1696
- } & {
1697
- keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
1698
- };
1699
- export declare const actionChangeFontFamily: {
1700
- name: "changeFontFamily";
1701
- label: string;
1702
- trackEvent: false;
1703
- perform: (elements: readonly import("../element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, value: any, app: AppClassProperties) => {
1704
- appState: {
1705
- currentItemFontFamily: number;
1706
- currentHoveredFontFamily: number | null;
1707
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
1708
- contextMenu: {
1709
- items: import("../components/ContextMenu").ContextMenuItems;
1710
- top: number;
1711
- left: number;
1712
- } | null;
1713
- showWelcomeScreen: boolean;
1714
- isLoading: boolean;
1715
- errorMessage: import("react").ReactNode;
1716
- activeEmbeddable: {
1717
- element: import("../element/types").NonDeletedExcalidrawElement;
1718
- state: "active" | "hover";
1719
- } | null;
1720
- newElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawNonSelectionElement> | null;
1721
- resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
1722
- multiElement: import("../element/types").NonDeleted<ExcalidrawLinearElement> | null;
1723
- selectionElement: import("../element/types").NonDeletedExcalidrawElement | null;
1724
- isBindingEnabled: boolean;
1725
- startBoundElement: import("../element/types").NonDeleted<ExcalidrawBindableElement> | null;
1726
- suggestedBindings: import("../element/binding").SuggestedBinding[];
1727
- frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameLikeElement> | null;
1728
- frameRendering: {
1729
- enabled: boolean;
1730
- name: boolean;
1731
- outline: boolean;
1732
- clip: boolean;
1733
- };
1734
- editingFrame: string | null;
1735
- elementsToHighlight: import("../element/types").NonDeleted<ExcalidrawElement>[] | null;
1736
- editingTextElement: import("../element/types").NonDeletedExcalidrawElement | null;
1737
- editingLinearElement: LinearElementEditor | null;
1738
- activeTool: {
1739
- lastActiveTool: import("../types").ActiveTool | null;
1740
- locked: boolean;
1741
- } & import("../types").ActiveTool;
1742
- penMode: boolean;
1743
- penDetected: boolean;
1744
- exportBackground: boolean;
1745
- exportEmbedScene: boolean;
1746
- exportWithDarkMode: boolean;
1747
- exportScale: number;
1748
- currentItemStrokeColor: string;
1749
- currentItemBackgroundColor: string;
1750
- currentItemFillStyle: import("../element/types").FillStyle;
1751
- currentItemStrokeWidth: number;
1752
- currentItemStrokeStyle: import("../element/types").StrokeStyle;
1753
- currentItemRoughness: number;
1754
- currentItemOpacity: number;
1755
- currentItemFontSize: number;
1756
- currentItemTextAlign: string;
1757
- currentItemStartArrowhead: Arrowhead | null;
1758
- currentItemEndArrowhead: Arrowhead | null;
1759
- currentItemRoundness: import("../element/types").StrokeRoundness;
1760
- currentItemArrowType: "round" | "sharp" | "elbow";
1761
- viewBackgroundColor: string;
1762
- scrollX: number;
1763
- scrollY: number;
1764
- cursorButton: "up" | "down";
1765
- scrolledOutside: boolean;
1766
- name: string | null;
1767
- isResizing: boolean;
1768
- isRotating: boolean;
1769
- zoom: Readonly<{
1770
- value: import("../types").NormalizedZoomValue;
1771
- }>;
1772
- openMenu: "canvas" | "shape" | null;
1773
- openSidebar: {
1774
- name: string;
1775
- tab?: string | undefined;
1776
- } | null;
1777
- openDialog: {
1778
- name: "imageExport" | "help" | "jsonExport";
1779
- } | {
1780
- name: "ttd";
1781
- tab: "mermaid" | "text-to-diagram";
1782
- } | {
1783
- name: "commandPalette";
1784
- } | null;
1785
- defaultSidebarDockedPreference: boolean;
1786
- lastPointerDownWith: import("../element/types").PointerType;
1787
- selectedElementIds: Readonly<{
1788
- [id: string]: true;
1789
- }>;
1790
- previousSelectedElementIds: {
1791
- [id: string]: true;
1792
- };
1793
- selectedElementsAreBeingDragged: boolean;
1794
- shouldCacheIgnoreZoom: boolean;
1795
- toast: {
1796
- message: string;
1797
- closable?: boolean | undefined;
1798
- duration?: number | undefined;
1799
- } | null;
1800
- zenModeEnabled: boolean;
1801
- theme: import("../element/types").Theme;
1802
- gridSize: number;
1803
- gridStep: number;
1804
- gridModeEnabled: boolean;
1805
- viewModeEnabled: boolean;
1806
- selectedGroupIds: {
1807
- [groupId: string]: boolean;
1808
- };
1809
- editingGroupId: string | null;
1810
- width: number;
1811
- height: number;
1812
- offsetTop: number;
1813
- offsetLeft: number;
1814
- fileHandle: import("browser-fs-access").FileSystemHandle | null;
1815
- collaborators: Map<import("../types").SocketId, Readonly<{
1816
- pointer?: import("../types").CollaboratorPointer | undefined;
1817
- button?: "up" | "down" | undefined;
1818
- selectedElementIds?: Readonly<{
1819
- [id: string]: true;
1820
- }> | undefined;
1821
- username?: string | null | undefined;
1822
- userState?: import("../types").UserIdleState | undefined;
1823
- color?: {
1824
- background: string;
1825
- stroke: string;
1826
- } | undefined;
1827
- avatarUrl?: string | undefined;
1828
- id?: string | undefined;
1829
- socketId?: import("../types").SocketId | undefined;
1830
- isCurrentUser?: boolean | undefined;
1831
- isInCall?: boolean | undefined;
1832
- isSpeaking?: boolean | undefined;
1833
- isMuted?: boolean | undefined;
1834
- }>>;
1835
- stats: {
1836
- open: boolean;
1837
- panels: number;
1838
- };
1839
- currentChartType: import("../element/types").ChartType;
1840
- pasteDialog: {
1841
- shown: false;
1842
- data: null;
1843
- } | {
1844
- shown: true;
1845
- data: import("../charts").Spreadsheet;
1846
- };
1847
- pendingImageElementId: string | null;
1848
- showHyperlinkPopup: false | "info" | "editor";
1849
- linkOpacity: number;
1850
- trayModeEnabled: boolean;
1851
- colorPalette?: {
1852
- canvasBackground: import("../colors").ColorPaletteCustom;
1853
- elementBackground: import("../colors").ColorPaletteCustom;
1854
- elementStroke: import("../colors").ColorPaletteCustom;
1855
- topPicks: {
1856
- canvasBackground: [string, string, string, string, string];
1857
- elementStroke: [string, string, string, string, string];
1858
- elementBackground: [string, string, string, string, string];
1859
- };
1860
- } | undefined;
1861
- allowWheelZoom?: boolean | undefined;
1862
- allowPinchZoom?: boolean | undefined;
1863
- pinnedScripts?: string[] | undefined;
1864
- customPens?: any[] | undefined;
1865
- currentStrokeOptions?: any;
1866
- resetCustomPen?: any;
1867
- gridColor: {
1868
- Bold: string;
1869
- Regular: string;
1870
- };
1871
- highlightSearchResult: boolean;
1872
- dynamicStyle: {
1873
- [x: string]: string;
1874
- };
1875
- frameColor: {
1876
- stroke: string;
1877
- fill: string;
1878
- nameColor: string;
1879
- };
1880
- invertBindingBehaviour: boolean;
1881
- selectedLinearElement: LinearElementEditor | null;
1882
- snapLines: readonly import("../snapping").SnapLine[];
1883
- originSnapOffset: {
1884
- x: number;
1885
- y: number;
1886
- } | null;
1887
- objectsSnapModeEnabled: boolean;
1888
- userToFollow: import("../types").UserToFollow | null;
1889
- followedBy: Set<import("../types").SocketId>;
1890
- searchMatches: readonly {
1891
- id: string;
1892
- focus: boolean;
1893
- matchedLines: {
1894
- offsetX: number;
1895
- offsetY: number;
1896
- width: number;
1897
- height: number;
1898
- }[];
1899
- }[];
1900
- };
1901
- storeAction: "none" | "capture";
1902
- } | {
1903
- elements: ExcalidrawElement[];
1904
- appState: {
1905
- currentItemFontFamily: number;
1906
- currentHoveredFontFamily: number | null;
1907
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
1908
- contextMenu: {
1909
- items: import("../components/ContextMenu").ContextMenuItems;
1910
- top: number;
1911
- left: number;
1912
- } | null;
1913
- showWelcomeScreen: boolean;
1914
- isLoading: boolean;
1915
- errorMessage: import("react").ReactNode;
1916
- activeEmbeddable: {
1917
- element: import("../element/types").NonDeletedExcalidrawElement;
1918
- state: "active" | "hover";
1919
- } | null;
1920
- newElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawNonSelectionElement> | null;
1921
- resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
1922
- multiElement: import("../element/types").NonDeleted<ExcalidrawLinearElement> | null;
1923
- selectionElement: import("../element/types").NonDeletedExcalidrawElement | null;
1924
- isBindingEnabled: boolean;
1925
- startBoundElement: import("../element/types").NonDeleted<ExcalidrawBindableElement> | null;
1926
- suggestedBindings: import("../element/binding").SuggestedBinding[];
1927
- frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameLikeElement> | null;
1928
- frameRendering: {
1929
- enabled: boolean;
1930
- name: boolean;
1931
- outline: boolean;
1932
- clip: boolean;
1933
- };
1934
- editingFrame: string | null;
1935
- elementsToHighlight: import("../element/types").NonDeleted<ExcalidrawElement>[] | null;
1936
- editingTextElement: import("../element/types").NonDeletedExcalidrawElement | null;
1937
- editingLinearElement: LinearElementEditor | null;
1938
- activeTool: {
1939
- lastActiveTool: import("../types").ActiveTool | null;
1940
- locked: boolean;
1941
- } & import("../types").ActiveTool;
1942
- penMode: boolean;
1943
- penDetected: boolean;
1944
- exportBackground: boolean;
1945
- exportEmbedScene: boolean;
1946
- exportWithDarkMode: boolean;
1947
- exportScale: number;
1948
- currentItemStrokeColor: string;
1949
- currentItemBackgroundColor: string;
1950
- currentItemFillStyle: import("../element/types").FillStyle;
1951
- currentItemStrokeWidth: number;
1952
- currentItemStrokeStyle: import("../element/types").StrokeStyle;
1953
- currentItemRoughness: number;
1954
- currentItemOpacity: number;
1955
- currentItemFontSize: number;
1956
- currentItemTextAlign: string;
1957
- currentItemStartArrowhead: Arrowhead | null;
1958
- currentItemEndArrowhead: Arrowhead | null;
1959
- currentItemRoundness: import("../element/types").StrokeRoundness;
1960
- currentItemArrowType: "round" | "sharp" | "elbow";
1961
- viewBackgroundColor: string;
1962
- scrollX: number;
1963
- scrollY: number;
1964
- cursorButton: "up" | "down";
1965
- scrolledOutside: boolean;
1966
- name: string | null;
1967
- isResizing: boolean;
1968
- isRotating: boolean;
1969
- zoom: Readonly<{
1970
- value: import("../types").NormalizedZoomValue;
1971
- }>;
1972
- openMenu: "canvas" | "shape" | null;
1973
- openSidebar: {
1974
- name: string;
1975
- tab?: string | undefined;
1976
- } | null;
1977
- openDialog: {
1978
- name: "imageExport" | "help" | "jsonExport";
1979
- } | {
1980
- name: "ttd";
1981
- tab: "mermaid" | "text-to-diagram";
1982
- } | {
1983
- name: "commandPalette";
1984
- } | null;
1985
- defaultSidebarDockedPreference: boolean;
1986
- lastPointerDownWith: import("../element/types").PointerType;
1987
- selectedElementIds: Readonly<{
1988
- [id: string]: true;
1989
- }>;
1990
- previousSelectedElementIds: {
1991
- [id: string]: true;
1992
- };
1993
- selectedElementsAreBeingDragged: boolean;
1994
- shouldCacheIgnoreZoom: boolean;
1995
- toast: {
1996
- message: string;
1997
- closable?: boolean | undefined;
1998
- duration?: number | undefined;
1999
- } | null;
2000
- zenModeEnabled: boolean;
2001
- theme: import("../element/types").Theme;
2002
- gridSize: number;
2003
- gridStep: number;
2004
- gridModeEnabled: boolean;
2005
- viewModeEnabled: boolean;
2006
- selectedGroupIds: {
2007
- [groupId: string]: boolean;
2008
- };
2009
- editingGroupId: string | null;
2010
- width: number;
2011
- height: number;
2012
- offsetTop: number;
2013
- offsetLeft: number;
2014
- fileHandle: import("browser-fs-access").FileSystemHandle | null;
2015
- collaborators: Map<import("../types").SocketId, Readonly<{
2016
- pointer?: import("../types").CollaboratorPointer | undefined;
2017
- button?: "up" | "down" | undefined;
2018
- selectedElementIds?: Readonly<{
2019
- [id: string]: true;
2020
- }> | undefined;
2021
- username?: string | null | undefined;
2022
- userState?: import("../types").UserIdleState | undefined;
2023
- color?: {
2024
- background: string;
2025
- stroke: string;
2026
- } | undefined;
2027
- avatarUrl?: string | undefined;
2028
- id?: string | undefined;
2029
- socketId?: import("../types").SocketId | undefined;
2030
- isCurrentUser?: boolean | undefined;
2031
- isInCall?: boolean | undefined;
2032
- isSpeaking?: boolean | undefined;
2033
- isMuted?: boolean | undefined;
2034
- }>>;
2035
- stats: {
2036
- open: boolean;
2037
- panels: number;
2038
- };
2039
- currentChartType: import("../element/types").ChartType;
2040
- pasteDialog: {
2041
- shown: false;
2042
- data: null;
2043
- } | {
2044
- shown: true;
2045
- data: import("../charts").Spreadsheet;
2046
- };
2047
- pendingImageElementId: string | null;
2048
- showHyperlinkPopup: false | "info" | "editor";
2049
- linkOpacity: number;
2050
- trayModeEnabled: boolean;
2051
- colorPalette?: {
2052
- canvasBackground: import("../colors").ColorPaletteCustom;
2053
- elementBackground: import("../colors").ColorPaletteCustom;
2054
- elementStroke: import("../colors").ColorPaletteCustom;
2055
- topPicks: {
2056
- canvasBackground: [string, string, string, string, string];
2057
- elementStroke: [string, string, string, string, string];
2058
- elementBackground: [string, string, string, string, string];
2059
- };
2060
- } | undefined;
2061
- allowWheelZoom?: boolean | undefined;
2062
- allowPinchZoom?: boolean | undefined;
2063
- pinnedScripts?: string[] | undefined;
2064
- customPens?: any[] | undefined;
2065
- currentStrokeOptions?: any;
2066
- resetCustomPen?: any;
2067
- gridColor: {
2068
- Bold: string;
2069
- Regular: string;
2070
- };
2071
- highlightSearchResult: boolean;
2072
- dynamicStyle: {
2073
- [x: string]: string;
2074
- };
2075
- frameColor: {
2076
- stroke: string;
2077
- fill: string;
2078
- nameColor: string;
2079
- };
2080
- invertBindingBehaviour: boolean;
2081
- selectedLinearElement: LinearElementEditor | null;
2082
- snapLines: readonly import("../snapping").SnapLine[];
2083
- originSnapOffset: {
2084
- x: number;
2085
- y: number;
2086
- } | null;
2087
- objectsSnapModeEnabled: boolean;
2088
- userToFollow: import("../types").UserToFollow | null;
2089
- followedBy: Set<import("../types").SocketId>;
2090
- searchMatches: readonly {
2091
- id: string;
2092
- focus: boolean;
2093
- matchedLines: {
2094
- offsetX: number;
2095
- offsetY: number;
2096
- width: number;
2097
- height: number;
2098
- }[];
2099
- }[];
2100
- };
2101
- storeAction: "update";
2102
- };
2103
- PanelComponent: ({ elements, appState, app, updateData }: import("./types").PanelComponentProps) => JSX.Element;
2104
- } & {
2105
- keyTest?: undefined;
2106
- };
2107
- export declare const actionChangeTextAlign: {
2108
- name: "changeTextAlign";
2109
- label: string;
2110
- trackEvent: false;
2111
- perform: (elements: readonly import("../element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, value: any, app: AppClassProperties) => {
2112
- elements: ExcalidrawElement[];
2113
- appState: {
2114
- currentItemTextAlign: any;
2115
- contextMenu: {
2116
- items: import("../components/ContextMenu").ContextMenuItems;
2117
- top: number;
2118
- left: number;
2119
- } | null;
2120
- showWelcomeScreen: boolean;
2121
- isLoading: boolean;
2122
- errorMessage: import("react").ReactNode;
2123
- activeEmbeddable: {
2124
- element: import("../element/types").NonDeletedExcalidrawElement;
2125
- state: "active" | "hover";
2126
- } | null;
2127
- newElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawNonSelectionElement> | null;
2128
- resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
2129
- multiElement: import("../element/types").NonDeleted<ExcalidrawLinearElement> | null;
2130
- selectionElement: import("../element/types").NonDeletedExcalidrawElement | null;
2131
- isBindingEnabled: boolean;
2132
- startBoundElement: import("../element/types").NonDeleted<ExcalidrawBindableElement> | null;
2133
- suggestedBindings: import("../element/binding").SuggestedBinding[];
2134
- frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameLikeElement> | null;
2135
- frameRendering: {
2136
- enabled: boolean;
2137
- name: boolean;
2138
- outline: boolean;
2139
- clip: boolean;
2140
- };
2141
- editingFrame: string | null;
2142
- elementsToHighlight: import("../element/types").NonDeleted<ExcalidrawElement>[] | null;
2143
- editingTextElement: import("../element/types").NonDeletedExcalidrawElement | null;
2144
- editingLinearElement: LinearElementEditor | null;
2145
- activeTool: {
2146
- lastActiveTool: import("../types").ActiveTool | null;
2147
- locked: boolean;
2148
- } & import("../types").ActiveTool;
2149
- penMode: boolean;
2150
- penDetected: boolean;
2151
- exportBackground: boolean;
2152
- exportEmbedScene: boolean;
2153
- exportWithDarkMode: boolean;
2154
- exportScale: number;
2155
- currentItemStrokeColor: string;
2156
- currentItemBackgroundColor: string;
2157
- currentItemFillStyle: import("../element/types").FillStyle;
2158
- currentItemStrokeWidth: number;
2159
- currentItemStrokeStyle: import("../element/types").StrokeStyle;
2160
- currentItemRoughness: number;
2161
- currentItemOpacity: number;
2162
- currentItemFontFamily: number;
2163
- currentItemFontSize: number;
2164
- currentItemStartArrowhead: Arrowhead | null;
2165
- currentItemEndArrowhead: Arrowhead | null;
2166
- currentHoveredFontFamily: number | null;
2167
- currentItemRoundness: import("../element/types").StrokeRoundness;
2168
- currentItemArrowType: "round" | "sharp" | "elbow";
2169
- viewBackgroundColor: string;
2170
- scrollX: number;
2171
- scrollY: number;
2172
- cursorButton: "up" | "down";
2173
- scrolledOutside: boolean;
2174
- name: string | null;
2175
- isResizing: boolean;
2176
- isRotating: boolean;
2177
- zoom: Readonly<{
2178
- value: import("../types").NormalizedZoomValue;
2179
- }>;
2180
- openMenu: "canvas" | "shape" | null;
2181
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
2182
- openSidebar: {
2183
- name: string;
2184
- tab?: string | undefined;
2185
- } | null;
2186
- openDialog: {
2187
- name: "imageExport" | "help" | "jsonExport";
2188
- } | {
2189
- name: "ttd";
2190
- tab: "mermaid" | "text-to-diagram";
2191
- } | {
2192
- name: "commandPalette";
2193
- } | null;
2194
- defaultSidebarDockedPreference: boolean;
2195
- lastPointerDownWith: import("../element/types").PointerType;
2196
- selectedElementIds: Readonly<{
2197
- [id: string]: true;
2198
- }>;
2199
- previousSelectedElementIds: {
2200
- [id: string]: true;
2201
- };
2202
- selectedElementsAreBeingDragged: boolean;
2203
- shouldCacheIgnoreZoom: boolean;
2204
- toast: {
2205
- message: string;
2206
- closable?: boolean | undefined;
2207
- duration?: number | undefined;
2208
- } | null;
2209
- zenModeEnabled: boolean;
2210
- theme: import("../element/types").Theme;
2211
- gridSize: number;
2212
- gridStep: number;
2213
- gridModeEnabled: boolean;
2214
- viewModeEnabled: boolean;
2215
- selectedGroupIds: {
2216
- [groupId: string]: boolean;
2217
- };
2218
- editingGroupId: string | null;
2219
- width: number;
2220
- height: number;
2221
- offsetTop: number;
2222
- offsetLeft: number;
2223
- fileHandle: import("browser-fs-access").FileSystemHandle | null;
2224
- collaborators: Map<import("../types").SocketId, Readonly<{
2225
- pointer?: import("../types").CollaboratorPointer | undefined;
2226
- button?: "up" | "down" | undefined;
2227
- selectedElementIds?: Readonly<{
2228
- [id: string]: true;
2229
- }> | undefined;
2230
- username?: string | null | undefined;
2231
- userState?: import("../types").UserIdleState | undefined;
2232
- color?: {
2233
- background: string;
2234
- stroke: string;
2235
- } | undefined;
2236
- avatarUrl?: string | undefined;
2237
- id?: string | undefined;
2238
- socketId?: import("../types").SocketId | undefined;
2239
- isCurrentUser?: boolean | undefined;
2240
- isInCall?: boolean | undefined;
2241
- isSpeaking?: boolean | undefined;
2242
- isMuted?: boolean | undefined;
2243
- }>>;
2244
- stats: {
2245
- open: boolean;
2246
- panels: number;
2247
- };
2248
- currentChartType: import("../element/types").ChartType;
2249
- pasteDialog: {
2250
- shown: false;
2251
- data: null;
2252
- } | {
2253
- shown: true;
2254
- data: import("../charts").Spreadsheet;
2255
- };
2256
- pendingImageElementId: string | null;
2257
- showHyperlinkPopup: false | "info" | "editor";
2258
- linkOpacity: number;
2259
- trayModeEnabled: boolean;
2260
- colorPalette?: {
2261
- canvasBackground: import("../colors").ColorPaletteCustom;
2262
- elementBackground: import("../colors").ColorPaletteCustom;
2263
- elementStroke: import("../colors").ColorPaletteCustom;
2264
- topPicks: {
2265
- canvasBackground: [string, string, string, string, string];
2266
- elementStroke: [string, string, string, string, string];
2267
- elementBackground: [string, string, string, string, string];
2268
- };
2269
- } | undefined;
2270
- allowWheelZoom?: boolean | undefined;
2271
- allowPinchZoom?: boolean | undefined;
2272
- pinnedScripts?: string[] | undefined;
2273
- customPens?: any[] | undefined;
2274
- currentStrokeOptions?: any;
2275
- resetCustomPen?: any;
2276
- gridColor: {
2277
- Bold: string;
2278
- Regular: string;
2279
- };
2280
- highlightSearchResult: boolean;
2281
- dynamicStyle: {
2282
- [x: string]: string;
2283
- };
2284
- frameColor: {
2285
- stroke: string;
2286
- fill: string;
2287
- nameColor: string;
2288
- };
2289
- invertBindingBehaviour: boolean;
2290
- selectedLinearElement: LinearElementEditor | null;
2291
- snapLines: readonly import("../snapping").SnapLine[];
2292
- originSnapOffset: {
2293
- x: number;
2294
- y: number;
2295
- } | null;
2296
- objectsSnapModeEnabled: boolean;
2297
- userToFollow: import("../types").UserToFollow | null;
2298
- followedBy: Set<import("../types").SocketId>;
2299
- searchMatches: readonly {
2300
- id: string;
2301
- focus: boolean;
2302
- matchedLines: {
2303
- offsetX: number;
2304
- offsetY: number;
2305
- width: number;
2306
- height: number;
2307
- }[];
2308
- }[];
2309
- };
2310
- storeAction: "capture";
2311
- };
2312
- PanelComponent: ({ elements, appState, updateData, app }: import("./types").PanelComponentProps) => JSX.Element;
2313
- } & {
2314
- keyTest?: undefined;
2315
- };
2316
- export declare const actionChangeVerticalAlign: {
2317
- name: "changeVerticalAlign";
2318
- label: string;
2319
- trackEvent: {
2320
- category: "element";
2321
- };
2322
- perform: (elements: readonly import("../element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, value: any, app: AppClassProperties) => {
2323
- elements: ExcalidrawElement[];
2324
- appState: {
2325
- contextMenu: {
2326
- items: import("../components/ContextMenu").ContextMenuItems;
2327
- top: number;
2328
- left: number;
2329
- } | null;
2330
- showWelcomeScreen: boolean;
2331
- isLoading: boolean;
2332
- errorMessage: import("react").ReactNode;
2333
- activeEmbeddable: {
2334
- element: import("../element/types").NonDeletedExcalidrawElement;
2335
- state: "active" | "hover";
2336
- } | null;
2337
- newElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawNonSelectionElement> | null;
2338
- resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
2339
- multiElement: import("../element/types").NonDeleted<ExcalidrawLinearElement> | null;
2340
- selectionElement: import("../element/types").NonDeletedExcalidrawElement | null;
2341
- isBindingEnabled: boolean;
2342
- startBoundElement: import("../element/types").NonDeleted<ExcalidrawBindableElement> | null;
2343
- suggestedBindings: import("../element/binding").SuggestedBinding[];
2344
- frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameLikeElement> | null;
2345
- frameRendering: {
2346
- enabled: boolean;
2347
- name: boolean;
2348
- outline: boolean;
2349
- clip: boolean;
2350
- };
2351
- editingFrame: string | null;
2352
- elementsToHighlight: import("../element/types").NonDeleted<ExcalidrawElement>[] | null;
2353
- editingTextElement: import("../element/types").NonDeletedExcalidrawElement | null;
2354
- editingLinearElement: LinearElementEditor | null;
2355
- activeTool: {
2356
- lastActiveTool: import("../types").ActiveTool | null;
2357
- locked: boolean;
2358
- } & import("../types").ActiveTool;
2359
- penMode: boolean;
2360
- penDetected: boolean;
2361
- exportBackground: boolean;
2362
- exportEmbedScene: boolean;
2363
- exportWithDarkMode: boolean;
2364
- exportScale: number;
2365
- currentItemStrokeColor: string;
2366
- currentItemBackgroundColor: string;
2367
- currentItemFillStyle: import("../element/types").FillStyle;
2368
- currentItemStrokeWidth: number;
2369
- currentItemStrokeStyle: import("../element/types").StrokeStyle;
2370
- currentItemRoughness: number;
2371
- currentItemOpacity: number;
2372
- currentItemFontFamily: number;
2373
- currentItemFontSize: number;
2374
- currentItemTextAlign: string;
2375
- currentItemStartArrowhead: Arrowhead | null;
2376
- currentItemEndArrowhead: Arrowhead | null;
2377
- currentHoveredFontFamily: number | null;
2378
- currentItemRoundness: import("../element/types").StrokeRoundness;
2379
- currentItemArrowType: "round" | "sharp" | "elbow";
2380
- viewBackgroundColor: string;
2381
- scrollX: number;
2382
- scrollY: number;
2383
- cursorButton: "up" | "down";
2384
- scrolledOutside: boolean;
2385
- name: string | null;
2386
- isResizing: boolean;
2387
- isRotating: boolean;
2388
- zoom: Readonly<{
2389
- value: import("../types").NormalizedZoomValue;
2390
- }>;
2391
- openMenu: "canvas" | "shape" | null;
2392
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
2393
- openSidebar: {
2394
- name: string;
2395
- tab?: string | undefined;
2396
- } | null;
2397
- openDialog: {
2398
- name: "imageExport" | "help" | "jsonExport";
2399
- } | {
2400
- name: "ttd";
2401
- tab: "mermaid" | "text-to-diagram";
2402
- } | {
2403
- name: "commandPalette";
2404
- } | null;
2405
- defaultSidebarDockedPreference: boolean;
2406
- lastPointerDownWith: import("../element/types").PointerType;
2407
- selectedElementIds: Readonly<{
2408
- [id: string]: true;
2409
- }>;
2410
- previousSelectedElementIds: {
2411
- [id: string]: true;
2412
- };
2413
- selectedElementsAreBeingDragged: boolean;
2414
- shouldCacheIgnoreZoom: boolean;
2415
- toast: {
2416
- message: string;
2417
- closable?: boolean | undefined;
2418
- duration?: number | undefined;
2419
- } | null;
2420
- zenModeEnabled: boolean;
2421
- theme: import("../element/types").Theme;
2422
- gridSize: number;
2423
- gridStep: number;
2424
- gridModeEnabled: boolean;
2425
- viewModeEnabled: boolean;
2426
- selectedGroupIds: {
2427
- [groupId: string]: boolean;
2428
- };
2429
- editingGroupId: string | null;
2430
- width: number;
2431
- height: number;
2432
- offsetTop: number;
2433
- offsetLeft: number;
2434
- fileHandle: import("browser-fs-access").FileSystemHandle | null;
2435
- collaborators: Map<import("../types").SocketId, Readonly<{
2436
- pointer?: import("../types").CollaboratorPointer | undefined;
2437
- button?: "up" | "down" | undefined;
2438
- selectedElementIds?: Readonly<{
2439
- [id: string]: true;
2440
- }> | undefined;
2441
- username?: string | null | undefined;
2442
- userState?: import("../types").UserIdleState | undefined;
2443
- color?: {
2444
- background: string;
2445
- stroke: string;
2446
- } | undefined;
2447
- avatarUrl?: string | undefined;
2448
- id?: string | undefined;
2449
- socketId?: import("../types").SocketId | undefined;
2450
- isCurrentUser?: boolean | undefined;
2451
- isInCall?: boolean | undefined;
2452
- isSpeaking?: boolean | undefined;
2453
- isMuted?: boolean | undefined;
2454
- }>>;
2455
- stats: {
2456
- open: boolean;
2457
- panels: number;
2458
- };
2459
- currentChartType: import("../element/types").ChartType;
2460
- pasteDialog: {
2461
- shown: false;
2462
- data: null;
2463
- } | {
2464
- shown: true;
2465
- data: import("../charts").Spreadsheet;
2466
- };
2467
- pendingImageElementId: string | null;
2468
- showHyperlinkPopup: false | "info" | "editor";
2469
- linkOpacity: number;
2470
- trayModeEnabled: boolean;
2471
- colorPalette?: {
2472
- canvasBackground: import("../colors").ColorPaletteCustom;
2473
- elementBackground: import("../colors").ColorPaletteCustom;
2474
- elementStroke: import("../colors").ColorPaletteCustom;
2475
- topPicks: {
2476
- canvasBackground: [string, string, string, string, string];
2477
- elementStroke: [string, string, string, string, string];
2478
- elementBackground: [string, string, string, string, string];
2479
- };
2480
- } | undefined;
2481
- allowWheelZoom?: boolean | undefined;
2482
- allowPinchZoom?: boolean | undefined;
2483
- pinnedScripts?: string[] | undefined;
2484
- customPens?: any[] | undefined;
2485
- currentStrokeOptions?: any;
2486
- resetCustomPen?: any;
2487
- gridColor: {
2488
- Bold: string;
2489
- Regular: string;
2490
- };
2491
- highlightSearchResult: boolean;
2492
- dynamicStyle: {
2493
- [x: string]: string;
2494
- };
2495
- frameColor: {
2496
- stroke: string;
2497
- fill: string;
2498
- nameColor: string;
2499
- };
2500
- invertBindingBehaviour: boolean;
2501
- selectedLinearElement: LinearElementEditor | null;
2502
- snapLines: readonly import("../snapping").SnapLine[];
2503
- originSnapOffset: {
2504
- x: number;
2505
- y: number;
2506
- } | null;
2507
- objectsSnapModeEnabled: boolean;
2508
- userToFollow: import("../types").UserToFollow | null;
2509
- followedBy: Set<import("../types").SocketId>;
2510
- searchMatches: readonly {
2511
- id: string;
2512
- focus: boolean;
2513
- matchedLines: {
2514
- offsetX: number;
2515
- offsetY: number;
2516
- width: number;
2517
- height: number;
2518
- }[];
2519
- }[];
2520
- };
2521
- storeAction: "capture";
2522
- };
2523
- PanelComponent: ({ elements, appState, updateData, app }: import("./types").PanelComponentProps) => JSX.Element;
2524
- } & {
2525
- keyTest?: undefined;
2526
- };
2527
- export declare const actionChangeRoundness: {
2528
- name: "changeRoundness";
2529
- label: string;
2530
- trackEvent: false;
2531
- perform: (elements: readonly import("../element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, value: any) => {
2532
- elements: ExcalidrawElement[];
2533
- appState: {
2534
- currentItemRoundness: any;
2535
- contextMenu: {
2536
- items: import("../components/ContextMenu").ContextMenuItems;
2537
- top: number;
2538
- left: number;
2539
- } | null;
2540
- showWelcomeScreen: boolean;
2541
- isLoading: boolean;
2542
- errorMessage: import("react").ReactNode;
2543
- activeEmbeddable: {
2544
- element: import("../element/types").NonDeletedExcalidrawElement;
2545
- state: "active" | "hover";
2546
- } | null;
2547
- newElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawNonSelectionElement> | null;
2548
- resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
2549
- multiElement: import("../element/types").NonDeleted<ExcalidrawLinearElement> | null;
2550
- selectionElement: import("../element/types").NonDeletedExcalidrawElement | null;
2551
- isBindingEnabled: boolean;
2552
- startBoundElement: import("../element/types").NonDeleted<ExcalidrawBindableElement> | null;
2553
- suggestedBindings: import("../element/binding").SuggestedBinding[];
2554
- frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameLikeElement> | null;
2555
- frameRendering: {
2556
- enabled: boolean;
2557
- name: boolean;
2558
- outline: boolean;
2559
- clip: boolean;
2560
- };
2561
- editingFrame: string | null;
2562
- elementsToHighlight: import("../element/types").NonDeleted<ExcalidrawElement>[] | null;
2563
- editingTextElement: import("../element/types").NonDeletedExcalidrawElement | null;
2564
- editingLinearElement: LinearElementEditor | null;
2565
- activeTool: {
2566
- lastActiveTool: import("../types").ActiveTool | null;
2567
- locked: boolean;
2568
- } & import("../types").ActiveTool;
2569
- penMode: boolean;
2570
- penDetected: boolean;
2571
- exportBackground: boolean;
2572
- exportEmbedScene: boolean;
2573
- exportWithDarkMode: boolean;
2574
- exportScale: number;
2575
- currentItemStrokeColor: string;
2576
- currentItemBackgroundColor: string;
2577
- currentItemFillStyle: import("../element/types").FillStyle;
2578
- currentItemStrokeWidth: number;
2579
- currentItemStrokeStyle: import("../element/types").StrokeStyle;
2580
- currentItemRoughness: number;
2581
- currentItemOpacity: number;
2582
- currentItemFontFamily: number;
2583
- currentItemFontSize: number;
2584
- currentItemTextAlign: string;
2585
- currentItemStartArrowhead: Arrowhead | null;
2586
- currentItemEndArrowhead: Arrowhead | null;
2587
- currentHoveredFontFamily: number | null;
2588
- currentItemArrowType: "round" | "sharp" | "elbow";
2589
- viewBackgroundColor: string;
2590
- scrollX: number;
2591
- scrollY: number;
2592
- cursorButton: "up" | "down";
2593
- scrolledOutside: boolean;
2594
- name: string | null;
2595
- isResizing: boolean;
2596
- isRotating: boolean;
2597
- zoom: Readonly<{
2598
- value: import("../types").NormalizedZoomValue;
2599
- }>;
2600
- openMenu: "canvas" | "shape" | null;
2601
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
2602
- openSidebar: {
2603
- name: string;
2604
- tab?: string | undefined;
2605
- } | null;
2606
- openDialog: {
2607
- name: "imageExport" | "help" | "jsonExport";
2608
- } | {
2609
- name: "ttd";
2610
- tab: "mermaid" | "text-to-diagram";
2611
- } | {
2612
- name: "commandPalette";
2613
- } | null;
2614
- defaultSidebarDockedPreference: boolean;
2615
- lastPointerDownWith: import("../element/types").PointerType;
2616
- selectedElementIds: Readonly<{
2617
- [id: string]: true;
2618
- }>;
2619
- previousSelectedElementIds: {
2620
- [id: string]: true;
2621
- };
2622
- selectedElementsAreBeingDragged: boolean;
2623
- shouldCacheIgnoreZoom: boolean;
2624
- toast: {
2625
- message: string;
2626
- closable?: boolean | undefined;
2627
- duration?: number | undefined;
2628
- } | null;
2629
- zenModeEnabled: boolean;
2630
- theme: import("../element/types").Theme;
2631
- gridSize: number;
2632
- gridStep: number;
2633
- gridModeEnabled: boolean;
2634
- viewModeEnabled: boolean;
2635
- selectedGroupIds: {
2636
- [groupId: string]: boolean;
2637
- };
2638
- editingGroupId: string | null;
2639
- width: number;
2640
- height: number;
2641
- offsetTop: number;
2642
- offsetLeft: number;
2643
- fileHandle: import("browser-fs-access").FileSystemHandle | null;
2644
- collaborators: Map<import("../types").SocketId, Readonly<{
2645
- pointer?: import("../types").CollaboratorPointer | undefined;
2646
- button?: "up" | "down" | undefined;
2647
- selectedElementIds?: Readonly<{
2648
- [id: string]: true;
2649
- }> | undefined;
2650
- username?: string | null | undefined;
2651
- userState?: import("../types").UserIdleState | undefined;
2652
- color?: {
2653
- background: string;
2654
- stroke: string;
2655
- } | undefined;
2656
- avatarUrl?: string | undefined;
2657
- id?: string | undefined;
2658
- socketId?: import("../types").SocketId | undefined;
2659
- isCurrentUser?: boolean | undefined;
2660
- isInCall?: boolean | undefined;
2661
- isSpeaking?: boolean | undefined;
2662
- isMuted?: boolean | undefined;
2663
- }>>;
2664
- stats: {
2665
- open: boolean;
2666
- panels: number;
2667
- };
2668
- currentChartType: import("../element/types").ChartType;
2669
- pasteDialog: {
2670
- shown: false;
2671
- data: null;
2672
- } | {
2673
- shown: true;
2674
- data: import("../charts").Spreadsheet;
2675
- };
2676
- pendingImageElementId: string | null;
2677
- showHyperlinkPopup: false | "info" | "editor";
2678
- linkOpacity: number;
2679
- trayModeEnabled: boolean;
2680
- colorPalette?: {
2681
- canvasBackground: import("../colors").ColorPaletteCustom;
2682
- elementBackground: import("../colors").ColorPaletteCustom;
2683
- elementStroke: import("../colors").ColorPaletteCustom;
2684
- topPicks: {
2685
- canvasBackground: [string, string, string, string, string];
2686
- elementStroke: [string, string, string, string, string];
2687
- elementBackground: [string, string, string, string, string];
2688
- };
2689
- } | undefined;
2690
- allowWheelZoom?: boolean | undefined;
2691
- allowPinchZoom?: boolean | undefined;
2692
- pinnedScripts?: string[] | undefined;
2693
- customPens?: any[] | undefined;
2694
- currentStrokeOptions?: any;
2695
- resetCustomPen?: any;
2696
- gridColor: {
2697
- Bold: string;
2698
- Regular: string;
2699
- };
2700
- highlightSearchResult: boolean;
2701
- dynamicStyle: {
2702
- [x: string]: string;
2703
- };
2704
- frameColor: {
2705
- stroke: string;
2706
- fill: string;
2707
- nameColor: string;
2708
- };
2709
- invertBindingBehaviour: boolean;
2710
- selectedLinearElement: LinearElementEditor | null;
2711
- snapLines: readonly import("../snapping").SnapLine[];
2712
- originSnapOffset: {
2713
- x: number;
2714
- y: number;
2715
- } | null;
2716
- objectsSnapModeEnabled: boolean;
2717
- userToFollow: import("../types").UserToFollow | null;
2718
- followedBy: Set<import("../types").SocketId>;
2719
- searchMatches: readonly {
2720
- id: string;
2721
- focus: boolean;
2722
- matchedLines: {
2723
- offsetX: number;
2724
- offsetY: number;
2725
- width: number;
2726
- height: number;
2727
- }[];
2728
- }[];
2729
- };
2730
- storeAction: "capture";
2731
- };
2732
- PanelComponent: ({ elements, appState, updateData }: import("./types").PanelComponentProps) => JSX.Element;
2733
- } & {
2734
- keyTest?: undefined;
2735
- };
2736
- export declare const actionChangeArrowhead: {
2737
- name: "changeArrowhead";
2738
- label: string;
2739
- trackEvent: false;
2740
- perform: (elements: readonly import("../element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, value: {
2741
- position: "start" | "end";
2742
- type: Arrowhead;
2743
- }) => {
2744
- elements: ExcalidrawElement[];
2745
- appState: {
2746
- contextMenu: {
2747
- items: import("../components/ContextMenu").ContextMenuItems;
2748
- top: number;
2749
- left: number;
2750
- } | null;
2751
- showWelcomeScreen: boolean;
2752
- isLoading: boolean;
2753
- errorMessage: import("react").ReactNode;
2754
- activeEmbeddable: {
2755
- element: import("../element/types").NonDeletedExcalidrawElement;
2756
- state: "active" | "hover";
2757
- } | null;
2758
- newElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawNonSelectionElement> | null;
2759
- resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
2760
- multiElement: import("../element/types").NonDeleted<ExcalidrawLinearElement> | null;
2761
- selectionElement: import("../element/types").NonDeletedExcalidrawElement | null;
2762
- isBindingEnabled: boolean;
2763
- startBoundElement: import("../element/types").NonDeleted<ExcalidrawBindableElement> | null;
2764
- suggestedBindings: import("../element/binding").SuggestedBinding[];
2765
- frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameLikeElement> | null;
2766
- frameRendering: {
2767
- enabled: boolean;
2768
- name: boolean;
2769
- outline: boolean;
2770
- clip: boolean;
2771
- };
2772
- editingFrame: string | null;
2773
- elementsToHighlight: import("../element/types").NonDeleted<ExcalidrawElement>[] | null;
2774
- editingTextElement: import("../element/types").NonDeletedExcalidrawElement | null;
2775
- editingLinearElement: LinearElementEditor | null;
2776
- activeTool: {
2777
- lastActiveTool: import("../types").ActiveTool | null;
2778
- locked: boolean;
2779
- } & import("../types").ActiveTool;
2780
- penMode: boolean;
2781
- penDetected: boolean;
2782
- exportBackground: boolean;
2783
- exportEmbedScene: boolean;
2784
- exportWithDarkMode: boolean;
2785
- exportScale: number;
2786
- currentItemStrokeColor: string;
2787
- currentItemBackgroundColor: string;
2788
- currentItemFillStyle: import("../element/types").FillStyle;
2789
- currentItemStrokeWidth: number;
2790
- currentItemStrokeStyle: import("../element/types").StrokeStyle;
2791
- currentItemRoughness: number;
2792
- currentItemOpacity: number;
2793
- currentItemFontFamily: number;
2794
- currentItemFontSize: number;
2795
- currentItemTextAlign: string;
2796
- currentItemStartArrowhead: Arrowhead | null;
2797
- currentItemEndArrowhead: Arrowhead | null;
2798
- currentHoveredFontFamily: number | null;
2799
- currentItemRoundness: import("../element/types").StrokeRoundness;
2800
- currentItemArrowType: "round" | "sharp" | "elbow";
2801
- viewBackgroundColor: string;
2802
- scrollX: number;
2803
- scrollY: number;
2804
- cursorButton: "up" | "down";
2805
- scrolledOutside: boolean;
2806
- name: string | null;
2807
- isResizing: boolean;
2808
- isRotating: boolean;
2809
- zoom: Readonly<{
2810
- value: import("../types").NormalizedZoomValue;
2811
- }>;
2812
- openMenu: "canvas" | "shape" | null;
2813
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
2814
- openSidebar: {
2815
- name: string;
2816
- tab?: string | undefined;
2817
- } | null;
2818
- openDialog: {
2819
- name: "imageExport" | "help" | "jsonExport";
2820
- } | {
2821
- name: "ttd";
2822
- tab: "mermaid" | "text-to-diagram";
2823
- } | {
2824
- name: "commandPalette";
2825
- } | null;
2826
- defaultSidebarDockedPreference: boolean;
2827
- lastPointerDownWith: import("../element/types").PointerType;
2828
- selectedElementIds: Readonly<{
2829
- [id: string]: true;
2830
- }>;
2831
- previousSelectedElementIds: {
2832
- [id: string]: true;
2833
- };
2834
- selectedElementsAreBeingDragged: boolean;
2835
- shouldCacheIgnoreZoom: boolean;
2836
- toast: {
2837
- message: string;
2838
- closable?: boolean | undefined;
2839
- duration?: number | undefined;
2840
- } | null;
2841
- zenModeEnabled: boolean;
2842
- theme: import("../element/types").Theme;
2843
- gridSize: number;
2844
- gridStep: number;
2845
- gridModeEnabled: boolean;
2846
- viewModeEnabled: boolean;
2847
- selectedGroupIds: {
2848
- [groupId: string]: boolean;
2849
- };
2850
- editingGroupId: string | null;
2851
- width: number;
2852
- height: number;
2853
- offsetTop: number;
2854
- offsetLeft: number;
2855
- fileHandle: import("browser-fs-access").FileSystemHandle | null;
2856
- collaborators: Map<import("../types").SocketId, Readonly<{
2857
- pointer?: import("../types").CollaboratorPointer | undefined;
2858
- button?: "up" | "down" | undefined;
2859
- selectedElementIds?: Readonly<{
2860
- [id: string]: true;
2861
- }> | undefined;
2862
- username?: string | null | undefined;
2863
- userState?: import("../types").UserIdleState | undefined;
2864
- color?: {
2865
- background: string;
2866
- stroke: string;
2867
- } | undefined;
2868
- avatarUrl?: string | undefined;
2869
- id?: string | undefined;
2870
- socketId?: import("../types").SocketId | undefined;
2871
- isCurrentUser?: boolean | undefined;
2872
- isInCall?: boolean | undefined;
2873
- isSpeaking?: boolean | undefined;
2874
- isMuted?: boolean | undefined;
2875
- }>>;
2876
- stats: {
2877
- open: boolean;
2878
- panels: number;
2879
- };
2880
- currentChartType: import("../element/types").ChartType;
2881
- pasteDialog: {
2882
- shown: false;
2883
- data: null;
2884
- } | {
2885
- shown: true;
2886
- data: import("../charts").Spreadsheet;
2887
- };
2888
- pendingImageElementId: string | null;
2889
- showHyperlinkPopup: false | "info" | "editor";
2890
- linkOpacity: number;
2891
- trayModeEnabled: boolean;
2892
- colorPalette?: {
2893
- canvasBackground: import("../colors").ColorPaletteCustom;
2894
- elementBackground: import("../colors").ColorPaletteCustom;
2895
- elementStroke: import("../colors").ColorPaletteCustom;
2896
- topPicks: {
2897
- canvasBackground: [string, string, string, string, string];
2898
- elementStroke: [string, string, string, string, string];
2899
- elementBackground: [string, string, string, string, string];
2900
- };
2901
- } | undefined;
2902
- allowWheelZoom?: boolean | undefined;
2903
- allowPinchZoom?: boolean | undefined;
2904
- pinnedScripts?: string[] | undefined;
2905
- customPens?: any[] | undefined;
2906
- currentStrokeOptions?: any;
2907
- resetCustomPen?: any;
2908
- gridColor: {
2909
- Bold: string;
2910
- Regular: string;
2911
- };
2912
- highlightSearchResult: boolean;
2913
- dynamicStyle: {
2914
- [x: string]: string;
2915
- };
2916
- frameColor: {
2917
- stroke: string;
2918
- fill: string;
2919
- nameColor: string;
2920
- };
2921
- invertBindingBehaviour: boolean;
2922
- selectedLinearElement: LinearElementEditor | null;
2923
- snapLines: readonly import("../snapping").SnapLine[];
2924
- originSnapOffset: {
2925
- x: number;
2926
- y: number;
2927
- } | null;
2928
- objectsSnapModeEnabled: boolean;
2929
- userToFollow: import("../types").UserToFollow | null;
2930
- followedBy: Set<import("../types").SocketId>;
2931
- searchMatches: readonly {
2932
- id: string;
2933
- focus: boolean;
2934
- matchedLines: {
2935
- offsetX: number;
2936
- offsetY: number;
2937
- width: number;
2938
- height: number;
2939
- }[];
2940
- }[];
2941
- };
2942
- storeAction: "capture";
2943
- };
2944
- PanelComponent: ({ elements, appState, updateData }: import("./types").PanelComponentProps) => JSX.Element;
2945
- } & {
2946
- keyTest?: undefined;
2947
- };
2948
- export declare const actionChangeArrowType: {
2949
- name: "changeArrowType";
2950
- label: string;
2951
- trackEvent: false;
2952
- perform: (elements: readonly import("../element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, value: any, app: AppClassProperties) => {
2953
- elements: ExcalidrawElement[];
2954
- appState: {
2955
- currentItemArrowType: any;
2956
- contextMenu: {
2957
- items: import("../components/ContextMenu").ContextMenuItems;
2958
- top: number;
2959
- left: number;
2960
- } | null;
2961
- showWelcomeScreen: boolean;
2962
- isLoading: boolean;
2963
- errorMessage: import("react").ReactNode;
2964
- activeEmbeddable: {
2965
- element: import("../element/types").NonDeletedExcalidrawElement;
2966
- state: "active" | "hover";
2967
- } | null;
2968
- newElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawNonSelectionElement> | null;
2969
- resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
2970
- multiElement: import("../element/types").NonDeleted<ExcalidrawLinearElement> | null;
2971
- selectionElement: import("../element/types").NonDeletedExcalidrawElement | null;
2972
- isBindingEnabled: boolean;
2973
- startBoundElement: import("../element/types").NonDeleted<ExcalidrawBindableElement> | null;
2974
- suggestedBindings: import("../element/binding").SuggestedBinding[];
2975
- frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameLikeElement> | null;
2976
- frameRendering: {
2977
- enabled: boolean;
2978
- name: boolean;
2979
- outline: boolean;
2980
- clip: boolean;
2981
- };
2982
- editingFrame: string | null;
2983
- elementsToHighlight: import("../element/types").NonDeleted<ExcalidrawElement>[] | null;
2984
- editingTextElement: import("../element/types").NonDeletedExcalidrawElement | null;
2985
- editingLinearElement: LinearElementEditor | null;
2986
- activeTool: {
2987
- lastActiveTool: import("../types").ActiveTool | null;
2988
- locked: boolean;
2989
- } & import("../types").ActiveTool;
2990
- penMode: boolean;
2991
- penDetected: boolean;
2992
- exportBackground: boolean;
2993
- exportEmbedScene: boolean;
2994
- exportWithDarkMode: boolean;
2995
- exportScale: number;
2996
- currentItemStrokeColor: string;
2997
- currentItemBackgroundColor: string;
2998
- currentItemFillStyle: import("../element/types").FillStyle;
2999
- currentItemStrokeWidth: number;
3000
- currentItemStrokeStyle: import("../element/types").StrokeStyle;
3001
- currentItemRoughness: number;
3002
- currentItemOpacity: number;
3003
- currentItemFontFamily: number;
3004
- currentItemFontSize: number;
3005
- currentItemTextAlign: string;
3006
- currentItemStartArrowhead: Arrowhead | null;
3007
- currentItemEndArrowhead: Arrowhead | null;
3008
- currentHoveredFontFamily: number | null;
3009
- currentItemRoundness: import("../element/types").StrokeRoundness;
3010
- viewBackgroundColor: string;
3011
- scrollX: number;
3012
- scrollY: number;
3013
- cursorButton: "up" | "down";
3014
- scrolledOutside: boolean;
3015
- name: string | null;
3016
- isResizing: boolean;
3017
- isRotating: boolean;
3018
- zoom: Readonly<{
3019
- value: import("../types").NormalizedZoomValue;
3020
- }>;
3021
- openMenu: "canvas" | "shape" | null;
3022
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
3023
- openSidebar: {
3024
- name: string;
3025
- tab?: string | undefined;
3026
- } | null;
3027
- openDialog: {
3028
- name: "imageExport" | "help" | "jsonExport";
3029
- } | {
3030
- name: "ttd";
3031
- tab: "mermaid" | "text-to-diagram";
3032
- } | {
3033
- name: "commandPalette";
3034
- } | null;
3035
- defaultSidebarDockedPreference: boolean;
3036
- lastPointerDownWith: import("../element/types").PointerType;
3037
- selectedElementIds: Readonly<{
3038
- [id: string]: true;
3039
- }>;
3040
- previousSelectedElementIds: {
3041
- [id: string]: true;
3042
- };
3043
- selectedElementsAreBeingDragged: boolean;
3044
- shouldCacheIgnoreZoom: boolean;
3045
- toast: {
3046
- message: string;
3047
- closable?: boolean | undefined;
3048
- duration?: number | undefined;
3049
- } | null;
3050
- zenModeEnabled: boolean;
3051
- theme: import("../element/types").Theme;
3052
- gridSize: number;
3053
- gridStep: number;
3054
- gridModeEnabled: boolean;
3055
- viewModeEnabled: boolean;
3056
- selectedGroupIds: {
3057
- [groupId: string]: boolean;
3058
- };
3059
- editingGroupId: string | null;
3060
- width: number;
3061
- height: number;
3062
- offsetTop: number;
3063
- offsetLeft: number;
3064
- fileHandle: import("browser-fs-access").FileSystemHandle | null;
3065
- collaborators: Map<import("../types").SocketId, Readonly<{
3066
- pointer?: import("../types").CollaboratorPointer | undefined;
3067
- button?: "up" | "down" | undefined;
3068
- selectedElementIds?: Readonly<{
3069
- [id: string]: true;
3070
- }> | undefined;
3071
- username?: string | null | undefined;
3072
- userState?: import("../types").UserIdleState | undefined;
3073
- color?: {
3074
- background: string;
3075
- stroke: string;
3076
- } | undefined;
3077
- avatarUrl?: string | undefined;
3078
- id?: string | undefined;
3079
- socketId?: import("../types").SocketId | undefined;
3080
- isCurrentUser?: boolean | undefined;
3081
- isInCall?: boolean | undefined;
3082
- isSpeaking?: boolean | undefined;
3083
- isMuted?: boolean | undefined;
3084
- }>>;
3085
- stats: {
3086
- open: boolean;
3087
- panels: number;
3088
- };
3089
- currentChartType: import("../element/types").ChartType;
3090
- pasteDialog: {
3091
- shown: false;
3092
- data: null;
3093
- } | {
3094
- shown: true;
3095
- data: import("../charts").Spreadsheet;
3096
- };
3097
- pendingImageElementId: string | null;
3098
- showHyperlinkPopup: false | "info" | "editor";
3099
- linkOpacity: number;
3100
- trayModeEnabled: boolean;
3101
- colorPalette?: {
3102
- canvasBackground: import("../colors").ColorPaletteCustom;
3103
- elementBackground: import("../colors").ColorPaletteCustom;
3104
- elementStroke: import("../colors").ColorPaletteCustom;
3105
- topPicks: {
3106
- canvasBackground: [string, string, string, string, string];
3107
- elementStroke: [string, string, string, string, string];
3108
- elementBackground: [string, string, string, string, string];
3109
- };
3110
- } | undefined;
3111
- allowWheelZoom?: boolean | undefined;
3112
- allowPinchZoom?: boolean | undefined;
3113
- pinnedScripts?: string[] | undefined;
3114
- customPens?: any[] | undefined;
3115
- currentStrokeOptions?: any;
3116
- resetCustomPen?: any;
3117
- gridColor: {
3118
- Bold: string;
3119
- Regular: string;
3120
- };
3121
- highlightSearchResult: boolean;
3122
- dynamicStyle: {
3123
- [x: string]: string;
3124
- };
3125
- frameColor: {
3126
- stroke: string;
3127
- fill: string;
3128
- nameColor: string;
3129
- };
3130
- invertBindingBehaviour: boolean;
3131
- selectedLinearElement: LinearElementEditor | null;
3132
- snapLines: readonly import("../snapping").SnapLine[];
3133
- originSnapOffset: {
3134
- x: number;
3135
- y: number;
3136
- } | null;
3137
- objectsSnapModeEnabled: boolean;
3138
- userToFollow: import("../types").UserToFollow | null;
3139
- followedBy: Set<import("../types").SocketId>;
3140
- searchMatches: readonly {
3141
- id: string;
3142
- focus: boolean;
3143
- matchedLines: {
3144
- offsetX: number;
3145
- offsetY: number;
3146
- width: number;
3147
- height: number;
3148
- }[];
3149
- }[];
3150
- };
3151
- storeAction: "capture";
3152
- };
3153
- PanelComponent: ({ elements, appState, updateData }: import("./types").PanelComponentProps) => JSX.Element;
3154
- } & {
3155
- keyTest?: undefined;
3156
- };