@zsviczian/excalidraw 0.18.0-60 → 0.18.0-62

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