@excalidraw/excalidraw 0.18.0-d92384b77-3 → 0.18.0-dda3affcb

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