@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,1435 +1,1315 @@
1
- import type { ExcalidrawElement } from "@excalidraw/element/types";
2
- import type { AppClassProperties, AppState } from "../types";
3
- export declare const actionSelectAllElementsInFrame: {
4
- name: "selectAllElementsInFrame";
5
- label: string;
6
- trackEvent: {
7
- category: "canvas";
8
- };
9
- perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: unknown, app: AppClassProperties) => {
10
- elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[];
11
- appState: {
12
- selectedElementIds: Record<string, true>;
13
- contextMenu: {
14
- items: import("../components/ContextMenu").ContextMenuItems;
15
- top: number;
16
- left: number;
17
- } | null;
18
- showWelcomeScreen: boolean;
19
- isLoading: boolean;
20
- errorMessage: import("react").ReactNode;
21
- activeEmbeddable: {
22
- element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
23
- state: "active" | "hover";
24
- } | null;
25
- newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
26
- resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
27
- multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
28
- selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
29
- isBindingEnabled: boolean;
30
- startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
31
- suggestedBinding: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
32
- frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
33
- frameRendering: {
34
- enabled: boolean;
35
- name: boolean;
36
- outline: boolean;
37
- clip: boolean;
38
- markerName: boolean;
39
- markerEnabled: boolean;
40
- };
41
- editingFrame: string | null;
42
- elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
43
- editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
44
- activeTool: {
45
- lastActiveTool: import("../types").ActiveTool | null;
46
- locked: boolean;
47
- fromSelection: boolean;
48
- } & import("../types").ActiveTool;
49
- preferredSelectionTool: {
50
- type: "selection" | "lasso";
51
- initialized: boolean;
52
- };
53
- penMode: boolean;
54
- penDetected: boolean;
55
- exportBackground: boolean;
56
- exportEmbedScene: boolean;
57
- exportWithDarkMode: boolean;
58
- exportScale: number;
59
- currentItemStrokeColor: string;
60
- currentItemBackgroundColor: string;
61
- currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
62
- currentItemStrokeWidth: number;
63
- currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
64
- currentItemRoughness: number;
65
- currentItemOpacity: number;
66
- currentItemFontFamily: number;
67
- currentItemFontSize: number;
68
- currentItemTextAlign: string;
69
- currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
70
- currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
71
- currentHoveredFontFamily: number | null;
72
- currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
73
- currentItemArrowType: "round" | "sharp" | "elbow";
74
- currentItemFrameRole: ("marker" | null) | undefined;
75
- viewBackgroundColor: string;
76
- scrollX: number;
77
- scrollY: number;
78
- cursorButton: "up" | "down";
79
- scrolledOutside: boolean;
80
- name: string | null;
81
- isResizing: boolean;
82
- isRotating: boolean;
83
- zoom: Readonly<{
84
- value: import("../types").NormalizedZoomValue;
85
- }>;
86
- openMenu: "canvas" | "shape" | null;
87
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
88
- openSidebar: {
89
- name: string;
90
- tab?: string | undefined;
91
- } | null;
92
- openDialog: {
93
- name: "imageExport" | "help" | "jsonExport";
94
- } | {
95
- name: "ttd";
96
- tab: "mermaid" | "text-to-diagram";
97
- } | {
98
- name: "commandPalette";
99
- } | {
100
- name: "settings";
101
- } | {
102
- name: "elementLinkSelector";
103
- sourceElementId: string;
104
- } | null;
105
- defaultSidebarDockedPreference: boolean;
106
- lastPointerDownWith: import("@excalidraw/element/types").PointerType;
107
- hoveredElementIds: Readonly<{
108
- [id: string]: true;
109
- }>;
110
- previousSelectedElementIds: {
111
- [id: string]: true;
112
- };
113
- selectedElementsAreBeingDragged: boolean;
114
- shouldCacheIgnoreZoom: boolean;
115
- toast: {
116
- message: string;
117
- closable?: boolean | undefined;
118
- duration?: number | undefined;
119
- } | null;
120
- zenModeEnabled: boolean;
121
- theme: import("@excalidraw/element/types").Theme;
122
- gridSize: number;
123
- gridStep: number;
124
- gridModeEnabled: boolean;
125
- viewModeEnabled: boolean;
126
- selectedGroupIds: {
127
- [groupId: string]: boolean;
128
- };
129
- editingGroupId: string | null;
130
- width: number;
131
- height: number;
132
- offsetTop: number;
133
- offsetLeft: number;
134
- fileHandle: import("browser-fs-access").FileSystemHandle | null;
135
- collaborators: Map<import("../types").SocketId, Readonly<{
136
- pointer?: import("../types").CollaboratorPointer | undefined;
137
- button?: "up" | "down" | undefined;
138
- selectedElementIds?: Readonly<{
139
- [id: string]: true;
140
- }> | undefined;
141
- username?: string | null | undefined;
142
- userState?: import("@excalidraw/common").UserIdleState | undefined;
143
- color?: {
144
- background: string;
145
- stroke: string;
146
- } | undefined;
147
- avatarUrl?: string | undefined;
148
- id?: string | undefined;
149
- socketId?: import("../types").SocketId | undefined;
150
- isCurrentUser?: boolean | undefined;
151
- isInCall?: boolean | undefined;
152
- isSpeaking?: boolean | undefined;
153
- isMuted?: boolean | undefined;
154
- }>>;
155
- stats: {
156
- open: boolean;
157
- panels: number;
158
- };
159
- currentChartType: import("@excalidraw/element/types").ChartType;
160
- pasteDialog: {
161
- shown: false;
162
- data: null;
163
- } | {
164
- shown: true;
165
- data: import("../charts").Spreadsheet;
166
- };
167
- showHyperlinkPopup: false | "info" | "editor";
168
- linkOpacity: number;
169
- colorPalette?: {
170
- canvasBackground: import("@excalidraw/common").ColorPaletteCustom;
171
- elementBackground: import("@excalidraw/common").ColorPaletteCustom;
172
- elementStroke: import("@excalidraw/common").ColorPaletteCustom;
173
- topPicks: {
174
- canvasBackground: [string, string, string, string, string];
175
- elementStroke: [string, string, string, string, string];
176
- elementBackground: [string, string, string, string, string];
177
- };
178
- } | undefined;
179
- allowWheelZoom?: boolean | undefined;
180
- allowPinchZoom?: boolean | undefined;
181
- disableContextMenu: boolean;
182
- pinnedScripts?: string[] | undefined;
183
- customPens?: any[] | undefined;
184
- currentStrokeOptions?: any;
185
- resetCustomPen?: any;
186
- gridColor: {
187
- Bold: string;
188
- Regular: string;
189
- };
190
- gridDirection: {
191
- horizontal: boolean;
192
- vertical: boolean;
193
- };
194
- highlightSearchResult: boolean;
195
- dynamicStyle: {
196
- [x: string]: string;
197
- };
198
- frameColor: {
199
- stroke: string;
200
- fill: string;
201
- nameColor: string;
202
- };
203
- invertBindingBehaviour: boolean;
204
- selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
205
- snapLines: readonly import("../snapping").SnapLine[];
206
- originSnapOffset: {
207
- x: number;
208
- y: number;
209
- } | null;
210
- objectsSnapModeEnabled: boolean;
211
- userToFollow: import("../types").UserToFollow | null;
212
- followedBy: Set<import("../types").SocketId>;
213
- isCropping: boolean;
214
- croppingElementId: string | null;
215
- searchMatches: Readonly<{
216
- focusedId: string | null;
217
- matches: readonly import("../types").SearchMatch[];
218
- }> | null;
219
- activeLockedId: string | null;
220
- lockedMultiSelections: {
221
- [groupId: string]: true;
222
- };
223
- bindMode: import("@excalidraw/element/types").BindMode;
224
- };
225
- captureUpdate: "IMMEDIATELY";
226
- } | {
227
- elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[];
228
- appState: Readonly<AppState>;
229
- captureUpdate: "EVENTUALLY";
230
- };
231
- predicate: (elements: readonly ExcalidrawElement[], appState: AppState, _: import("../types").ExcalidrawProps, app: AppClassProperties) => boolean;
232
- } & {
233
- keyTest?: undefined;
234
- };
235
- export declare const actionRemoveAllElementsFromFrame: {
236
- name: "removeAllElementsFromFrame";
237
- label: string;
238
- trackEvent: {
239
- category: "history";
240
- };
241
- perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: unknown, app: AppClassProperties) => {
242
- elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[];
243
- appState: {
244
- selectedElementIds: {
245
- [x: string]: true;
246
- };
247
- contextMenu: {
248
- items: import("../components/ContextMenu").ContextMenuItems;
249
- top: number;
250
- left: number;
251
- } | null;
252
- showWelcomeScreen: boolean;
253
- isLoading: boolean;
254
- errorMessage: import("react").ReactNode;
255
- activeEmbeddable: {
256
- element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
257
- state: "active" | "hover";
258
- } | null;
259
- newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
260
- resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
261
- multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
262
- selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
263
- isBindingEnabled: boolean;
264
- startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
265
- suggestedBinding: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
266
- frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
267
- frameRendering: {
268
- enabled: boolean;
269
- name: boolean;
270
- outline: boolean;
271
- clip: boolean;
272
- markerName: boolean;
273
- markerEnabled: boolean;
274
- };
275
- editingFrame: string | null;
276
- elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
277
- editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
278
- activeTool: {
279
- lastActiveTool: import("../types").ActiveTool | null;
280
- locked: boolean;
281
- fromSelection: boolean;
282
- } & import("../types").ActiveTool;
283
- preferredSelectionTool: {
284
- type: "selection" | "lasso";
285
- initialized: boolean;
286
- };
287
- penMode: boolean;
288
- penDetected: boolean;
289
- exportBackground: boolean;
290
- exportEmbedScene: boolean;
291
- exportWithDarkMode: boolean;
292
- exportScale: number;
293
- currentItemStrokeColor: string;
294
- currentItemBackgroundColor: string;
295
- currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
296
- currentItemStrokeWidth: number;
297
- currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
298
- currentItemRoughness: number;
299
- currentItemOpacity: number;
300
- currentItemFontFamily: number;
301
- currentItemFontSize: number;
302
- currentItemTextAlign: string;
303
- currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
304
- currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
305
- currentHoveredFontFamily: number | null;
306
- currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
307
- currentItemArrowType: "round" | "sharp" | "elbow";
308
- currentItemFrameRole: ("marker" | null) | undefined;
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: Readonly<{
318
- value: import("../types").NormalizedZoomValue;
319
- }>;
320
- openMenu: "canvas" | "shape" | null;
321
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
322
- openSidebar: {
323
- name: string;
324
- tab?: string | undefined;
325
- } | null;
326
- openDialog: {
327
- name: "imageExport" | "help" | "jsonExport";
328
- } | {
329
- name: "ttd";
330
- tab: "mermaid" | "text-to-diagram";
331
- } | {
332
- name: "commandPalette";
333
- } | {
334
- name: "settings";
335
- } | {
336
- name: "elementLinkSelector";
337
- sourceElementId: string;
338
- } | null;
339
- defaultSidebarDockedPreference: boolean;
340
- lastPointerDownWith: import("@excalidraw/element/types").PointerType;
341
- hoveredElementIds: Readonly<{
342
- [id: string]: true;
343
- }>;
344
- previousSelectedElementIds: {
345
- [id: string]: true;
346
- };
347
- selectedElementsAreBeingDragged: boolean;
348
- shouldCacheIgnoreZoom: boolean;
349
- toast: {
350
- message: string;
351
- closable?: boolean | undefined;
352
- duration?: number | undefined;
353
- } | null;
354
- zenModeEnabled: boolean;
355
- theme: import("@excalidraw/element/types").Theme;
356
- gridSize: number;
357
- gridStep: number;
358
- gridModeEnabled: boolean;
359
- viewModeEnabled: boolean;
360
- selectedGroupIds: {
361
- [groupId: string]: boolean;
362
- };
363
- editingGroupId: string | null;
364
- width: number;
365
- height: number;
366
- offsetTop: number;
367
- offsetLeft: number;
368
- fileHandle: import("browser-fs-access").FileSystemHandle | null;
369
- collaborators: Map<import("../types").SocketId, Readonly<{
370
- pointer?: import("../types").CollaboratorPointer | undefined;
371
- button?: "up" | "down" | undefined;
372
- selectedElementIds?: Readonly<{
373
- [id: string]: true;
374
- }> | undefined;
375
- username?: string | null | undefined;
376
- userState?: import("@excalidraw/common").UserIdleState | undefined;
377
- color?: {
378
- background: string;
379
- stroke: string;
380
- } | undefined;
381
- avatarUrl?: string | undefined;
382
- id?: string | undefined;
383
- socketId?: import("../types").SocketId | undefined;
384
- isCurrentUser?: boolean | undefined;
385
- isInCall?: boolean | undefined;
386
- isSpeaking?: boolean | undefined;
387
- isMuted?: boolean | undefined;
388
- }>>;
389
- stats: {
390
- open: boolean;
391
- panels: number;
392
- };
393
- currentChartType: import("@excalidraw/element/types").ChartType;
394
- pasteDialog: {
395
- shown: false;
396
- data: null;
397
- } | {
398
- shown: true;
399
- data: import("../charts").Spreadsheet;
400
- };
401
- showHyperlinkPopup: false | "info" | "editor";
402
- linkOpacity: number;
403
- colorPalette?: {
404
- canvasBackground: import("@excalidraw/common").ColorPaletteCustom;
405
- elementBackground: import("@excalidraw/common").ColorPaletteCustom;
406
- elementStroke: import("@excalidraw/common").ColorPaletteCustom;
407
- topPicks: {
408
- canvasBackground: [string, string, string, string, string];
409
- elementStroke: [string, string, string, string, string];
410
- elementBackground: [string, string, string, string, string];
411
- };
412
- } | undefined;
413
- allowWheelZoom?: boolean | undefined;
414
- allowPinchZoom?: boolean | undefined;
415
- disableContextMenu: boolean;
416
- pinnedScripts?: string[] | undefined;
417
- customPens?: any[] | undefined;
418
- currentStrokeOptions?: any;
419
- resetCustomPen?: any;
420
- gridColor: {
421
- Bold: string;
422
- Regular: string;
423
- };
424
- gridDirection: {
425
- horizontal: boolean;
426
- vertical: boolean;
427
- };
428
- highlightSearchResult: boolean;
429
- dynamicStyle: {
430
- [x: string]: string;
431
- };
432
- frameColor: {
433
- stroke: string;
434
- fill: string;
435
- nameColor: string;
436
- };
437
- invertBindingBehaviour: boolean;
438
- selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
439
- snapLines: readonly import("../snapping").SnapLine[];
440
- originSnapOffset: {
441
- x: number;
442
- y: number;
443
- } | null;
444
- objectsSnapModeEnabled: boolean;
445
- userToFollow: import("../types").UserToFollow | null;
446
- followedBy: Set<import("../types").SocketId>;
447
- isCropping: boolean;
448
- croppingElementId: string | null;
449
- searchMatches: Readonly<{
450
- focusedId: string | null;
451
- matches: readonly import("../types").SearchMatch[];
452
- }> | null;
453
- activeLockedId: string | null;
454
- lockedMultiSelections: {
455
- [groupId: string]: true;
456
- };
457
- bindMode: import("@excalidraw/element/types").BindMode;
458
- };
459
- captureUpdate: "IMMEDIATELY";
460
- } | {
461
- elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[];
462
- appState: Readonly<AppState>;
463
- captureUpdate: "EVENTUALLY";
464
- };
465
- predicate: (elements: readonly ExcalidrawElement[], appState: AppState, _: import("../types").ExcalidrawProps, app: AppClassProperties) => boolean;
466
- } & {
467
- keyTest?: undefined;
468
- };
469
- export declare const actionupdateFrameRendering: {
470
- name: "updateFrameRendering";
471
- label: string;
472
- viewMode: true;
473
- trackEvent: {
474
- category: "canvas";
475
- };
476
- perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>) => {
477
- elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[];
478
- appState: {
479
- frameRendering: {
480
- enabled: boolean;
481
- name: boolean;
482
- outline: boolean;
483
- clip: boolean;
484
- markerName: boolean;
485
- markerEnabled: boolean;
486
- };
487
- contextMenu: {
488
- items: import("../components/ContextMenu").ContextMenuItems;
489
- top: number;
490
- left: number;
491
- } | null;
492
- showWelcomeScreen: boolean;
493
- isLoading: boolean;
494
- errorMessage: import("react").ReactNode;
495
- activeEmbeddable: {
496
- element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
497
- state: "active" | "hover";
498
- } | null;
499
- newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
500
- resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
501
- multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
502
- selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
503
- isBindingEnabled: boolean;
504
- startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
505
- suggestedBinding: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
506
- frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
507
- editingFrame: string | null;
508
- elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
509
- editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
510
- activeTool: {
511
- lastActiveTool: import("../types").ActiveTool | null;
512
- locked: boolean;
513
- fromSelection: boolean;
514
- } & import("../types").ActiveTool;
515
- preferredSelectionTool: {
516
- type: "selection" | "lasso";
517
- initialized: boolean;
518
- };
519
- penMode: boolean;
520
- penDetected: boolean;
521
- exportBackground: boolean;
522
- exportEmbedScene: boolean;
523
- exportWithDarkMode: boolean;
524
- exportScale: number;
525
- currentItemStrokeColor: string;
526
- currentItemBackgroundColor: string;
527
- currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
528
- currentItemStrokeWidth: number;
529
- currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
530
- currentItemRoughness: number;
531
- currentItemOpacity: number;
532
- currentItemFontFamily: number;
533
- currentItemFontSize: number;
534
- currentItemTextAlign: string;
535
- currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
536
- currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
537
- currentHoveredFontFamily: number | null;
538
- currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
539
- currentItemArrowType: "round" | "sharp" | "elbow";
540
- currentItemFrameRole: ("marker" | null) | undefined;
541
- viewBackgroundColor: string;
542
- scrollX: number;
543
- scrollY: number;
544
- cursorButton: "up" | "down";
545
- scrolledOutside: boolean;
546
- name: string | null;
547
- isResizing: boolean;
548
- isRotating: boolean;
549
- zoom: Readonly<{
550
- value: import("../types").NormalizedZoomValue;
551
- }>;
552
- openMenu: "canvas" | "shape" | null;
553
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
554
- openSidebar: {
555
- name: string;
556
- tab?: string | undefined;
557
- } | null;
558
- openDialog: {
559
- name: "imageExport" | "help" | "jsonExport";
560
- } | {
561
- name: "ttd";
562
- tab: "mermaid" | "text-to-diagram";
563
- } | {
564
- name: "commandPalette";
565
- } | {
566
- name: "settings";
567
- } | {
568
- name: "elementLinkSelector";
569
- sourceElementId: string;
570
- } | null;
571
- defaultSidebarDockedPreference: boolean;
572
- lastPointerDownWith: import("@excalidraw/element/types").PointerType;
573
- selectedElementIds: Readonly<{
574
- [id: string]: true;
575
- }>;
576
- hoveredElementIds: Readonly<{
577
- [id: string]: true;
578
- }>;
579
- previousSelectedElementIds: {
580
- [id: string]: true;
581
- };
582
- selectedElementsAreBeingDragged: boolean;
583
- shouldCacheIgnoreZoom: boolean;
584
- toast: {
585
- message: string;
586
- closable?: boolean | undefined;
587
- duration?: number | undefined;
588
- } | null;
589
- zenModeEnabled: boolean;
590
- theme: import("@excalidraw/element/types").Theme;
591
- gridSize: number;
592
- gridStep: number;
593
- gridModeEnabled: boolean;
594
- viewModeEnabled: boolean;
595
- selectedGroupIds: {
596
- [groupId: string]: boolean;
597
- };
598
- editingGroupId: string | null;
599
- width: number;
600
- height: number;
601
- offsetTop: number;
602
- offsetLeft: number;
603
- fileHandle: import("browser-fs-access").FileSystemHandle | null;
604
- collaborators: Map<import("../types").SocketId, Readonly<{
605
- pointer?: import("../types").CollaboratorPointer | undefined;
606
- button?: "up" | "down" | undefined;
607
- selectedElementIds?: Readonly<{
608
- [id: string]: true;
609
- }> | undefined;
610
- username?: string | null | undefined;
611
- userState?: import("@excalidraw/common").UserIdleState | undefined;
612
- color?: {
613
- background: string;
614
- stroke: string;
615
- } | undefined;
616
- avatarUrl?: string | undefined;
617
- id?: string | undefined;
618
- socketId?: import("../types").SocketId | undefined;
619
- isCurrentUser?: boolean | undefined;
620
- isInCall?: boolean | undefined;
621
- isSpeaking?: boolean | undefined;
622
- isMuted?: boolean | undefined;
623
- }>>;
624
- stats: {
625
- open: boolean;
626
- panels: number;
627
- };
628
- currentChartType: import("@excalidraw/element/types").ChartType;
629
- pasteDialog: {
630
- shown: false;
631
- data: null;
632
- } | {
633
- shown: true;
634
- data: import("../charts").Spreadsheet;
635
- };
636
- showHyperlinkPopup: false | "info" | "editor";
637
- linkOpacity: number;
638
- colorPalette?: {
639
- canvasBackground: import("@excalidraw/common").ColorPaletteCustom;
640
- elementBackground: import("@excalidraw/common").ColorPaletteCustom;
641
- elementStroke: import("@excalidraw/common").ColorPaletteCustom;
642
- topPicks: {
643
- canvasBackground: [string, string, string, string, string];
644
- elementStroke: [string, string, string, string, string];
645
- elementBackground: [string, string, string, string, string];
646
- };
647
- } | undefined;
648
- allowWheelZoom?: boolean | undefined;
649
- allowPinchZoom?: boolean | undefined;
650
- disableContextMenu: boolean;
651
- pinnedScripts?: string[] | undefined;
652
- customPens?: any[] | undefined;
653
- currentStrokeOptions?: any;
654
- resetCustomPen?: any;
655
- gridColor: {
656
- Bold: string;
657
- Regular: string;
658
- };
659
- gridDirection: {
660
- horizontal: boolean;
661
- vertical: boolean;
662
- };
663
- highlightSearchResult: boolean;
664
- dynamicStyle: {
665
- [x: string]: string;
666
- };
667
- frameColor: {
668
- stroke: string;
669
- fill: string;
670
- nameColor: string;
671
- };
672
- invertBindingBehaviour: boolean;
673
- selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
674
- snapLines: readonly import("../snapping").SnapLine[];
675
- originSnapOffset: {
676
- x: number;
677
- y: number;
678
- } | null;
679
- objectsSnapModeEnabled: boolean;
680
- userToFollow: import("../types").UserToFollow | null;
681
- followedBy: Set<import("../types").SocketId>;
682
- isCropping: boolean;
683
- croppingElementId: string | null;
684
- searchMatches: Readonly<{
685
- focusedId: string | null;
686
- matches: readonly import("../types").SearchMatch[];
687
- }> | null;
688
- activeLockedId: string | null;
689
- lockedMultiSelections: {
690
- [groupId: string]: true;
691
- };
692
- bindMode: import("@excalidraw/element/types").BindMode;
693
- };
694
- captureUpdate: "EVENTUALLY";
695
- };
696
- checked: (appState: AppState) => boolean;
697
- } & {
698
- keyTest?: undefined;
699
- };
700
- export declare const actionSetFrameAsActiveTool: {
701
- name: "setFrameAsActiveTool";
702
- label: string;
703
- trackEvent: {
704
- category: "toolbar";
705
- };
706
- icon: import("react/jsx-runtime").JSX.Element;
707
- viewMode: false;
708
- perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: unknown, app: AppClassProperties) => {
709
- elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[];
710
- appState: {
711
- activeTool: {
712
- lastActiveTool: import("../types").ActiveTool | null;
713
- locked: boolean;
714
- fromSelection: boolean;
715
- } & import("../types").ActiveTool;
716
- contextMenu: {
717
- items: import("../components/ContextMenu").ContextMenuItems;
718
- top: number;
719
- left: number;
720
- } | null;
721
- showWelcomeScreen: boolean;
722
- isLoading: boolean;
723
- errorMessage: import("react").ReactNode;
724
- activeEmbeddable: {
725
- element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
726
- state: "active" | "hover";
727
- } | null;
728
- newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
729
- resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
730
- multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
731
- selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
732
- isBindingEnabled: boolean;
733
- startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
734
- suggestedBinding: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
735
- frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
736
- frameRendering: {
737
- enabled: boolean;
738
- name: boolean;
739
- outline: boolean;
740
- clip: boolean;
741
- markerName: boolean;
742
- markerEnabled: boolean;
743
- };
744
- editingFrame: string | null;
745
- elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
746
- editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
747
- preferredSelectionTool: {
748
- type: "selection" | "lasso";
749
- initialized: boolean;
750
- };
751
- penMode: boolean;
752
- penDetected: boolean;
753
- exportBackground: boolean;
754
- exportEmbedScene: boolean;
755
- exportWithDarkMode: boolean;
756
- exportScale: number;
757
- currentItemStrokeColor: string;
758
- currentItemBackgroundColor: string;
759
- currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
760
- currentItemStrokeWidth: number;
761
- currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
762
- currentItemRoughness: number;
763
- currentItemOpacity: number;
764
- currentItemFontFamily: number;
765
- currentItemFontSize: number;
766
- currentItemTextAlign: string;
767
- currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
768
- currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
769
- currentHoveredFontFamily: number | null;
770
- currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
771
- currentItemArrowType: "round" | "sharp" | "elbow";
772
- currentItemFrameRole: ("marker" | null) | undefined;
773
- viewBackgroundColor: string;
774
- scrollX: number;
775
- scrollY: number;
776
- cursorButton: "up" | "down";
777
- scrolledOutside: boolean;
778
- name: string | null;
779
- isResizing: boolean;
780
- isRotating: boolean;
781
- zoom: Readonly<{
782
- value: import("../types").NormalizedZoomValue;
783
- }>;
784
- openMenu: "canvas" | "shape" | null;
785
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
786
- openSidebar: {
787
- name: string;
788
- tab?: string | undefined;
789
- } | null;
790
- openDialog: {
791
- name: "imageExport" | "help" | "jsonExport";
792
- } | {
793
- name: "ttd";
794
- tab: "mermaid" | "text-to-diagram";
795
- } | {
796
- name: "commandPalette";
797
- } | {
798
- name: "settings";
799
- } | {
800
- name: "elementLinkSelector";
801
- sourceElementId: string;
802
- } | null;
803
- defaultSidebarDockedPreference: boolean;
804
- lastPointerDownWith: import("@excalidraw/element/types").PointerType;
805
- selectedElementIds: Readonly<{
806
- [id: string]: true;
807
- }>;
808
- hoveredElementIds: Readonly<{
809
- [id: string]: true;
810
- }>;
811
- previousSelectedElementIds: {
812
- [id: string]: true;
813
- };
814
- selectedElementsAreBeingDragged: boolean;
815
- shouldCacheIgnoreZoom: boolean;
816
- toast: {
817
- message: string;
818
- closable?: boolean | undefined;
819
- duration?: number | undefined;
820
- } | null;
821
- zenModeEnabled: boolean;
822
- theme: import("@excalidraw/element/types").Theme;
823
- gridSize: number;
824
- gridStep: number;
825
- gridModeEnabled: boolean;
826
- viewModeEnabled: boolean;
827
- selectedGroupIds: {
828
- [groupId: string]: boolean;
829
- };
830
- editingGroupId: string | null;
831
- width: number;
832
- height: number;
833
- offsetTop: number;
834
- offsetLeft: number;
835
- fileHandle: import("browser-fs-access").FileSystemHandle | null;
836
- collaborators: Map<import("../types").SocketId, Readonly<{
837
- pointer?: import("../types").CollaboratorPointer | undefined;
838
- button?: "up" | "down" | undefined;
839
- selectedElementIds?: Readonly<{
840
- [id: string]: true;
841
- }> | undefined;
842
- username?: string | null | undefined;
843
- userState?: import("@excalidraw/common").UserIdleState | undefined;
844
- color?: {
845
- background: string;
846
- stroke: string;
847
- } | undefined;
848
- avatarUrl?: string | undefined;
849
- id?: string | undefined;
850
- socketId?: import("../types").SocketId | undefined;
851
- isCurrentUser?: boolean | undefined;
852
- isInCall?: boolean | undefined;
853
- isSpeaking?: boolean | undefined;
854
- isMuted?: boolean | undefined;
855
- }>>;
856
- stats: {
857
- open: boolean;
858
- panels: number;
859
- };
860
- currentChartType: import("@excalidraw/element/types").ChartType;
861
- pasteDialog: {
862
- shown: false;
863
- data: null;
864
- } | {
865
- shown: true;
866
- data: import("../charts").Spreadsheet;
867
- };
868
- showHyperlinkPopup: false | "info" | "editor";
869
- linkOpacity: number;
870
- colorPalette?: {
871
- canvasBackground: import("@excalidraw/common").ColorPaletteCustom;
872
- elementBackground: import("@excalidraw/common").ColorPaletteCustom;
873
- elementStroke: import("@excalidraw/common").ColorPaletteCustom;
874
- topPicks: {
875
- canvasBackground: [string, string, string, string, string];
876
- elementStroke: [string, string, string, string, string];
877
- elementBackground: [string, string, string, string, string];
878
- };
879
- } | undefined;
880
- allowWheelZoom?: boolean | undefined;
881
- allowPinchZoom?: boolean | undefined;
882
- disableContextMenu: boolean;
883
- pinnedScripts?: string[] | undefined;
884
- customPens?: any[] | undefined;
885
- currentStrokeOptions?: any;
886
- resetCustomPen?: any;
887
- gridColor: {
888
- Bold: string;
889
- Regular: string;
890
- };
891
- gridDirection: {
892
- horizontal: boolean;
893
- vertical: boolean;
894
- };
895
- highlightSearchResult: boolean;
896
- dynamicStyle: {
897
- [x: string]: string;
898
- };
899
- frameColor: {
900
- stroke: string;
901
- fill: string;
902
- nameColor: string;
903
- };
904
- invertBindingBehaviour: boolean;
905
- selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
906
- snapLines: readonly import("../snapping").SnapLine[];
907
- originSnapOffset: {
908
- x: number;
909
- y: number;
910
- } | null;
911
- objectsSnapModeEnabled: boolean;
912
- userToFollow: import("../types").UserToFollow | null;
913
- followedBy: Set<import("../types").SocketId>;
914
- isCropping: boolean;
915
- croppingElementId: string | null;
916
- searchMatches: Readonly<{
917
- focusedId: string | null;
918
- matches: readonly import("../types").SearchMatch[];
919
- }> | null;
920
- activeLockedId: string | null;
921
- lockedMultiSelections: {
922
- [groupId: string]: true;
923
- };
924
- bindMode: import("@excalidraw/element/types").BindMode;
925
- };
926
- captureUpdate: "EVENTUALLY";
927
- };
928
- keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
929
- } & {
930
- keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
931
- };
932
- export declare const actionWrapSelectionInFrame: {
933
- name: "wrapSelectionInFrame";
934
- label: string;
935
- trackEvent: {
936
- category: "element";
937
- };
938
- predicate: (elements: readonly ExcalidrawElement[], appState: AppState, _: import("../types").ExcalidrawProps, app: AppClassProperties) => boolean;
939
- perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: unknown, app: AppClassProperties) => {
940
- elements: ((Readonly<{
941
- id: string;
942
- x: number;
943
- y: number;
944
- strokeColor: string;
945
- backgroundColor: string;
946
- fillStyle: import("@excalidraw/element/types").FillStyle;
947
- strokeWidth: number;
948
- strokeStyle: import("@excalidraw/element/types").StrokeStyle;
949
- roundness: {
950
- type: import("@excalidraw/element/types").RoundnessType;
951
- value?: number | undefined;
952
- } | null;
953
- roughness: number;
954
- opacity: number;
955
- width: number;
956
- height: number;
957
- angle: import("@excalidraw/math").Radians;
958
- seed: number;
959
- version: number;
960
- versionNonce: number;
961
- index: import("@excalidraw/element/types").FractionalIndex | null;
962
- isDeleted: boolean;
963
- groupIds: readonly string[];
964
- frameId: string | null;
965
- boundElements: readonly Readonly<{
966
- id: string;
967
- type: "arrow" | "text";
968
- }>[] | null;
969
- updated: number;
970
- link: string | null;
971
- locked: boolean;
972
- customData?: Record<string, any> | undefined;
973
- }> & Readonly<{
974
- type: "line" | "arrow";
975
- points: readonly import("@excalidraw/math").LocalPoint[];
976
- startBinding: import("@excalidraw/element/types").FixedPointBinding | null;
977
- endBinding: import("@excalidraw/element/types").FixedPointBinding | null;
978
- startArrowhead: import("@excalidraw/element/types").Arrowhead | null;
979
- endArrowhead: import("@excalidraw/element/types").Arrowhead | null;
980
- }> & {
981
- index: import("@excalidraw/element/types").FractionalIndex;
982
- }) | (Readonly<{
983
- id: string;
984
- x: number;
985
- y: number;
986
- strokeColor: string;
987
- backgroundColor: string;
988
- fillStyle: import("@excalidraw/element/types").FillStyle;
989
- strokeWidth: number;
990
- strokeStyle: import("@excalidraw/element/types").StrokeStyle;
991
- roundness: {
992
- type: import("@excalidraw/element/types").RoundnessType;
993
- value?: number | undefined;
994
- } | null;
995
- roughness: number;
996
- opacity: number;
997
- width: number;
998
- height: number;
999
- angle: import("@excalidraw/math").Radians;
1000
- seed: number;
1001
- version: number;
1002
- versionNonce: number;
1003
- index: import("@excalidraw/element/types").FractionalIndex | null;
1004
- isDeleted: boolean;
1005
- groupIds: readonly string[];
1006
- frameId: string | null;
1007
- boundElements: readonly Readonly<{
1008
- id: string;
1009
- type: "arrow" | "text";
1010
- }>[] | null;
1011
- updated: number;
1012
- link: string | null;
1013
- locked: boolean;
1014
- customData?: Record<string, any> | undefined;
1015
- }> & {
1016
- type: "selection";
1017
- } & {
1018
- index: import("@excalidraw/element/types").FractionalIndex;
1019
- }) | (Readonly<{
1020
- id: string;
1021
- x: number;
1022
- y: number;
1023
- strokeColor: string;
1024
- backgroundColor: string;
1025
- fillStyle: import("@excalidraw/element/types").FillStyle;
1026
- strokeWidth: number;
1027
- strokeStyle: import("@excalidraw/element/types").StrokeStyle;
1028
- roundness: {
1029
- type: import("@excalidraw/element/types").RoundnessType;
1030
- value?: number | undefined;
1031
- } | null;
1032
- roughness: number;
1033
- opacity: number;
1034
- width: number;
1035
- height: number;
1036
- angle: import("@excalidraw/math").Radians;
1037
- seed: number;
1038
- version: number;
1039
- versionNonce: number;
1040
- index: import("@excalidraw/element/types").FractionalIndex | null;
1041
- isDeleted: boolean;
1042
- groupIds: readonly string[];
1043
- frameId: string | null;
1044
- boundElements: readonly Readonly<{
1045
- id: string;
1046
- type: "arrow" | "text";
1047
- }>[] | null;
1048
- updated: number;
1049
- link: string | null;
1050
- locked: boolean;
1051
- customData?: Record<string, any> | undefined;
1052
- }> & {
1053
- type: "rectangle";
1054
- } & {
1055
- index: import("@excalidraw/element/types").FractionalIndex;
1056
- }) | (Readonly<{
1057
- id: string;
1058
- x: number;
1059
- y: number;
1060
- strokeColor: string;
1061
- backgroundColor: string;
1062
- fillStyle: import("@excalidraw/element/types").FillStyle;
1063
- strokeWidth: number;
1064
- strokeStyle: import("@excalidraw/element/types").StrokeStyle;
1065
- roundness: {
1066
- type: import("@excalidraw/element/types").RoundnessType;
1067
- value?: number | undefined;
1068
- } | null;
1069
- roughness: number;
1070
- opacity: number;
1071
- width: number;
1072
- height: number;
1073
- angle: import("@excalidraw/math").Radians;
1074
- seed: number;
1075
- version: number;
1076
- versionNonce: number;
1077
- index: import("@excalidraw/element/types").FractionalIndex | null;
1078
- isDeleted: boolean;
1079
- groupIds: readonly string[];
1080
- frameId: string | null;
1081
- boundElements: readonly Readonly<{
1082
- id: string;
1083
- type: "arrow" | "text";
1084
- }>[] | null;
1085
- updated: number;
1086
- link: string | null;
1087
- locked: boolean;
1088
- customData?: Record<string, any> | undefined;
1089
- }> & {
1090
- type: "diamond";
1091
- } & {
1092
- index: import("@excalidraw/element/types").FractionalIndex;
1093
- }) | (Readonly<{
1094
- id: string;
1095
- x: number;
1096
- y: number;
1097
- strokeColor: string;
1098
- backgroundColor: string;
1099
- fillStyle: import("@excalidraw/element/types").FillStyle;
1100
- strokeWidth: number;
1101
- strokeStyle: import("@excalidraw/element/types").StrokeStyle;
1102
- roundness: {
1103
- type: import("@excalidraw/element/types").RoundnessType;
1104
- value?: number | undefined;
1105
- } | null;
1106
- roughness: number;
1107
- opacity: number;
1108
- width: number;
1109
- height: number;
1110
- angle: import("@excalidraw/math").Radians;
1111
- seed: number;
1112
- version: number;
1113
- versionNonce: number;
1114
- index: import("@excalidraw/element/types").FractionalIndex | null;
1115
- isDeleted: boolean;
1116
- groupIds: readonly string[];
1117
- frameId: string | null;
1118
- boundElements: readonly Readonly<{
1119
- id: string;
1120
- type: "arrow" | "text";
1121
- }>[] | null;
1122
- updated: number;
1123
- link: string | null;
1124
- locked: boolean;
1125
- customData?: Record<string, any> | undefined;
1126
- }> & {
1127
- type: "ellipse";
1128
- } & {
1129
- index: import("@excalidraw/element/types").FractionalIndex;
1130
- }) | (Readonly<{
1131
- id: string;
1132
- x: number;
1133
- y: number;
1134
- strokeColor: string;
1135
- backgroundColor: string;
1136
- fillStyle: import("@excalidraw/element/types").FillStyle;
1137
- strokeWidth: number;
1138
- strokeStyle: import("@excalidraw/element/types").StrokeStyle;
1139
- roundness: {
1140
- type: import("@excalidraw/element/types").RoundnessType;
1141
- value?: number | undefined;
1142
- } | null;
1143
- roughness: number;
1144
- opacity: number;
1145
- width: number;
1146
- height: number;
1147
- angle: import("@excalidraw/math").Radians;
1148
- seed: number;
1149
- version: number;
1150
- versionNonce: number;
1151
- index: import("@excalidraw/element/types").FractionalIndex | null;
1152
- isDeleted: boolean;
1153
- groupIds: readonly string[];
1154
- frameId: string | null;
1155
- boundElements: readonly Readonly<{
1156
- id: string;
1157
- type: "arrow" | "text";
1158
- }>[] | null;
1159
- updated: number;
1160
- link: string | null;
1161
- locked: boolean;
1162
- customData?: Record<string, any> | undefined;
1163
- }> & Readonly<{
1164
- type: "embeddable";
1165
- scale: [number, number];
1166
- }> & {
1167
- index: import("@excalidraw/element/types").FractionalIndex;
1168
- }) | (Readonly<{
1169
- id: string;
1170
- x: number;
1171
- y: number;
1172
- strokeColor: string;
1173
- backgroundColor: string;
1174
- fillStyle: import("@excalidraw/element/types").FillStyle;
1175
- strokeWidth: number;
1176
- strokeStyle: import("@excalidraw/element/types").StrokeStyle;
1177
- roundness: {
1178
- type: import("@excalidraw/element/types").RoundnessType;
1179
- value?: number | undefined;
1180
- } | null;
1181
- roughness: number;
1182
- opacity: number;
1183
- width: number;
1184
- height: number;
1185
- angle: import("@excalidraw/math").Radians;
1186
- seed: number;
1187
- version: number;
1188
- versionNonce: number;
1189
- index: import("@excalidraw/element/types").FractionalIndex | null;
1190
- isDeleted: boolean;
1191
- groupIds: readonly string[];
1192
- frameId: string | null;
1193
- boundElements: readonly Readonly<{
1194
- id: string;
1195
- type: "arrow" | "text";
1196
- }>[] | null;
1197
- updated: number;
1198
- link: string | null;
1199
- locked: boolean;
1200
- customData?: Record<string, any> | undefined;
1201
- }> & Readonly<{
1202
- type: "iframe";
1203
- customData?: {
1204
- generationData?: import("@excalidraw/element/types").MagicGenerationData | undefined;
1205
- } | undefined;
1206
- scale: [number, number];
1207
- }> & {
1208
- index: import("@excalidraw/element/types").FractionalIndex;
1209
- }) | (Readonly<{
1210
- id: string;
1211
- x: number;
1212
- y: number;
1213
- strokeColor: string;
1214
- backgroundColor: string;
1215
- fillStyle: import("@excalidraw/element/types").FillStyle;
1216
- strokeWidth: number;
1217
- strokeStyle: import("@excalidraw/element/types").StrokeStyle;
1218
- roundness: {
1219
- type: import("@excalidraw/element/types").RoundnessType;
1220
- value?: number | undefined;
1221
- } | null;
1222
- roughness: number;
1223
- opacity: number;
1224
- width: number;
1225
- height: number;
1226
- angle: import("@excalidraw/math").Radians;
1227
- seed: number;
1228
- version: number;
1229
- versionNonce: number;
1230
- index: import("@excalidraw/element/types").FractionalIndex | null;
1231
- isDeleted: boolean;
1232
- groupIds: readonly string[];
1233
- frameId: string | null;
1234
- boundElements: readonly Readonly<{
1235
- id: string;
1236
- type: "arrow" | "text";
1237
- }>[] | null;
1238
- updated: number;
1239
- link: string | null;
1240
- locked: boolean;
1241
- customData?: Record<string, any> | undefined;
1242
- }> & Readonly<{
1243
- type: "image";
1244
- fileId: import("@excalidraw/element/types").FileId | null;
1245
- status: "pending" | "error" | "saved";
1246
- scale: [number, number];
1247
- crop: import("@excalidraw/element/types").ImageCrop | null;
1248
- }> & {
1249
- index: import("@excalidraw/element/types").FractionalIndex;
1250
- }) | (Readonly<{
1251
- id: string;
1252
- x: number;
1253
- y: number;
1254
- strokeColor: string;
1255
- backgroundColor: string;
1256
- fillStyle: import("@excalidraw/element/types").FillStyle;
1257
- strokeWidth: number;
1258
- strokeStyle: import("@excalidraw/element/types").StrokeStyle;
1259
- roundness: {
1260
- type: import("@excalidraw/element/types").RoundnessType;
1261
- value?: number | undefined;
1262
- } | null;
1263
- roughness: number;
1264
- opacity: number;
1265
- width: number;
1266
- height: number;
1267
- angle: import("@excalidraw/math").Radians;
1268
- seed: number;
1269
- version: number;
1270
- versionNonce: number;
1271
- index: import("@excalidraw/element/types").FractionalIndex | null;
1272
- isDeleted: boolean;
1273
- groupIds: readonly string[];
1274
- frameId: string | null;
1275
- boundElements: readonly Readonly<{
1276
- id: string;
1277
- type: "arrow" | "text";
1278
- }>[] | null;
1279
- updated: number;
1280
- link: string | null;
1281
- locked: boolean;
1282
- customData?: Record<string, any> | undefined;
1283
- }> & {
1284
- type: "frame";
1285
- name: string | null;
1286
- frameRole?: ("marker" | null) | undefined;
1287
- customData?: {
1288
- frameColor?: {
1289
- fill: string;
1290
- stroke: string;
1291
- nameColor: string;
1292
- } | undefined;
1293
- } | undefined;
1294
- } & {
1295
- index: import("@excalidraw/element/types").FractionalIndex;
1296
- }) | (Readonly<{
1297
- id: string;
1298
- x: number;
1299
- y: number;
1300
- strokeColor: string;
1301
- backgroundColor: string;
1302
- fillStyle: import("@excalidraw/element/types").FillStyle;
1303
- strokeWidth: number;
1304
- strokeStyle: import("@excalidraw/element/types").StrokeStyle;
1305
- roundness: {
1306
- type: import("@excalidraw/element/types").RoundnessType;
1307
- value?: number | undefined;
1308
- } | null;
1309
- roughness: number;
1310
- opacity: number;
1311
- width: number;
1312
- height: number;
1313
- angle: import("@excalidraw/math").Radians;
1314
- seed: number;
1315
- version: number;
1316
- versionNonce: number;
1317
- index: import("@excalidraw/element/types").FractionalIndex | null;
1318
- isDeleted: boolean;
1319
- groupIds: readonly string[];
1320
- frameId: string | null;
1321
- boundElements: readonly Readonly<{
1322
- id: string;
1323
- type: "arrow" | "text";
1324
- }>[] | null;
1325
- updated: number;
1326
- link: string | null;
1327
- locked: boolean;
1328
- customData?: Record<string, any> | undefined;
1329
- }> & {
1330
- type: "magicframe";
1331
- name: string | null;
1332
- frameRole?: ("marker" | null) | undefined;
1333
- } & {
1334
- index: import("@excalidraw/element/types").FractionalIndex;
1335
- }) | (Readonly<{
1336
- id: string;
1337
- x: number;
1338
- y: number;
1339
- strokeColor: string;
1340
- backgroundColor: string;
1341
- fillStyle: import("@excalidraw/element/types").FillStyle;
1342
- strokeWidth: number;
1343
- strokeStyle: import("@excalidraw/element/types").StrokeStyle;
1344
- roundness: {
1345
- type: import("@excalidraw/element/types").RoundnessType;
1346
- value?: number | undefined;
1347
- } | null;
1348
- roughness: number;
1349
- opacity: number;
1350
- width: number;
1351
- height: number;
1352
- angle: import("@excalidraw/math").Radians;
1353
- seed: number;
1354
- version: number;
1355
- versionNonce: number;
1356
- index: import("@excalidraw/element/types").FractionalIndex | null;
1357
- isDeleted: boolean;
1358
- groupIds: readonly string[];
1359
- frameId: string | null;
1360
- boundElements: readonly Readonly<{
1361
- id: string;
1362
- type: "arrow" | "text";
1363
- }>[] | null;
1364
- updated: number;
1365
- link: string | null;
1366
- locked: boolean;
1367
- customData?: Record<string, any> | undefined;
1368
- }> & Readonly<{
1369
- type: "text";
1370
- fontSize: number;
1371
- fontFamily: number;
1372
- text: string;
1373
- rawText: string;
1374
- textAlign: string;
1375
- verticalAlign: string;
1376
- containerId: string | null;
1377
- originalText: string;
1378
- autoResize: boolean;
1379
- lineHeight: number & {
1380
- _brand: "unitlessLineHeight";
1381
- };
1382
- }> & {
1383
- index: import("@excalidraw/element/types").FractionalIndex;
1384
- }) | (Readonly<{
1385
- id: string;
1386
- x: number;
1387
- y: number;
1388
- strokeColor: string;
1389
- backgroundColor: string;
1390
- fillStyle: import("@excalidraw/element/types").FillStyle;
1391
- strokeWidth: number;
1392
- strokeStyle: import("@excalidraw/element/types").StrokeStyle;
1393
- roundness: {
1394
- type: import("@excalidraw/element/types").RoundnessType;
1395
- value?: number | undefined;
1396
- } | null;
1397
- roughness: number;
1398
- opacity: number;
1399
- width: number;
1400
- height: number;
1401
- angle: import("@excalidraw/math").Radians;
1402
- seed: number;
1403
- version: number;
1404
- versionNonce: number;
1405
- index: import("@excalidraw/element/types").FractionalIndex | null;
1406
- isDeleted: boolean;
1407
- groupIds: readonly string[];
1408
- frameId: string | null;
1409
- boundElements: readonly Readonly<{
1410
- id: string;
1411
- type: "arrow" | "text";
1412
- }>[] | null;
1413
- updated: number;
1414
- link: string | null;
1415
- locked: boolean;
1416
- customData?: Record<string, any> | undefined;
1417
- }> & Readonly<{
1418
- type: "freedraw";
1419
- points: readonly import("@excalidraw/math").LocalPoint[];
1420
- pressures: readonly number[];
1421
- simulatePressure: boolean;
1422
- }> & {
1423
- index: import("@excalidraw/element/types").FractionalIndex;
1424
- }) | import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameElement>)[];
1425
- appState: {
1426
- selectedElementIds: {
1427
- [x: string]: true;
1428
- };
1429
- theme: import("@excalidraw/element/types").Theme;
1430
- };
1431
- captureUpdate: "IMMEDIATELY";
1432
- };
1433
- } & {
1434
- keyTest?: undefined;
1435
- };
1
+ import type { ExcalidrawElement } from "@excalidraw/element/types";
2
+ import type { AppClassProperties, AppState } from "../types";
3
+ export declare const actionSelectAllElementsInFrame: {
4
+ name: "selectAllElementsInFrame";
5
+ label: string;
6
+ trackEvent: {
7
+ category: "canvas";
8
+ };
9
+ perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: unknown, app: AppClassProperties) => {
10
+ elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[];
11
+ appState: {
12
+ selectedElementIds: Record<string, true>;
13
+ contextMenu: {
14
+ items: import("../components/ContextMenu").ContextMenuItems;
15
+ top: number;
16
+ left: number;
17
+ } | null;
18
+ showWelcomeScreen: boolean;
19
+ isLoading: boolean;
20
+ errorMessage: React.ReactNode;
21
+ activeEmbeddable: {
22
+ element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
23
+ state: "hover" | "active";
24
+ } | null;
25
+ newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
26
+ resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
27
+ multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
28
+ selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
29
+ isBindingEnabled: boolean;
30
+ startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
31
+ suggestedBinding: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
32
+ frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
33
+ frameRendering: {
34
+ enabled: boolean;
35
+ name: boolean;
36
+ outline: boolean;
37
+ clip: boolean;
38
+ markerName: boolean;
39
+ markerEnabled: boolean;
40
+ };
41
+ editingFrame: string | null;
42
+ elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
43
+ editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
44
+ activeTool: {
45
+ lastActiveTool: import("../types").ActiveTool | null;
46
+ locked: boolean;
47
+ fromSelection: boolean;
48
+ } & import("../types").ActiveTool;
49
+ preferredSelectionTool: {
50
+ type: "selection" | "lasso";
51
+ initialized: boolean;
52
+ };
53
+ penMode: boolean;
54
+ penDetected: boolean;
55
+ exportBackground: boolean;
56
+ exportEmbedScene: boolean;
57
+ exportWithDarkMode: boolean;
58
+ exportScale: number;
59
+ currentItemStrokeColor: string;
60
+ currentItemBackgroundColor: string;
61
+ currentItemFillStyle: ExcalidrawElement["fillStyle"];
62
+ currentItemStrokeWidth: number;
63
+ currentItemStrokeStyle: ExcalidrawElement["strokeStyle"];
64
+ currentItemRoughness: number;
65
+ currentItemOpacity: number;
66
+ currentItemFontFamily: import("@excalidraw/element/types").FontFamilyValues;
67
+ currentItemFontSize: number;
68
+ currentItemTextAlign: import("@excalidraw/element/types").TextAlign;
69
+ currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
70
+ currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
71
+ currentHoveredFontFamily: import("@excalidraw/element/types").FontFamilyValues | null;
72
+ currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
73
+ currentItemArrowType: "sharp" | "round" | "elbow";
74
+ currentItemFrameRole: import("@excalidraw/element/types").ExcalidrawFrameLikeElement["frameRole"] | null;
75
+ viewBackgroundColor: string;
76
+ scrollX: number;
77
+ scrollY: number;
78
+ cursorButton: "up" | "down";
79
+ scrolledOutside: boolean;
80
+ name: string | null;
81
+ isResizing: boolean;
82
+ isRotating: boolean;
83
+ zoom: import("../types").Zoom;
84
+ openMenu: "canvas" | "shape" | null;
85
+ openPopup: "canvasBackground" | "elementBackground" | "elementStroke" | "fontFamily" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
86
+ openSidebar: {
87
+ name: import("../types").SidebarName;
88
+ tab?: import("../types").SidebarTabName;
89
+ } | null;
90
+ openDialog: null | {
91
+ name: "imageExport" | "help" | "jsonExport";
92
+ } | {
93
+ name: "ttd";
94
+ tab: "text-to-diagram" | "mermaid";
95
+ } | {
96
+ name: "commandPalette";
97
+ } | {
98
+ name: "settings";
99
+ } | {
100
+ name: "elementLinkSelector";
101
+ sourceElementId: ExcalidrawElement["id"];
102
+ };
103
+ defaultSidebarDockedPreference: boolean;
104
+ lastPointerDownWith: import("@excalidraw/element/types").PointerType;
105
+ hoveredElementIds: Readonly<{
106
+ [id: string]: true;
107
+ }>;
108
+ previousSelectedElementIds: {
109
+ [id: string]: true;
110
+ };
111
+ selectedElementsAreBeingDragged: boolean;
112
+ shouldCacheIgnoreZoom: boolean;
113
+ toast: {
114
+ message: string;
115
+ closable?: boolean;
116
+ duration?: number;
117
+ } | null;
118
+ zenModeEnabled: boolean;
119
+ theme: import("@excalidraw/element/types").Theme;
120
+ gridSize: number;
121
+ gridStep: number;
122
+ gridModeEnabled: boolean;
123
+ viewModeEnabled: boolean;
124
+ selectedGroupIds: {
125
+ [groupId: string]: boolean;
126
+ };
127
+ editingGroupId: import("@excalidraw/element/types").GroupId | null;
128
+ width: number;
129
+ height: number;
130
+ offsetTop: number;
131
+ offsetLeft: number;
132
+ fileHandle: import("browser-fs-access").FileSystemHandle | null;
133
+ collaborators: Map<import("../types").SocketId, import("../types").Collaborator>;
134
+ stats: {
135
+ open: boolean;
136
+ panels: number;
137
+ };
138
+ currentChartType: import("@excalidraw/element/types").ChartType;
139
+ pasteDialog: {
140
+ shown: false;
141
+ data: null;
142
+ } | {
143
+ shown: true;
144
+ data: import("../charts").Spreadsheet;
145
+ };
146
+ showHyperlinkPopup: false | "info" | "editor";
147
+ linkOpacity: number;
148
+ colorPalette?: {
149
+ canvasBackground: import("@excalidraw/common").ColorPaletteCustom;
150
+ elementBackground: import("@excalidraw/common").ColorPaletteCustom;
151
+ elementStroke: import("@excalidraw/common").ColorPaletteCustom;
152
+ topPicks: {
153
+ canvasBackground: [string, string, string, string, string];
154
+ elementStroke: [string, string, string, string, string];
155
+ elementBackground: [string, string, string, string, string];
156
+ };
157
+ };
158
+ allowWheelZoom?: boolean;
159
+ allowPinchZoom?: boolean;
160
+ disableContextMenu: boolean;
161
+ pinnedScripts?: string[];
162
+ customPens?: any[];
163
+ currentStrokeOptions?: any;
164
+ resetCustomPen?: any;
165
+ gridColor: {
166
+ Bold: string;
167
+ Regular: string;
168
+ };
169
+ gridDirection: {
170
+ horizontal: boolean;
171
+ vertical: boolean;
172
+ };
173
+ highlightSearchResult: boolean;
174
+ dynamicStyle: {
175
+ [x: string]: string;
176
+ };
177
+ frameColor: {
178
+ stroke: string;
179
+ fill: string;
180
+ nameColor: string;
181
+ };
182
+ invertBindingBehaviour: boolean;
183
+ selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
184
+ snapLines: readonly import("../snapping").SnapLine[];
185
+ originSnapOffset: {
186
+ x: number;
187
+ y: number;
188
+ } | null;
189
+ objectsSnapModeEnabled: boolean;
190
+ userToFollow: import("../types").UserToFollow | null;
191
+ followedBy: Set<import("../types").SocketId>;
192
+ isCropping: boolean;
193
+ croppingElementId: ExcalidrawElement["id"] | null;
194
+ searchMatches: Readonly<{
195
+ focusedId: ExcalidrawElement["id"] | null;
196
+ matches: readonly import("../types").SearchMatch[];
197
+ }> | null;
198
+ activeLockedId: string | null;
199
+ lockedMultiSelections: {
200
+ [groupId: string]: true;
201
+ };
202
+ bindMode: import("@excalidraw/element/types").BindMode;
203
+ };
204
+ captureUpdate: "IMMEDIATELY";
205
+ } | {
206
+ elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[];
207
+ appState: Readonly<AppState>;
208
+ captureUpdate: "EVENTUALLY";
209
+ };
210
+ predicate: (elements: readonly ExcalidrawElement[], appState: AppState, _: import("../types").ExcalidrawProps, app: AppClassProperties) => boolean;
211
+ } & {
212
+ keyTest?: undefined;
213
+ };
214
+ export declare const actionRemoveAllElementsFromFrame: {
215
+ name: "removeAllElementsFromFrame";
216
+ label: string;
217
+ trackEvent: {
218
+ category: "history";
219
+ };
220
+ perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: unknown, app: AppClassProperties) => {
221
+ elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[];
222
+ appState: {
223
+ selectedElementIds: {
224
+ [x: string]: true;
225
+ };
226
+ contextMenu: {
227
+ items: import("../components/ContextMenu").ContextMenuItems;
228
+ top: number;
229
+ left: number;
230
+ } | null;
231
+ showWelcomeScreen: boolean;
232
+ isLoading: boolean;
233
+ errorMessage: React.ReactNode;
234
+ activeEmbeddable: {
235
+ element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
236
+ state: "hover" | "active";
237
+ } | null;
238
+ newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
239
+ resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
240
+ multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
241
+ selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
242
+ isBindingEnabled: boolean;
243
+ startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
244
+ suggestedBinding: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
245
+ frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
246
+ frameRendering: {
247
+ enabled: boolean;
248
+ name: boolean;
249
+ outline: boolean;
250
+ clip: boolean;
251
+ markerName: boolean;
252
+ markerEnabled: boolean;
253
+ };
254
+ editingFrame: string | null;
255
+ elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
256
+ editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
257
+ activeTool: {
258
+ lastActiveTool: import("../types").ActiveTool | null;
259
+ locked: boolean;
260
+ fromSelection: boolean;
261
+ } & import("../types").ActiveTool;
262
+ preferredSelectionTool: {
263
+ type: "selection" | "lasso";
264
+ initialized: boolean;
265
+ };
266
+ penMode: boolean;
267
+ penDetected: boolean;
268
+ exportBackground: boolean;
269
+ exportEmbedScene: boolean;
270
+ exportWithDarkMode: boolean;
271
+ exportScale: number;
272
+ currentItemStrokeColor: string;
273
+ currentItemBackgroundColor: string;
274
+ currentItemFillStyle: ExcalidrawElement["fillStyle"];
275
+ currentItemStrokeWidth: number;
276
+ currentItemStrokeStyle: ExcalidrawElement["strokeStyle"];
277
+ currentItemRoughness: number;
278
+ currentItemOpacity: number;
279
+ currentItemFontFamily: import("@excalidraw/element/types").FontFamilyValues;
280
+ currentItemFontSize: number;
281
+ currentItemTextAlign: import("@excalidraw/element/types").TextAlign;
282
+ currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
283
+ currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
284
+ currentHoveredFontFamily: import("@excalidraw/element/types").FontFamilyValues | null;
285
+ currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
286
+ currentItemArrowType: "sharp" | "round" | "elbow";
287
+ currentItemFrameRole: import("@excalidraw/element/types").ExcalidrawFrameLikeElement["frameRole"] | null;
288
+ viewBackgroundColor: string;
289
+ scrollX: number;
290
+ scrollY: number;
291
+ cursorButton: "up" | "down";
292
+ scrolledOutside: boolean;
293
+ name: string | null;
294
+ isResizing: boolean;
295
+ isRotating: boolean;
296
+ zoom: import("../types").Zoom;
297
+ openMenu: "canvas" | "shape" | null;
298
+ openPopup: "canvasBackground" | "elementBackground" | "elementStroke" | "fontFamily" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
299
+ openSidebar: {
300
+ name: import("../types").SidebarName;
301
+ tab?: import("../types").SidebarTabName;
302
+ } | null;
303
+ openDialog: null | {
304
+ name: "imageExport" | "help" | "jsonExport";
305
+ } | {
306
+ name: "ttd";
307
+ tab: "text-to-diagram" | "mermaid";
308
+ } | {
309
+ name: "commandPalette";
310
+ } | {
311
+ name: "settings";
312
+ } | {
313
+ name: "elementLinkSelector";
314
+ sourceElementId: ExcalidrawElement["id"];
315
+ };
316
+ defaultSidebarDockedPreference: boolean;
317
+ lastPointerDownWith: import("@excalidraw/element/types").PointerType;
318
+ hoveredElementIds: Readonly<{
319
+ [id: string]: true;
320
+ }>;
321
+ previousSelectedElementIds: {
322
+ [id: string]: true;
323
+ };
324
+ selectedElementsAreBeingDragged: boolean;
325
+ shouldCacheIgnoreZoom: boolean;
326
+ toast: {
327
+ message: string;
328
+ closable?: boolean;
329
+ duration?: number;
330
+ } | null;
331
+ zenModeEnabled: boolean;
332
+ theme: import("@excalidraw/element/types").Theme;
333
+ gridSize: number;
334
+ gridStep: number;
335
+ gridModeEnabled: boolean;
336
+ viewModeEnabled: boolean;
337
+ selectedGroupIds: {
338
+ [groupId: string]: boolean;
339
+ };
340
+ editingGroupId: import("@excalidraw/element/types").GroupId | null;
341
+ width: number;
342
+ height: number;
343
+ offsetTop: number;
344
+ offsetLeft: number;
345
+ fileHandle: import("browser-fs-access").FileSystemHandle | null;
346
+ collaborators: Map<import("../types").SocketId, import("../types").Collaborator>;
347
+ stats: {
348
+ open: boolean;
349
+ panels: number;
350
+ };
351
+ currentChartType: import("@excalidraw/element/types").ChartType;
352
+ pasteDialog: {
353
+ shown: false;
354
+ data: null;
355
+ } | {
356
+ shown: true;
357
+ data: import("../charts").Spreadsheet;
358
+ };
359
+ showHyperlinkPopup: false | "info" | "editor";
360
+ linkOpacity: number;
361
+ colorPalette?: {
362
+ canvasBackground: import("@excalidraw/common").ColorPaletteCustom;
363
+ elementBackground: import("@excalidraw/common").ColorPaletteCustom;
364
+ elementStroke: import("@excalidraw/common").ColorPaletteCustom;
365
+ topPicks: {
366
+ canvasBackground: [string, string, string, string, string];
367
+ elementStroke: [string, string, string, string, string];
368
+ elementBackground: [string, string, string, string, string];
369
+ };
370
+ };
371
+ allowWheelZoom?: boolean;
372
+ allowPinchZoom?: boolean;
373
+ disableContextMenu: boolean;
374
+ pinnedScripts?: string[];
375
+ customPens?: any[];
376
+ currentStrokeOptions?: any;
377
+ resetCustomPen?: any;
378
+ gridColor: {
379
+ Bold: string;
380
+ Regular: string;
381
+ };
382
+ gridDirection: {
383
+ horizontal: boolean;
384
+ vertical: boolean;
385
+ };
386
+ highlightSearchResult: boolean;
387
+ dynamicStyle: {
388
+ [x: string]: string;
389
+ };
390
+ frameColor: {
391
+ stroke: string;
392
+ fill: string;
393
+ nameColor: string;
394
+ };
395
+ invertBindingBehaviour: boolean;
396
+ selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
397
+ snapLines: readonly import("../snapping").SnapLine[];
398
+ originSnapOffset: {
399
+ x: number;
400
+ y: number;
401
+ } | null;
402
+ objectsSnapModeEnabled: boolean;
403
+ userToFollow: import("../types").UserToFollow | null;
404
+ followedBy: Set<import("../types").SocketId>;
405
+ isCropping: boolean;
406
+ croppingElementId: ExcalidrawElement["id"] | null;
407
+ searchMatches: Readonly<{
408
+ focusedId: ExcalidrawElement["id"] | null;
409
+ matches: readonly import("../types").SearchMatch[];
410
+ }> | null;
411
+ activeLockedId: string | null;
412
+ lockedMultiSelections: {
413
+ [groupId: string]: true;
414
+ };
415
+ bindMode: import("@excalidraw/element/types").BindMode;
416
+ };
417
+ captureUpdate: "IMMEDIATELY";
418
+ } | {
419
+ elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[];
420
+ appState: Readonly<AppState>;
421
+ captureUpdate: "EVENTUALLY";
422
+ };
423
+ predicate: (elements: readonly ExcalidrawElement[], appState: AppState, _: import("../types").ExcalidrawProps, app: AppClassProperties) => boolean;
424
+ } & {
425
+ keyTest?: undefined;
426
+ };
427
+ export declare const actionupdateFrameRendering: {
428
+ name: "updateFrameRendering";
429
+ label: string;
430
+ viewMode: true;
431
+ trackEvent: {
432
+ category: "canvas";
433
+ };
434
+ perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>) => {
435
+ elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[];
436
+ appState: {
437
+ frameRendering: {
438
+ enabled: boolean;
439
+ name: boolean;
440
+ outline: boolean;
441
+ clip: boolean;
442
+ markerName: boolean;
443
+ markerEnabled: boolean;
444
+ };
445
+ contextMenu: {
446
+ items: import("../components/ContextMenu").ContextMenuItems;
447
+ top: number;
448
+ left: number;
449
+ } | null;
450
+ showWelcomeScreen: boolean;
451
+ isLoading: boolean;
452
+ errorMessage: React.ReactNode;
453
+ activeEmbeddable: {
454
+ element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
455
+ state: "hover" | "active";
456
+ } | null;
457
+ newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
458
+ resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
459
+ multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
460
+ selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
461
+ isBindingEnabled: boolean;
462
+ startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
463
+ suggestedBinding: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
464
+ frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
465
+ editingFrame: string | null;
466
+ elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
467
+ editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
468
+ activeTool: {
469
+ lastActiveTool: import("../types").ActiveTool | null;
470
+ locked: boolean;
471
+ fromSelection: boolean;
472
+ } & import("../types").ActiveTool;
473
+ preferredSelectionTool: {
474
+ type: "selection" | "lasso";
475
+ initialized: boolean;
476
+ };
477
+ penMode: boolean;
478
+ penDetected: boolean;
479
+ exportBackground: boolean;
480
+ exportEmbedScene: boolean;
481
+ exportWithDarkMode: boolean;
482
+ exportScale: number;
483
+ currentItemStrokeColor: string;
484
+ currentItemBackgroundColor: string;
485
+ currentItemFillStyle: ExcalidrawElement["fillStyle"];
486
+ currentItemStrokeWidth: number;
487
+ currentItemStrokeStyle: ExcalidrawElement["strokeStyle"];
488
+ currentItemRoughness: number;
489
+ currentItemOpacity: number;
490
+ currentItemFontFamily: import("@excalidraw/element/types").FontFamilyValues;
491
+ currentItemFontSize: number;
492
+ currentItemTextAlign: import("@excalidraw/element/types").TextAlign;
493
+ currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
494
+ currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
495
+ currentHoveredFontFamily: import("@excalidraw/element/types").FontFamilyValues | null;
496
+ currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
497
+ currentItemArrowType: "sharp" | "round" | "elbow";
498
+ currentItemFrameRole: import("@excalidraw/element/types").ExcalidrawFrameLikeElement["frameRole"] | null;
499
+ viewBackgroundColor: string;
500
+ scrollX: number;
501
+ scrollY: number;
502
+ cursorButton: "up" | "down";
503
+ scrolledOutside: boolean;
504
+ name: string | null;
505
+ isResizing: boolean;
506
+ isRotating: boolean;
507
+ zoom: import("../types").Zoom;
508
+ openMenu: "canvas" | "shape" | null;
509
+ openPopup: "canvasBackground" | "elementBackground" | "elementStroke" | "fontFamily" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
510
+ openSidebar: {
511
+ name: import("../types").SidebarName;
512
+ tab?: import("../types").SidebarTabName;
513
+ } | null;
514
+ openDialog: null | {
515
+ name: "imageExport" | "help" | "jsonExport";
516
+ } | {
517
+ name: "ttd";
518
+ tab: "text-to-diagram" | "mermaid";
519
+ } | {
520
+ name: "commandPalette";
521
+ } | {
522
+ name: "settings";
523
+ } | {
524
+ name: "elementLinkSelector";
525
+ sourceElementId: ExcalidrawElement["id"];
526
+ };
527
+ defaultSidebarDockedPreference: boolean;
528
+ lastPointerDownWith: import("@excalidraw/element/types").PointerType;
529
+ selectedElementIds: Readonly<{
530
+ [id: string]: true;
531
+ }>;
532
+ hoveredElementIds: Readonly<{
533
+ [id: string]: true;
534
+ }>;
535
+ previousSelectedElementIds: {
536
+ [id: string]: true;
537
+ };
538
+ selectedElementsAreBeingDragged: boolean;
539
+ shouldCacheIgnoreZoom: boolean;
540
+ toast: {
541
+ message: string;
542
+ closable?: boolean;
543
+ duration?: number;
544
+ } | null;
545
+ zenModeEnabled: boolean;
546
+ theme: import("@excalidraw/element/types").Theme;
547
+ gridSize: number;
548
+ gridStep: number;
549
+ gridModeEnabled: boolean;
550
+ viewModeEnabled: boolean;
551
+ selectedGroupIds: {
552
+ [groupId: string]: boolean;
553
+ };
554
+ editingGroupId: import("@excalidraw/element/types").GroupId | null;
555
+ width: number;
556
+ height: number;
557
+ offsetTop: number;
558
+ offsetLeft: number;
559
+ fileHandle: import("browser-fs-access").FileSystemHandle | null;
560
+ collaborators: Map<import("../types").SocketId, import("../types").Collaborator>;
561
+ stats: {
562
+ open: boolean;
563
+ panels: number;
564
+ };
565
+ currentChartType: import("@excalidraw/element/types").ChartType;
566
+ pasteDialog: {
567
+ shown: false;
568
+ data: null;
569
+ } | {
570
+ shown: true;
571
+ data: import("../charts").Spreadsheet;
572
+ };
573
+ showHyperlinkPopup: false | "info" | "editor";
574
+ linkOpacity: number;
575
+ colorPalette?: {
576
+ canvasBackground: import("@excalidraw/common").ColorPaletteCustom;
577
+ elementBackground: import("@excalidraw/common").ColorPaletteCustom;
578
+ elementStroke: import("@excalidraw/common").ColorPaletteCustom;
579
+ topPicks: {
580
+ canvasBackground: [string, string, string, string, string];
581
+ elementStroke: [string, string, string, string, string];
582
+ elementBackground: [string, string, string, string, string];
583
+ };
584
+ };
585
+ allowWheelZoom?: boolean;
586
+ allowPinchZoom?: boolean;
587
+ disableContextMenu: boolean;
588
+ pinnedScripts?: string[];
589
+ customPens?: any[];
590
+ currentStrokeOptions?: any;
591
+ resetCustomPen?: any;
592
+ gridColor: {
593
+ Bold: string;
594
+ Regular: string;
595
+ };
596
+ gridDirection: {
597
+ horizontal: boolean;
598
+ vertical: boolean;
599
+ };
600
+ highlightSearchResult: boolean;
601
+ dynamicStyle: {
602
+ [x: string]: string;
603
+ };
604
+ frameColor: {
605
+ stroke: string;
606
+ fill: string;
607
+ nameColor: string;
608
+ };
609
+ invertBindingBehaviour: boolean;
610
+ selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
611
+ snapLines: readonly import("../snapping").SnapLine[];
612
+ originSnapOffset: {
613
+ x: number;
614
+ y: number;
615
+ } | null;
616
+ objectsSnapModeEnabled: boolean;
617
+ userToFollow: import("../types").UserToFollow | null;
618
+ followedBy: Set<import("../types").SocketId>;
619
+ isCropping: boolean;
620
+ croppingElementId: ExcalidrawElement["id"] | null;
621
+ searchMatches: Readonly<{
622
+ focusedId: ExcalidrawElement["id"] | null;
623
+ matches: readonly import("../types").SearchMatch[];
624
+ }> | null;
625
+ activeLockedId: string | null;
626
+ lockedMultiSelections: {
627
+ [groupId: string]: true;
628
+ };
629
+ bindMode: import("@excalidraw/element/types").BindMode;
630
+ };
631
+ captureUpdate: "EVENTUALLY";
632
+ };
633
+ checked: (appState: AppState) => boolean;
634
+ } & {
635
+ keyTest?: undefined;
636
+ };
637
+ export declare const actionSetFrameAsActiveTool: {
638
+ name: "setFrameAsActiveTool";
639
+ label: string;
640
+ trackEvent: {
641
+ category: "toolbar";
642
+ };
643
+ icon: import("react/jsx-runtime").JSX.Element;
644
+ viewMode: false;
645
+ perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: unknown, app: AppClassProperties) => {
646
+ elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[];
647
+ appState: {
648
+ activeTool: {
649
+ lastActiveTool: import("../types").ActiveTool | null;
650
+ locked: boolean;
651
+ fromSelection: boolean;
652
+ } & import("../types").ActiveTool;
653
+ contextMenu: {
654
+ items: import("../components/ContextMenu").ContextMenuItems;
655
+ top: number;
656
+ left: number;
657
+ } | null;
658
+ showWelcomeScreen: boolean;
659
+ isLoading: boolean;
660
+ errorMessage: React.ReactNode;
661
+ activeEmbeddable: {
662
+ element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
663
+ state: "hover" | "active";
664
+ } | null;
665
+ newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
666
+ resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
667
+ multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
668
+ selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
669
+ isBindingEnabled: boolean;
670
+ startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
671
+ suggestedBinding: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
672
+ frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
673
+ frameRendering: {
674
+ enabled: boolean;
675
+ name: boolean;
676
+ outline: boolean;
677
+ clip: boolean;
678
+ markerName: boolean;
679
+ markerEnabled: boolean;
680
+ };
681
+ editingFrame: string | null;
682
+ elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
683
+ editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
684
+ preferredSelectionTool: {
685
+ type: "selection" | "lasso";
686
+ initialized: boolean;
687
+ };
688
+ penMode: boolean;
689
+ penDetected: boolean;
690
+ exportBackground: boolean;
691
+ exportEmbedScene: boolean;
692
+ exportWithDarkMode: boolean;
693
+ exportScale: number;
694
+ currentItemStrokeColor: string;
695
+ currentItemBackgroundColor: string;
696
+ currentItemFillStyle: ExcalidrawElement["fillStyle"];
697
+ currentItemStrokeWidth: number;
698
+ currentItemStrokeStyle: ExcalidrawElement["strokeStyle"];
699
+ currentItemRoughness: number;
700
+ currentItemOpacity: number;
701
+ currentItemFontFamily: import("@excalidraw/element/types").FontFamilyValues;
702
+ currentItemFontSize: number;
703
+ currentItemTextAlign: import("@excalidraw/element/types").TextAlign;
704
+ currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
705
+ currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
706
+ currentHoveredFontFamily: import("@excalidraw/element/types").FontFamilyValues | null;
707
+ currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
708
+ currentItemArrowType: "sharp" | "round" | "elbow";
709
+ currentItemFrameRole: import("@excalidraw/element/types").ExcalidrawFrameLikeElement["frameRole"] | null;
710
+ viewBackgroundColor: string;
711
+ scrollX: number;
712
+ scrollY: number;
713
+ cursorButton: "up" | "down";
714
+ scrolledOutside: boolean;
715
+ name: string | null;
716
+ isResizing: boolean;
717
+ isRotating: boolean;
718
+ zoom: import("../types").Zoom;
719
+ openMenu: "canvas" | "shape" | null;
720
+ openPopup: "canvasBackground" | "elementBackground" | "elementStroke" | "fontFamily" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
721
+ openSidebar: {
722
+ name: import("../types").SidebarName;
723
+ tab?: import("../types").SidebarTabName;
724
+ } | null;
725
+ openDialog: null | {
726
+ name: "imageExport" | "help" | "jsonExport";
727
+ } | {
728
+ name: "ttd";
729
+ tab: "text-to-diagram" | "mermaid";
730
+ } | {
731
+ name: "commandPalette";
732
+ } | {
733
+ name: "settings";
734
+ } | {
735
+ name: "elementLinkSelector";
736
+ sourceElementId: ExcalidrawElement["id"];
737
+ };
738
+ defaultSidebarDockedPreference: boolean;
739
+ lastPointerDownWith: import("@excalidraw/element/types").PointerType;
740
+ selectedElementIds: Readonly<{
741
+ [id: string]: true;
742
+ }>;
743
+ hoveredElementIds: Readonly<{
744
+ [id: string]: true;
745
+ }>;
746
+ previousSelectedElementIds: {
747
+ [id: string]: true;
748
+ };
749
+ selectedElementsAreBeingDragged: boolean;
750
+ shouldCacheIgnoreZoom: boolean;
751
+ toast: {
752
+ message: string;
753
+ closable?: boolean;
754
+ duration?: number;
755
+ } | null;
756
+ zenModeEnabled: boolean;
757
+ theme: import("@excalidraw/element/types").Theme;
758
+ gridSize: number;
759
+ gridStep: number;
760
+ gridModeEnabled: boolean;
761
+ viewModeEnabled: boolean;
762
+ selectedGroupIds: {
763
+ [groupId: string]: boolean;
764
+ };
765
+ editingGroupId: import("@excalidraw/element/types").GroupId | null;
766
+ width: number;
767
+ height: number;
768
+ offsetTop: number;
769
+ offsetLeft: number;
770
+ fileHandle: import("browser-fs-access").FileSystemHandle | null;
771
+ collaborators: Map<import("../types").SocketId, import("../types").Collaborator>;
772
+ stats: {
773
+ open: boolean;
774
+ panels: number;
775
+ };
776
+ currentChartType: import("@excalidraw/element/types").ChartType;
777
+ pasteDialog: {
778
+ shown: false;
779
+ data: null;
780
+ } | {
781
+ shown: true;
782
+ data: import("../charts").Spreadsheet;
783
+ };
784
+ showHyperlinkPopup: false | "info" | "editor";
785
+ linkOpacity: number;
786
+ colorPalette?: {
787
+ canvasBackground: import("@excalidraw/common").ColorPaletteCustom;
788
+ elementBackground: import("@excalidraw/common").ColorPaletteCustom;
789
+ elementStroke: import("@excalidraw/common").ColorPaletteCustom;
790
+ topPicks: {
791
+ canvasBackground: [string, string, string, string, string];
792
+ elementStroke: [string, string, string, string, string];
793
+ elementBackground: [string, string, string, string, string];
794
+ };
795
+ };
796
+ allowWheelZoom?: boolean;
797
+ allowPinchZoom?: boolean;
798
+ disableContextMenu: boolean;
799
+ pinnedScripts?: string[];
800
+ customPens?: any[];
801
+ currentStrokeOptions?: any;
802
+ resetCustomPen?: any;
803
+ gridColor: {
804
+ Bold: string;
805
+ Regular: string;
806
+ };
807
+ gridDirection: {
808
+ horizontal: boolean;
809
+ vertical: boolean;
810
+ };
811
+ highlightSearchResult: boolean;
812
+ dynamicStyle: {
813
+ [x: string]: string;
814
+ };
815
+ frameColor: {
816
+ stroke: string;
817
+ fill: string;
818
+ nameColor: string;
819
+ };
820
+ invertBindingBehaviour: boolean;
821
+ selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
822
+ snapLines: readonly import("../snapping").SnapLine[];
823
+ originSnapOffset: {
824
+ x: number;
825
+ y: number;
826
+ } | null;
827
+ objectsSnapModeEnabled: boolean;
828
+ userToFollow: import("../types").UserToFollow | null;
829
+ followedBy: Set<import("../types").SocketId>;
830
+ isCropping: boolean;
831
+ croppingElementId: ExcalidrawElement["id"] | null;
832
+ searchMatches: Readonly<{
833
+ focusedId: ExcalidrawElement["id"] | null;
834
+ matches: readonly import("../types").SearchMatch[];
835
+ }> | null;
836
+ activeLockedId: string | null;
837
+ lockedMultiSelections: {
838
+ [groupId: string]: true;
839
+ };
840
+ bindMode: import("@excalidraw/element/types").BindMode;
841
+ };
842
+ captureUpdate: "EVENTUALLY";
843
+ };
844
+ keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
845
+ } & {
846
+ keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
847
+ };
848
+ export declare const actionWrapSelectionInFrame: {
849
+ name: "wrapSelectionInFrame";
850
+ label: string;
851
+ trackEvent: {
852
+ category: "element";
853
+ };
854
+ predicate: (elements: readonly ExcalidrawElement[], appState: AppState, _: import("../types").ExcalidrawProps, app: AppClassProperties) => boolean;
855
+ perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: unknown, app: AppClassProperties) => {
856
+ elements: ((Readonly<{
857
+ id: string;
858
+ x: number;
859
+ y: number;
860
+ strokeColor: string;
861
+ backgroundColor: string;
862
+ fillStyle: import("@excalidraw/element/types").FillStyle;
863
+ strokeWidth: number;
864
+ strokeStyle: import("@excalidraw/element/types").StrokeStyle;
865
+ roundness: null | {
866
+ type: import("@excalidraw/element/types").RoundnessType;
867
+ value?: number;
868
+ };
869
+ roughness: number;
870
+ opacity: number;
871
+ width: number;
872
+ height: number;
873
+ angle: import("@excalidraw/math").Radians;
874
+ seed: number;
875
+ version: number;
876
+ versionNonce: number;
877
+ index: import("@excalidraw/element/types").FractionalIndex | null;
878
+ isDeleted: boolean;
879
+ groupIds: readonly import("@excalidraw/element/types").GroupId[];
880
+ frameId: string | null;
881
+ boundElements: readonly import("@excalidraw/element/types").BoundElement[] | null;
882
+ updated: number;
883
+ link: string | null;
884
+ locked: boolean;
885
+ customData?: Record<string, any>;
886
+ }> & Readonly<{
887
+ type: "line" | "arrow";
888
+ points: readonly import("@excalidraw/math").LocalPoint[];
889
+ startBinding: import("@excalidraw/element/types").FixedPointBinding | null;
890
+ endBinding: import("@excalidraw/element/types").FixedPointBinding | null;
891
+ startArrowhead: import("@excalidraw/element/types").Arrowhead | null;
892
+ endArrowhead: import("@excalidraw/element/types").Arrowhead | null;
893
+ }> & {
894
+ index: import("@excalidraw/element/types").FractionalIndex;
895
+ }) | (Readonly<{
896
+ id: string;
897
+ x: number;
898
+ y: number;
899
+ strokeColor: string;
900
+ backgroundColor: string;
901
+ fillStyle: import("@excalidraw/element/types").FillStyle;
902
+ strokeWidth: number;
903
+ strokeStyle: import("@excalidraw/element/types").StrokeStyle;
904
+ roundness: null | {
905
+ type: import("@excalidraw/element/types").RoundnessType;
906
+ value?: number;
907
+ };
908
+ roughness: number;
909
+ opacity: number;
910
+ width: number;
911
+ height: number;
912
+ angle: import("@excalidraw/math").Radians;
913
+ seed: number;
914
+ version: number;
915
+ versionNonce: number;
916
+ index: import("@excalidraw/element/types").FractionalIndex | null;
917
+ isDeleted: boolean;
918
+ groupIds: readonly import("@excalidraw/element/types").GroupId[];
919
+ frameId: string | null;
920
+ boundElements: readonly import("@excalidraw/element/types").BoundElement[] | null;
921
+ updated: number;
922
+ link: string | null;
923
+ locked: boolean;
924
+ customData?: Record<string, any>;
925
+ }> & {
926
+ type: "selection";
927
+ } & {
928
+ index: import("@excalidraw/element/types").FractionalIndex;
929
+ }) | (Readonly<{
930
+ id: string;
931
+ x: number;
932
+ y: number;
933
+ strokeColor: string;
934
+ backgroundColor: string;
935
+ fillStyle: import("@excalidraw/element/types").FillStyle;
936
+ strokeWidth: number;
937
+ strokeStyle: import("@excalidraw/element/types").StrokeStyle;
938
+ roundness: null | {
939
+ type: import("@excalidraw/element/types").RoundnessType;
940
+ value?: number;
941
+ };
942
+ roughness: number;
943
+ opacity: number;
944
+ width: number;
945
+ height: number;
946
+ angle: import("@excalidraw/math").Radians;
947
+ seed: number;
948
+ version: number;
949
+ versionNonce: number;
950
+ index: import("@excalidraw/element/types").FractionalIndex | null;
951
+ isDeleted: boolean;
952
+ groupIds: readonly import("@excalidraw/element/types").GroupId[];
953
+ frameId: string | null;
954
+ boundElements: readonly import("@excalidraw/element/types").BoundElement[] | null;
955
+ updated: number;
956
+ link: string | null;
957
+ locked: boolean;
958
+ customData?: Record<string, any>;
959
+ }> & {
960
+ type: "rectangle";
961
+ } & {
962
+ index: import("@excalidraw/element/types").FractionalIndex;
963
+ }) | (Readonly<{
964
+ id: string;
965
+ x: number;
966
+ y: number;
967
+ strokeColor: string;
968
+ backgroundColor: string;
969
+ fillStyle: import("@excalidraw/element/types").FillStyle;
970
+ strokeWidth: number;
971
+ strokeStyle: import("@excalidraw/element/types").StrokeStyle;
972
+ roundness: null | {
973
+ type: import("@excalidraw/element/types").RoundnessType;
974
+ value?: number;
975
+ };
976
+ roughness: number;
977
+ opacity: number;
978
+ width: number;
979
+ height: number;
980
+ angle: import("@excalidraw/math").Radians;
981
+ seed: number;
982
+ version: number;
983
+ versionNonce: number;
984
+ index: import("@excalidraw/element/types").FractionalIndex | null;
985
+ isDeleted: boolean;
986
+ groupIds: readonly import("@excalidraw/element/types").GroupId[];
987
+ frameId: string | null;
988
+ boundElements: readonly import("@excalidraw/element/types").BoundElement[] | null;
989
+ updated: number;
990
+ link: string | null;
991
+ locked: boolean;
992
+ customData?: Record<string, any>;
993
+ }> & {
994
+ type: "diamond";
995
+ } & {
996
+ index: import("@excalidraw/element/types").FractionalIndex;
997
+ }) | (Readonly<{
998
+ id: string;
999
+ x: number;
1000
+ y: number;
1001
+ strokeColor: string;
1002
+ backgroundColor: string;
1003
+ fillStyle: import("@excalidraw/element/types").FillStyle;
1004
+ strokeWidth: number;
1005
+ strokeStyle: import("@excalidraw/element/types").StrokeStyle;
1006
+ roundness: null | {
1007
+ type: import("@excalidraw/element/types").RoundnessType;
1008
+ value?: number;
1009
+ };
1010
+ roughness: number;
1011
+ opacity: number;
1012
+ width: number;
1013
+ height: number;
1014
+ angle: import("@excalidraw/math").Radians;
1015
+ seed: number;
1016
+ version: number;
1017
+ versionNonce: number;
1018
+ index: import("@excalidraw/element/types").FractionalIndex | null;
1019
+ isDeleted: boolean;
1020
+ groupIds: readonly import("@excalidraw/element/types").GroupId[];
1021
+ frameId: string | null;
1022
+ boundElements: readonly import("@excalidraw/element/types").BoundElement[] | null;
1023
+ updated: number;
1024
+ link: string | null;
1025
+ locked: boolean;
1026
+ customData?: Record<string, any>;
1027
+ }> & {
1028
+ type: "ellipse";
1029
+ } & {
1030
+ index: import("@excalidraw/element/types").FractionalIndex;
1031
+ }) | (Readonly<{
1032
+ id: string;
1033
+ x: number;
1034
+ y: number;
1035
+ strokeColor: string;
1036
+ backgroundColor: string;
1037
+ fillStyle: import("@excalidraw/element/types").FillStyle;
1038
+ strokeWidth: number;
1039
+ strokeStyle: import("@excalidraw/element/types").StrokeStyle;
1040
+ roundness: null | {
1041
+ type: import("@excalidraw/element/types").RoundnessType;
1042
+ value?: number;
1043
+ };
1044
+ roughness: number;
1045
+ opacity: number;
1046
+ width: number;
1047
+ height: number;
1048
+ angle: import("@excalidraw/math").Radians;
1049
+ seed: number;
1050
+ version: number;
1051
+ versionNonce: number;
1052
+ index: import("@excalidraw/element/types").FractionalIndex | null;
1053
+ isDeleted: boolean;
1054
+ groupIds: readonly import("@excalidraw/element/types").GroupId[];
1055
+ frameId: string | null;
1056
+ boundElements: readonly import("@excalidraw/element/types").BoundElement[] | null;
1057
+ updated: number;
1058
+ link: string | null;
1059
+ locked: boolean;
1060
+ customData?: Record<string, any>;
1061
+ }> & Readonly<{
1062
+ type: "embeddable";
1063
+ scale: [number, number];
1064
+ }> & {
1065
+ index: import("@excalidraw/element/types").FractionalIndex;
1066
+ }) | (Readonly<{
1067
+ id: string;
1068
+ x: number;
1069
+ y: number;
1070
+ strokeColor: string;
1071
+ backgroundColor: string;
1072
+ fillStyle: import("@excalidraw/element/types").FillStyle;
1073
+ strokeWidth: number;
1074
+ strokeStyle: import("@excalidraw/element/types").StrokeStyle;
1075
+ roundness: null | {
1076
+ type: import("@excalidraw/element/types").RoundnessType;
1077
+ value?: number;
1078
+ };
1079
+ roughness: number;
1080
+ opacity: number;
1081
+ width: number;
1082
+ height: number;
1083
+ angle: import("@excalidraw/math").Radians;
1084
+ seed: number;
1085
+ version: number;
1086
+ versionNonce: number;
1087
+ index: import("@excalidraw/element/types").FractionalIndex | null;
1088
+ isDeleted: boolean;
1089
+ groupIds: readonly import("@excalidraw/element/types").GroupId[];
1090
+ frameId: string | null;
1091
+ boundElements: readonly import("@excalidraw/element/types").BoundElement[] | null;
1092
+ updated: number;
1093
+ link: string | null;
1094
+ locked: boolean;
1095
+ customData?: Record<string, any>;
1096
+ }> & Readonly<{
1097
+ type: "iframe";
1098
+ customData?: {
1099
+ generationData?: import("@excalidraw/element/types").MagicGenerationData;
1100
+ };
1101
+ scale: [number, number];
1102
+ }> & {
1103
+ index: import("@excalidraw/element/types").FractionalIndex;
1104
+ }) | (Readonly<{
1105
+ id: string;
1106
+ x: number;
1107
+ y: number;
1108
+ strokeColor: string;
1109
+ backgroundColor: string;
1110
+ fillStyle: import("@excalidraw/element/types").FillStyle;
1111
+ strokeWidth: number;
1112
+ strokeStyle: import("@excalidraw/element/types").StrokeStyle;
1113
+ roundness: null | {
1114
+ type: import("@excalidraw/element/types").RoundnessType;
1115
+ value?: number;
1116
+ };
1117
+ roughness: number;
1118
+ opacity: number;
1119
+ width: number;
1120
+ height: number;
1121
+ angle: import("@excalidraw/math").Radians;
1122
+ seed: number;
1123
+ version: number;
1124
+ versionNonce: number;
1125
+ index: import("@excalidraw/element/types").FractionalIndex | null;
1126
+ isDeleted: boolean;
1127
+ groupIds: readonly import("@excalidraw/element/types").GroupId[];
1128
+ frameId: string | null;
1129
+ boundElements: readonly import("@excalidraw/element/types").BoundElement[] | null;
1130
+ updated: number;
1131
+ link: string | null;
1132
+ locked: boolean;
1133
+ customData?: Record<string, any>;
1134
+ }> & Readonly<{
1135
+ type: "image";
1136
+ fileId: import("@excalidraw/element/types").FileId | null;
1137
+ status: "pending" | "saved" | "error";
1138
+ scale: [number, number];
1139
+ crop: import("@excalidraw/element/types").ImageCrop | null;
1140
+ }> & {
1141
+ index: import("@excalidraw/element/types").FractionalIndex;
1142
+ }) | (Readonly<{
1143
+ id: string;
1144
+ x: number;
1145
+ y: number;
1146
+ strokeColor: string;
1147
+ backgroundColor: string;
1148
+ fillStyle: import("@excalidraw/element/types").FillStyle;
1149
+ strokeWidth: number;
1150
+ strokeStyle: import("@excalidraw/element/types").StrokeStyle;
1151
+ roundness: null | {
1152
+ type: import("@excalidraw/element/types").RoundnessType;
1153
+ value?: number;
1154
+ };
1155
+ roughness: number;
1156
+ opacity: number;
1157
+ width: number;
1158
+ height: number;
1159
+ angle: import("@excalidraw/math").Radians;
1160
+ seed: number;
1161
+ version: number;
1162
+ versionNonce: number;
1163
+ index: import("@excalidraw/element/types").FractionalIndex | null;
1164
+ isDeleted: boolean;
1165
+ groupIds: readonly import("@excalidraw/element/types").GroupId[];
1166
+ frameId: string | null;
1167
+ boundElements: readonly import("@excalidraw/element/types").BoundElement[] | null;
1168
+ updated: number;
1169
+ link: string | null;
1170
+ locked: boolean;
1171
+ customData?: Record<string, any>;
1172
+ }> & {
1173
+ type: "frame";
1174
+ name: string | null;
1175
+ frameRole?: "marker" | null;
1176
+ customData?: {
1177
+ frameColor?: {
1178
+ fill: string;
1179
+ stroke: string;
1180
+ nameColor: string;
1181
+ };
1182
+ };
1183
+ } & {
1184
+ index: import("@excalidraw/element/types").FractionalIndex;
1185
+ }) | (Readonly<{
1186
+ id: string;
1187
+ x: number;
1188
+ y: number;
1189
+ strokeColor: string;
1190
+ backgroundColor: string;
1191
+ fillStyle: import("@excalidraw/element/types").FillStyle;
1192
+ strokeWidth: number;
1193
+ strokeStyle: import("@excalidraw/element/types").StrokeStyle;
1194
+ roundness: null | {
1195
+ type: import("@excalidraw/element/types").RoundnessType;
1196
+ value?: number;
1197
+ };
1198
+ roughness: number;
1199
+ opacity: number;
1200
+ width: number;
1201
+ height: number;
1202
+ angle: import("@excalidraw/math").Radians;
1203
+ seed: number;
1204
+ version: number;
1205
+ versionNonce: number;
1206
+ index: import("@excalidraw/element/types").FractionalIndex | null;
1207
+ isDeleted: boolean;
1208
+ groupIds: readonly import("@excalidraw/element/types").GroupId[];
1209
+ frameId: string | null;
1210
+ boundElements: readonly import("@excalidraw/element/types").BoundElement[] | null;
1211
+ updated: number;
1212
+ link: string | null;
1213
+ locked: boolean;
1214
+ customData?: Record<string, any>;
1215
+ }> & {
1216
+ type: "magicframe";
1217
+ name: string | null;
1218
+ frameRole?: "marker" | null;
1219
+ } & {
1220
+ index: import("@excalidraw/element/types").FractionalIndex;
1221
+ }) | (Readonly<{
1222
+ id: string;
1223
+ x: number;
1224
+ y: number;
1225
+ strokeColor: string;
1226
+ backgroundColor: string;
1227
+ fillStyle: import("@excalidraw/element/types").FillStyle;
1228
+ strokeWidth: number;
1229
+ strokeStyle: import("@excalidraw/element/types").StrokeStyle;
1230
+ roundness: null | {
1231
+ type: import("@excalidraw/element/types").RoundnessType;
1232
+ value?: number;
1233
+ };
1234
+ roughness: number;
1235
+ opacity: number;
1236
+ width: number;
1237
+ height: number;
1238
+ angle: import("@excalidraw/math").Radians;
1239
+ seed: number;
1240
+ version: number;
1241
+ versionNonce: number;
1242
+ index: import("@excalidraw/element/types").FractionalIndex | null;
1243
+ isDeleted: boolean;
1244
+ groupIds: readonly import("@excalidraw/element/types").GroupId[];
1245
+ frameId: string | null;
1246
+ boundElements: readonly import("@excalidraw/element/types").BoundElement[] | null;
1247
+ updated: number;
1248
+ link: string | null;
1249
+ locked: boolean;
1250
+ customData?: Record<string, any>;
1251
+ }> & Readonly<{
1252
+ type: "text";
1253
+ fontSize: number;
1254
+ fontFamily: import("@excalidraw/element/types").FontFamilyValues;
1255
+ text: string;
1256
+ rawText: string;
1257
+ textAlign: import("@excalidraw/element/types").TextAlign;
1258
+ verticalAlign: import("@excalidraw/element/types").VerticalAlign;
1259
+ containerId: import("@excalidraw/element/types").ExcalidrawGenericElement["id"] | null;
1260
+ originalText: string;
1261
+ autoResize: boolean;
1262
+ lineHeight: number & {
1263
+ _brand: "unitlessLineHeight";
1264
+ };
1265
+ }> & {
1266
+ index: import("@excalidraw/element/types").FractionalIndex;
1267
+ }) | (Readonly<{
1268
+ id: string;
1269
+ x: number;
1270
+ y: number;
1271
+ strokeColor: string;
1272
+ backgroundColor: string;
1273
+ fillStyle: import("@excalidraw/element/types").FillStyle;
1274
+ strokeWidth: number;
1275
+ strokeStyle: import("@excalidraw/element/types").StrokeStyle;
1276
+ roundness: null | {
1277
+ type: import("@excalidraw/element/types").RoundnessType;
1278
+ value?: number;
1279
+ };
1280
+ roughness: number;
1281
+ opacity: number;
1282
+ width: number;
1283
+ height: number;
1284
+ angle: import("@excalidraw/math").Radians;
1285
+ seed: number;
1286
+ version: number;
1287
+ versionNonce: number;
1288
+ index: import("@excalidraw/element/types").FractionalIndex | null;
1289
+ isDeleted: boolean;
1290
+ groupIds: readonly import("@excalidraw/element/types").GroupId[];
1291
+ frameId: string | null;
1292
+ boundElements: readonly import("@excalidraw/element/types").BoundElement[] | null;
1293
+ updated: number;
1294
+ link: string | null;
1295
+ locked: boolean;
1296
+ customData?: Record<string, any>;
1297
+ }> & Readonly<{
1298
+ type: "freedraw";
1299
+ points: readonly import("@excalidraw/math").LocalPoint[];
1300
+ pressures: readonly number[];
1301
+ simulatePressure: boolean;
1302
+ }> & {
1303
+ index: import("@excalidraw/element/types").FractionalIndex;
1304
+ }) | import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameElement>)[];
1305
+ appState: {
1306
+ selectedElementIds: {
1307
+ [x: string]: true;
1308
+ };
1309
+ theme: import("@excalidraw/element/types").Theme;
1310
+ };
1311
+ captureUpdate: "IMMEDIATELY";
1312
+ };
1313
+ } & {
1314
+ keyTest?: undefined;
1315
+ };