@zsviczian/excalidraw 0.18.0-14 → 0.18.0-15

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