@zsviczian/excalidraw 0.18.0-12 → 0.18.0-14

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 (390) hide show
  1. package/dist/excalidraw.development.js +210 -177
  2. package/dist/excalidraw.production.min.js +1 -1
  3. package/dist/styles.development.css +16 -0
  4. package/dist/styles.production.css +1 -0
  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 +337 -336
  9. package/types/{excalidraw → common/src}/emitter.d.ts +16 -16
  10. package/types/common/src/font-metadata.d.ts +46 -46
  11. package/types/common/src/index.d.ts +12 -11
  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 -32
  19. package/types/common/src/utils.d.ts +266 -257
  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 -100
  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/{excalidraw/change.d.ts → element/src/delta.d.ts} +196 -191
  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 +69 -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 +16 -16
  46. package/types/element/src/linearElementEditor.d.ts +125 -129
  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 +43 -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 -0
  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 +42 -39
  63. package/types/element/src/types.d.ts +292 -285
  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 +644 -644
  67. package/types/excalidraw/actions/actionAlign.d.ts +109 -109
  68. package/types/excalidraw/actions/actionBoundText.d.ts +466 -466
  69. package/types/excalidraw/actions/actionCanvas.d.ts +3353 -3353
  70. package/types/excalidraw/actions/actionClipboard.d.ts +1404 -1404
  71. package/types/excalidraw/actions/actionCropEditor.d.ts +227 -227
  72. package/types/excalidraw/actions/actionDeleteSelected.d.ts +683 -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 +249 -249
  76. package/types/excalidraw/actions/actionElementLock.d.ts +453 -453
  77. package/types/excalidraw/actions/actionEmbeddable.d.ts +224 -224
  78. package/types/excalidraw/actions/actionExport.d.ts +1998 -1998
  79. package/types/excalidraw/actions/actionFinalize.d.ts +435 -435
  80. package/types/excalidraw/actions/actionFlip.d.ts +34 -34
  81. package/types/excalidraw/actions/actionFrame.d.ts +1404 -1404
  82. package/types/excalidraw/actions/actionGroup.d.ts +464 -464
  83. package/types/excalidraw/actions/actionHistory.d.ts +6 -7
  84. package/types/excalidraw/actions/actionLinearEditor.d.ts +228 -228
  85. package/types/excalidraw/actions/actionLink.d.ts +228 -228
  86. package/types/excalidraw/actions/actionMenu.d.ts +664 -664
  87. package/types/excalidraw/actions/actionNavigate.d.ts +440 -440
  88. package/types/excalidraw/actions/actionProperties.d.ts +3351 -3351
  89. package/types/excalidraw/actions/actionSelectAll.d.ts +227 -227
  90. package/types/excalidraw/actions/actionStyles.d.ts +241 -241
  91. package/types/excalidraw/actions/actionTextAutoResize.d.ts +17 -17
  92. package/types/excalidraw/actions/actionToggleGridMode.d.ts +230 -230
  93. package/types/excalidraw/actions/actionToggleObjectsSnapMode.d.ts +228 -228
  94. package/types/excalidraw/actions/actionToggleSearchMenu.d.ts +430 -430
  95. package/types/excalidraw/actions/actionToggleShapeSwitch.d.ts +19 -0
  96. package/types/excalidraw/actions/actionToggleStats.d.ts +227 -227
  97. package/types/excalidraw/actions/actionToggleViewMode.d.ts +228 -228
  98. package/types/excalidraw/actions/actionToggleZenMode.d.ts +228 -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 -564
  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 +9 -9
  126. package/types/excalidraw/components/ColorPicker/ColorPicker.d.ts +19 -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 +18 -18
  130. package/types/excalidraw/components/ColorPicker/PickerColorList.d.ts +10 -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 +49 -0
  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 +9 -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 -26
  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 +224 -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 -40
  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 -13
  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 +767 -764
  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 -22
  370. package/types/math/src/angle.d.ts +17 -17
  371. package/types/math/src/curve.d.ts +42 -40
  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 -88
  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
  390. package/types/excalidraw/store.d.ts +0 -129
@@ -1,1404 +1,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/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: (import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameElement> | (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
- }))[];
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/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
+ };