@excalidraw/excalidraw 0.18.0-d92384b77-3 → 0.18.0-de715913e

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