@zsviczian/excalidraw 0.18.0-14 → 0.18.0-16

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 (389) hide show
  1. package/dist/excalidraw.development.js +198 -198
  2. package/dist/excalidraw.production.min.js +1 -1
  3. package/dist/styles.development.css +54 -22
  4. package/dist/styles.production.css +3 -3
  5. package/package.json +1 -1
  6. package/types/common/src/binary-heap.d.ts +12 -12
  7. package/types/common/src/colors.d.ts +62 -62
  8. package/types/common/src/constants.d.ts +344 -337
  9. package/types/common/src/emitter.d.ts +16 -16
  10. package/types/common/src/font-metadata.d.ts +48 -46
  11. package/types/common/src/index.d.ts +12 -12
  12. package/types/common/src/keys.d.ts +189 -189
  13. package/types/common/src/points.d.ts +9 -9
  14. package/types/common/src/promise-pool.d.ts +6 -6
  15. package/types/common/src/queue.d.ts +9 -9
  16. package/types/common/src/random.d.ts +4 -4
  17. package/types/common/src/url.d.ts +7 -7
  18. package/types/common/src/utility-types.d.ts +37 -37
  19. package/types/common/src/utils.d.ts +269 -266
  20. package/types/element/src/Scene.d.ts +76 -76
  21. package/types/element/src/Shape.d.ts +17 -17
  22. package/types/element/src/ShapeCache.d.ts +25 -25
  23. package/types/element/src/align.d.ts +7 -7
  24. package/types/element/src/binding.d.ts +108 -108
  25. package/types/element/src/bounds.d.ts +81 -81
  26. package/types/element/src/collision.d.ts +26 -26
  27. package/types/element/src/comparisons.d.ts +8 -8
  28. package/types/element/src/containerCache.d.ts +11 -11
  29. package/types/element/src/cropElement.d.ts +19 -19
  30. package/types/element/src/delta.d.ts +196 -196
  31. package/types/element/src/distance.d.ts +3 -3
  32. package/types/element/src/distribute.d.ts +6 -6
  33. package/types/element/src/dragElements.d.ts +33 -33
  34. package/types/element/src/duplicate.d.ts +63 -63
  35. package/types/element/src/easingFunctions.d.ts +6 -6
  36. package/types/element/src/elbowArrow.d.ts +17 -17
  37. package/types/element/src/elementLink.d.ts +13 -13
  38. package/types/element/src/embeddable.d.ts +10 -10
  39. package/types/element/src/flowchart.d.ts +26 -26
  40. package/types/element/src/fractionalIndex.d.ts +51 -51
  41. package/types/element/src/frame.d.ts +70 -69
  42. package/types/element/src/groups.d.ts +33 -33
  43. package/types/element/src/heading.d.ts +15 -15
  44. package/types/element/src/image.d.ts +32 -32
  45. package/types/element/src/index.d.ts +59 -16
  46. package/types/element/src/linearElementEditor.d.ts +124 -125
  47. package/types/element/src/mutateElement.d.ts +21 -21
  48. package/types/element/src/newElement.d.ts +63 -62
  49. package/types/element/src/renderElement.d.ts +28 -28
  50. package/types/element/src/resizeElements.d.ts +38 -38
  51. package/types/element/src/resizeTest.d.ts +15 -15
  52. package/types/element/src/selection.d.ts +38 -43
  53. package/types/element/src/shapes.d.ts +27 -23
  54. package/types/element/src/showSelectedShapeActions.d.ts +3 -3
  55. package/types/element/src/sizeHelpers.d.ts +34 -34
  56. package/types/element/src/sortElements.d.ts +2 -2
  57. package/types/element/src/store.d.ts +227 -227
  58. package/types/element/src/textElement.d.ts +40 -40
  59. package/types/element/src/textMeasurements.d.ts +41 -41
  60. package/types/element/src/textWrapping.d.ts +13 -13
  61. package/types/element/src/transformHandles.d.ts +55 -55
  62. package/types/element/src/typeChecks.d.ts +45 -42
  63. package/types/element/src/types.d.ts +298 -292
  64. package/types/element/src/utils.d.ts +21 -21
  65. package/types/element/src/zindex.d.ts +7 -7
  66. package/types/excalidraw/actions/actionAddToLibrary.d.ts +626 -644
  67. package/types/excalidraw/actions/actionAlign.d.ts +109 -109
  68. package/types/excalidraw/actions/actionBoundText.d.ts +454 -466
  69. package/types/excalidraw/actions/actionCanvas.d.ts +3263 -3353
  70. package/types/excalidraw/actions/actionClipboard.d.ts +1368 -1404
  71. package/types/excalidraw/actions/actionCropEditor.d.ts +221 -227
  72. package/types/excalidraw/actions/actionDeleteSelected.d.ts +665 -683
  73. package/types/excalidraw/actions/actionDistribute.d.ts +34 -34
  74. package/types/excalidraw/actions/actionDuplicateSelection.d.ts +17 -17
  75. package/types/excalidraw/actions/actionElementLink.d.ts +243 -249
  76. package/types/excalidraw/actions/actionElementLock.d.ts +441 -453
  77. package/types/excalidraw/actions/actionEmbeddable.d.ts +218 -224
  78. package/types/excalidraw/actions/actionExport.d.ts +1944 -1998
  79. package/types/excalidraw/actions/actionFinalize.d.ts +423 -435
  80. package/types/excalidraw/actions/actionFlip.d.ts +34 -34
  81. package/types/excalidraw/actions/actionFrame.d.ts +1380 -1404
  82. package/types/excalidraw/actions/actionGroup.d.ts +452 -464
  83. package/types/excalidraw/actions/actionHistory.d.ts +6 -6
  84. package/types/excalidraw/actions/actionLinearEditor.d.ts +719 -228
  85. package/types/excalidraw/actions/actionLink.d.ts +222 -228
  86. package/types/excalidraw/actions/actionMenu.d.ts +646 -664
  87. package/types/excalidraw/actions/actionNavigate.d.ts +428 -440
  88. package/types/excalidraw/actions/actionProperties.d.ts +3269 -3351
  89. package/types/excalidraw/actions/actionSelectAll.d.ts +221 -227
  90. package/types/excalidraw/actions/actionStyles.d.ts +235 -241
  91. package/types/excalidraw/actions/actionTextAutoResize.d.ts +17 -17
  92. package/types/excalidraw/actions/actionToggleGridMode.d.ts +224 -230
  93. package/types/excalidraw/actions/actionToggleObjectsSnapMode.d.ts +222 -228
  94. package/types/excalidraw/actions/actionToggleSearchMenu.d.ts +215 -430
  95. package/types/excalidraw/actions/actionToggleShapeSwitch.d.ts +19 -19
  96. package/types/excalidraw/actions/actionToggleStats.d.ts +221 -227
  97. package/types/excalidraw/actions/actionToggleViewMode.d.ts +222 -228
  98. package/types/excalidraw/actions/actionToggleZenMode.d.ts +222 -228
  99. package/types/excalidraw/actions/actionZindex.d.ts +74 -74
  100. package/types/excalidraw/actions/index.d.ts +28 -28
  101. package/types/excalidraw/actions/manager.d.ts +21 -21
  102. package/types/excalidraw/actions/register.d.ts +5 -5
  103. package/types/excalidraw/actions/shortcuts.d.ts +4 -4
  104. package/types/excalidraw/actions/types.d.ts +47 -46
  105. package/types/excalidraw/analytics.d.ts +1 -1
  106. package/types/excalidraw/animated-trail.d.ts +39 -39
  107. package/types/excalidraw/animation-frame-handler.d.ts +16 -16
  108. package/types/excalidraw/appState.d.ts +90 -90
  109. package/types/excalidraw/charts.d.ts +27 -27
  110. package/types/excalidraw/clients.d.ts +14 -14
  111. package/types/excalidraw/clipboard.d.ts +66 -66
  112. package/types/excalidraw/components/Actions.d.ts +35 -35
  113. package/types/excalidraw/components/ActiveConfirmDialog.d.ts +4 -4
  114. package/types/excalidraw/components/App.d.ts +566 -566
  115. package/types/excalidraw/components/Avatar.d.ts +11 -11
  116. package/types/excalidraw/components/BraveMeasureTextError.d.ts +2 -2
  117. package/types/excalidraw/components/Button.d.ts +17 -17
  118. package/types/excalidraw/components/ButtonIcon.d.ts +16 -15
  119. package/types/excalidraw/components/ButtonIconCycle.d.ts +11 -11
  120. package/types/excalidraw/components/ButtonSeparator.d.ts +1 -1
  121. package/types/excalidraw/components/Card.d.ts +6 -6
  122. package/types/excalidraw/components/CheckboxItem.d.ts +8 -8
  123. package/types/excalidraw/components/ColorPicker/ColorInput.d.ts +10 -9
  124. package/types/excalidraw/components/ColorPicker/ColorPicker.d.ts +23 -19
  125. package/types/excalidraw/components/ColorPicker/CustomColorList.d.ts +8 -8
  126. package/types/excalidraw/components/ColorPicker/HotkeyLabel.d.ts +7 -7
  127. package/types/excalidraw/components/ColorPicker/Picker.d.ts +17 -18
  128. package/types/excalidraw/components/ColorPicker/PickerColorList.d.ts +9 -10
  129. package/types/excalidraw/components/ColorPicker/PickerHeading.d.ts +5 -5
  130. package/types/excalidraw/components/ColorPicker/ShadeList.d.ts +8 -8
  131. package/types/excalidraw/components/ColorPicker/TopPicks.d.ts +9 -9
  132. package/types/excalidraw/components/ColorPicker/colorPickerUtils.d.ts +21 -21
  133. package/types/excalidraw/components/ColorPicker/keyboardNavHandlers.d.ts +20 -20
  134. package/types/excalidraw/components/CommandPalette/CommandPalette.d.ts +18 -18
  135. package/types/excalidraw/components/CommandPalette/defaultCommandPaletteItems.d.ts +2 -2
  136. package/types/excalidraw/components/CommandPalette/types.d.ts +25 -25
  137. package/types/excalidraw/components/ConfirmDialog.d.ts +10 -10
  138. package/types/excalidraw/components/ContextMenu.d.ts +16 -16
  139. package/types/excalidraw/components/ConvertElementTypePopup.d.ts +23 -49
  140. package/types/excalidraw/components/DarkModeToggle.d.ts +7 -7
  141. package/types/excalidraw/components/DefaultSidebar.d.ts +30 -30
  142. package/types/excalidraw/components/DiagramToCodePlugin/DiagramToCodePlugin.d.ts +4 -4
  143. package/types/excalidraw/components/Dialog.d.ts +13 -13
  144. package/types/excalidraw/components/DialogActionButton.d.ts +10 -10
  145. package/types/excalidraw/components/ElementCanvasButtons.d.ts +7 -7
  146. package/types/excalidraw/components/ElementLinkDialog.d.ts +12 -12
  147. package/types/excalidraw/components/ErrorDialog.d.ts +5 -5
  148. package/types/excalidraw/components/ExcalidrawLogo.d.ts +15 -15
  149. package/types/excalidraw/components/EyeDropper.d.ts +27 -27
  150. package/types/excalidraw/components/FilledButton.d.ts +18 -18
  151. package/types/excalidraw/components/FixedSideContainer.d.ts +9 -9
  152. package/types/excalidraw/components/FollowMode/FollowMode.d.ts +10 -10
  153. package/types/excalidraw/components/FontPicker/FontPicker.d.ts +21 -21
  154. package/types/excalidraw/components/FontPicker/FontPickerList.d.ts +26 -26
  155. package/types/excalidraw/components/FontPicker/FontPickerTrigger.d.ts +6 -6
  156. package/types/excalidraw/components/FontPicker/keyboardNavHandlers.d.ts +13 -13
  157. package/types/excalidraw/components/HandButton.d.ts +10 -10
  158. package/types/excalidraw/components/HelpButton.d.ts +7 -7
  159. package/types/excalidraw/components/HelpDialog.d.ts +4 -4
  160. package/types/excalidraw/components/HintViewer.d.ts +10 -10
  161. package/types/excalidraw/components/IconPicker.d.ts +15 -15
  162. package/types/excalidraw/components/ImageExportDialog.d.ts +14 -14
  163. package/types/excalidraw/components/InitializeApp.d.ts +10 -10
  164. package/types/excalidraw/components/InlineIcon.d.ts +3 -3
  165. package/types/excalidraw/components/Island.d.ts +10 -10
  166. package/types/excalidraw/components/JSONExportDialog.d.ts +15 -15
  167. package/types/excalidraw/components/LaserPointerButton.d.ts +10 -10
  168. package/types/excalidraw/components/LayerUI.d.ts +31 -31
  169. package/types/excalidraw/components/LibraryMenu.d.ts +10 -10
  170. package/types/excalidraw/components/LibraryMenuBrowseButton.d.ts +7 -7
  171. package/types/excalidraw/components/LibraryMenuControlButtons.d.ts +9 -9
  172. package/types/excalidraw/components/LibraryMenuHeaderContent.d.ts +17 -17
  173. package/types/excalidraw/components/LibraryMenuItems.d.ts +14 -14
  174. package/types/excalidraw/components/LibraryMenuSection.d.ts +23 -23
  175. package/types/excalidraw/components/LibraryUnit.d.ts +14 -14
  176. package/types/excalidraw/components/LoadingMessage.d.ts +5 -5
  177. package/types/excalidraw/components/LockButton.d.ts +10 -10
  178. package/types/excalidraw/components/MagicButton.d.ts +10 -10
  179. package/types/excalidraw/components/MobileMenu.d.ts +25 -25
  180. package/types/excalidraw/components/Modal.d.ts +14 -14
  181. package/types/excalidraw/components/OverwriteConfirm/OverwriteConfirm.d.ts +17 -17
  182. package/types/excalidraw/components/OverwriteConfirm/OverwriteConfirmActions.d.ts +17 -17
  183. package/types/excalidraw/components/OverwriteConfirm/OverwriteConfirmState.d.ts +22 -22
  184. package/types/excalidraw/components/Paragraph.d.ts +4 -4
  185. package/types/excalidraw/components/PasteChartDialog.d.ts +8 -8
  186. package/types/excalidraw/components/PenModeButton.d.ts +12 -12
  187. package/types/excalidraw/components/Popover.d.ts +15 -15
  188. package/types/excalidraw/components/ProjectName.d.ts +10 -10
  189. package/types/excalidraw/components/PropertiesPopover.d.ts +15 -15
  190. package/types/excalidraw/components/PublishLibrary.d.ts +16 -16
  191. package/types/excalidraw/components/QuickSearch.d.ts +9 -9
  192. package/types/excalidraw/components/RadioGroup.d.ts +13 -13
  193. package/types/excalidraw/components/{ButtonIconSelect.d.ts → RadioSelection.d.ts} +20 -20
  194. package/types/excalidraw/components/Range.d.ts +8 -8
  195. package/types/excalidraw/components/SVGLayer.d.ts +7 -7
  196. package/types/excalidraw/components/ScrollableList.d.ts +8 -8
  197. package/types/excalidraw/components/SearchMenu.d.ts +5 -5
  198. package/types/excalidraw/components/Section.d.ts +6 -6
  199. package/types/excalidraw/components/ShareableLinkDialog.d.ts +7 -7
  200. package/types/excalidraw/components/Sidebar/Sidebar.d.ts +76 -76
  201. package/types/excalidraw/components/Sidebar/SidebarHeader.d.ts +7 -7
  202. package/types/excalidraw/components/Sidebar/SidebarTab.d.ts +8 -8
  203. package/types/excalidraw/components/Sidebar/SidebarTabTrigger.d.ts +9 -9
  204. package/types/excalidraw/components/Sidebar/SidebarTabTriggers.d.ts +6 -6
  205. package/types/excalidraw/components/Sidebar/SidebarTabs.d.ts +6 -6
  206. package/types/excalidraw/components/Sidebar/SidebarTrigger.d.ts +6 -6
  207. package/types/excalidraw/components/Sidebar/common.d.ts +34 -34
  208. package/types/excalidraw/components/Spinner.d.ts +8 -8
  209. package/types/excalidraw/components/Stack.d.ts +15 -15
  210. package/types/excalidraw/components/Stats/Angle.d.ts +11 -11
  211. package/types/excalidraw/components/Stats/CanvasGrid.d.ts +10 -10
  212. package/types/excalidraw/components/Stats/CanvasGridSize.d.ts +10 -10
  213. package/types/excalidraw/components/Stats/Collapsible.d.ts +10 -9
  214. package/types/excalidraw/components/Stats/Dimension.d.ts +11 -11
  215. package/types/excalidraw/components/Stats/DragInput.d.ts +34 -34
  216. package/types/excalidraw/components/Stats/FontSize.d.ts +11 -11
  217. package/types/excalidraw/components/Stats/MultiAngle.d.ts +11 -11
  218. package/types/excalidraw/components/Stats/MultiDimension.d.ts +14 -14
  219. package/types/excalidraw/components/Stats/MultiFontSize.d.ts +12 -12
  220. package/types/excalidraw/components/Stats/MultiPosition.d.ts +14 -14
  221. package/types/excalidraw/components/Stats/Position.d.ts +12 -12
  222. package/types/excalidraw/components/Stats/index.d.ts +35 -35
  223. package/types/excalidraw/components/Stats/utils.d.ts +19 -19
  224. package/types/excalidraw/components/Switch.d.ts +9 -9
  225. package/types/excalidraw/components/TTDDialog/MermaidToExcalidraw.d.ts +8 -8
  226. package/types/excalidraw/components/TTDDialog/MermaidToExcalidrawLib.d.ts +10 -10
  227. package/types/excalidraw/components/TTDDialog/TTDDialog.d.ts +29 -29
  228. package/types/excalidraw/components/TTDDialog/TTDDialogInput.d.ts +9 -9
  229. package/types/excalidraw/components/TTDDialog/TTDDialogOutput.d.ts +7 -7
  230. package/types/excalidraw/components/TTDDialog/TTDDialogPanel.d.ts +17 -17
  231. package/types/excalidraw/components/TTDDialog/TTDDialogPanels.d.ts +4 -4
  232. package/types/excalidraw/components/TTDDialog/TTDDialogSubmitShortcut.d.ts +1 -1
  233. package/types/excalidraw/components/TTDDialog/TTDDialogTab.d.ts +7 -7
  234. package/types/excalidraw/components/TTDDialog/TTDDialogTabTrigger.d.ts +8 -8
  235. package/types/excalidraw/components/TTDDialog/TTDDialogTabTriggers.d.ts +6 -6
  236. package/types/excalidraw/components/TTDDialog/TTDDialogTabs.d.ts +11 -11
  237. package/types/excalidraw/components/TTDDialog/TTDDialogTrigger.d.ts +9 -9
  238. package/types/excalidraw/components/TTDDialog/common.d.ts +32 -32
  239. package/types/excalidraw/components/TextField.d.ts +21 -21
  240. package/types/excalidraw/components/Toast.d.ts +9 -9
  241. package/types/excalidraw/components/ToolButton.d.ts +49 -49
  242. package/types/excalidraw/components/Tooltip.d.ts +18 -18
  243. package/types/excalidraw/components/Trans.d.ts +9 -9
  244. package/types/excalidraw/components/UserList.d.ts +18 -18
  245. package/types/excalidraw/components/canvases/InteractiveCanvas.d.ts +30 -30
  246. package/types/excalidraw/components/canvases/NewElementCanvas.d.ts +14 -14
  247. package/types/excalidraw/components/canvases/StaticCanvas.d.ts +19 -19
  248. package/types/excalidraw/components/canvases/index.d.ts +3 -3
  249. package/types/excalidraw/components/dropdownMenu/DropdownMenu.d.ts +86 -86
  250. package/types/excalidraw/components/dropdownMenu/DropdownMenuContent.d.ts +15 -15
  251. package/types/excalidraw/components/dropdownMenu/DropdownMenuGroup.d.ts +11 -11
  252. package/types/excalidraw/components/dropdownMenu/DropdownMenuItem.d.ts +46 -46
  253. package/types/excalidraw/components/dropdownMenu/DropdownMenuItemContent.d.ts +8 -8
  254. package/types/excalidraw/components/dropdownMenu/DropdownMenuItemContentRadio.d.ts +17 -17
  255. package/types/excalidraw/components/dropdownMenu/DropdownMenuItemCustom.d.ts +7 -7
  256. package/types/excalidraw/components/dropdownMenu/DropdownMenuItemLink.d.ts +16 -16
  257. package/types/excalidraw/components/dropdownMenu/DropdownMenuSeparator.d.ts +5 -5
  258. package/types/excalidraw/components/dropdownMenu/DropdownMenuTrigger.d.ts +10 -10
  259. package/types/excalidraw/components/dropdownMenu/common.d.ts +6 -6
  260. package/types/excalidraw/components/dropdownMenu/dropdownMenuUtils.d.ts +3 -3
  261. package/types/excalidraw/components/footer/Footer.d.ts +12 -12
  262. package/types/excalidraw/components/footer/FooterCenter.d.ts +8 -8
  263. package/types/excalidraw/components/hoc/withInternalFallback.d.ts +4 -4
  264. package/types/excalidraw/components/hyperlink/Hyperlink.d.ts +19 -19
  265. package/types/excalidraw/components/hyperlink/helpers.d.ts +10 -9
  266. package/types/excalidraw/components/icons.d.ts +226 -224
  267. package/types/excalidraw/components/live-collaboration/LiveCollaborationTrigger.d.ts +9 -9
  268. package/types/excalidraw/components/main-menu/DefaultItems.d.ts +64 -64
  269. package/types/excalidraw/components/main-menu/MainMenu.d.ts +83 -83
  270. package/types/excalidraw/components/shapes.d.ts +62 -62
  271. package/types/excalidraw/components/welcome-screen/WelcomeScreen.Center.d.ts +60 -60
  272. package/types/excalidraw/components/welcome-screen/WelcomeScreen.Hints.d.ts +19 -19
  273. package/types/excalidraw/components/welcome-screen/WelcomeScreen.d.ts +86 -86
  274. package/types/excalidraw/context/tunnels.d.ts +21 -21
  275. package/types/excalidraw/context/ui-appState.d.ts +4 -4
  276. package/types/excalidraw/cursor.d.ts +6 -6
  277. package/types/excalidraw/data/EditorLocalStorage.d.ts +8 -8
  278. package/types/excalidraw/data/ai/types.d.ts +242 -242
  279. package/types/excalidraw/data/blob.d.ts +53 -53
  280. package/types/excalidraw/data/encode.d.ts +55 -55
  281. package/types/excalidraw/data/encryption.d.ts +9 -9
  282. package/types/excalidraw/data/filesystem.d.ts +21 -21
  283. package/types/excalidraw/data/image.d.ts +9 -9
  284. package/types/excalidraw/data/index.d.ts +22 -22
  285. package/types/excalidraw/data/json.d.ts +16 -16
  286. package/types/excalidraw/data/library.d.ts +112 -112
  287. package/types/excalidraw/data/reconcile.d.ts +6 -6
  288. package/types/excalidraw/data/resave.d.ts +5 -5
  289. package/types/excalidraw/data/restore.d.ts +21 -21
  290. package/types/excalidraw/data/transform.d.ts +81 -81
  291. package/types/excalidraw/data/types.d.ts +45 -45
  292. package/types/excalidraw/deburr.d.ts +1 -1
  293. package/types/excalidraw/dist/excalidraw.development.d.ts +2 -2
  294. package/types/excalidraw/dist/excalidraw.production.min.d.ts +3 -3
  295. package/types/excalidraw/editor-jotai.d.ts +56 -56
  296. package/types/excalidraw/entry.d.ts +1 -1
  297. package/types/excalidraw/env.d.cts +1 -1
  298. package/types/excalidraw/env.d.ts +1 -1
  299. package/types/excalidraw/eraser/index.d.ts +14 -14
  300. package/types/excalidraw/errors.d.ts +29 -29
  301. package/types/excalidraw/fonts/Cascadia/index.d.ts +2 -2
  302. package/types/excalidraw/fonts/ComicShanns/index.d.ts +2 -2
  303. package/types/excalidraw/fonts/Emoji/index.d.ts +2 -2
  304. package/types/excalidraw/fonts/ExcalidrawFontFace.d.ts +29 -29
  305. package/types/excalidraw/fonts/Excalifont/index.d.ts +2 -2
  306. package/types/excalidraw/fonts/Fonts.d.ts +90 -90
  307. package/types/excalidraw/fonts/Helvetica/index.d.ts +2 -2
  308. package/types/excalidraw/fonts/Liberation/index.d.ts +2 -2
  309. package/types/excalidraw/fonts/Lilita/index.d.ts +2 -2
  310. package/types/excalidraw/fonts/Nunito/index.d.ts +2 -2
  311. package/types/excalidraw/fonts/Virgil/index.d.ts +2 -2
  312. package/types/excalidraw/fonts/Xiaolai/index.d.ts +8 -8
  313. package/types/excalidraw/fonts/index.d.ts +1 -1
  314. package/types/excalidraw/gesture.d.ts +6 -6
  315. package/types/excalidraw/history.d.ts +32 -32
  316. package/types/excalidraw/hooks/useCallbackRefState.d.ts +1 -1
  317. package/types/excalidraw/hooks/useCopiedIndicator.d.ts +5 -5
  318. package/types/excalidraw/hooks/useCreatePortalContainer.d.ts +7 -7
  319. package/types/excalidraw/hooks/useEmitter.d.ts +2 -2
  320. package/types/excalidraw/hooks/useLibraryItemSvg.d.ts +11 -11
  321. package/types/excalidraw/hooks/useOutsideClick.d.ts +19 -19
  322. package/types/excalidraw/hooks/useScrollPosition.d.ts +1 -1
  323. package/types/excalidraw/hooks/useStable.d.ts +1 -1
  324. package/types/excalidraw/hooks/useStableCallback.d.ts +4 -4
  325. package/types/excalidraw/hooks/useTransition.d.ts +2 -2
  326. package/types/excalidraw/i18n.d.ts +24 -24
  327. package/types/excalidraw/index-node.d.ts +1 -1
  328. package/types/excalidraw/index.d.ts +59 -59
  329. package/types/excalidraw/laser-trails.d.ts +20 -20
  330. package/types/excalidraw/lasso/index.d.ts +16 -15
  331. package/types/excalidraw/lasso/utils.d.ts +12 -12
  332. package/types/excalidraw/main.d.ts +2 -2
  333. package/types/excalidraw/mermaid.d.ts +2 -2
  334. package/types/excalidraw/obsidianUtils.d.ts +29 -29
  335. package/types/excalidraw/polyfill.d.ts +2 -2
  336. package/types/excalidraw/publicPath.d.ts +1 -1
  337. package/types/excalidraw/reactUtils.d.ts +14 -14
  338. package/types/excalidraw/renderer/helpers.d.ts +18 -18
  339. package/types/excalidraw/renderer/interactiveScene.d.ts +20 -20
  340. package/types/excalidraw/renderer/renderNewElementScene.d.ts +7 -7
  341. package/types/excalidraw/renderer/renderSnaps.d.ts +2 -2
  342. package/types/excalidraw/renderer/roundRect.d.ts +11 -11
  343. package/types/excalidraw/renderer/staticScene.d.ts +11 -11
  344. package/types/excalidraw/renderer/staticSvgScene.d.ts +5 -5
  345. package/types/excalidraw/scene/Renderer.d.ts +28 -28
  346. package/types/excalidraw/scene/export.d.ts +37 -37
  347. package/types/excalidraw/scene/index.d.ts +4 -4
  348. package/types/excalidraw/scene/normalize.d.ts +4 -4
  349. package/types/excalidraw/scene/scroll.d.ts +23 -23
  350. package/types/excalidraw/scene/scrollbars.d.ts +11 -11
  351. package/types/excalidraw/scene/types.d.ts +122 -122
  352. package/types/excalidraw/scene/zoom.d.ts +12 -12
  353. package/types/excalidraw/snapping.d.ts +111 -111
  354. package/types/excalidraw/subset/harfbuzz/harfbuzz-bindings.d.ts +45 -45
  355. package/types/excalidraw/subset/harfbuzz/harfbuzz-loader.d.ts +13 -13
  356. package/types/excalidraw/subset/harfbuzz/harfbuzz-wasm.d.ts +2 -2
  357. package/types/excalidraw/subset/subset-main.d.ts +12 -12
  358. package/types/excalidraw/subset/subset-shared.chunk.d.ts +32 -32
  359. package/types/excalidraw/subset/subset-worker.chunk.d.ts +15 -15
  360. package/types/excalidraw/subset/woff2/woff2-bindings.d.ts +31 -31
  361. package/types/excalidraw/subset/woff2/woff2-loader.d.ts +14 -14
  362. package/types/excalidraw/subset/woff2/woff2-wasm.d.ts +2 -2
  363. package/types/excalidraw/types.d.ts +772 -767
  364. package/types/excalidraw/visualdebug.d.ts +41 -41
  365. package/types/excalidraw/webpack.dev.config.d.ts +114 -114
  366. package/types/excalidraw/webpack.prod.config.d.ts +128 -128
  367. package/types/excalidraw/workers.d.ts +36 -36
  368. package/types/excalidraw/wysiwyg/textWysiwyg.d.ts +24 -24
  369. package/types/math/src/angle.d.ts +17 -17
  370. package/types/math/src/curve.d.ts +42 -42
  371. package/types/math/src/ellipse.d.ts +44 -44
  372. package/types/math/src/index.d.ts +12 -12
  373. package/types/math/src/line.d.ts +17 -17
  374. package/types/math/src/point.d.ts +122 -122
  375. package/types/math/src/polygon.d.ts +6 -6
  376. package/types/math/src/range.d.ts +44 -44
  377. package/types/math/src/rectangle.d.ts +3 -3
  378. package/types/math/src/segment.d.ts +39 -39
  379. package/types/math/src/triangle.d.ts +11 -11
  380. package/types/math/src/types.d.ts +106 -106
  381. package/types/math/src/utils.d.ts +7 -7
  382. package/types/math/src/vector.d.ts +92 -92
  383. package/types/utils/src/bbox.d.ts +9 -9
  384. package/types/utils/src/collision.d.ts +8 -8
  385. package/types/utils/src/export.d.ts +35 -35
  386. package/types/utils/src/index.d.ts +4 -4
  387. package/types/utils/src/shape.d.ts +58 -58
  388. package/types/utils/src/withinBounds.d.ts +19 -19
  389. package/types/excalidraw/components/ButtonSelect.d.ts +0 -9
@@ -1,664 +1,646 @@
1
- export declare const actionToggleCanvasMenu: {
2
- name: "toggleCanvasMenu";
3
- label: string;
4
- trackEvent: {
5
- category: "menu";
6
- };
7
- perform: (_: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>) => {
8
- appState: {
9
- openMenu: "canvas" | null;
10
- contextMenu: {
11
- items: import("../components/ContextMenu").ContextMenuItems;
12
- top: number;
13
- left: number;
14
- } | null;
15
- showWelcomeScreen: boolean;
16
- isLoading: boolean;
17
- errorMessage: import("react").ReactNode;
18
- activeEmbeddable: {
19
- element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
20
- state: "active" | "hover";
21
- } | null;
22
- newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
23
- resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
24
- multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
25
- selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
26
- isBindingEnabled: boolean;
27
- startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
28
- suggestedBindings: import("@excalidraw/element/binding").SuggestedBinding[];
29
- frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
30
- frameRendering: {
31
- enabled: boolean;
32
- name: boolean;
33
- outline: boolean;
34
- clip: boolean;
35
- };
36
- editingFrame: string | null;
37
- elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
38
- editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
39
- editingLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
40
- activeTool: {
41
- lastActiveTool: import("../types").ActiveTool | null;
42
- locked: boolean;
43
- fromSelection: boolean;
44
- } & import("../types").ActiveTool;
45
- penMode: boolean;
46
- penDetected: boolean;
47
- exportBackground: boolean;
48
- exportEmbedScene: boolean;
49
- exportWithDarkMode: boolean;
50
- exportScale: number;
51
- currentItemStrokeColor: string;
52
- currentItemBackgroundColor: string;
53
- currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
54
- currentItemStrokeWidth: number;
55
- currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
56
- currentItemRoughness: number;
57
- currentItemOpacity: number;
58
- currentItemFontFamily: number;
59
- currentItemFontSize: number;
60
- currentItemTextAlign: string;
61
- currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
62
- currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
63
- currentHoveredFontFamily: number | null;
64
- currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
65
- currentItemArrowType: "round" | "sharp" | "elbow";
66
- viewBackgroundColor: string;
67
- scrollX: number;
68
- scrollY: number;
69
- cursorButton: "up" | "down";
70
- scrolledOutside: boolean;
71
- name: string | null;
72
- isResizing: boolean;
73
- isRotating: boolean;
74
- zoom: Readonly<{
75
- value: import("../types").NormalizedZoomValue;
76
- }>;
77
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
78
- openSidebar: {
79
- name: string;
80
- tab?: string | undefined;
81
- } | null;
82
- openDialog: {
83
- name: "help" | "imageExport" | "jsonExport";
84
- } | {
85
- name: "ttd";
86
- tab: "mermaid" | "text-to-diagram";
87
- } | {
88
- name: "commandPalette";
89
- } | {
90
- name: "elementLinkSelector";
91
- sourceElementId: string;
92
- } | null;
93
- defaultSidebarDockedPreference: boolean;
94
- lastPointerDownWith: import("@excalidraw/element/types").PointerType;
95
- selectedElementIds: Readonly<{
96
- [id: string]: true;
97
- }>;
98
- hoveredElementIds: Readonly<{
99
- [id: string]: true;
100
- }>;
101
- previousSelectedElementIds: {
102
- [id: string]: true;
103
- };
104
- selectedElementsAreBeingDragged: boolean;
105
- shouldCacheIgnoreZoom: boolean;
106
- toast: {
107
- message: string;
108
- closable?: boolean | undefined;
109
- duration?: number | undefined;
110
- } | null;
111
- zenModeEnabled: boolean;
112
- theme: import("@excalidraw/element/types").Theme;
113
- gridSize: number;
114
- gridStep: number;
115
- gridModeEnabled: boolean;
116
- viewModeEnabled: boolean;
117
- selectedGroupIds: {
118
- [groupId: string]: boolean;
119
- };
120
- editingGroupId: string | null;
121
- width: number;
122
- height: number;
123
- offsetTop: number;
124
- offsetLeft: number;
125
- fileHandle: import("browser-fs-access").FileSystemHandle | null;
126
- collaborators: Map<import("../types").SocketId, Readonly<{
127
- pointer?: import("../types").CollaboratorPointer | undefined;
128
- button?: "up" | "down" | undefined;
129
- selectedElementIds?: Readonly<{
130
- [id: string]: true;
131
- }> | undefined;
132
- username?: string | null | undefined;
133
- userState?: import("@excalidraw/common").UserIdleState | undefined;
134
- color?: {
135
- background: string;
136
- stroke: string;
137
- } | undefined;
138
- avatarUrl?: string | undefined;
139
- id?: string | undefined;
140
- socketId?: import("../types").SocketId | undefined;
141
- isCurrentUser?: boolean | undefined;
142
- isInCall?: boolean | undefined;
143
- isSpeaking?: boolean | undefined;
144
- isMuted?: boolean | undefined;
145
- }>>;
146
- stats: {
147
- open: boolean;
148
- panels: number;
149
- };
150
- currentChartType: import("@excalidraw/element/types").ChartType;
151
- pasteDialog: {
152
- shown: false;
153
- data: null;
154
- } | {
155
- shown: true;
156
- data: import("../charts").Spreadsheet;
157
- };
158
- pendingImageElementId: string | null;
159
- showHyperlinkPopup: false | "editor" | "info";
160
- linkOpacity: number;
161
- trayModeEnabled: boolean;
162
- colorPalette?: {
163
- canvasBackground: import("@excalidraw/common").ColorPaletteCustom;
164
- elementBackground: import("@excalidraw/common").ColorPaletteCustom;
165
- elementStroke: import("@excalidraw/common").ColorPaletteCustom;
166
- topPicks: {
167
- canvasBackground: [string, string, string, string, string];
168
- elementStroke: [string, string, string, string, string];
169
- elementBackground: [string, string, string, string, string];
170
- };
171
- } | undefined;
172
- allowWheelZoom?: boolean | undefined;
173
- allowPinchZoom?: boolean | undefined;
174
- pinnedScripts?: string[] | undefined;
175
- customPens?: any[] | undefined;
176
- currentStrokeOptions?: any;
177
- resetCustomPen?: any;
178
- gridColor: {
179
- Bold: string;
180
- Regular: string;
181
- };
182
- gridDirection: {
183
- horizontal: boolean;
184
- vertical: boolean;
185
- };
186
- highlightSearchResult: boolean;
187
- dynamicStyle: {
188
- [x: string]: string;
189
- };
190
- frameColor: {
191
- stroke: string;
192
- fill: string;
193
- nameColor: string;
194
- };
195
- invertBindingBehaviour: boolean;
196
- selectedLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
197
- snapLines: readonly import("../snapping").SnapLine[];
198
- originSnapOffset: {
199
- x: number;
200
- y: number;
201
- } | null;
202
- objectsSnapModeEnabled: boolean;
203
- userToFollow: import("../types").UserToFollow | null;
204
- followedBy: Set<import("../types").SocketId>;
205
- isCropping: boolean;
206
- croppingElementId: string | null;
207
- searchMatches: readonly {
208
- id: string;
209
- focus: boolean;
210
- matchedLines: {
211
- offsetX: number;
212
- offsetY: number;
213
- width: number;
214
- height: number;
215
- }[];
216
- }[];
217
- };
218
- captureUpdate: "EVENTUALLY";
219
- };
220
- PanelComponent: ({ appState, updateData }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
221
- } & {
222
- keyTest?: undefined;
223
- };
224
- export declare const actionToggleEditMenu: {
225
- name: "toggleEditMenu";
226
- label: string;
227
- trackEvent: {
228
- category: "menu";
229
- };
230
- perform: (_elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>) => {
231
- appState: {
232
- openMenu: "shape" | null;
233
- contextMenu: {
234
- items: import("../components/ContextMenu").ContextMenuItems;
235
- top: number;
236
- left: number;
237
- } | null;
238
- showWelcomeScreen: boolean;
239
- isLoading: boolean;
240
- errorMessage: import("react").ReactNode;
241
- activeEmbeddable: {
242
- element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
243
- state: "active" | "hover";
244
- } | null;
245
- newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
246
- resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
247
- multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
248
- selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
249
- isBindingEnabled: boolean;
250
- startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
251
- suggestedBindings: import("@excalidraw/element/binding").SuggestedBinding[];
252
- frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
253
- frameRendering: {
254
- enabled: boolean;
255
- name: boolean;
256
- outline: boolean;
257
- clip: boolean;
258
- };
259
- editingFrame: string | null;
260
- elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
261
- editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
262
- editingLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
263
- activeTool: {
264
- lastActiveTool: import("../types").ActiveTool | null;
265
- locked: boolean;
266
- fromSelection: boolean;
267
- } & import("../types").ActiveTool;
268
- penMode: boolean;
269
- penDetected: boolean;
270
- exportBackground: boolean;
271
- exportEmbedScene: boolean;
272
- exportWithDarkMode: boolean;
273
- exportScale: number;
274
- currentItemStrokeColor: string;
275
- currentItemBackgroundColor: string;
276
- currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
277
- currentItemStrokeWidth: number;
278
- currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
279
- currentItemRoughness: number;
280
- currentItemOpacity: number;
281
- currentItemFontFamily: number;
282
- currentItemFontSize: number;
283
- currentItemTextAlign: string;
284
- currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
285
- currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
286
- currentHoveredFontFamily: number | null;
287
- currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
288
- currentItemArrowType: "round" | "sharp" | "elbow";
289
- viewBackgroundColor: string;
290
- scrollX: number;
291
- scrollY: number;
292
- cursorButton: "up" | "down";
293
- scrolledOutside: boolean;
294
- name: string | null;
295
- isResizing: boolean;
296
- isRotating: boolean;
297
- zoom: Readonly<{
298
- value: import("../types").NormalizedZoomValue;
299
- }>;
300
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
301
- openSidebar: {
302
- name: string;
303
- tab?: string | undefined;
304
- } | null;
305
- openDialog: {
306
- name: "help" | "imageExport" | "jsonExport";
307
- } | {
308
- name: "ttd";
309
- tab: "mermaid" | "text-to-diagram";
310
- } | {
311
- name: "commandPalette";
312
- } | {
313
- name: "elementLinkSelector";
314
- sourceElementId: string;
315
- } | null;
316
- defaultSidebarDockedPreference: boolean;
317
- lastPointerDownWith: import("@excalidraw/element/types").PointerType;
318
- selectedElementIds: Readonly<{
319
- [id: string]: true;
320
- }>;
321
- hoveredElementIds: Readonly<{
322
- [id: string]: true;
323
- }>;
324
- previousSelectedElementIds: {
325
- [id: string]: true;
326
- };
327
- selectedElementsAreBeingDragged: boolean;
328
- shouldCacheIgnoreZoom: boolean;
329
- toast: {
330
- message: string;
331
- closable?: boolean | undefined;
332
- duration?: number | undefined;
333
- } | null;
334
- zenModeEnabled: boolean;
335
- theme: import("@excalidraw/element/types").Theme;
336
- gridSize: number;
337
- gridStep: number;
338
- gridModeEnabled: boolean;
339
- viewModeEnabled: boolean;
340
- selectedGroupIds: {
341
- [groupId: string]: boolean;
342
- };
343
- editingGroupId: string | null;
344
- width: number;
345
- height: number;
346
- offsetTop: number;
347
- offsetLeft: number;
348
- fileHandle: import("browser-fs-access").FileSystemHandle | null;
349
- collaborators: Map<import("../types").SocketId, Readonly<{
350
- pointer?: import("../types").CollaboratorPointer | undefined;
351
- button?: "up" | "down" | undefined;
352
- selectedElementIds?: Readonly<{
353
- [id: string]: true;
354
- }> | undefined;
355
- username?: string | null | undefined;
356
- userState?: import("@excalidraw/common").UserIdleState | undefined;
357
- color?: {
358
- background: string;
359
- stroke: string;
360
- } | undefined;
361
- avatarUrl?: string | undefined;
362
- id?: string | undefined;
363
- socketId?: import("../types").SocketId | undefined;
364
- isCurrentUser?: boolean | undefined;
365
- isInCall?: boolean | undefined;
366
- isSpeaking?: boolean | undefined;
367
- isMuted?: boolean | undefined;
368
- }>>;
369
- stats: {
370
- open: boolean;
371
- panels: number;
372
- };
373
- currentChartType: import("@excalidraw/element/types").ChartType;
374
- pasteDialog: {
375
- shown: false;
376
- data: null;
377
- } | {
378
- shown: true;
379
- data: import("../charts").Spreadsheet;
380
- };
381
- pendingImageElementId: string | null;
382
- showHyperlinkPopup: false | "editor" | "info";
383
- linkOpacity: number;
384
- trayModeEnabled: boolean;
385
- colorPalette?: {
386
- canvasBackground: import("@excalidraw/common").ColorPaletteCustom;
387
- elementBackground: import("@excalidraw/common").ColorPaletteCustom;
388
- elementStroke: import("@excalidraw/common").ColorPaletteCustom;
389
- topPicks: {
390
- canvasBackground: [string, string, string, string, string];
391
- elementStroke: [string, string, string, string, string];
392
- elementBackground: [string, string, string, string, string];
393
- };
394
- } | undefined;
395
- allowWheelZoom?: boolean | undefined;
396
- allowPinchZoom?: boolean | undefined;
397
- pinnedScripts?: string[] | undefined;
398
- customPens?: any[] | undefined;
399
- currentStrokeOptions?: any;
400
- resetCustomPen?: any;
401
- gridColor: {
402
- Bold: string;
403
- Regular: string;
404
- };
405
- gridDirection: {
406
- horizontal: boolean;
407
- vertical: boolean;
408
- };
409
- highlightSearchResult: boolean;
410
- dynamicStyle: {
411
- [x: string]: string;
412
- };
413
- frameColor: {
414
- stroke: string;
415
- fill: string;
416
- nameColor: string;
417
- };
418
- invertBindingBehaviour: boolean;
419
- selectedLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
420
- snapLines: readonly import("../snapping").SnapLine[];
421
- originSnapOffset: {
422
- x: number;
423
- y: number;
424
- } | null;
425
- objectsSnapModeEnabled: boolean;
426
- userToFollow: import("../types").UserToFollow | null;
427
- followedBy: Set<import("../types").SocketId>;
428
- isCropping: boolean;
429
- croppingElementId: string | null;
430
- searchMatches: readonly {
431
- id: string;
432
- focus: boolean;
433
- matchedLines: {
434
- offsetX: number;
435
- offsetY: number;
436
- width: number;
437
- height: number;
438
- }[];
439
- }[];
440
- };
441
- captureUpdate: "EVENTUALLY";
442
- };
443
- PanelComponent: ({ elements, appState, updateData }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
444
- } & {
445
- keyTest?: undefined;
446
- };
447
- export declare const actionShortcuts: {
448
- name: "toggleShortcuts";
449
- label: string;
450
- icon: import("react/jsx-runtime").JSX.Element;
451
- viewMode: true;
452
- trackEvent: {
453
- category: "menu";
454
- action: string;
455
- };
456
- perform: (_elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, _: any, { focusContainer }: import("../types").AppClassProperties) => {
457
- appState: {
458
- openDialog: {
459
- name: "help";
460
- } | null;
461
- contextMenu: {
462
- items: import("../components/ContextMenu").ContextMenuItems;
463
- top: number;
464
- left: number;
465
- } | null;
466
- showWelcomeScreen: boolean;
467
- isLoading: boolean;
468
- errorMessage: import("react").ReactNode;
469
- activeEmbeddable: {
470
- element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
471
- state: "active" | "hover";
472
- } | null;
473
- newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
474
- resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
475
- multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
476
- selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
477
- isBindingEnabled: boolean;
478
- startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
479
- suggestedBindings: import("@excalidraw/element/binding").SuggestedBinding[];
480
- frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
481
- frameRendering: {
482
- enabled: boolean;
483
- name: boolean;
484
- outline: boolean;
485
- clip: boolean;
486
- };
487
- editingFrame: string | null;
488
- elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
489
- editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
490
- editingLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
491
- activeTool: {
492
- lastActiveTool: import("../types").ActiveTool | null;
493
- locked: boolean;
494
- fromSelection: boolean;
495
- } & import("../types").ActiveTool;
496
- penMode: boolean;
497
- penDetected: boolean;
498
- exportBackground: boolean;
499
- exportEmbedScene: boolean;
500
- exportWithDarkMode: boolean;
501
- exportScale: number;
502
- currentItemStrokeColor: string;
503
- currentItemBackgroundColor: string;
504
- currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
505
- currentItemStrokeWidth: number;
506
- currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
507
- currentItemRoughness: number;
508
- currentItemOpacity: number;
509
- currentItemFontFamily: number;
510
- currentItemFontSize: number;
511
- currentItemTextAlign: string;
512
- currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
513
- currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
514
- currentHoveredFontFamily: number | null;
515
- currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
516
- currentItemArrowType: "round" | "sharp" | "elbow";
517
- viewBackgroundColor: string;
518
- scrollX: number;
519
- scrollY: number;
520
- cursorButton: "up" | "down";
521
- scrolledOutside: boolean;
522
- name: string | null;
523
- isResizing: boolean;
524
- isRotating: boolean;
525
- zoom: Readonly<{
526
- value: import("../types").NormalizedZoomValue;
527
- }>;
528
- openMenu: "canvas" | "shape" | null;
529
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
530
- openSidebar: {
531
- name: string;
532
- tab?: string | undefined;
533
- } | null;
534
- defaultSidebarDockedPreference: boolean;
535
- lastPointerDownWith: import("@excalidraw/element/types").PointerType;
536
- selectedElementIds: Readonly<{
537
- [id: string]: true;
538
- }>;
539
- hoveredElementIds: Readonly<{
540
- [id: string]: true;
541
- }>;
542
- previousSelectedElementIds: {
543
- [id: string]: true;
544
- };
545
- selectedElementsAreBeingDragged: boolean;
546
- shouldCacheIgnoreZoom: boolean;
547
- toast: {
548
- message: string;
549
- closable?: boolean | undefined;
550
- duration?: number | undefined;
551
- } | null;
552
- zenModeEnabled: boolean;
553
- theme: import("@excalidraw/element/types").Theme;
554
- gridSize: number;
555
- gridStep: number;
556
- gridModeEnabled: boolean;
557
- viewModeEnabled: boolean;
558
- selectedGroupIds: {
559
- [groupId: string]: boolean;
560
- };
561
- editingGroupId: string | null;
562
- width: number;
563
- height: number;
564
- offsetTop: number;
565
- offsetLeft: number;
566
- fileHandle: import("browser-fs-access").FileSystemHandle | null;
567
- collaborators: Map<import("../types").SocketId, Readonly<{
568
- pointer?: import("../types").CollaboratorPointer | undefined;
569
- button?: "up" | "down" | undefined;
570
- selectedElementIds?: Readonly<{
571
- [id: string]: true;
572
- }> | undefined;
573
- username?: string | null | undefined;
574
- userState?: import("@excalidraw/common").UserIdleState | undefined;
575
- color?: {
576
- background: string;
577
- stroke: string;
578
- } | undefined;
579
- avatarUrl?: string | undefined;
580
- id?: string | undefined;
581
- socketId?: import("../types").SocketId | undefined;
582
- isCurrentUser?: boolean | undefined;
583
- isInCall?: boolean | undefined;
584
- isSpeaking?: boolean | undefined;
585
- isMuted?: boolean | undefined;
586
- }>>;
587
- stats: {
588
- open: boolean;
589
- panels: number;
590
- };
591
- currentChartType: import("@excalidraw/element/types").ChartType;
592
- pasteDialog: {
593
- shown: false;
594
- data: null;
595
- } | {
596
- shown: true;
597
- data: import("../charts").Spreadsheet;
598
- };
599
- pendingImageElementId: string | null;
600
- showHyperlinkPopup: false | "editor" | "info";
601
- linkOpacity: number;
602
- trayModeEnabled: boolean;
603
- colorPalette?: {
604
- canvasBackground: import("@excalidraw/common").ColorPaletteCustom;
605
- elementBackground: import("@excalidraw/common").ColorPaletteCustom;
606
- elementStroke: import("@excalidraw/common").ColorPaletteCustom;
607
- topPicks: {
608
- canvasBackground: [string, string, string, string, string];
609
- elementStroke: [string, string, string, string, string];
610
- elementBackground: [string, string, string, string, string];
611
- };
612
- } | undefined;
613
- allowWheelZoom?: boolean | undefined;
614
- allowPinchZoom?: boolean | undefined;
615
- pinnedScripts?: string[] | undefined;
616
- customPens?: any[] | undefined;
617
- currentStrokeOptions?: any;
618
- resetCustomPen?: any;
619
- gridColor: {
620
- Bold: string;
621
- Regular: string;
622
- };
623
- gridDirection: {
624
- horizontal: boolean;
625
- vertical: boolean;
626
- };
627
- highlightSearchResult: boolean;
628
- dynamicStyle: {
629
- [x: string]: string;
630
- };
631
- frameColor: {
632
- stroke: string;
633
- fill: string;
634
- nameColor: string;
635
- };
636
- invertBindingBehaviour: boolean;
637
- selectedLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
638
- snapLines: readonly import("../snapping").SnapLine[];
639
- originSnapOffset: {
640
- x: number;
641
- y: number;
642
- } | null;
643
- objectsSnapModeEnabled: boolean;
644
- userToFollow: import("../types").UserToFollow | null;
645
- followedBy: Set<import("../types").SocketId>;
646
- isCropping: boolean;
647
- croppingElementId: string | null;
648
- searchMatches: readonly {
649
- id: string;
650
- focus: boolean;
651
- matchedLines: {
652
- offsetX: number;
653
- offsetY: number;
654
- width: number;
655
- height: number;
656
- }[];
657
- }[];
658
- };
659
- captureUpdate: "EVENTUALLY";
660
- };
661
- keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
662
- } & {
663
- keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
664
- };
1
+ export declare const actionToggleCanvasMenu: {
2
+ name: "toggleCanvasMenu";
3
+ label: string;
4
+ trackEvent: {
5
+ category: "menu";
6
+ };
7
+ perform: (_: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>) => {
8
+ appState: {
9
+ openMenu: "canvas" | null;
10
+ contextMenu: {
11
+ items: import("../components/ContextMenu").ContextMenuItems;
12
+ top: number;
13
+ left: number;
14
+ } | null;
15
+ showWelcomeScreen: boolean;
16
+ isLoading: boolean;
17
+ errorMessage: import("react").ReactNode;
18
+ activeEmbeddable: {
19
+ element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
20
+ state: "active" | "hover";
21
+ } | null;
22
+ newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
23
+ resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
24
+ multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
25
+ selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
26
+ isBindingEnabled: boolean;
27
+ startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
28
+ suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
29
+ frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
30
+ frameRendering: {
31
+ enabled: boolean;
32
+ name: boolean;
33
+ outline: boolean;
34
+ clip: boolean;
35
+ };
36
+ editingFrame: string | null;
37
+ elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
38
+ editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
39
+ editingLinearElement: import("@excalidraw/element").LinearElementEditor | 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
+ name: string | null;
72
+ isResizing: boolean;
73
+ isRotating: boolean;
74
+ zoom: Readonly<{
75
+ value: import("../types").NormalizedZoomValue;
76
+ }>;
77
+ openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
78
+ openSidebar: {
79
+ name: string;
80
+ tab?: string | undefined;
81
+ } | null;
82
+ openDialog: {
83
+ name: "help" | "imageExport" | "jsonExport";
84
+ } | {
85
+ name: "ttd";
86
+ tab: "mermaid" | "text-to-diagram";
87
+ } | {
88
+ name: "commandPalette";
89
+ } | {
90
+ name: "elementLinkSelector";
91
+ sourceElementId: string;
92
+ } | null;
93
+ defaultSidebarDockedPreference: boolean;
94
+ lastPointerDownWith: import("@excalidraw/element/types").PointerType;
95
+ selectedElementIds: Readonly<{
96
+ [id: string]: true;
97
+ }>;
98
+ hoveredElementIds: Readonly<{
99
+ [id: string]: true;
100
+ }>;
101
+ previousSelectedElementIds: {
102
+ [id: string]: true;
103
+ };
104
+ selectedElementsAreBeingDragged: boolean;
105
+ shouldCacheIgnoreZoom: boolean;
106
+ toast: {
107
+ message: string;
108
+ closable?: boolean | undefined;
109
+ duration?: number | undefined;
110
+ } | null;
111
+ zenModeEnabled: boolean;
112
+ theme: import("@excalidraw/element/types").Theme;
113
+ gridSize: number;
114
+ gridStep: number;
115
+ gridModeEnabled: boolean;
116
+ viewModeEnabled: boolean;
117
+ selectedGroupIds: {
118
+ [groupId: string]: boolean;
119
+ };
120
+ editingGroupId: string | null;
121
+ width: number;
122
+ height: number;
123
+ offsetTop: number;
124
+ offsetLeft: number;
125
+ fileHandle: import("browser-fs-access").FileSystemHandle | null;
126
+ collaborators: Map<import("../types").SocketId, Readonly<{
127
+ pointer?: import("../types").CollaboratorPointer | undefined;
128
+ button?: "up" | "down" | undefined;
129
+ selectedElementIds?: Readonly<{
130
+ [id: string]: true;
131
+ }> | undefined;
132
+ username?: string | null | undefined;
133
+ userState?: import("@excalidraw/common").UserIdleState | undefined;
134
+ color?: {
135
+ background: string;
136
+ stroke: string;
137
+ } | undefined;
138
+ avatarUrl?: string | undefined;
139
+ id?: string | undefined;
140
+ socketId?: import("../types").SocketId | undefined;
141
+ isCurrentUser?: boolean | undefined;
142
+ isInCall?: boolean | undefined;
143
+ isSpeaking?: boolean | undefined;
144
+ isMuted?: boolean | undefined;
145
+ }>>;
146
+ stats: {
147
+ open: boolean;
148
+ panels: number;
149
+ };
150
+ currentChartType: import("@excalidraw/element/types").ChartType;
151
+ pasteDialog: {
152
+ shown: false;
153
+ data: null;
154
+ } | {
155
+ shown: true;
156
+ data: import("../charts").Spreadsheet;
157
+ };
158
+ pendingImageElementId: string | null;
159
+ showHyperlinkPopup: false | "info" | "editor";
160
+ linkOpacity: number;
161
+ trayModeEnabled: boolean;
162
+ colorPalette?: {
163
+ canvasBackground: import("@excalidraw/common").ColorPaletteCustom;
164
+ elementBackground: import("@excalidraw/common").ColorPaletteCustom;
165
+ elementStroke: import("@excalidraw/common").ColorPaletteCustom;
166
+ topPicks: {
167
+ canvasBackground: [string, string, string, string, string];
168
+ elementStroke: [string, string, string, string, string];
169
+ elementBackground: [string, string, string, string, string];
170
+ };
171
+ } | undefined;
172
+ allowWheelZoom?: boolean | undefined;
173
+ allowPinchZoom?: boolean | undefined;
174
+ pinnedScripts?: string[] | undefined;
175
+ customPens?: any[] | undefined;
176
+ currentStrokeOptions?: any;
177
+ resetCustomPen?: any;
178
+ gridColor: {
179
+ Bold: string;
180
+ Regular: string;
181
+ };
182
+ gridDirection: {
183
+ horizontal: boolean;
184
+ vertical: boolean;
185
+ };
186
+ highlightSearchResult: boolean;
187
+ dynamicStyle: {
188
+ [x: string]: string;
189
+ };
190
+ frameColor: {
191
+ stroke: string;
192
+ fill: string;
193
+ nameColor: string;
194
+ };
195
+ invertBindingBehaviour: boolean;
196
+ selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
197
+ snapLines: readonly import("../snapping").SnapLine[];
198
+ originSnapOffset: {
199
+ x: number;
200
+ y: number;
201
+ } | null;
202
+ objectsSnapModeEnabled: boolean;
203
+ userToFollow: import("../types").UserToFollow | null;
204
+ followedBy: Set<import("../types").SocketId>;
205
+ isCropping: boolean;
206
+ croppingElementId: string | null;
207
+ searchMatches: Readonly<{
208
+ focusedId: string | null;
209
+ matches: readonly import("../types").SearchMatch[];
210
+ }> | null;
211
+ };
212
+ captureUpdate: "EVENTUALLY";
213
+ };
214
+ PanelComponent: ({ appState, updateData }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
215
+ } & {
216
+ keyTest?: undefined;
217
+ };
218
+ export declare const actionToggleEditMenu: {
219
+ name: "toggleEditMenu";
220
+ label: string;
221
+ trackEvent: {
222
+ category: "menu";
223
+ };
224
+ perform: (_elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>) => {
225
+ appState: {
226
+ openMenu: "shape" | null;
227
+ contextMenu: {
228
+ items: import("../components/ContextMenu").ContextMenuItems;
229
+ top: number;
230
+ left: number;
231
+ } | null;
232
+ showWelcomeScreen: boolean;
233
+ isLoading: boolean;
234
+ errorMessage: import("react").ReactNode;
235
+ activeEmbeddable: {
236
+ element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
237
+ state: "active" | "hover";
238
+ } | null;
239
+ newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
240
+ resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
241
+ multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
242
+ selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
243
+ isBindingEnabled: boolean;
244
+ startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
245
+ suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
246
+ frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
247
+ frameRendering: {
248
+ enabled: boolean;
249
+ name: boolean;
250
+ outline: boolean;
251
+ clip: boolean;
252
+ };
253
+ editingFrame: string | null;
254
+ elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
255
+ editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
256
+ editingLinearElement: import("@excalidraw/element").LinearElementEditor | null;
257
+ activeTool: {
258
+ lastActiveTool: import("../types").ActiveTool | null;
259
+ locked: boolean;
260
+ fromSelection: boolean;
261
+ } & import("../types").ActiveTool;
262
+ penMode: boolean;
263
+ penDetected: boolean;
264
+ exportBackground: boolean;
265
+ exportEmbedScene: boolean;
266
+ exportWithDarkMode: boolean;
267
+ exportScale: number;
268
+ currentItemStrokeColor: string;
269
+ currentItemBackgroundColor: string;
270
+ currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
271
+ currentItemStrokeWidth: number;
272
+ currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
273
+ currentItemRoughness: number;
274
+ currentItemOpacity: number;
275
+ currentItemFontFamily: number;
276
+ currentItemFontSize: number;
277
+ currentItemTextAlign: string;
278
+ currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
279
+ currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
280
+ currentHoveredFontFamily: number | null;
281
+ currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
282
+ currentItemArrowType: "round" | "sharp" | "elbow";
283
+ viewBackgroundColor: string;
284
+ scrollX: number;
285
+ scrollY: number;
286
+ cursorButton: "up" | "down";
287
+ scrolledOutside: boolean;
288
+ name: string | null;
289
+ isResizing: boolean;
290
+ isRotating: boolean;
291
+ zoom: Readonly<{
292
+ value: import("../types").NormalizedZoomValue;
293
+ }>;
294
+ openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
295
+ openSidebar: {
296
+ name: string;
297
+ tab?: string | undefined;
298
+ } | null;
299
+ openDialog: {
300
+ name: "help" | "imageExport" | "jsonExport";
301
+ } | {
302
+ name: "ttd";
303
+ tab: "mermaid" | "text-to-diagram";
304
+ } | {
305
+ name: "commandPalette";
306
+ } | {
307
+ name: "elementLinkSelector";
308
+ sourceElementId: string;
309
+ } | null;
310
+ defaultSidebarDockedPreference: boolean;
311
+ lastPointerDownWith: import("@excalidraw/element/types").PointerType;
312
+ selectedElementIds: Readonly<{
313
+ [id: string]: true;
314
+ }>;
315
+ hoveredElementIds: Readonly<{
316
+ [id: string]: true;
317
+ }>;
318
+ previousSelectedElementIds: {
319
+ [id: string]: true;
320
+ };
321
+ selectedElementsAreBeingDragged: boolean;
322
+ shouldCacheIgnoreZoom: boolean;
323
+ toast: {
324
+ message: string;
325
+ closable?: boolean | undefined;
326
+ duration?: number | undefined;
327
+ } | null;
328
+ zenModeEnabled: boolean;
329
+ theme: import("@excalidraw/element/types").Theme;
330
+ gridSize: number;
331
+ gridStep: number;
332
+ gridModeEnabled: boolean;
333
+ viewModeEnabled: boolean;
334
+ selectedGroupIds: {
335
+ [groupId: string]: boolean;
336
+ };
337
+ editingGroupId: string | null;
338
+ width: number;
339
+ height: number;
340
+ offsetTop: number;
341
+ offsetLeft: number;
342
+ fileHandle: import("browser-fs-access").FileSystemHandle | null;
343
+ collaborators: Map<import("../types").SocketId, Readonly<{
344
+ pointer?: import("../types").CollaboratorPointer | undefined;
345
+ button?: "up" | "down" | undefined;
346
+ selectedElementIds?: Readonly<{
347
+ [id: string]: true;
348
+ }> | undefined;
349
+ username?: string | null | undefined;
350
+ userState?: import("@excalidraw/common").UserIdleState | undefined;
351
+ color?: {
352
+ background: string;
353
+ stroke: string;
354
+ } | undefined;
355
+ avatarUrl?: string | undefined;
356
+ id?: string | undefined;
357
+ socketId?: import("../types").SocketId | undefined;
358
+ isCurrentUser?: boolean | undefined;
359
+ isInCall?: boolean | undefined;
360
+ isSpeaking?: boolean | undefined;
361
+ isMuted?: boolean | undefined;
362
+ }>>;
363
+ stats: {
364
+ open: boolean;
365
+ panels: number;
366
+ };
367
+ currentChartType: import("@excalidraw/element/types").ChartType;
368
+ pasteDialog: {
369
+ shown: false;
370
+ data: null;
371
+ } | {
372
+ shown: true;
373
+ data: import("../charts").Spreadsheet;
374
+ };
375
+ pendingImageElementId: string | null;
376
+ showHyperlinkPopup: false | "info" | "editor";
377
+ linkOpacity: number;
378
+ trayModeEnabled: boolean;
379
+ colorPalette?: {
380
+ canvasBackground: import("@excalidraw/common").ColorPaletteCustom;
381
+ elementBackground: import("@excalidraw/common").ColorPaletteCustom;
382
+ elementStroke: import("@excalidraw/common").ColorPaletteCustom;
383
+ topPicks: {
384
+ canvasBackground: [string, string, string, string, string];
385
+ elementStroke: [string, string, string, string, string];
386
+ elementBackground: [string, string, string, string, string];
387
+ };
388
+ } | undefined;
389
+ allowWheelZoom?: boolean | undefined;
390
+ allowPinchZoom?: boolean | undefined;
391
+ pinnedScripts?: string[] | undefined;
392
+ customPens?: any[] | undefined;
393
+ currentStrokeOptions?: any;
394
+ resetCustomPen?: any;
395
+ gridColor: {
396
+ Bold: string;
397
+ Regular: string;
398
+ };
399
+ gridDirection: {
400
+ horizontal: boolean;
401
+ vertical: boolean;
402
+ };
403
+ highlightSearchResult: boolean;
404
+ dynamicStyle: {
405
+ [x: string]: string;
406
+ };
407
+ frameColor: {
408
+ stroke: string;
409
+ fill: string;
410
+ nameColor: string;
411
+ };
412
+ invertBindingBehaviour: boolean;
413
+ selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
414
+ snapLines: readonly import("../snapping").SnapLine[];
415
+ originSnapOffset: {
416
+ x: number;
417
+ y: number;
418
+ } | null;
419
+ objectsSnapModeEnabled: boolean;
420
+ userToFollow: import("../types").UserToFollow | null;
421
+ followedBy: Set<import("../types").SocketId>;
422
+ isCropping: boolean;
423
+ croppingElementId: string | null;
424
+ searchMatches: Readonly<{
425
+ focusedId: string | null;
426
+ matches: readonly import("../types").SearchMatch[];
427
+ }> | null;
428
+ };
429
+ captureUpdate: "EVENTUALLY";
430
+ };
431
+ PanelComponent: ({ elements, appState, updateData }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
432
+ } & {
433
+ keyTest?: undefined;
434
+ };
435
+ export declare const actionShortcuts: {
436
+ name: "toggleShortcuts";
437
+ label: string;
438
+ icon: import("react/jsx-runtime").JSX.Element;
439
+ viewMode: true;
440
+ trackEvent: {
441
+ category: "menu";
442
+ action: string;
443
+ };
444
+ perform: (_elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, _: any, { focusContainer }: import("../types").AppClassProperties) => {
445
+ appState: {
446
+ openDialog: {
447
+ name: "help";
448
+ } | null;
449
+ contextMenu: {
450
+ items: import("../components/ContextMenu").ContextMenuItems;
451
+ top: number;
452
+ left: number;
453
+ } | null;
454
+ showWelcomeScreen: boolean;
455
+ isLoading: boolean;
456
+ errorMessage: import("react").ReactNode;
457
+ activeEmbeddable: {
458
+ element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
459
+ state: "active" | "hover";
460
+ } | null;
461
+ newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
462
+ resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
463
+ multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
464
+ selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
465
+ isBindingEnabled: boolean;
466
+ startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
467
+ suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
468
+ frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
469
+ frameRendering: {
470
+ enabled: boolean;
471
+ name: boolean;
472
+ outline: boolean;
473
+ clip: boolean;
474
+ };
475
+ editingFrame: string | null;
476
+ elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
477
+ editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
478
+ editingLinearElement: import("@excalidraw/element").LinearElementEditor | null;
479
+ activeTool: {
480
+ lastActiveTool: import("../types").ActiveTool | null;
481
+ locked: boolean;
482
+ fromSelection: boolean;
483
+ } & import("../types").ActiveTool;
484
+ penMode: boolean;
485
+ penDetected: boolean;
486
+ exportBackground: boolean;
487
+ exportEmbedScene: boolean;
488
+ exportWithDarkMode: boolean;
489
+ exportScale: number;
490
+ currentItemStrokeColor: string;
491
+ currentItemBackgroundColor: string;
492
+ currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
493
+ currentItemStrokeWidth: number;
494
+ currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
495
+ currentItemRoughness: number;
496
+ currentItemOpacity: number;
497
+ currentItemFontFamily: number;
498
+ currentItemFontSize: number;
499
+ currentItemTextAlign: string;
500
+ currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
501
+ currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
502
+ currentHoveredFontFamily: number | null;
503
+ currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
504
+ currentItemArrowType: "round" | "sharp" | "elbow";
505
+ viewBackgroundColor: string;
506
+ scrollX: number;
507
+ scrollY: number;
508
+ cursorButton: "up" | "down";
509
+ scrolledOutside: boolean;
510
+ name: string | null;
511
+ isResizing: boolean;
512
+ isRotating: boolean;
513
+ zoom: Readonly<{
514
+ value: import("../types").NormalizedZoomValue;
515
+ }>;
516
+ openMenu: "canvas" | "shape" | null;
517
+ openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
518
+ openSidebar: {
519
+ name: string;
520
+ tab?: string | undefined;
521
+ } | null;
522
+ defaultSidebarDockedPreference: boolean;
523
+ lastPointerDownWith: import("@excalidraw/element/types").PointerType;
524
+ selectedElementIds: Readonly<{
525
+ [id: string]: true;
526
+ }>;
527
+ hoveredElementIds: Readonly<{
528
+ [id: string]: true;
529
+ }>;
530
+ previousSelectedElementIds: {
531
+ [id: string]: true;
532
+ };
533
+ selectedElementsAreBeingDragged: boolean;
534
+ shouldCacheIgnoreZoom: boolean;
535
+ toast: {
536
+ message: string;
537
+ closable?: boolean | undefined;
538
+ duration?: number | undefined;
539
+ } | null;
540
+ zenModeEnabled: boolean;
541
+ theme: import("@excalidraw/element/types").Theme;
542
+ gridSize: number;
543
+ gridStep: number;
544
+ gridModeEnabled: boolean;
545
+ viewModeEnabled: boolean;
546
+ selectedGroupIds: {
547
+ [groupId: string]: boolean;
548
+ };
549
+ editingGroupId: string | null;
550
+ width: number;
551
+ height: number;
552
+ offsetTop: number;
553
+ offsetLeft: number;
554
+ fileHandle: import("browser-fs-access").FileSystemHandle | null;
555
+ collaborators: Map<import("../types").SocketId, Readonly<{
556
+ pointer?: import("../types").CollaboratorPointer | undefined;
557
+ button?: "up" | "down" | undefined;
558
+ selectedElementIds?: Readonly<{
559
+ [id: string]: true;
560
+ }> | undefined;
561
+ username?: string | null | undefined;
562
+ userState?: import("@excalidraw/common").UserIdleState | undefined;
563
+ color?: {
564
+ background: string;
565
+ stroke: string;
566
+ } | undefined;
567
+ avatarUrl?: string | undefined;
568
+ id?: string | undefined;
569
+ socketId?: import("../types").SocketId | undefined;
570
+ isCurrentUser?: boolean | undefined;
571
+ isInCall?: boolean | undefined;
572
+ isSpeaking?: boolean | undefined;
573
+ isMuted?: boolean | undefined;
574
+ }>>;
575
+ stats: {
576
+ open: boolean;
577
+ panels: number;
578
+ };
579
+ currentChartType: import("@excalidraw/element/types").ChartType;
580
+ pasteDialog: {
581
+ shown: false;
582
+ data: null;
583
+ } | {
584
+ shown: true;
585
+ data: import("../charts").Spreadsheet;
586
+ };
587
+ pendingImageElementId: string | null;
588
+ showHyperlinkPopup: false | "info" | "editor";
589
+ linkOpacity: number;
590
+ trayModeEnabled: boolean;
591
+ colorPalette?: {
592
+ canvasBackground: import("@excalidraw/common").ColorPaletteCustom;
593
+ elementBackground: import("@excalidraw/common").ColorPaletteCustom;
594
+ elementStroke: import("@excalidraw/common").ColorPaletteCustom;
595
+ topPicks: {
596
+ canvasBackground: [string, string, string, string, string];
597
+ elementStroke: [string, string, string, string, string];
598
+ elementBackground: [string, string, string, string, string];
599
+ };
600
+ } | undefined;
601
+ allowWheelZoom?: boolean | undefined;
602
+ allowPinchZoom?: boolean | undefined;
603
+ pinnedScripts?: string[] | undefined;
604
+ customPens?: any[] | undefined;
605
+ currentStrokeOptions?: any;
606
+ resetCustomPen?: any;
607
+ gridColor: {
608
+ Bold: string;
609
+ Regular: string;
610
+ };
611
+ gridDirection: {
612
+ horizontal: boolean;
613
+ vertical: boolean;
614
+ };
615
+ highlightSearchResult: boolean;
616
+ dynamicStyle: {
617
+ [x: string]: string;
618
+ };
619
+ frameColor: {
620
+ stroke: string;
621
+ fill: string;
622
+ nameColor: string;
623
+ };
624
+ invertBindingBehaviour: boolean;
625
+ selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
626
+ snapLines: readonly import("../snapping").SnapLine[];
627
+ originSnapOffset: {
628
+ x: number;
629
+ y: number;
630
+ } | null;
631
+ objectsSnapModeEnabled: boolean;
632
+ userToFollow: import("../types").UserToFollow | null;
633
+ followedBy: Set<import("../types").SocketId>;
634
+ isCropping: boolean;
635
+ croppingElementId: string | null;
636
+ searchMatches: Readonly<{
637
+ focusedId: string | null;
638
+ matches: readonly import("../types").SearchMatch[];
639
+ }> | null;
640
+ };
641
+ captureUpdate: "EVENTUALLY";
642
+ };
643
+ keyTest: (event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean;
644
+ } & {
645
+ keyTest?: ((event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean) | undefined;
646
+ };