@zsviczian/excalidraw 0.18.0-30 → 0.18.0-30-printFrame-test-1

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