@zsviczian/excalidraw 0.18.0-21 → 0.18.0-22

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