@zsviczian/excalidraw 0.18.0-31 → 0.18.0-33

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