@zsviczian/excalidraw 0.17.6-3 → 0.17.6-30

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (390) hide show
  1. package/dist/excalidraw.development.js +13100 -1540
  2. package/dist/excalidraw.production.min.js +1 -1
  3. package/dist/excalidraw.production.min.js.LICENSE.txt +21 -1
  4. package/dist/styles.development.css +490 -376
  5. package/dist/styles.production.css +10 -8
  6. package/package.json +5 -4
  7. package/types/excalidraw/actions/actionAddToLibrary.d.ts +0 -605
  8. package/types/excalidraw/actions/actionAlign.d.ts +0 -108
  9. package/types/excalidraw/actions/actionBoundText.d.ts +0 -440
  10. package/types/excalidraw/actions/actionCanvas.d.ts +0 -2958
  11. package/types/excalidraw/actions/actionClipboard.d.ts +0 -1322
  12. package/types/excalidraw/actions/actionDeleteSelected.d.ts +0 -640
  13. package/types/excalidraw/actions/actionDistribute.d.ts +0 -34
  14. package/types/excalidraw/actions/actionDuplicateSelection.d.ts +0 -21
  15. package/types/excalidraw/actions/actionElementLock.d.ts +0 -428
  16. package/types/excalidraw/actions/actionExport.d.ts +0 -1884
  17. package/types/excalidraw/actions/actionFinalize.d.ts +0 -409
  18. package/types/excalidraw/actions/actionFlip.d.ts +0 -34
  19. package/types/excalidraw/actions/actionFrame.d.ts +0 -855
  20. package/types/excalidraw/actions/actionGroup.d.ts +0 -438
  21. package/types/excalidraw/actions/actionHistory.d.ts +0 -7
  22. package/types/excalidraw/actions/actionLinearEditor.d.ts +0 -215
  23. package/types/excalidraw/actions/actionLink.d.ts +0 -215
  24. package/types/excalidraw/actions/actionMenu.d.ts +0 -628
  25. package/types/excalidraw/actions/actionNavigate.d.ts +0 -414
  26. package/types/excalidraw/actions/actionProperties.d.ts +0 -3156
  27. package/types/excalidraw/actions/actionSelectAll.d.ts +0 -214
  28. package/types/excalidraw/actions/actionStyles.d.ts +0 -228
  29. package/types/excalidraw/actions/actionTextAutoResize.d.ts +0 -17
  30. package/types/excalidraw/actions/actionToggleGridMode.d.ts +0 -217
  31. package/types/excalidraw/actions/actionToggleObjectsSnapMode.d.ts +0 -215
  32. package/types/excalidraw/actions/actionToggleSearchMenu.d.ts +0 -407
  33. package/types/excalidraw/actions/actionToggleStats.d.ts +0 -215
  34. package/types/excalidraw/actions/actionToggleViewMode.d.ts +0 -216
  35. package/types/excalidraw/actions/actionToggleZenMode.d.ts +0 -216
  36. package/types/excalidraw/actions/actionZindex.d.ts +0 -74
  37. package/types/excalidraw/actions/index.d.ts +0 -26
  38. package/types/excalidraw/actions/manager.d.ts +0 -21
  39. package/types/excalidraw/actions/register.d.ts +0 -5
  40. package/types/excalidraw/actions/shortcuts.d.ts +0 -4
  41. package/types/excalidraw/actions/types.d.ts +0 -46
  42. package/types/excalidraw/align.d.ts +0 -6
  43. package/types/excalidraw/analytics.d.ts +0 -1
  44. package/types/excalidraw/animated-trail.d.ts +0 -33
  45. package/types/excalidraw/animation-frame-handler.d.ts +0 -16
  46. package/types/excalidraw/appState.d.ts +0 -89
  47. package/types/excalidraw/binaryheap.d.ts +0 -12
  48. package/types/excalidraw/change.d.ts +0 -191
  49. package/types/excalidraw/charts.d.ts +0 -27
  50. package/types/excalidraw/clients.d.ts +0 -14
  51. package/types/excalidraw/clipboard.d.ts +0 -44
  52. package/types/excalidraw/colors.d.ts +0 -61
  53. package/types/excalidraw/components/Actions.d.ts +0 -34
  54. package/types/excalidraw/components/ActiveConfirmDialog.d.ts +0 -4
  55. package/types/excalidraw/components/App.d.ts +0 -535
  56. package/types/excalidraw/components/Avatar.d.ts +0 -11
  57. package/types/excalidraw/components/BraveMeasureTextError.d.ts +0 -2
  58. package/types/excalidraw/components/Button.d.ts +0 -17
  59. package/types/excalidraw/components/ButtonIcon.d.ts +0 -14
  60. package/types/excalidraw/components/ButtonIconCycle.d.ts +0 -10
  61. package/types/excalidraw/components/ButtonIconSelect.d.ts +0 -19
  62. package/types/excalidraw/components/ButtonSelect.d.ts +0 -9
  63. package/types/excalidraw/components/ButtonSeparator.d.ts +0 -1
  64. package/types/excalidraw/components/Card.d.ts +0 -6
  65. package/types/excalidraw/components/CheckboxItem.d.ts +0 -8
  66. package/types/excalidraw/components/ColorPicker/ColorInput.d.ts +0 -9
  67. package/types/excalidraw/components/ColorPicker/ColorPicker.d.ts +0 -19
  68. package/types/excalidraw/components/ColorPicker/CustomColorList.d.ts +0 -8
  69. package/types/excalidraw/components/ColorPicker/HotkeyLabel.d.ts +0 -8
  70. package/types/excalidraw/components/ColorPicker/Picker.d.ts +0 -18
  71. package/types/excalidraw/components/ColorPicker/PickerColorList.d.ts +0 -10
  72. package/types/excalidraw/components/ColorPicker/PickerHeading.d.ts +0 -5
  73. package/types/excalidraw/components/ColorPicker/ShadeList.d.ts +0 -8
  74. package/types/excalidraw/components/ColorPicker/TopPicks.d.ts +0 -9
  75. package/types/excalidraw/components/ColorPicker/colorPickerUtils.d.ts +0 -21
  76. package/types/excalidraw/components/ColorPicker/keyboardNavHandlers.d.ts +0 -20
  77. package/types/excalidraw/components/CommandPalette/CommandPalette.d.ts +0 -18
  78. package/types/excalidraw/components/CommandPalette/defaultCommandPaletteItems.d.ts +0 -2
  79. package/types/excalidraw/components/CommandPalette/types.d.ts +0 -25
  80. package/types/excalidraw/components/ConfirmDialog.d.ts +0 -10
  81. package/types/excalidraw/components/ContextMenu.d.ts +0 -16
  82. package/types/excalidraw/components/DarkModeToggle.d.ts +0 -7
  83. package/types/excalidraw/components/DefaultSidebar.d.ts +0 -30
  84. package/types/excalidraw/components/DiagramToCodePlugin/DiagramToCodePlugin.d.ts +0 -4
  85. package/types/excalidraw/components/Dialog.d.ts +0 -13
  86. package/types/excalidraw/components/DialogActionButton.d.ts +0 -10
  87. package/types/excalidraw/components/ErrorDialog.d.ts +0 -5
  88. package/types/excalidraw/components/ExcalidrawLogo.d.ts +0 -15
  89. package/types/excalidraw/components/EyeDropper.d.ts +0 -27
  90. package/types/excalidraw/components/FilledButton.d.ts +0 -18
  91. package/types/excalidraw/components/FixedSideContainer.d.ts +0 -9
  92. package/types/excalidraw/components/FollowMode/FollowMode.d.ts +0 -10
  93. package/types/excalidraw/components/FontPicker/FontPicker.d.ts +0 -21
  94. package/types/excalidraw/components/FontPicker/FontPickerList.d.ts +0 -25
  95. package/types/excalidraw/components/FontPicker/FontPickerTrigger.d.ts +0 -6
  96. package/types/excalidraw/components/FontPicker/keyboardNavHandlers.d.ts +0 -13
  97. package/types/excalidraw/components/HandButton.d.ts +0 -10
  98. package/types/excalidraw/components/HelpButton.d.ts +0 -7
  99. package/types/excalidraw/components/HelpDialog.d.ts +0 -4
  100. package/types/excalidraw/components/HintViewer.d.ts +0 -10
  101. package/types/excalidraw/components/IconPicker.d.ts +0 -14
  102. package/types/excalidraw/components/ImageExportDialog.d.ts +0 -14
  103. package/types/excalidraw/components/InitializeApp.d.ts +0 -10
  104. package/types/excalidraw/components/InlineIcon.d.ts +0 -3
  105. package/types/excalidraw/components/Island.d.ts +0 -10
  106. package/types/excalidraw/components/JSONExportDialog.d.ts +0 -15
  107. package/types/excalidraw/components/LaserPointerButton.d.ts +0 -10
  108. package/types/excalidraw/components/LayerUI.d.ts +0 -30
  109. package/types/excalidraw/components/LibraryMenu.d.ts +0 -24
  110. package/types/excalidraw/components/LibraryMenuBrowseButton.d.ts +0 -7
  111. package/types/excalidraw/components/LibraryMenuControlButtons.d.ts +0 -9
  112. package/types/excalidraw/components/LibraryMenuHeaderContent.d.ts +0 -17
  113. package/types/excalidraw/components/LibraryMenuItems.d.ts +0 -14
  114. package/types/excalidraw/components/LibraryMenuSection.d.ts +0 -23
  115. package/types/excalidraw/components/LibraryUnit.d.ts +0 -14
  116. package/types/excalidraw/components/LoadingMessage.d.ts +0 -5
  117. package/types/excalidraw/components/LockButton.d.ts +0 -10
  118. package/types/excalidraw/components/MagicButton.d.ts +0 -9
  119. package/types/excalidraw/components/MagicSettings.d.ts +0 -8
  120. package/types/excalidraw/components/MobileMenu.d.ts +0 -24
  121. package/types/excalidraw/components/Modal.d.ts +0 -14
  122. package/types/excalidraw/components/OverwriteConfirm/OverwriteConfirm.d.ts +0 -17
  123. package/types/excalidraw/components/OverwriteConfirm/OverwriteConfirmActions.d.ts +0 -17
  124. package/types/excalidraw/components/OverwriteConfirm/OverwriteConfirmState.d.ts +0 -22
  125. package/types/excalidraw/components/Paragraph.d.ts +0 -4
  126. package/types/excalidraw/components/PasteChartDialog.d.ts +0 -8
  127. package/types/excalidraw/components/PenModeButton.d.ts +0 -12
  128. package/types/excalidraw/components/Popover.d.ts +0 -15
  129. package/types/excalidraw/components/ProjectName.d.ts +0 -10
  130. package/types/excalidraw/components/PropertiesPopover.d.ts +0 -15
  131. package/types/excalidraw/components/PublishLibrary.d.ts +0 -16
  132. package/types/excalidraw/components/QuickSearch.d.ts +0 -9
  133. package/types/excalidraw/components/RadioGroup.d.ts +0 -13
  134. package/types/excalidraw/components/SVGLayer.d.ts +0 -7
  135. package/types/excalidraw/components/ScrollableList.d.ts +0 -8
  136. package/types/excalidraw/components/SearchMenu.d.ts +0 -5
  137. package/types/excalidraw/components/Section.d.ts +0 -6
  138. package/types/excalidraw/components/ShareableLinkDialog.d.ts +0 -7
  139. package/types/excalidraw/components/Sidebar/Sidebar.d.ts +0 -76
  140. package/types/excalidraw/components/Sidebar/SidebarHeader.d.ts +0 -7
  141. package/types/excalidraw/components/Sidebar/SidebarTab.d.ts +0 -8
  142. package/types/excalidraw/components/Sidebar/SidebarTabTrigger.d.ts +0 -9
  143. package/types/excalidraw/components/Sidebar/SidebarTabTriggers.d.ts +0 -6
  144. package/types/excalidraw/components/Sidebar/SidebarTabs.d.ts +0 -6
  145. package/types/excalidraw/components/Sidebar/SidebarTrigger.d.ts +0 -6
  146. package/types/excalidraw/components/Sidebar/common.d.ts +0 -33
  147. package/types/excalidraw/components/Spinner.d.ts +0 -8
  148. package/types/excalidraw/components/Stack.d.ts +0 -16
  149. package/types/excalidraw/components/Stats/Angle.d.ts +0 -11
  150. package/types/excalidraw/components/Stats/CanvasGrid.d.ts +0 -10
  151. package/types/excalidraw/components/Stats/CanvasGridSize.d.ts +0 -10
  152. package/types/excalidraw/components/Stats/Collapsible.d.ts +0 -8
  153. package/types/excalidraw/components/Stats/Dimension.d.ts +0 -11
  154. package/types/excalidraw/components/Stats/DragInput.d.ts +0 -34
  155. package/types/excalidraw/components/Stats/FontSize.d.ts +0 -11
  156. package/types/excalidraw/components/Stats/MultiAngle.d.ts +0 -11
  157. package/types/excalidraw/components/Stats/MultiDimension.d.ts +0 -14
  158. package/types/excalidraw/components/Stats/MultiFontSize.d.ts +0 -12
  159. package/types/excalidraw/components/Stats/MultiPosition.d.ts +0 -14
  160. package/types/excalidraw/components/Stats/Position.d.ts +0 -12
  161. package/types/excalidraw/components/Stats/index.d.ts +0 -35
  162. package/types/excalidraw/components/Stats/utils.d.ts +0 -26
  163. package/types/excalidraw/components/Stats.d.ts +0 -11
  164. package/types/excalidraw/components/Switch.d.ts +0 -9
  165. package/types/excalidraw/components/TTDDialog/MermaidToExcalidraw.d.ts +0 -14
  166. package/types/excalidraw/components/TTDDialog/TTDDialog.d.ts +0 -29
  167. package/types/excalidraw/components/TTDDialog/TTDDialogInput.d.ts +0 -9
  168. package/types/excalidraw/components/TTDDialog/TTDDialogOutput.d.ts +0 -7
  169. package/types/excalidraw/components/TTDDialog/TTDDialogPanel.d.ts +0 -17
  170. package/types/excalidraw/components/TTDDialog/TTDDialogPanels.d.ts +0 -4
  171. package/types/excalidraw/components/TTDDialog/TTDDialogSubmitShortcut.d.ts +0 -1
  172. package/types/excalidraw/components/TTDDialog/TTDDialogTab.d.ts +0 -7
  173. package/types/excalidraw/components/TTDDialog/TTDDialogTabTrigger.d.ts +0 -8
  174. package/types/excalidraw/components/TTDDialog/TTDDialogTabTriggers.d.ts +0 -6
  175. package/types/excalidraw/components/TTDDialog/TTDDialogTabs.d.ts +0 -11
  176. package/types/excalidraw/components/TTDDialog/TTDDialogTrigger.d.ts +0 -8
  177. package/types/excalidraw/components/TTDDialog/common.d.ts +0 -32
  178. package/types/excalidraw/components/TextField.d.ts +0 -21
  179. package/types/excalidraw/components/Toast.d.ts +0 -9
  180. package/types/excalidraw/components/ToolButton.d.ts +0 -49
  181. package/types/excalidraw/components/Tooltip.d.ts +0 -18
  182. package/types/excalidraw/components/Trans.d.ts +0 -9
  183. package/types/excalidraw/components/UserList.d.ts +0 -18
  184. package/types/excalidraw/components/canvases/InteractiveCanvas.d.ts +0 -29
  185. package/types/excalidraw/components/canvases/NewElementCanvas.d.ts +0 -14
  186. package/types/excalidraw/components/canvases/StaticCanvas.d.ts +0 -19
  187. package/types/excalidraw/components/canvases/index.d.ts +0 -3
  188. package/types/excalidraw/components/dropdownMenu/DropdownMenu.d.ts +0 -86
  189. package/types/excalidraw/components/dropdownMenu/DropdownMenuContent.d.ts +0 -15
  190. package/types/excalidraw/components/dropdownMenu/DropdownMenuGroup.d.ts +0 -11
  191. package/types/excalidraw/components/dropdownMenu/DropdownMenuItem.d.ts +0 -45
  192. package/types/excalidraw/components/dropdownMenu/DropdownMenuItemContent.d.ts +0 -7
  193. package/types/excalidraw/components/dropdownMenu/DropdownMenuItemContentRadio.d.ts +0 -17
  194. package/types/excalidraw/components/dropdownMenu/DropdownMenuItemCustom.d.ts +0 -7
  195. package/types/excalidraw/components/dropdownMenu/DropdownMenuItemLink.d.ts +0 -15
  196. package/types/excalidraw/components/dropdownMenu/DropdownMenuSeparator.d.ts +0 -5
  197. package/types/excalidraw/components/dropdownMenu/DropdownMenuTrigger.d.ts +0 -10
  198. package/types/excalidraw/components/dropdownMenu/common.d.ts +0 -6
  199. package/types/excalidraw/components/dropdownMenu/dropdownMenuUtils.d.ts +0 -3
  200. package/types/excalidraw/components/footer/Footer.d.ts +0 -12
  201. package/types/excalidraw/components/footer/FooterCenter.d.ts +0 -8
  202. package/types/excalidraw/components/hoc/withInternalFallback.d.ts +0 -4
  203. package/types/excalidraw/components/hyperlink/Hyperlink.d.ts +0 -18
  204. package/types/excalidraw/components/hyperlink/helpers.d.ts +0 -8
  205. package/types/excalidraw/components/icons.d.ts +0 -212
  206. package/types/excalidraw/components/live-collaboration/LiveCollaborationTrigger.d.ts +0 -9
  207. package/types/excalidraw/components/main-menu/DefaultItems.d.ts +0 -64
  208. package/types/excalidraw/components/main-menu/MainMenu.d.ts +0 -80
  209. package/types/excalidraw/components/welcome-screen/WelcomeScreen.Center.d.ts +0 -59
  210. package/types/excalidraw/components/welcome-screen/WelcomeScreen.Hints.d.ts +0 -19
  211. package/types/excalidraw/components/welcome-screen/WelcomeScreen.d.ts +0 -86
  212. package/types/excalidraw/constants.d.ts +0 -322
  213. package/types/excalidraw/context/tunnels.d.ts +0 -20
  214. package/types/excalidraw/context/ui-appState.d.ts +0 -4
  215. package/types/excalidraw/cursor.d.ts +0 -6
  216. package/types/excalidraw/data/EditorLocalStorage.d.ts +0 -8
  217. package/types/excalidraw/data/ai/types.d.ts +0 -242
  218. package/types/excalidraw/data/blob.d.ts +0 -49
  219. package/types/excalidraw/data/encode.d.ts +0 -54
  220. package/types/excalidraw/data/encryption.d.ts +0 -9
  221. package/types/excalidraw/data/filesystem.d.ts +0 -20
  222. package/types/excalidraw/data/image.d.ts +0 -15
  223. package/types/excalidraw/data/index.d.ts +0 -22
  224. package/types/excalidraw/data/json.d.ts +0 -16
  225. package/types/excalidraw/data/library.d.ts +0 -106
  226. package/types/excalidraw/data/magic.d.ts +0 -23
  227. package/types/excalidraw/data/reconcile.d.ts +0 -6
  228. package/types/excalidraw/data/resave.d.ts +0 -5
  229. package/types/excalidraw/data/restore.d.ts +0 -21
  230. package/types/excalidraw/data/transform.d.ts +0 -81
  231. package/types/excalidraw/data/types.d.ts +0 -45
  232. package/types/excalidraw/data/url.d.ts +0 -8
  233. package/types/excalidraw/deburr.d.ts +0 -1
  234. package/types/excalidraw/dist/excalidraw.development.d.ts +0 -2
  235. package/types/excalidraw/dist/excalidraw.production.min.d.ts +0 -1
  236. package/types/excalidraw/distribute.d.ts +0 -6
  237. package/types/excalidraw/element/ElementCanvasButtons.d.ts +0 -7
  238. package/types/excalidraw/element/binding.d.ts +0 -99
  239. package/types/excalidraw/element/bounds.d.ts +0 -76
  240. package/types/excalidraw/element/collision.d.ts +0 -17
  241. package/types/excalidraw/element/containerCache.d.ts +0 -11
  242. package/types/excalidraw/element/dragElements.d.ts +0 -32
  243. package/types/excalidraw/element/embeddable.d.ts +0 -221
  244. package/types/excalidraw/element/flowchart.d.ts +0 -25
  245. package/types/excalidraw/element/heading.d.ts +0 -12
  246. package/types/excalidraw/element/image.d.ts +0 -32
  247. package/types/excalidraw/element/index.d.ts +0 -26
  248. package/types/excalidraw/element/linearElementEditor.d.ts +0 -128
  249. package/types/excalidraw/element/mutateElement.d.ts +0 -11
  250. package/types/excalidraw/element/newElement.d.ts +0 -105
  251. package/types/excalidraw/element/resizeElements.d.ts +0 -16
  252. package/types/excalidraw/element/resizeTest.d.ts +0 -15
  253. package/types/excalidraw/element/routing.d.ts +0 -12
  254. package/types/excalidraw/element/showSelectedShapeActions.d.ts +0 -3
  255. package/types/excalidraw/element/sizeHelpers.d.ts +0 -35
  256. package/types/excalidraw/element/sortElements.d.ts +0 -2
  257. package/types/excalidraw/element/textElement.d.ts +0 -73
  258. package/types/excalidraw/element/textWysiwyg.d.ts +0 -22
  259. package/types/excalidraw/element/transformHandles.d.ts +0 -55
  260. package/types/excalidraw/element/typeChecks.d.ts +0 -39
  261. package/types/excalidraw/element/types.d.ts +0 -253
  262. package/types/excalidraw/emitter.d.ts +0 -16
  263. package/types/excalidraw/entry.d.ts +0 -1
  264. package/types/excalidraw/env.d.cts +0 -1
  265. package/types/excalidraw/env.d.ts +0 -1
  266. package/types/excalidraw/errors.d.ts +0 -25
  267. package/types/excalidraw/fonts/ExcalidrawFont.d.ts +0 -37
  268. package/types/excalidraw/fonts/ExcalidrawFontFace.d.ts +0 -35
  269. package/types/excalidraw/fonts/index.d.ts +0 -87
  270. package/types/excalidraw/fonts/metadata.d.ts +0 -37
  271. package/types/excalidraw/fonts/subset/subset-main.d.ts +0 -12
  272. package/types/excalidraw/fonts/subset/subset-shared.chunk.d.ts +0 -32
  273. package/types/excalidraw/fonts/subset/subset-worker.chunk.d.ts +0 -15
  274. package/types/excalidraw/fonts/wasm/hb-subset-bindings.d.ts +0 -45
  275. package/types/excalidraw/fonts/wasm/hb-subset-loader.d.ts +0 -13
  276. package/types/excalidraw/fonts/wasm/hb-subset-wasm.d.ts +0 -2
  277. package/types/excalidraw/fonts/wasm/hb-subset.bindings.d.ts +0 -45
  278. package/types/excalidraw/fonts/wasm/hb-subset.loader.d.ts +0 -5
  279. package/types/excalidraw/fonts/wasm/hb-subset.wasm.d.ts +0 -2
  280. package/types/excalidraw/fonts/wasm/woff2-bindings.d.ts +0 -31
  281. package/types/excalidraw/fonts/wasm/woff2-loader.d.ts +0 -14
  282. package/types/excalidraw/fonts/wasm/woff2-wasm.d.ts +0 -2
  283. package/types/excalidraw/fonts/wasm/woff2.bindings.d.ts +0 -31
  284. package/types/excalidraw/fonts/wasm/woff2.loader.d.ts +0 -6
  285. package/types/excalidraw/fonts/wasm/woff2.wasm.d.ts +0 -2
  286. package/types/excalidraw/fonts/woff2/Cascadia/index.d.ts +0 -2
  287. package/types/excalidraw/fonts/woff2/Comic/index.d.ts +0 -2
  288. package/types/excalidraw/fonts/woff2/Emoji/index.d.ts +0 -2
  289. package/types/excalidraw/fonts/woff2/Excalifont/index.d.ts +0 -2
  290. package/types/excalidraw/fonts/woff2/Helvetica/index.d.ts +0 -2
  291. package/types/excalidraw/fonts/woff2/Liberation/index.d.ts +0 -2
  292. package/types/excalidraw/fonts/woff2/Lilita/index.d.ts +0 -2
  293. package/types/excalidraw/fonts/woff2/Nunito/index.d.ts +0 -2
  294. package/types/excalidraw/fonts/woff2/Virgil/index.d.ts +0 -2
  295. package/types/excalidraw/fonts/woff2/Xiaolai/index.d.ts +0 -8
  296. package/types/excalidraw/fractionalIndex.d.ts +0 -48
  297. package/types/excalidraw/frame.d.ts +0 -63
  298. package/types/excalidraw/ga.d.ts +0 -63
  299. package/types/excalidraw/gadirections.d.ts +0 -8
  300. package/types/excalidraw/galines.d.ts +0 -22
  301. package/types/excalidraw/gapoints.d.ts +0 -7
  302. package/types/excalidraw/gatransforms.d.ts +0 -10
  303. package/types/excalidraw/gesture.d.ts +0 -6
  304. package/types/excalidraw/groups.d.ts +0 -33
  305. package/types/excalidraw/history.d.ts +0 -40
  306. package/types/excalidraw/hooks/useCallbackRefState.d.ts +0 -1
  307. package/types/excalidraw/hooks/useCopiedIndicator.d.ts +0 -5
  308. package/types/excalidraw/hooks/useCreatePortalContainer.d.ts +0 -7
  309. package/types/excalidraw/hooks/useEmitter.d.ts +0 -2
  310. package/types/excalidraw/hooks/useLibraryItemSvg.d.ts +0 -11
  311. package/types/excalidraw/hooks/useOutsideClick.d.ts +0 -19
  312. package/types/excalidraw/hooks/useScrollPosition.d.ts +0 -1
  313. package/types/excalidraw/hooks/useStable.d.ts +0 -1
  314. package/types/excalidraw/hooks/useStableCallback.d.ts +0 -4
  315. package/types/excalidraw/hooks/useTransition.d.ts +0 -2
  316. package/types/excalidraw/i18n.d.ts +0 -24
  317. package/types/excalidraw/index-node.d.ts +0 -1
  318. package/types/excalidraw/index.d.ts +0 -63
  319. package/types/excalidraw/jotai.d.ts +0 -34
  320. package/types/excalidraw/keys.d.ts +0 -82
  321. package/types/excalidraw/laser-trails.d.ts +0 -20
  322. package/types/excalidraw/main.d.ts +0 -2
  323. package/types/excalidraw/math.d.ts +0 -79
  324. package/types/excalidraw/mermaid.d.ts +0 -2
  325. package/types/excalidraw/obsidianUtils.d.ts +0 -21
  326. package/types/excalidraw/points.d.ts +0 -7
  327. package/types/excalidraw/polyfill.d.ts +0 -2
  328. package/types/excalidraw/publicPath.d.ts +0 -1
  329. package/types/excalidraw/queue.d.ts +0 -9
  330. package/types/excalidraw/random.d.ts +0 -4
  331. package/types/excalidraw/reactUtils.d.ts +0 -14
  332. package/types/excalidraw/renderer/easingFunctions.d.ts +0 -6
  333. package/types/excalidraw/renderer/helpers.d.ts +0 -13
  334. package/types/excalidraw/renderer/interactiveScene.d.ts +0 -20
  335. package/types/excalidraw/renderer/renderElement.d.ts +0 -27
  336. package/types/excalidraw/renderer/renderNewElementScene.d.ts +0 -7
  337. package/types/excalidraw/renderer/renderSnaps.d.ts +0 -2
  338. package/types/excalidraw/renderer/roundRect.d.ts +0 -11
  339. package/types/excalidraw/renderer/staticScene.d.ts +0 -11
  340. package/types/excalidraw/renderer/staticSvgScene.d.ts +0 -5
  341. package/types/excalidraw/scene/Fonts.d.ts +0 -19
  342. package/types/excalidraw/scene/Renderer.d.ts +0 -28
  343. package/types/excalidraw/scene/Scene.d.ts +0 -78
  344. package/types/excalidraw/scene/Shape.d.ts +0 -17
  345. package/types/excalidraw/scene/ShapeCache.d.ts +0 -25
  346. package/types/excalidraw/scene/comparisons.d.ts +0 -487
  347. package/types/excalidraw/scene/export.d.ts +0 -29
  348. package/types/excalidraw/scene/index.d.ts +0 -4
  349. package/types/excalidraw/scene/normalize.d.ts +0 -4
  350. package/types/excalidraw/scene/scroll.d.ts +0 -23
  351. package/types/excalidraw/scene/scrollbars.d.ts +0 -12
  352. package/types/excalidraw/scene/selection.d.ts +0 -32
  353. package/types/excalidraw/scene/types.d.ts +0 -112
  354. package/types/excalidraw/scene/zoom.d.ts +0 -12
  355. package/types/excalidraw/shapes.d.ts +0 -85
  356. package/types/excalidraw/snapping.d.ts +0 -112
  357. package/types/excalidraw/store.d.ts +0 -129
  358. package/types/excalidraw/types.d.ts +0 -718
  359. package/types/excalidraw/utility-types.d.ts +0 -31
  360. package/types/excalidraw/utils.d.ts +0 -249
  361. package/types/excalidraw/visualdebug.d.ts +0 -35
  362. package/types/excalidraw/webpack.dev.config.d.ts +0 -81
  363. package/types/excalidraw/webpack.prod.config.d.ts +0 -97
  364. package/types/excalidraw/workers.d.ts +0 -36
  365. package/types/excalidraw/zindex.d.ts +0 -6
  366. package/types/math/angle.d.ts +0 -17
  367. package/types/math/arc.d.ts +0 -6
  368. package/types/math/curve.d.ts +0 -32
  369. package/types/math/ga/ga.d.ts +0 -63
  370. package/types/math/ga/gadirections.d.ts +0 -8
  371. package/types/math/ga/galines.d.ts +0 -22
  372. package/types/math/ga/gapoints.d.ts +0 -7
  373. package/types/math/ga/gatransforms.d.ts +0 -10
  374. package/types/math/index.d.ts +0 -12
  375. package/types/math/line.d.ts +0 -26
  376. package/types/math/point.d.ts +0 -140
  377. package/types/math/polygon.d.ts +0 -5
  378. package/types/math/range.d.ts +0 -44
  379. package/types/math/segment.d.ts +0 -32
  380. package/types/math/triangle.d.ts +0 -11
  381. package/types/math/types.d.ts +0 -96
  382. package/types/math/utils.d.ts +0 -6
  383. package/types/math/vector.d.ts +0 -88
  384. package/types/utils/bbox.d.ts +0 -9
  385. package/types/utils/collision.d.ts +0 -9
  386. package/types/utils/export.d.ts +0 -44
  387. package/types/utils/geometry/geometry.d.ts +0 -89
  388. package/types/utils/geometry/shape.d.ts +0 -71
  389. package/types/utils/index.d.ts +0 -4
  390. package/types/utils/withinBounds.d.ts +0 -19
@@ -1,855 +0,0 @@
1
- import type { ExcalidrawElement } from "../element/types";
2
- import type { AppClassProperties, AppState } from "../types";
3
- export declare const actionSelectAllElementsInFrame: {
4
- name: "selectAllElementsInFrame";
5
- label: string;
6
- trackEvent: {
7
- category: "canvas";
8
- };
9
- perform: (elements: readonly import("../element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: any, app: AppClassProperties) => {
10
- elements: readonly import("../element/types").OrderedExcalidrawElement[];
11
- appState: {
12
- selectedElementIds: Record<string, true>;
13
- contextMenu: {
14
- items: import("../components/ContextMenu").ContextMenuItems;
15
- top: number;
16
- left: number;
17
- } | null;
18
- showWelcomeScreen: boolean;
19
- isLoading: boolean;
20
- errorMessage: import("react").ReactNode;
21
- activeEmbeddable: {
22
- element: import("../element/types").NonDeletedExcalidrawElement;
23
- state: "active" | "hover";
24
- } | null;
25
- newElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawNonSelectionElement> | null;
26
- resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
27
- multiElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawLinearElement> | null;
28
- selectionElement: import("../element/types").NonDeletedExcalidrawElement | null;
29
- isBindingEnabled: boolean;
30
- startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
31
- suggestedBindings: import("../element/binding").SuggestedBinding[];
32
- frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameLikeElement> | null;
33
- frameRendering: {
34
- enabled: boolean;
35
- name: boolean;
36
- outline: boolean;
37
- clip: boolean;
38
- };
39
- editingFrame: string | null;
40
- elementsToHighlight: import("../element/types").NonDeleted<ExcalidrawElement>[] | null;
41
- editingTextElement: import("../element/types").NonDeletedExcalidrawElement | null;
42
- editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
43
- activeTool: {
44
- lastActiveTool: import("../types").ActiveTool | null;
45
- locked: boolean;
46
- } & import("../types").ActiveTool;
47
- penMode: boolean;
48
- penDetected: boolean;
49
- exportBackground: boolean;
50
- exportEmbedScene: boolean;
51
- exportWithDarkMode: boolean;
52
- exportScale: number;
53
- currentItemStrokeColor: string;
54
- currentItemBackgroundColor: string;
55
- currentItemFillStyle: import("../element/types").FillStyle;
56
- currentItemStrokeWidth: number;
57
- currentItemStrokeStyle: import("../element/types").StrokeStyle;
58
- currentItemRoughness: number;
59
- currentItemOpacity: number;
60
- currentItemFontFamily: number;
61
- currentItemFontSize: number;
62
- currentItemTextAlign: string;
63
- currentItemStartArrowhead: import("../element/types").Arrowhead | null;
64
- currentItemEndArrowhead: import("../element/types").Arrowhead | null;
65
- currentHoveredFontFamily: number | null;
66
- currentItemRoundness: import("../element/types").StrokeRoundness;
67
- currentItemArrowType: "round" | "sharp" | "elbow";
68
- viewBackgroundColor: string;
69
- scrollX: number;
70
- scrollY: number;
71
- cursorButton: "up" | "down";
72
- scrolledOutside: boolean;
73
- name: string | null;
74
- isResizing: boolean;
75
- isRotating: boolean;
76
- zoom: Readonly<{
77
- value: import("../types").NormalizedZoomValue;
78
- }>;
79
- openMenu: "canvas" | "shape" | null;
80
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
81
- openSidebar: {
82
- name: string;
83
- tab?: string | undefined;
84
- } | null;
85
- openDialog: {
86
- name: "imageExport" | "help" | "jsonExport";
87
- } | {
88
- name: "ttd";
89
- tab: "mermaid" | "text-to-diagram";
90
- } | {
91
- name: "commandPalette";
92
- } | null;
93
- defaultSidebarDockedPreference: boolean;
94
- lastPointerDownWith: import("../element/types").PointerType;
95
- previousSelectedElementIds: {
96
- [id: string]: true;
97
- };
98
- selectedElementsAreBeingDragged: boolean;
99
- shouldCacheIgnoreZoom: boolean;
100
- toast: {
101
- message: string;
102
- closable?: boolean | undefined;
103
- duration?: number | undefined;
104
- } | null;
105
- zenModeEnabled: boolean;
106
- theme: import("../element/types").Theme;
107
- gridSize: number;
108
- gridStep: number;
109
- gridModeEnabled: boolean;
110
- viewModeEnabled: boolean;
111
- selectedGroupIds: {
112
- [groupId: string]: boolean;
113
- };
114
- editingGroupId: string | null;
115
- width: number;
116
- height: number;
117
- offsetTop: number;
118
- offsetLeft: number;
119
- fileHandle: import("browser-fs-access").FileSystemHandle | null;
120
- collaborators: Map<import("../types").SocketId, Readonly<{
121
- pointer?: import("../types").CollaboratorPointer | undefined;
122
- button?: "up" | "down" | undefined;
123
- selectedElementIds?: Readonly<{
124
- [id: string]: true;
125
- }> | undefined;
126
- username?: string | null | undefined;
127
- userState?: import("../types").UserIdleState | undefined;
128
- color?: {
129
- background: string;
130
- stroke: string;
131
- } | undefined;
132
- avatarUrl?: string | undefined;
133
- id?: string | undefined;
134
- socketId?: import("../types").SocketId | undefined;
135
- isCurrentUser?: boolean | undefined;
136
- isInCall?: boolean | undefined;
137
- isSpeaking?: boolean | undefined;
138
- isMuted?: boolean | undefined;
139
- }>>;
140
- stats: {
141
- open: boolean;
142
- panels: number;
143
- };
144
- currentChartType: import("../element/types").ChartType;
145
- pasteDialog: {
146
- shown: false;
147
- data: null;
148
- } | {
149
- shown: true;
150
- data: import("../charts").Spreadsheet;
151
- };
152
- pendingImageElementId: string | null;
153
- showHyperlinkPopup: false | "info" | "editor";
154
- linkOpacity: number;
155
- trayModeEnabled: boolean;
156
- colorPalette?: {
157
- canvasBackground: import("../colors").ColorPaletteCustom;
158
- elementBackground: import("../colors").ColorPaletteCustom;
159
- elementStroke: import("../colors").ColorPaletteCustom;
160
- topPicks: {
161
- canvasBackground: [string, string, string, string, string];
162
- elementStroke: [string, string, string, string, string];
163
- elementBackground: [string, string, string, string, string];
164
- };
165
- } | undefined;
166
- allowWheelZoom?: boolean | undefined;
167
- allowPinchZoom?: boolean | undefined;
168
- pinnedScripts?: string[] | undefined;
169
- customPens?: any[] | undefined;
170
- currentStrokeOptions?: any;
171
- resetCustomPen?: any;
172
- gridColor: {
173
- Bold: string;
174
- Regular: string;
175
- };
176
- highlightSearchResult: boolean;
177
- dynamicStyle: {
178
- [x: string]: string;
179
- };
180
- frameColor: {
181
- stroke: string;
182
- fill: string;
183
- nameColor: string;
184
- };
185
- invertBindingBehaviour: boolean;
186
- selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
187
- snapLines: readonly import("../snapping").SnapLine[];
188
- originSnapOffset: {
189
- x: number;
190
- y: number;
191
- } | null;
192
- objectsSnapModeEnabled: boolean;
193
- userToFollow: import("../types").UserToFollow | null;
194
- followedBy: Set<import("../types").SocketId>;
195
- searchMatches: readonly {
196
- id: string;
197
- focus: boolean;
198
- matchedLines: {
199
- offsetX: number;
200
- offsetY: number;
201
- width: number;
202
- height: number;
203
- }[];
204
- }[];
205
- };
206
- storeAction: "capture";
207
- } | {
208
- elements: readonly import("../element/types").OrderedExcalidrawElement[];
209
- appState: Readonly<AppState>;
210
- storeAction: "none";
211
- };
212
- predicate: (elements: readonly ExcalidrawElement[], appState: AppState, _: import("../types").ExcalidrawProps, app: AppClassProperties) => boolean;
213
- } & {
214
- keyTest?: undefined;
215
- };
216
- export declare const actionRemoveAllElementsFromFrame: {
217
- name: "removeAllElementsFromFrame";
218
- label: string;
219
- trackEvent: {
220
- category: "history";
221
- };
222
- perform: (elements: readonly import("../element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: any, app: AppClassProperties) => {
223
- elements: readonly import("../element/types").OrderedExcalidrawElement[];
224
- appState: {
225
- selectedElementIds: {
226
- [x: string]: true;
227
- };
228
- contextMenu: {
229
- items: import("../components/ContextMenu").ContextMenuItems;
230
- top: number;
231
- left: number;
232
- } | null;
233
- showWelcomeScreen: boolean;
234
- isLoading: boolean;
235
- errorMessage: import("react").ReactNode;
236
- activeEmbeddable: {
237
- element: import("../element/types").NonDeletedExcalidrawElement;
238
- state: "active" | "hover";
239
- } | null;
240
- newElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawNonSelectionElement> | null;
241
- resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
242
- multiElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawLinearElement> | null;
243
- selectionElement: import("../element/types").NonDeletedExcalidrawElement | null;
244
- isBindingEnabled: boolean;
245
- startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
246
- suggestedBindings: import("../element/binding").SuggestedBinding[];
247
- frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameLikeElement> | null;
248
- frameRendering: {
249
- enabled: boolean;
250
- name: boolean;
251
- outline: boolean;
252
- clip: boolean;
253
- };
254
- editingFrame: string | null;
255
- elementsToHighlight: import("../element/types").NonDeleted<ExcalidrawElement>[] | null;
256
- editingTextElement: import("../element/types").NonDeletedExcalidrawElement | null;
257
- editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
258
- activeTool: {
259
- lastActiveTool: import("../types").ActiveTool | null;
260
- locked: boolean;
261
- } & import("../types").ActiveTool;
262
- penMode: boolean;
263
- penDetected: boolean;
264
- exportBackground: boolean;
265
- exportEmbedScene: boolean;
266
- exportWithDarkMode: boolean;
267
- exportScale: number;
268
- currentItemStrokeColor: string;
269
- currentItemBackgroundColor: string;
270
- currentItemFillStyle: import("../element/types").FillStyle;
271
- currentItemStrokeWidth: number;
272
- currentItemStrokeStyle: import("../element/types").StrokeStyle;
273
- currentItemRoughness: number;
274
- currentItemOpacity: number;
275
- currentItemFontFamily: number;
276
- currentItemFontSize: number;
277
- currentItemTextAlign: string;
278
- currentItemStartArrowhead: import("../element/types").Arrowhead | null;
279
- currentItemEndArrowhead: import("../element/types").Arrowhead | null;
280
- currentHoveredFontFamily: number | null;
281
- currentItemRoundness: import("../element/types").StrokeRoundness;
282
- currentItemArrowType: "round" | "sharp" | "elbow";
283
- viewBackgroundColor: string;
284
- scrollX: number;
285
- scrollY: number;
286
- cursorButton: "up" | "down";
287
- scrolledOutside: boolean;
288
- name: string | null;
289
- isResizing: boolean;
290
- isRotating: boolean;
291
- zoom: Readonly<{
292
- value: import("../types").NormalizedZoomValue;
293
- }>;
294
- openMenu: "canvas" | "shape" | null;
295
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
296
- openSidebar: {
297
- name: string;
298
- tab?: string | undefined;
299
- } | null;
300
- openDialog: {
301
- name: "imageExport" | "help" | "jsonExport";
302
- } | {
303
- name: "ttd";
304
- tab: "mermaid" | "text-to-diagram";
305
- } | {
306
- name: "commandPalette";
307
- } | null;
308
- defaultSidebarDockedPreference: boolean;
309
- lastPointerDownWith: import("../element/types").PointerType;
310
- previousSelectedElementIds: {
311
- [id: string]: true;
312
- };
313
- selectedElementsAreBeingDragged: boolean;
314
- shouldCacheIgnoreZoom: boolean;
315
- toast: {
316
- message: string;
317
- closable?: boolean | undefined;
318
- duration?: number | undefined;
319
- } | null;
320
- zenModeEnabled: boolean;
321
- theme: import("../element/types").Theme;
322
- gridSize: number;
323
- gridStep: number;
324
- gridModeEnabled: boolean;
325
- viewModeEnabled: boolean;
326
- selectedGroupIds: {
327
- [groupId: string]: boolean;
328
- };
329
- editingGroupId: string | null;
330
- width: number;
331
- height: number;
332
- offsetTop: number;
333
- offsetLeft: number;
334
- fileHandle: import("browser-fs-access").FileSystemHandle | null;
335
- collaborators: Map<import("../types").SocketId, Readonly<{
336
- pointer?: import("../types").CollaboratorPointer | undefined;
337
- button?: "up" | "down" | undefined;
338
- selectedElementIds?: Readonly<{
339
- [id: string]: true;
340
- }> | undefined;
341
- username?: string | null | undefined;
342
- userState?: import("../types").UserIdleState | undefined;
343
- color?: {
344
- background: string;
345
- stroke: string;
346
- } | undefined;
347
- avatarUrl?: string | undefined;
348
- id?: string | undefined;
349
- socketId?: import("../types").SocketId | undefined;
350
- isCurrentUser?: boolean | undefined;
351
- isInCall?: boolean | undefined;
352
- isSpeaking?: boolean | undefined;
353
- isMuted?: boolean | undefined;
354
- }>>;
355
- stats: {
356
- open: boolean;
357
- panels: number;
358
- };
359
- currentChartType: import("../element/types").ChartType;
360
- pasteDialog: {
361
- shown: false;
362
- data: null;
363
- } | {
364
- shown: true;
365
- data: import("../charts").Spreadsheet;
366
- };
367
- pendingImageElementId: string | null;
368
- showHyperlinkPopup: false | "info" | "editor";
369
- linkOpacity: number;
370
- trayModeEnabled: boolean;
371
- colorPalette?: {
372
- canvasBackground: import("../colors").ColorPaletteCustom;
373
- elementBackground: import("../colors").ColorPaletteCustom;
374
- elementStroke: import("../colors").ColorPaletteCustom;
375
- topPicks: {
376
- canvasBackground: [string, string, string, string, string];
377
- elementStroke: [string, string, string, string, string];
378
- elementBackground: [string, string, string, string, string];
379
- };
380
- } | undefined;
381
- allowWheelZoom?: boolean | undefined;
382
- allowPinchZoom?: boolean | undefined;
383
- pinnedScripts?: string[] | undefined;
384
- customPens?: any[] | undefined;
385
- currentStrokeOptions?: any;
386
- resetCustomPen?: any;
387
- gridColor: {
388
- Bold: string;
389
- Regular: string;
390
- };
391
- highlightSearchResult: boolean;
392
- dynamicStyle: {
393
- [x: string]: string;
394
- };
395
- frameColor: {
396
- stroke: string;
397
- fill: string;
398
- nameColor: string;
399
- };
400
- invertBindingBehaviour: boolean;
401
- selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
402
- snapLines: readonly import("../snapping").SnapLine[];
403
- originSnapOffset: {
404
- x: number;
405
- y: number;
406
- } | null;
407
- objectsSnapModeEnabled: boolean;
408
- userToFollow: import("../types").UserToFollow | null;
409
- followedBy: Set<import("../types").SocketId>;
410
- searchMatches: readonly {
411
- id: string;
412
- focus: boolean;
413
- matchedLines: {
414
- offsetX: number;
415
- offsetY: number;
416
- width: number;
417
- height: number;
418
- }[];
419
- }[];
420
- };
421
- storeAction: "capture";
422
- } | {
423
- elements: readonly import("../element/types").OrderedExcalidrawElement[];
424
- appState: Readonly<AppState>;
425
- storeAction: "none";
426
- };
427
- predicate: (elements: readonly ExcalidrawElement[], appState: AppState, _: import("../types").ExcalidrawProps, app: AppClassProperties) => boolean;
428
- } & {
429
- keyTest?: undefined;
430
- };
431
- export declare const actionupdateFrameRendering: {
432
- name: "updateFrameRendering";
433
- label: string;
434
- viewMode: true;
435
- trackEvent: {
436
- category: "canvas";
437
- };
438
- perform: (elements: readonly import("../element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>) => {
439
- elements: readonly import("../element/types").OrderedExcalidrawElement[];
440
- appState: {
441
- frameRendering: {
442
- enabled: boolean;
443
- name: boolean;
444
- outline: boolean;
445
- clip: boolean;
446
- };
447
- contextMenu: {
448
- items: import("../components/ContextMenu").ContextMenuItems;
449
- top: number;
450
- left: number;
451
- } | null;
452
- showWelcomeScreen: boolean;
453
- isLoading: boolean;
454
- errorMessage: import("react").ReactNode;
455
- activeEmbeddable: {
456
- element: import("../element/types").NonDeletedExcalidrawElement;
457
- state: "active" | "hover";
458
- } | null;
459
- newElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawNonSelectionElement> | null;
460
- resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
461
- multiElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawLinearElement> | null;
462
- selectionElement: import("../element/types").NonDeletedExcalidrawElement | null;
463
- isBindingEnabled: boolean;
464
- startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
465
- suggestedBindings: import("../element/binding").SuggestedBinding[];
466
- frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameLikeElement> | null;
467
- editingFrame: string | null;
468
- elementsToHighlight: import("../element/types").NonDeleted<ExcalidrawElement>[] | null;
469
- editingTextElement: import("../element/types").NonDeletedExcalidrawElement | null;
470
- editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
471
- activeTool: {
472
- lastActiveTool: import("../types").ActiveTool | null;
473
- locked: boolean;
474
- } & import("../types").ActiveTool;
475
- penMode: boolean;
476
- penDetected: boolean;
477
- exportBackground: boolean;
478
- exportEmbedScene: boolean;
479
- exportWithDarkMode: boolean;
480
- exportScale: number;
481
- currentItemStrokeColor: string;
482
- currentItemBackgroundColor: string;
483
- currentItemFillStyle: import("../element/types").FillStyle;
484
- currentItemStrokeWidth: number;
485
- currentItemStrokeStyle: import("../element/types").StrokeStyle;
486
- currentItemRoughness: number;
487
- currentItemOpacity: number;
488
- currentItemFontFamily: number;
489
- currentItemFontSize: number;
490
- currentItemTextAlign: string;
491
- currentItemStartArrowhead: import("../element/types").Arrowhead | null;
492
- currentItemEndArrowhead: import("../element/types").Arrowhead | null;
493
- currentHoveredFontFamily: number | null;
494
- currentItemRoundness: import("../element/types").StrokeRoundness;
495
- currentItemArrowType: "round" | "sharp" | "elbow";
496
- viewBackgroundColor: string;
497
- scrollX: number;
498
- scrollY: number;
499
- cursorButton: "up" | "down";
500
- scrolledOutside: boolean;
501
- name: string | null;
502
- isResizing: boolean;
503
- isRotating: boolean;
504
- zoom: Readonly<{
505
- value: import("../types").NormalizedZoomValue;
506
- }>;
507
- openMenu: "canvas" | "shape" | null;
508
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
509
- openSidebar: {
510
- name: string;
511
- tab?: string | undefined;
512
- } | null;
513
- openDialog: {
514
- name: "imageExport" | "help" | "jsonExport";
515
- } | {
516
- name: "ttd";
517
- tab: "mermaid" | "text-to-diagram";
518
- } | {
519
- name: "commandPalette";
520
- } | null;
521
- defaultSidebarDockedPreference: boolean;
522
- lastPointerDownWith: import("../element/types").PointerType;
523
- selectedElementIds: Readonly<{
524
- [id: string]: true;
525
- }>;
526
- previousSelectedElementIds: {
527
- [id: string]: true;
528
- };
529
- selectedElementsAreBeingDragged: boolean;
530
- shouldCacheIgnoreZoom: boolean;
531
- toast: {
532
- message: string;
533
- closable?: boolean | undefined;
534
- duration?: number | undefined;
535
- } | null;
536
- zenModeEnabled: boolean;
537
- theme: import("../element/types").Theme;
538
- gridSize: number;
539
- gridStep: number;
540
- gridModeEnabled: boolean;
541
- viewModeEnabled: boolean;
542
- selectedGroupIds: {
543
- [groupId: string]: boolean;
544
- };
545
- editingGroupId: string | null;
546
- width: number;
547
- height: number;
548
- offsetTop: number;
549
- offsetLeft: number;
550
- fileHandle: import("browser-fs-access").FileSystemHandle | null;
551
- collaborators: Map<import("../types").SocketId, Readonly<{
552
- pointer?: import("../types").CollaboratorPointer | undefined;
553
- button?: "up" | "down" | undefined;
554
- selectedElementIds?: Readonly<{
555
- [id: string]: true;
556
- }> | undefined;
557
- username?: string | null | undefined;
558
- userState?: import("../types").UserIdleState | undefined;
559
- color?: {
560
- background: string;
561
- stroke: string;
562
- } | undefined;
563
- avatarUrl?: string | undefined;
564
- id?: string | undefined;
565
- socketId?: import("../types").SocketId | undefined;
566
- isCurrentUser?: boolean | undefined;
567
- isInCall?: boolean | undefined;
568
- isSpeaking?: boolean | undefined;
569
- isMuted?: boolean | undefined;
570
- }>>;
571
- stats: {
572
- open: boolean;
573
- panels: number;
574
- };
575
- currentChartType: import("../element/types").ChartType;
576
- pasteDialog: {
577
- shown: false;
578
- data: null;
579
- } | {
580
- shown: true;
581
- data: import("../charts").Spreadsheet;
582
- };
583
- pendingImageElementId: string | null;
584
- showHyperlinkPopup: false | "info" | "editor";
585
- linkOpacity: number;
586
- trayModeEnabled: boolean;
587
- colorPalette?: {
588
- canvasBackground: import("../colors").ColorPaletteCustom;
589
- elementBackground: import("../colors").ColorPaletteCustom;
590
- elementStroke: import("../colors").ColorPaletteCustom;
591
- topPicks: {
592
- canvasBackground: [string, string, string, string, string];
593
- elementStroke: [string, string, string, string, string];
594
- elementBackground: [string, string, string, string, string];
595
- };
596
- } | undefined;
597
- allowWheelZoom?: boolean | undefined;
598
- allowPinchZoom?: boolean | undefined;
599
- pinnedScripts?: string[] | undefined;
600
- customPens?: any[] | undefined;
601
- currentStrokeOptions?: any;
602
- resetCustomPen?: any;
603
- gridColor: {
604
- Bold: string;
605
- Regular: string;
606
- };
607
- highlightSearchResult: boolean;
608
- dynamicStyle: {
609
- [x: string]: string;
610
- };
611
- frameColor: {
612
- stroke: string;
613
- fill: string;
614
- nameColor: string;
615
- };
616
- invertBindingBehaviour: boolean;
617
- selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
618
- snapLines: readonly import("../snapping").SnapLine[];
619
- originSnapOffset: {
620
- x: number;
621
- y: number;
622
- } | null;
623
- objectsSnapModeEnabled: boolean;
624
- userToFollow: import("../types").UserToFollow | null;
625
- followedBy: Set<import("../types").SocketId>;
626
- searchMatches: readonly {
627
- id: string;
628
- focus: boolean;
629
- matchedLines: {
630
- offsetX: number;
631
- offsetY: number;
632
- width: number;
633
- height: number;
634
- }[];
635
- }[];
636
- };
637
- storeAction: "none";
638
- };
639
- checked: (appState: AppState) => boolean;
640
- } & {
641
- keyTest?: undefined;
642
- };
643
- export declare const actionSetFrameAsActiveTool: {
644
- name: "setFrameAsActiveTool";
645
- label: string;
646
- trackEvent: {
647
- category: "toolbar";
648
- };
649
- icon: JSX.Element;
650
- viewMode: false;
651
- perform: (elements: readonly import("../element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: any, app: AppClassProperties) => {
652
- elements: readonly import("../element/types").OrderedExcalidrawElement[];
653
- appState: {
654
- activeTool: {
655
- lastActiveTool: import("../types").ActiveTool | null;
656
- locked: boolean;
657
- } & import("../types").ActiveTool;
658
- contextMenu: {
659
- items: import("../components/ContextMenu").ContextMenuItems;
660
- top: number;
661
- left: number;
662
- } | null;
663
- showWelcomeScreen: boolean;
664
- isLoading: boolean;
665
- errorMessage: import("react").ReactNode;
666
- activeEmbeddable: {
667
- element: import("../element/types").NonDeletedExcalidrawElement;
668
- state: "active" | "hover";
669
- } | null;
670
- newElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawNonSelectionElement> | null;
671
- resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
672
- multiElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawLinearElement> | null;
673
- selectionElement: import("../element/types").NonDeletedExcalidrawElement | null;
674
- isBindingEnabled: boolean;
675
- startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
676
- suggestedBindings: import("../element/binding").SuggestedBinding[];
677
- frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameLikeElement> | null;
678
- frameRendering: {
679
- enabled: boolean;
680
- name: boolean;
681
- outline: boolean;
682
- clip: boolean;
683
- };
684
- editingFrame: string | null;
685
- elementsToHighlight: import("../element/types").NonDeleted<ExcalidrawElement>[] | null;
686
- editingTextElement: import("../element/types").NonDeletedExcalidrawElement | null;
687
- editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
688
- penMode: boolean;
689
- penDetected: boolean;
690
- exportBackground: boolean;
691
- exportEmbedScene: boolean;
692
- exportWithDarkMode: boolean;
693
- exportScale: number;
694
- currentItemStrokeColor: string;
695
- currentItemBackgroundColor: string;
696
- currentItemFillStyle: import("../element/types").FillStyle;
697
- currentItemStrokeWidth: number;
698
- currentItemStrokeStyle: import("../element/types").StrokeStyle;
699
- currentItemRoughness: number;
700
- currentItemOpacity: number;
701
- currentItemFontFamily: number;
702
- currentItemFontSize: number;
703
- currentItemTextAlign: string;
704
- currentItemStartArrowhead: import("../element/types").Arrowhead | null;
705
- currentItemEndArrowhead: import("../element/types").Arrowhead | null;
706
- currentHoveredFontFamily: number | null;
707
- currentItemRoundness: import("../element/types").StrokeRoundness;
708
- currentItemArrowType: "round" | "sharp" | "elbow";
709
- viewBackgroundColor: string;
710
- scrollX: number;
711
- scrollY: number;
712
- cursorButton: "up" | "down";
713
- scrolledOutside: boolean;
714
- name: string | null;
715
- isResizing: boolean;
716
- isRotating: boolean;
717
- zoom: Readonly<{
718
- value: import("../types").NormalizedZoomValue;
719
- }>;
720
- openMenu: "canvas" | "shape" | null;
721
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
722
- openSidebar: {
723
- name: string;
724
- tab?: string | undefined;
725
- } | null;
726
- openDialog: {
727
- name: "imageExport" | "help" | "jsonExport";
728
- } | {
729
- name: "ttd";
730
- tab: "mermaid" | "text-to-diagram";
731
- } | {
732
- name: "commandPalette";
733
- } | null;
734
- defaultSidebarDockedPreference: boolean;
735
- lastPointerDownWith: import("../element/types").PointerType;
736
- selectedElementIds: Readonly<{
737
- [id: string]: true;
738
- }>;
739
- previousSelectedElementIds: {
740
- [id: string]: true;
741
- };
742
- selectedElementsAreBeingDragged: boolean;
743
- shouldCacheIgnoreZoom: boolean;
744
- toast: {
745
- message: string;
746
- closable?: boolean | undefined;
747
- duration?: number | undefined;
748
- } | null;
749
- zenModeEnabled: boolean;
750
- theme: import("../element/types").Theme;
751
- gridSize: number;
752
- gridStep: number;
753
- gridModeEnabled: boolean;
754
- viewModeEnabled: boolean;
755
- selectedGroupIds: {
756
- [groupId: string]: boolean;
757
- };
758
- editingGroupId: string | null;
759
- width: number;
760
- height: number;
761
- offsetTop: number;
762
- offsetLeft: number;
763
- fileHandle: import("browser-fs-access").FileSystemHandle | null;
764
- collaborators: Map<import("../types").SocketId, Readonly<{
765
- pointer?: import("../types").CollaboratorPointer | undefined;
766
- button?: "up" | "down" | undefined;
767
- selectedElementIds?: Readonly<{
768
- [id: string]: true;
769
- }> | undefined;
770
- username?: string | null | undefined;
771
- userState?: import("../types").UserIdleState | undefined;
772
- color?: {
773
- background: string;
774
- stroke: string;
775
- } | undefined;
776
- avatarUrl?: string | undefined;
777
- id?: string | undefined;
778
- socketId?: import("../types").SocketId | undefined;
779
- isCurrentUser?: boolean | undefined;
780
- isInCall?: boolean | undefined;
781
- isSpeaking?: boolean | undefined;
782
- isMuted?: boolean | undefined;
783
- }>>;
784
- stats: {
785
- open: boolean;
786
- panels: number;
787
- };
788
- currentChartType: import("../element/types").ChartType;
789
- pasteDialog: {
790
- shown: false;
791
- data: null;
792
- } | {
793
- shown: true;
794
- data: import("../charts").Spreadsheet;
795
- };
796
- pendingImageElementId: string | null;
797
- showHyperlinkPopup: false | "info" | "editor";
798
- linkOpacity: number;
799
- trayModeEnabled: boolean;
800
- colorPalette?: {
801
- canvasBackground: import("../colors").ColorPaletteCustom;
802
- elementBackground: import("../colors").ColorPaletteCustom;
803
- elementStroke: import("../colors").ColorPaletteCustom;
804
- topPicks: {
805
- canvasBackground: [string, string, string, string, string];
806
- elementStroke: [string, string, string, string, string];
807
- elementBackground: [string, string, string, string, string];
808
- };
809
- } | undefined;
810
- allowWheelZoom?: boolean | undefined;
811
- allowPinchZoom?: boolean | undefined;
812
- pinnedScripts?: string[] | undefined;
813
- customPens?: any[] | undefined;
814
- currentStrokeOptions?: any;
815
- resetCustomPen?: any;
816
- gridColor: {
817
- Bold: string;
818
- Regular: string;
819
- };
820
- highlightSearchResult: boolean;
821
- dynamicStyle: {
822
- [x: string]: string;
823
- };
824
- frameColor: {
825
- stroke: string;
826
- fill: string;
827
- nameColor: string;
828
- };
829
- invertBindingBehaviour: boolean;
830
- selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
831
- snapLines: readonly import("../snapping").SnapLine[];
832
- originSnapOffset: {
833
- x: number;
834
- y: number;
835
- } | null;
836
- objectsSnapModeEnabled: boolean;
837
- userToFollow: import("../types").UserToFollow | null;
838
- followedBy: Set<import("../types").SocketId>;
839
- searchMatches: readonly {
840
- id: string;
841
- focus: boolean;
842
- matchedLines: {
843
- offsetX: number;
844
- offsetY: number;
845
- width: number;
846
- height: number;
847
- }[];
848
- }[];
849
- };
850
- storeAction: "none";
851
- };
852
- keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
853
- } & {
854
- keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
855
- };