@zsviczian/excalidraw 0.18.0-3 → 0.18.0-5

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