@excalidraw/math 0.18.0-d1f3982 → 0.18.0-d9e8a33

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 (254) hide show
  1. package/dist/dev/index.js +40 -10
  2. package/dist/dev/index.js.map +2 -2
  3. package/dist/prod/index.js +1 -1
  4. package/dist/types/common/debug.d.ts +21 -0
  5. package/dist/types/common/src/appEventBus.d.ts +27 -0
  6. package/dist/types/common/src/bounds.d.ts +10 -0
  7. package/dist/types/common/src/colors.d.ts +59 -39
  8. package/dist/types/common/src/constants.d.ts +19 -11
  9. package/dist/types/common/src/editorInterface.d.ts +1 -1
  10. package/dist/types/common/src/font-metadata.d.ts +1 -3
  11. package/dist/types/common/src/index.d.ts +4 -0
  12. package/dist/types/common/src/keys.d.ts +1 -1
  13. package/dist/types/common/src/utility-types.d.ts +0 -1
  14. package/dist/types/common/src/utils.d.ts +51 -40
  15. package/dist/types/common/src/versionedSnapshotStore.d.ts +17 -0
  16. package/dist/types/element/src/Scene.d.ts +5 -3
  17. package/dist/types/element/src/arrowheads.d.ts +3 -0
  18. package/dist/types/element/src/arrows/focus.d.ts +27 -0
  19. package/dist/types/element/src/arrows/helpers.d.ts +5 -0
  20. package/dist/types/element/src/binding.d.ts +67 -48
  21. package/dist/types/element/src/bounds.d.ts +7 -13
  22. package/dist/types/element/src/collision.d.ts +7 -2
  23. package/dist/types/element/src/comparisons.d.ts +7 -7
  24. package/dist/types/element/src/distribute.d.ts +2 -1
  25. package/dist/types/element/src/dragElements.d.ts +3 -3
  26. package/dist/types/element/src/duplicate.d.ts +3 -3
  27. package/dist/types/element/src/elbowArrow.d.ts +2 -0
  28. package/dist/types/element/src/fractionalIndex.d.ts +2 -2
  29. package/dist/types/element/src/frame.d.ts +6 -2
  30. package/dist/types/element/src/heading.d.ts +2 -1
  31. package/dist/types/element/src/image.d.ts +1 -11
  32. package/dist/types/element/src/index.d.ts +4 -3
  33. package/dist/types/element/src/linearElementEditor.d.ts +23 -22
  34. package/dist/types/element/src/mutateElement.d.ts +5 -1
  35. package/dist/types/element/src/newElement.d.ts +6 -6
  36. package/dist/types/element/src/renderElement.d.ts +1 -7
  37. package/dist/types/element/src/resizeElements.d.ts +10 -10
  38. package/dist/types/element/src/resizeTest.d.ts +1 -1
  39. package/dist/types/element/src/selection.d.ts +10 -10
  40. package/dist/types/element/src/shape.d.ts +9 -8
  41. package/dist/types/element/src/textElement.d.ts +1 -1
  42. package/dist/types/element/src/textMeasurements.d.ts +1 -3
  43. package/dist/types/element/src/textWrapping.d.ts +26 -0
  44. package/dist/types/{excalidraw/data → element/src}/transform.d.ts +3 -3
  45. package/dist/types/element/src/transformHandles.d.ts +3 -23
  46. package/dist/types/element/src/typeChecks.d.ts +4 -7
  47. package/dist/types/element/src/types.d.ts +12 -13
  48. package/dist/types/element/src/utils.d.ts +9 -4
  49. package/dist/types/element/src/zindex.d.ts +7 -1
  50. package/dist/types/excalidraw/actions/actionAddToLibrary.d.ts +152 -201
  51. package/dist/types/excalidraw/actions/actionAlign.d.ts +6 -7
  52. package/dist/types/excalidraw/actions/actionBoundText.d.ts +82 -115
  53. package/dist/types/excalidraw/actions/actionCanvas.d.ts +484 -869
  54. package/dist/types/excalidraw/actions/actionClipboard.d.ts +113 -903
  55. package/dist/types/excalidraw/actions/actionCropEditor.d.ts +39 -56
  56. package/dist/types/excalidraw/actions/actionDeleteSelected.d.ts +129 -182
  57. package/dist/types/excalidraw/actions/actionDeselect.d.ts +160 -0
  58. package/dist/types/excalidraw/actions/actionDistribute.d.ts +2 -3
  59. package/dist/types/excalidraw/actions/actionDuplicateSelection.d.ts +2 -3
  60. package/dist/types/excalidraw/actions/actionElementLink.d.ts +48 -71
  61. package/dist/types/excalidraw/actions/actionElementLock.d.ts +80 -113
  62. package/dist/types/excalidraw/actions/actionEmbeddable.d.ts +54 -71
  63. package/dist/types/excalidraw/actions/actionExport.d.ts +161 -1427
  64. package/dist/types/excalidraw/actions/actionFinalize.d.ts +10 -402
  65. package/dist/types/excalidraw/actions/actionFlip.d.ts +2 -3
  66. package/dist/types/excalidraw/actions/actionFrame.d.ts +241 -344
  67. package/dist/types/excalidraw/actions/actionGroup.d.ts +85 -126
  68. package/dist/types/excalidraw/actions/actionLinearEditor.d.ts +131 -186
  69. package/dist/types/excalidraw/actions/actionLink.d.ts +56 -73
  70. package/dist/types/excalidraw/actions/actionMenu.d.ts +42 -65
  71. package/dist/types/excalidraw/actions/actionNavigate.d.ts +18 -367
  72. package/dist/types/excalidraw/actions/actionProperties.d.ts +142 -2566
  73. package/dist/types/excalidraw/actions/actionSelectAll.d.ts +42 -63
  74. package/dist/types/excalidraw/actions/actionStyles.d.ts +39 -55
  75. package/dist/types/excalidraw/actions/actionTextAutoResize.d.ts +4 -4
  76. package/dist/types/excalidraw/actions/actionToggleArrowBinding.d.ts +173 -0
  77. package/dist/types/excalidraw/actions/actionToggleGridMode.d.ts +54 -71
  78. package/dist/types/excalidraw/actions/actionToggleMidpointSnapping.d.ts +173 -0
  79. package/dist/types/excalidraw/actions/actionToggleObjectsSnapMode.d.ts +54 -71
  80. package/dist/types/excalidraw/actions/actionToggleSearchMenu.d.ts +42 -65
  81. package/dist/types/excalidraw/actions/actionToggleShapeSwitch.d.ts +1 -1
  82. package/dist/types/excalidraw/actions/actionToggleStats.d.ts +53 -70
  83. package/dist/types/excalidraw/actions/actionToggleViewMode.d.ts +54 -71
  84. package/dist/types/excalidraw/actions/actionToggleZenMode.d.ts +54 -71
  85. package/dist/types/excalidraw/actions/actionZindex.d.ts +8 -9
  86. package/dist/types/excalidraw/actions/index.d.ts +3 -0
  87. package/dist/types/excalidraw/actions/register.d.ts +2 -2
  88. package/dist/types/excalidraw/actions/shortcuts.d.ts +1 -1
  89. package/dist/types/excalidraw/actions/types.d.ts +4 -4
  90. package/dist/types/excalidraw/appState.d.ts +24 -20
  91. package/dist/types/excalidraw/charts/charts.bar.d.ts +2 -0
  92. package/dist/types/excalidraw/charts/charts.constants.d.ts +48 -0
  93. package/dist/types/excalidraw/charts/charts.helpers.d.ts +32 -0
  94. package/dist/types/excalidraw/charts/charts.line.d.ts +2 -0
  95. package/dist/types/excalidraw/charts/charts.parse.d.ts +10 -0
  96. package/dist/types/excalidraw/charts/charts.radar.d.ts +2 -0
  97. package/dist/types/excalidraw/charts/charts.types.d.ts +18 -0
  98. package/dist/types/excalidraw/charts/index.d.ts +7 -0
  99. package/dist/types/excalidraw/clipboard.d.ts +13 -38
  100. package/dist/types/excalidraw/components/Actions.d.ts +5 -2
  101. package/dist/types/excalidraw/components/App.d.ts +93 -56
  102. package/dist/types/excalidraw/components/AppStateObserver.d.ts +37 -0
  103. package/dist/types/excalidraw/components/Card.d.ts +1 -3
  104. package/dist/types/excalidraw/components/ColorPicker/ColorInput.d.ts +2 -4
  105. package/dist/types/excalidraw/components/ColorPicker/ColorPicker.d.ts +0 -1
  106. package/dist/types/excalidraw/components/ColorPicker/colorPickerUtils.d.ts +0 -1
  107. package/dist/types/excalidraw/components/ColorPicker/keyboardNavHandlers.d.ts +0 -1
  108. package/dist/types/excalidraw/components/CommandPalette/types.d.ts +2 -4
  109. package/dist/types/excalidraw/components/ConvertElementTypePopup.d.ts +2 -2
  110. package/dist/types/excalidraw/components/DarkModeToggle.d.ts +1 -1
  111. package/dist/types/excalidraw/components/DefaultSidebar.d.ts +9 -13
  112. package/dist/types/excalidraw/components/ElementLinkDialog.d.ts +1 -1
  113. package/dist/types/excalidraw/components/Ellipsify.d.ts +1 -2
  114. package/dist/types/excalidraw/components/ErrorDialog.d.ts +1 -1
  115. package/dist/types/excalidraw/components/EyeDropper.d.ts +0 -1
  116. package/dist/types/excalidraw/components/FilledButton.d.ts +2 -1
  117. package/dist/types/excalidraw/components/FontPicker/keyboardNavHandlers.d.ts +0 -1
  118. package/dist/types/excalidraw/components/HelpDialog.d.ts +1 -1
  119. package/dist/types/excalidraw/components/IconPicker.d.ts +14 -9
  120. package/dist/types/excalidraw/components/InlineIcon.d.ts +2 -2
  121. package/dist/types/excalidraw/components/LibraryMenuControlButtons.d.ts +1 -1
  122. package/dist/types/excalidraw/components/LibraryMenuHeaderContent.d.ts +1 -2
  123. package/dist/types/excalidraw/components/LibraryUnit.d.ts +2 -3
  124. package/dist/types/excalidraw/components/LoadingMessage.d.ts +0 -1
  125. package/dist/types/excalidraw/components/MobileMenu.d.ts +1 -1
  126. package/dist/types/excalidraw/components/MobileToolBar.d.ts +0 -1
  127. package/dist/types/excalidraw/components/Modal.d.ts +0 -1
  128. package/dist/types/excalidraw/components/OverwriteConfirm/OverwriteConfirm.d.ts +1 -1
  129. package/dist/types/excalidraw/components/PasteChartDialog.d.ts +4 -5
  130. package/dist/types/excalidraw/components/PropertiesPopover.d.ts +1 -1
  131. package/dist/types/excalidraw/components/RadioGroup.d.ts +0 -1
  132. package/dist/types/excalidraw/components/RadioSelection.d.ts +4 -4
  133. package/dist/types/excalidraw/components/Range.d.ts +10 -4
  134. package/dist/types/excalidraw/components/ScrollableList.d.ts +0 -1
  135. package/dist/types/excalidraw/components/Sidebar/Sidebar.d.ts +15 -21
  136. package/dist/types/excalidraw/components/Sidebar/SidebarHeader.d.ts +1 -1
  137. package/dist/types/excalidraw/components/Sidebar/SidebarTab.d.ts +1 -2
  138. package/dist/types/excalidraw/components/Sidebar/SidebarTabTrigger.d.ts +1 -2
  139. package/dist/types/excalidraw/components/Sidebar/SidebarTabTriggers.d.ts +1 -2
  140. package/dist/types/excalidraw/components/Sidebar/SidebarTabs.d.ts +1 -2
  141. package/dist/types/excalidraw/components/Spinner.d.ts +4 -4
  142. package/dist/types/excalidraw/components/Stats/CanvasGrid.d.ts +0 -1
  143. package/dist/types/excalidraw/components/Stats/Collapsible.d.ts +0 -1
  144. package/dist/types/excalidraw/components/Stats/DragInput.d.ts +0 -1
  145. package/dist/types/excalidraw/components/Stats/index.d.ts +7 -8
  146. package/dist/types/excalidraw/components/Stats/utils.d.ts +1 -1
  147. package/dist/types/excalidraw/components/TTDDialog/Chat/ChatHistoryMenu.d.ts +15 -0
  148. package/dist/types/excalidraw/components/TTDDialog/Chat/ChatInterface.d.ts +23 -0
  149. package/dist/types/excalidraw/components/TTDDialog/Chat/ChatMessage.d.ts +14 -0
  150. package/dist/types/excalidraw/components/TTDDialog/Chat/TTDChatPanel.d.ts +27 -0
  151. package/dist/types/excalidraw/components/TTDDialog/Chat/index.d.ts +3 -0
  152. package/dist/types/excalidraw/components/TTDDialog/Chat/useChatAgent.d.ts +8 -0
  153. package/dist/types/excalidraw/components/TTDDialog/CodeMirrorEditor.d.ts +11 -0
  154. package/dist/types/excalidraw/components/TTDDialog/MermaidToExcalidraw.d.ts +3 -2
  155. package/dist/types/excalidraw/components/TTDDialog/TTDContext.d.ts +13 -0
  156. package/dist/types/excalidraw/components/TTDDialog/TTDDialog.d.ts +12 -29
  157. package/dist/types/excalidraw/components/TTDDialog/TTDDialogInput.d.ts +3 -3
  158. package/dist/types/excalidraw/components/TTDDialog/TTDDialogOutput.d.ts +5 -2
  159. package/dist/types/excalidraw/components/TTDDialog/TTDDialogPanel.d.ts +13 -9
  160. package/dist/types/excalidraw/components/TTDDialog/TTDDialogTab.d.ts +1 -2
  161. package/dist/types/excalidraw/components/TTDDialog/TTDDialogTabTrigger.d.ts +1 -2
  162. package/dist/types/excalidraw/components/TTDDialog/TTDDialogTabTriggers.d.ts +1 -2
  163. package/dist/types/excalidraw/components/TTDDialog/TTDPreviewPanel.d.ts +9 -0
  164. package/dist/types/excalidraw/components/TTDDialog/TTDWelcomeMessage.d.ts +1 -0
  165. package/dist/types/excalidraw/components/TTDDialog/TextToDiagram.d.ts +9 -0
  166. package/dist/types/excalidraw/components/TTDDialog/common.d.ts +16 -16
  167. package/dist/types/excalidraw/components/TTDDialog/hooks/useChatManagement.d.ts +13 -0
  168. package/dist/types/excalidraw/components/TTDDialog/hooks/useMermaidRenderer.d.ts +14 -0
  169. package/dist/types/excalidraw/components/TTDDialog/hooks/useTextGeneration.d.ts +7 -0
  170. package/dist/types/excalidraw/components/TTDDialog/mermaid-lang-lite.d.ts +2 -0
  171. package/dist/types/excalidraw/components/TTDDialog/types.d.ts +95 -0
  172. package/dist/types/excalidraw/components/TTDDialog/useTTDChatStorage.d.ts +22 -0
  173. package/dist/types/excalidraw/components/TTDDialog/utils/chat.d.ts +10 -0
  174. package/dist/types/excalidraw/components/TTDDialog/utils/mermaidAutoFix.d.ts +1 -0
  175. package/dist/types/excalidraw/components/TTDDialog/utils/mermaidError.d.ts +10 -0
  176. package/dist/types/excalidraw/components/TTDDialog/utils/mermaidValidation.d.ts +1 -0
  177. package/dist/types/excalidraw/components/Toast.d.ts +11 -7
  178. package/dist/types/excalidraw/components/Trans.d.ts +2 -2
  179. package/dist/types/excalidraw/components/canvases/InteractiveCanvas.d.ts +5 -2
  180. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenu.d.ts +48 -38
  181. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuContent.d.ts +7 -6
  182. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuGroup.d.ts +3 -3
  183. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuItem.d.ts +13 -22
  184. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuItemCheckbox.d.ts +5 -0
  185. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuItemContent.d.ts +5 -4
  186. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuItemContentRadio.d.ts +2 -2
  187. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuItemCustom.d.ts +2 -2
  188. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuItemLink.d.ts +6 -6
  189. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuSub.d.ts +23 -0
  190. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuSubContent.d.ts +8 -0
  191. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuSubTrigger.d.ts +12 -0
  192. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuTrigger.d.ts +3 -4
  193. package/dist/types/excalidraw/components/dropdownMenu/common.d.ts +2 -2
  194. package/dist/types/excalidraw/components/dropdownMenu/dropdownMenuUtils.d.ts +2 -0
  195. package/dist/types/excalidraw/components/hoc/withInternalFallback.d.ts +1 -1
  196. package/dist/types/excalidraw/components/hyperlink/helpers.d.ts +1 -1
  197. package/dist/types/excalidraw/components/icons.d.ts +44 -21
  198. package/dist/types/excalidraw/components/main-menu/DefaultItems.d.ts +20 -2
  199. package/dist/types/excalidraw/components/main-menu/MainMenu.d.ts +39 -32
  200. package/dist/types/excalidraw/components/shapes.d.ts +74 -1
  201. package/dist/types/excalidraw/data/blob.d.ts +328 -7
  202. package/dist/types/excalidraw/data/encode.d.ts +4 -4
  203. package/dist/types/excalidraw/data/encryption.d.ts +5 -5
  204. package/dist/types/excalidraw/data/filesystem.d.ts +5 -7
  205. package/dist/types/excalidraw/data/index.d.ts +4 -5
  206. package/dist/types/excalidraw/data/json.d.ts +171 -4
  207. package/dist/types/excalidraw/data/library.d.ts +24 -9
  208. package/dist/types/excalidraw/data/resave.d.ts +7 -2
  209. package/dist/types/excalidraw/data/restore.d.ts +25 -10
  210. package/dist/types/excalidraw/editor-jotai.d.ts +11 -11
  211. package/dist/types/excalidraw/errors.d.ts +14 -0
  212. package/dist/types/excalidraw/hooks/useOutsideClick.d.ts +4 -3
  213. package/dist/types/excalidraw/hooks/useScrollPosition.d.ts +1 -2
  214. package/dist/types/excalidraw/i18n.d.ts +2 -2
  215. package/dist/types/excalidraw/renderer/animation.d.ts +12 -0
  216. package/dist/types/excalidraw/renderer/helpers.d.ts +6 -8
  217. package/dist/types/excalidraw/renderer/interactiveScene.d.ts +8 -14
  218. package/dist/types/excalidraw/scene/Renderer.d.ts +5 -2
  219. package/dist/types/excalidraw/scene/export.d.ts +2 -2
  220. package/dist/types/excalidraw/scene/scroll.d.ts +1 -6
  221. package/dist/types/excalidraw/scene/types.d.ts +19 -2
  222. package/dist/types/excalidraw/snapping.d.ts +5 -5
  223. package/dist/types/excalidraw/subset/harfbuzz/harfbuzz-bindings.d.ts +1 -1
  224. package/dist/types/excalidraw/subset/harfbuzz/harfbuzz-loader.d.ts +1 -1
  225. package/dist/types/excalidraw/subset/harfbuzz/harfbuzz-wasm.d.ts +1 -1
  226. package/dist/types/excalidraw/subset/woff2/woff2-loader.d.ts +2 -2
  227. package/dist/types/excalidraw/subset/woff2/woff2-wasm.d.ts +1 -1
  228. package/dist/types/excalidraw/textAutoResizeHandle.d.ts +15 -0
  229. package/dist/types/excalidraw/types.d.ts +109 -21
  230. package/dist/types/excalidraw/wysiwyg/textWysiwyg.d.ts +7 -3
  231. package/dist/types/math/src/curve.d.ts +4 -1
  232. package/dist/types/math/src/point.d.ts +7 -2
  233. package/dist/types/math/src/polygon.d.ts +2 -2
  234. package/dist/types/math/src/range.d.ts +1 -3
  235. package/dist/types/math/src/segment.d.ts +3 -3
  236. package/dist/types/math/src/types.d.ts +25 -1
  237. package/dist/types/utils/src/bbox.d.ts +1 -1
  238. package/dist/types/utils/src/export.d.ts +5 -5
  239. package/dist/types/utils/src/shape.d.ts +6 -6
  240. package/dist/types/utils/src/withinBounds.d.ts +2 -2
  241. package/package.json +2 -2
  242. package/dist/types/excalidraw/charts.d.ts +0 -27
  243. package/dist/types/excalidraw/components/DiagramToCodePlugin/DiagramToCodePlugin.d.ts +0 -4
  244. package/dist/types/excalidraw/components/ExcalidrawLogo.d.ts +0 -16
  245. package/dist/types/excalidraw/components/InitializeApp.d.ts +0 -10
  246. package/dist/types/excalidraw/components/TTDDialog/TTDDialogTrigger.d.ts +0 -8
  247. package/dist/types/excalidraw/components/footer/FooterCenter.d.ts +0 -8
  248. package/dist/types/excalidraw/components/live-collaboration/LiveCollaborationTrigger.d.ts +0 -22
  249. package/dist/types/excalidraw/components/welcome-screen/WelcomeScreen.Center.d.ts +0 -58
  250. package/dist/types/excalidraw/components/welcome-screen/WelcomeScreen.Hints.d.ts +0 -19
  251. package/dist/types/excalidraw/components/welcome-screen/WelcomeScreen.d.ts +0 -85
  252. package/dist/types/excalidraw/data/reconcile.d.ts +0 -7
  253. package/dist/types/excalidraw/index.d.ts +0 -46
  254. package/dist/types/excalidraw/polyfill.d.ts +0 -2
@@ -1,2269 +1,41 @@
1
- /// <reference types="react" />
2
1
  import { LinearElementEditor } from "@excalidraw/element";
3
- import type { Arrowhead, ExcalidrawBindableElement, ExcalidrawElement, ExcalidrawLinearElement } from "@excalidraw/element/types";
2
+ import type { Arrowhead, ExcalidrawBindableElement, ExcalidrawElement, ExcalidrawLinearElement, ExcalidrawTextElement, FontFamilyValues, TextAlign } from "@excalidraw/element/types";
4
3
  import type { AppClassProperties, AppState, Primitive } from "../types";
5
4
  export declare const changeProperty: (elements: readonly ExcalidrawElement[], appState: AppState, callback: (element: ExcalidrawElement) => ExcalidrawElement, includeBoundText?: boolean) => ExcalidrawElement[];
6
- export declare const getFormValue: <T extends Primitive>(elements: readonly ExcalidrawElement[], app: AppClassProperties, getAttribute: (element: ExcalidrawElement) => T, isRelevantElement: true | ((element: ExcalidrawElement) => boolean), defaultValue: T | ((isSomeElementSelected: boolean) => T)) => T;
7
- export declare const actionChangeStrokeColor: {
8
- name: "changeStrokeColor";
9
- label: string;
10
- trackEvent: false;
11
- perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, value: any) => any;
12
- PanelComponent: ({ elements, appState, updateData, app, data }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
13
- } & {
14
- keyTest?: undefined;
15
- };
16
- export declare const actionChangeBackgroundColor: {
17
- name: "changeBackgroundColor";
18
- label: string;
19
- trackEvent: false;
20
- perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, value: any, app: AppClassProperties) => {
21
- appState: any;
22
- captureUpdate: "EVENTUALLY";
23
- elements?: undefined;
24
- } | {
25
- elements: ExcalidrawElement[];
26
- appState: any;
27
- captureUpdate: "IMMEDIATELY";
28
- };
29
- PanelComponent: ({ elements, appState, updateData, app, data }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
30
- } & {
31
- keyTest?: undefined;
32
- };
33
- export declare const actionChangeFillStyle: {
34
- name: "changeFillStyle";
35
- label: string;
36
- trackEvent: false;
37
- perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, value: any, app: AppClassProperties) => {
38
- elements: ExcalidrawElement[];
39
- appState: {
40
- currentItemFillStyle: any;
41
- contextMenu: {
42
- items: import("../components/ContextMenu").ContextMenuItems;
43
- top: number;
44
- left: number;
45
- } | null;
46
- showWelcomeScreen: boolean;
47
- isLoading: boolean;
48
- errorMessage: import("react").ReactNode;
49
- activeEmbeddable: {
50
- element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
51
- state: "active" | "hover";
52
- } | null;
53
- newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
54
- resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
55
- multiElement: import("@excalidraw/element/types").NonDeleted<ExcalidrawLinearElement> | null;
56
- selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
57
- isBindingEnabled: boolean;
58
- startBoundElement: import("@excalidraw/element/types").NonDeleted<ExcalidrawBindableElement> | null;
59
- suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
60
- frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
61
- frameRendering: {
62
- enabled: boolean;
63
- name: boolean;
64
- outline: boolean;
65
- clip: boolean;
66
- };
67
- editingFrame: string | null;
68
- elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
69
- editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
70
- activeTool: {
71
- lastActiveTool: import("../types").ActiveTool | null;
72
- locked: boolean;
73
- fromSelection: boolean;
74
- } & import("../types").ActiveTool;
75
- preferredSelectionTool: {
76
- type: "selection" | "lasso";
77
- initialized: boolean;
78
- };
79
- penMode: boolean;
80
- penDetected: boolean;
81
- exportBackground: boolean;
82
- exportEmbedScene: boolean;
83
- exportWithDarkMode: boolean;
84
- exportScale: number;
85
- currentItemStrokeColor: string;
86
- currentItemBackgroundColor: string;
87
- currentItemStrokeWidth: number;
88
- currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
89
- currentItemRoughness: number;
90
- currentItemOpacity: number;
91
- currentItemFontFamily: number;
92
- currentItemFontSize: number;
93
- currentItemTextAlign: string;
94
- currentItemStartArrowhead: Arrowhead | null;
95
- currentItemEndArrowhead: Arrowhead | null;
96
- currentHoveredFontFamily: number | null;
97
- currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
98
- currentItemArrowType: "round" | "sharp" | "elbow";
99
- viewBackgroundColor: string;
100
- scrollX: number;
101
- scrollY: number;
102
- cursorButton: "up" | "down";
103
- scrolledOutside: boolean;
104
- name: string | null;
105
- isResizing: boolean;
106
- isRotating: boolean;
107
- zoom: Readonly<{
108
- value: import("../types").NormalizedZoomValue;
109
- }>;
110
- openMenu: "canvas" | null;
111
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
112
- openSidebar: {
113
- name: string;
114
- tab?: string | undefined;
115
- } | null;
116
- openDialog: {
117
- name: "imageExport" | "help" | "jsonExport";
118
- } | {
119
- name: "ttd";
120
- tab: "mermaid" | "text-to-diagram";
121
- } | {
122
- name: "commandPalette";
123
- } | {
124
- name: "elementLinkSelector";
125
- sourceElementId: string;
126
- } | null;
127
- defaultSidebarDockedPreference: boolean;
128
- lastPointerDownWith: import("@excalidraw/element/types").PointerType;
129
- selectedElementIds: Readonly<{
130
- [id: string]: true;
131
- }>;
132
- hoveredElementIds: Readonly<{
133
- [id: string]: true;
134
- }>;
135
- previousSelectedElementIds: {
136
- [id: string]: true;
137
- };
138
- selectedElementsAreBeingDragged: boolean;
139
- shouldCacheIgnoreZoom: boolean;
140
- toast: {
141
- message: string;
142
- closable?: boolean | undefined;
143
- duration?: number | undefined;
144
- } | null;
145
- zenModeEnabled: boolean;
146
- theme: import("@excalidraw/element/types").Theme;
147
- gridSize: number;
148
- gridStep: number;
149
- gridModeEnabled: boolean;
150
- viewModeEnabled: boolean;
151
- selectedGroupIds: {
152
- [groupId: string]: boolean;
153
- };
154
- editingGroupId: string | null;
155
- width: number;
156
- height: number;
157
- offsetTop: number;
158
- offsetLeft: number;
159
- fileHandle: import("browser-fs-access").FileSystemHandle | null;
160
- collaborators: Map<import("../types").SocketId, Readonly<{
161
- pointer?: import("../types").CollaboratorPointer | undefined;
162
- button?: "up" | "down" | undefined;
163
- selectedElementIds?: Readonly<{
164
- [id: string]: true;
165
- }> | undefined;
166
- username?: string | null | undefined;
167
- userState?: import("@excalidraw/common").UserIdleState | undefined;
168
- color?: {
169
- background: string;
170
- stroke: string;
171
- } | undefined;
172
- avatarUrl?: string | undefined;
173
- id?: string | undefined;
174
- socketId?: import("../types").SocketId | undefined;
175
- isCurrentUser?: boolean | undefined;
176
- isInCall?: boolean | undefined;
177
- isSpeaking?: boolean | undefined;
178
- isMuted?: boolean | undefined;
179
- }>>;
180
- stats: {
181
- open: boolean;
182
- panels: number;
183
- };
184
- currentChartType: import("@excalidraw/element/types").ChartType;
185
- pasteDialog: {
186
- shown: false;
187
- data: null;
188
- } | {
189
- shown: true;
190
- data: import("../charts").Spreadsheet;
191
- };
192
- showHyperlinkPopup: false | "info" | "editor";
193
- selectedLinearElement: LinearElementEditor | null;
194
- snapLines: readonly import("../snapping").SnapLine[];
195
- originSnapOffset: {
196
- x: number;
197
- y: number;
198
- } | null;
199
- objectsSnapModeEnabled: boolean;
200
- userToFollow: import("../types").UserToFollow | null;
201
- followedBy: Set<import("../types").SocketId>;
202
- isCropping: boolean;
203
- croppingElementId: string | null;
204
- searchMatches: Readonly<{
205
- focusedId: string | null;
206
- matches: readonly import("../types").SearchMatch[];
207
- }> | null;
208
- activeLockedId: string | null;
209
- lockedMultiSelections: {
210
- [groupId: string]: true;
211
- };
212
- };
213
- captureUpdate: "IMMEDIATELY";
214
- };
215
- PanelComponent: ({ elements, appState, updateData, app }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
216
- } & {
217
- keyTest?: undefined;
218
- };
219
- export declare const actionChangeStrokeWidth: {
220
- name: "changeStrokeWidth";
221
- label: string;
222
- trackEvent: false;
223
- perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, value: any) => {
224
- elements: ExcalidrawElement[];
225
- appState: {
226
- currentItemStrokeWidth: any;
227
- contextMenu: {
228
- items: import("../components/ContextMenu").ContextMenuItems;
229
- top: number;
230
- left: number;
231
- } | null;
232
- showWelcomeScreen: boolean;
233
- isLoading: boolean;
234
- errorMessage: import("react").ReactNode;
235
- activeEmbeddable: {
236
- element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
237
- state: "active" | "hover";
238
- } | null;
239
- newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
240
- resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
241
- multiElement: import("@excalidraw/element/types").NonDeleted<ExcalidrawLinearElement> | null;
242
- selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
243
- isBindingEnabled: boolean;
244
- startBoundElement: import("@excalidraw/element/types").NonDeleted<ExcalidrawBindableElement> | null;
245
- suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
246
- frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
247
- frameRendering: {
248
- enabled: boolean;
249
- name: boolean;
250
- outline: boolean;
251
- clip: boolean;
252
- };
253
- editingFrame: string | null;
254
- elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
255
- editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
256
- activeTool: {
257
- lastActiveTool: import("../types").ActiveTool | null;
258
- locked: boolean;
259
- fromSelection: boolean;
260
- } & import("../types").ActiveTool;
261
- preferredSelectionTool: {
262
- type: "selection" | "lasso";
263
- initialized: boolean;
264
- };
265
- penMode: boolean;
266
- penDetected: boolean;
267
- exportBackground: boolean;
268
- exportEmbedScene: boolean;
269
- exportWithDarkMode: boolean;
270
- exportScale: number;
271
- currentItemStrokeColor: string;
272
- currentItemBackgroundColor: string;
273
- currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
274
- currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
275
- currentItemRoughness: number;
276
- currentItemOpacity: number;
277
- currentItemFontFamily: number;
278
- currentItemFontSize: number;
279
- currentItemTextAlign: string;
280
- currentItemStartArrowhead: Arrowhead | null;
281
- currentItemEndArrowhead: Arrowhead | null;
282
- currentHoveredFontFamily: number | null;
283
- currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
284
- currentItemArrowType: "round" | "sharp" | "elbow";
285
- viewBackgroundColor: string;
286
- scrollX: number;
287
- scrollY: number;
288
- cursorButton: "up" | "down";
289
- scrolledOutside: boolean;
290
- name: string | null;
291
- isResizing: boolean;
292
- isRotating: boolean;
293
- zoom: Readonly<{
294
- value: import("../types").NormalizedZoomValue;
295
- }>;
296
- openMenu: "canvas" | null;
297
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
298
- openSidebar: {
299
- name: string;
300
- tab?: string | undefined;
301
- } | null;
302
- openDialog: {
303
- name: "imageExport" | "help" | "jsonExport";
304
- } | {
305
- name: "ttd";
306
- tab: "mermaid" | "text-to-diagram";
307
- } | {
308
- name: "commandPalette";
309
- } | {
310
- name: "elementLinkSelector";
311
- sourceElementId: string;
312
- } | null;
313
- defaultSidebarDockedPreference: boolean;
314
- lastPointerDownWith: import("@excalidraw/element/types").PointerType;
315
- selectedElementIds: Readonly<{
316
- [id: string]: true;
317
- }>;
318
- hoveredElementIds: Readonly<{
319
- [id: string]: true;
320
- }>;
321
- previousSelectedElementIds: {
322
- [id: string]: true;
323
- };
324
- selectedElementsAreBeingDragged: boolean;
325
- shouldCacheIgnoreZoom: boolean;
326
- toast: {
327
- message: string;
328
- closable?: boolean | undefined;
329
- duration?: number | undefined;
330
- } | null;
331
- zenModeEnabled: boolean;
332
- theme: import("@excalidraw/element/types").Theme;
333
- gridSize: number;
334
- gridStep: number;
335
- gridModeEnabled: boolean;
336
- viewModeEnabled: boolean;
337
- selectedGroupIds: {
338
- [groupId: string]: boolean;
339
- };
340
- editingGroupId: string | null;
341
- width: number;
342
- height: number;
343
- offsetTop: number;
344
- offsetLeft: number;
345
- fileHandle: import("browser-fs-access").FileSystemHandle | null;
346
- collaborators: Map<import("../types").SocketId, Readonly<{
347
- pointer?: import("../types").CollaboratorPointer | undefined;
348
- button?: "up" | "down" | undefined;
349
- selectedElementIds?: Readonly<{
350
- [id: string]: true;
351
- }> | undefined;
352
- username?: string | null | undefined;
353
- userState?: import("@excalidraw/common").UserIdleState | undefined;
354
- color?: {
355
- background: string;
356
- stroke: string;
357
- } | undefined;
358
- avatarUrl?: string | undefined;
359
- id?: string | undefined;
360
- socketId?: import("../types").SocketId | undefined;
361
- isCurrentUser?: boolean | undefined;
362
- isInCall?: boolean | undefined;
363
- isSpeaking?: boolean | undefined;
364
- isMuted?: boolean | undefined;
365
- }>>;
366
- stats: {
367
- open: boolean;
368
- panels: number;
369
- };
370
- currentChartType: import("@excalidraw/element/types").ChartType;
371
- pasteDialog: {
372
- shown: false;
373
- data: null;
374
- } | {
375
- shown: true;
376
- data: import("../charts").Spreadsheet;
377
- };
378
- showHyperlinkPopup: false | "info" | "editor";
379
- selectedLinearElement: LinearElementEditor | null;
380
- snapLines: readonly import("../snapping").SnapLine[];
381
- originSnapOffset: {
382
- x: number;
383
- y: number;
384
- } | null;
385
- objectsSnapModeEnabled: boolean;
386
- userToFollow: import("../types").UserToFollow | null;
387
- followedBy: Set<import("../types").SocketId>;
388
- isCropping: boolean;
389
- croppingElementId: string | null;
390
- searchMatches: Readonly<{
391
- focusedId: string | null;
392
- matches: readonly import("../types").SearchMatch[];
393
- }> | null;
394
- activeLockedId: string | null;
395
- lockedMultiSelections: {
396
- [groupId: string]: true;
397
- };
398
- };
399
- captureUpdate: "IMMEDIATELY";
400
- };
401
- PanelComponent: ({ elements, appState, updateData, app, data }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
402
- } & {
403
- keyTest?: undefined;
404
- };
405
- export declare const actionChangeSloppiness: {
406
- name: "changeSloppiness";
407
- label: string;
408
- trackEvent: false;
409
- perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, value: any) => {
410
- elements: ExcalidrawElement[];
411
- appState: {
412
- currentItemRoughness: any;
413
- contextMenu: {
414
- items: import("../components/ContextMenu").ContextMenuItems;
415
- top: number;
416
- left: number;
417
- } | null;
418
- showWelcomeScreen: boolean;
419
- isLoading: boolean;
420
- errorMessage: import("react").ReactNode;
421
- activeEmbeddable: {
422
- element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
423
- state: "active" | "hover";
424
- } | null;
425
- newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
426
- resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
427
- multiElement: import("@excalidraw/element/types").NonDeleted<ExcalidrawLinearElement> | null;
428
- selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
429
- isBindingEnabled: boolean;
430
- startBoundElement: import("@excalidraw/element/types").NonDeleted<ExcalidrawBindableElement> | null;
431
- suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
432
- frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
433
- frameRendering: {
434
- enabled: boolean;
435
- name: boolean;
436
- outline: boolean;
437
- clip: boolean;
438
- };
439
- editingFrame: string | null;
440
- elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
441
- editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
442
- activeTool: {
443
- lastActiveTool: import("../types").ActiveTool | null;
444
- locked: boolean;
445
- fromSelection: boolean;
446
- } & import("../types").ActiveTool;
447
- preferredSelectionTool: {
448
- type: "selection" | "lasso";
449
- initialized: boolean;
450
- };
451
- penMode: boolean;
452
- penDetected: boolean;
453
- exportBackground: boolean;
454
- exportEmbedScene: boolean;
455
- exportWithDarkMode: boolean;
456
- exportScale: number;
457
- currentItemStrokeColor: string;
458
- currentItemBackgroundColor: string;
459
- currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
460
- currentItemStrokeWidth: number;
461
- currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
462
- currentItemOpacity: number;
463
- currentItemFontFamily: number;
464
- currentItemFontSize: number;
465
- currentItemTextAlign: string;
466
- currentItemStartArrowhead: Arrowhead | null;
467
- currentItemEndArrowhead: Arrowhead | null;
468
- currentHoveredFontFamily: number | null;
469
- currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
470
- currentItemArrowType: "round" | "sharp" | "elbow";
471
- viewBackgroundColor: string;
472
- scrollX: number;
473
- scrollY: number;
474
- cursorButton: "up" | "down";
475
- scrolledOutside: boolean;
476
- name: string | null;
477
- isResizing: boolean;
478
- isRotating: boolean;
479
- zoom: Readonly<{
480
- value: import("../types").NormalizedZoomValue;
481
- }>;
482
- openMenu: "canvas" | null;
483
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
484
- openSidebar: {
485
- name: string;
486
- tab?: string | undefined;
487
- } | null;
488
- openDialog: {
489
- name: "imageExport" | "help" | "jsonExport";
490
- } | {
491
- name: "ttd";
492
- tab: "mermaid" | "text-to-diagram";
493
- } | {
494
- name: "commandPalette";
495
- } | {
496
- name: "elementLinkSelector";
497
- sourceElementId: string;
498
- } | null;
499
- defaultSidebarDockedPreference: boolean;
500
- lastPointerDownWith: import("@excalidraw/element/types").PointerType;
501
- selectedElementIds: Readonly<{
502
- [id: string]: true;
503
- }>;
504
- hoveredElementIds: Readonly<{
505
- [id: string]: true;
506
- }>;
507
- previousSelectedElementIds: {
508
- [id: string]: true;
509
- };
510
- selectedElementsAreBeingDragged: boolean;
511
- shouldCacheIgnoreZoom: boolean;
512
- toast: {
513
- message: string;
514
- closable?: boolean | undefined;
515
- duration?: number | undefined;
516
- } | null;
517
- zenModeEnabled: boolean;
518
- theme: import("@excalidraw/element/types").Theme;
519
- gridSize: number;
520
- gridStep: number;
521
- gridModeEnabled: boolean;
522
- viewModeEnabled: boolean;
523
- selectedGroupIds: {
524
- [groupId: string]: boolean;
525
- };
526
- editingGroupId: string | null;
527
- width: number;
528
- height: number;
529
- offsetTop: number;
530
- offsetLeft: number;
531
- fileHandle: import("browser-fs-access").FileSystemHandle | null;
532
- collaborators: Map<import("../types").SocketId, Readonly<{
533
- pointer?: import("../types").CollaboratorPointer | undefined;
534
- button?: "up" | "down" | undefined;
535
- selectedElementIds?: Readonly<{
536
- [id: string]: true;
537
- }> | undefined;
538
- username?: string | null | undefined;
539
- userState?: import("@excalidraw/common").UserIdleState | undefined;
540
- color?: {
541
- background: string;
542
- stroke: string;
543
- } | undefined;
544
- avatarUrl?: string | undefined;
545
- id?: string | undefined;
546
- socketId?: import("../types").SocketId | undefined;
547
- isCurrentUser?: boolean | undefined;
548
- isInCall?: boolean | undefined;
549
- isSpeaking?: boolean | undefined;
550
- isMuted?: boolean | undefined;
551
- }>>;
552
- stats: {
553
- open: boolean;
554
- panels: number;
555
- };
556
- currentChartType: import("@excalidraw/element/types").ChartType;
557
- pasteDialog: {
558
- shown: false;
559
- data: null;
560
- } | {
561
- shown: true;
562
- data: import("../charts").Spreadsheet;
563
- };
564
- showHyperlinkPopup: false | "info" | "editor";
565
- selectedLinearElement: LinearElementEditor | null;
566
- snapLines: readonly import("../snapping").SnapLine[];
567
- originSnapOffset: {
568
- x: number;
569
- y: number;
570
- } | null;
571
- objectsSnapModeEnabled: boolean;
572
- userToFollow: import("../types").UserToFollow | null;
573
- followedBy: Set<import("../types").SocketId>;
574
- isCropping: boolean;
575
- croppingElementId: string | null;
576
- searchMatches: Readonly<{
577
- focusedId: string | null;
578
- matches: readonly import("../types").SearchMatch[];
579
- }> | null;
580
- activeLockedId: string | null;
581
- lockedMultiSelections: {
582
- [groupId: string]: true;
583
- };
584
- };
585
- captureUpdate: "IMMEDIATELY";
586
- };
587
- PanelComponent: ({ elements, appState, updateData, app, data }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
588
- } & {
589
- keyTest?: undefined;
590
- };
591
- export declare const actionChangeStrokeStyle: {
592
- name: "changeStrokeStyle";
593
- label: string;
594
- trackEvent: false;
595
- perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, value: any) => {
596
- elements: ExcalidrawElement[];
597
- appState: {
598
- currentItemStrokeStyle: any;
599
- contextMenu: {
600
- items: import("../components/ContextMenu").ContextMenuItems;
601
- top: number;
602
- left: number;
603
- } | null;
604
- showWelcomeScreen: boolean;
605
- isLoading: boolean;
606
- errorMessage: import("react").ReactNode;
607
- activeEmbeddable: {
608
- element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
609
- state: "active" | "hover";
610
- } | null;
611
- newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
612
- resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
613
- multiElement: import("@excalidraw/element/types").NonDeleted<ExcalidrawLinearElement> | null;
614
- selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
615
- isBindingEnabled: boolean;
616
- startBoundElement: import("@excalidraw/element/types").NonDeleted<ExcalidrawBindableElement> | null;
617
- suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
618
- frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
619
- frameRendering: {
620
- enabled: boolean;
621
- name: boolean;
622
- outline: boolean;
623
- clip: boolean;
624
- };
625
- editingFrame: string | null;
626
- elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
627
- editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
628
- activeTool: {
629
- lastActiveTool: import("../types").ActiveTool | null;
630
- locked: boolean;
631
- fromSelection: boolean;
632
- } & import("../types").ActiveTool;
633
- preferredSelectionTool: {
634
- type: "selection" | "lasso";
635
- initialized: boolean;
636
- };
637
- penMode: boolean;
638
- penDetected: boolean;
639
- exportBackground: boolean;
640
- exportEmbedScene: boolean;
641
- exportWithDarkMode: boolean;
642
- exportScale: number;
643
- currentItemStrokeColor: string;
644
- currentItemBackgroundColor: string;
645
- currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
646
- currentItemStrokeWidth: number;
647
- currentItemRoughness: number;
648
- currentItemOpacity: number;
649
- currentItemFontFamily: number;
650
- currentItemFontSize: number;
651
- currentItemTextAlign: string;
652
- currentItemStartArrowhead: Arrowhead | null;
653
- currentItemEndArrowhead: Arrowhead | null;
654
- currentHoveredFontFamily: number | null;
655
- currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
656
- currentItemArrowType: "round" | "sharp" | "elbow";
657
- viewBackgroundColor: string;
658
- scrollX: number;
659
- scrollY: number;
660
- cursorButton: "up" | "down";
661
- scrolledOutside: boolean;
662
- name: string | null;
663
- isResizing: boolean;
664
- isRotating: boolean;
665
- zoom: Readonly<{
666
- value: import("../types").NormalizedZoomValue;
667
- }>;
668
- openMenu: "canvas" | null;
669
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
670
- openSidebar: {
671
- name: string;
672
- tab?: string | undefined;
673
- } | null;
674
- openDialog: {
675
- name: "imageExport" | "help" | "jsonExport";
676
- } | {
677
- name: "ttd";
678
- tab: "mermaid" | "text-to-diagram";
679
- } | {
680
- name: "commandPalette";
681
- } | {
682
- name: "elementLinkSelector";
683
- sourceElementId: string;
684
- } | null;
685
- defaultSidebarDockedPreference: boolean;
686
- lastPointerDownWith: import("@excalidraw/element/types").PointerType;
687
- selectedElementIds: Readonly<{
688
- [id: string]: true;
689
- }>;
690
- hoveredElementIds: Readonly<{
691
- [id: string]: true;
692
- }>;
693
- previousSelectedElementIds: {
694
- [id: string]: true;
695
- };
696
- selectedElementsAreBeingDragged: boolean;
697
- shouldCacheIgnoreZoom: boolean;
698
- toast: {
699
- message: string;
700
- closable?: boolean | undefined;
701
- duration?: number | undefined;
702
- } | null;
703
- zenModeEnabled: boolean;
704
- theme: import("@excalidraw/element/types").Theme;
705
- gridSize: number;
706
- gridStep: number;
707
- gridModeEnabled: boolean;
708
- viewModeEnabled: boolean;
709
- selectedGroupIds: {
710
- [groupId: string]: boolean;
711
- };
712
- editingGroupId: string | null;
713
- width: number;
714
- height: number;
715
- offsetTop: number;
716
- offsetLeft: number;
717
- fileHandle: import("browser-fs-access").FileSystemHandle | null;
718
- collaborators: Map<import("../types").SocketId, Readonly<{
719
- pointer?: import("../types").CollaboratorPointer | undefined;
720
- button?: "up" | "down" | undefined;
721
- selectedElementIds?: Readonly<{
722
- [id: string]: true;
723
- }> | undefined;
724
- username?: string | null | undefined;
725
- userState?: import("@excalidraw/common").UserIdleState | undefined;
726
- color?: {
727
- background: string;
728
- stroke: string;
729
- } | undefined;
730
- avatarUrl?: string | undefined;
731
- id?: string | undefined;
732
- socketId?: import("../types").SocketId | undefined;
733
- isCurrentUser?: boolean | undefined;
734
- isInCall?: boolean | undefined;
735
- isSpeaking?: boolean | undefined;
736
- isMuted?: boolean | undefined;
737
- }>>;
738
- stats: {
739
- open: boolean;
740
- panels: number;
741
- };
742
- currentChartType: import("@excalidraw/element/types").ChartType;
743
- pasteDialog: {
744
- shown: false;
745
- data: null;
746
- } | {
747
- shown: true;
748
- data: import("../charts").Spreadsheet;
749
- };
750
- showHyperlinkPopup: false | "info" | "editor";
751
- selectedLinearElement: LinearElementEditor | null;
752
- snapLines: readonly import("../snapping").SnapLine[];
753
- originSnapOffset: {
754
- x: number;
755
- y: number;
756
- } | null;
757
- objectsSnapModeEnabled: boolean;
758
- userToFollow: import("../types").UserToFollow | null;
759
- followedBy: Set<import("../types").SocketId>;
760
- isCropping: boolean;
761
- croppingElementId: string | null;
762
- searchMatches: Readonly<{
763
- focusedId: string | null;
764
- matches: readonly import("../types").SearchMatch[];
765
- }> | null;
766
- activeLockedId: string | null;
767
- lockedMultiSelections: {
768
- [groupId: string]: true;
769
- };
770
- };
771
- captureUpdate: "IMMEDIATELY";
772
- };
773
- PanelComponent: ({ elements, appState, updateData, app, data }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
774
- } & {
775
- keyTest?: undefined;
776
- };
777
- export declare const actionChangeOpacity: {
778
- name: "changeOpacity";
779
- label: string;
780
- trackEvent: false;
781
- perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, value: any) => {
782
- elements: ExcalidrawElement[];
783
- appState: {
784
- currentItemOpacity: any;
785
- contextMenu: {
786
- items: import("../components/ContextMenu").ContextMenuItems;
787
- top: number;
788
- left: number;
789
- } | null;
790
- showWelcomeScreen: boolean;
791
- isLoading: boolean;
792
- errorMessage: import("react").ReactNode;
793
- activeEmbeddable: {
794
- element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
795
- state: "active" | "hover";
796
- } | null;
797
- newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
798
- resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
799
- multiElement: import("@excalidraw/element/types").NonDeleted<ExcalidrawLinearElement> | null;
800
- selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
801
- isBindingEnabled: boolean;
802
- startBoundElement: import("@excalidraw/element/types").NonDeleted<ExcalidrawBindableElement> | null;
803
- suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
804
- frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
805
- frameRendering: {
806
- enabled: boolean;
807
- name: boolean;
808
- outline: boolean;
809
- clip: boolean;
810
- };
811
- editingFrame: string | null;
812
- elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
813
- editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
814
- activeTool: {
815
- lastActiveTool: import("../types").ActiveTool | null;
816
- locked: boolean;
817
- fromSelection: boolean;
818
- } & import("../types").ActiveTool;
819
- preferredSelectionTool: {
820
- type: "selection" | "lasso";
821
- initialized: boolean;
822
- };
823
- penMode: boolean;
824
- penDetected: boolean;
825
- exportBackground: boolean;
826
- exportEmbedScene: boolean;
827
- exportWithDarkMode: boolean;
828
- exportScale: number;
829
- currentItemStrokeColor: string;
830
- currentItemBackgroundColor: string;
831
- currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
832
- currentItemStrokeWidth: number;
833
- currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
834
- currentItemRoughness: number;
835
- currentItemFontFamily: number;
836
- currentItemFontSize: number;
837
- currentItemTextAlign: string;
838
- currentItemStartArrowhead: Arrowhead | null;
839
- currentItemEndArrowhead: Arrowhead | null;
840
- currentHoveredFontFamily: number | null;
841
- currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
842
- currentItemArrowType: "round" | "sharp" | "elbow";
843
- viewBackgroundColor: string;
844
- scrollX: number;
845
- scrollY: number;
846
- cursorButton: "up" | "down";
847
- scrolledOutside: boolean;
848
- name: string | null;
849
- isResizing: boolean;
850
- isRotating: boolean;
851
- zoom: Readonly<{
852
- value: import("../types").NormalizedZoomValue;
853
- }>;
854
- openMenu: "canvas" | null;
855
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
856
- openSidebar: {
857
- name: string;
858
- tab?: string | undefined;
859
- } | null;
860
- openDialog: {
861
- name: "imageExport" | "help" | "jsonExport";
862
- } | {
863
- name: "ttd";
864
- tab: "mermaid" | "text-to-diagram";
865
- } | {
866
- name: "commandPalette";
867
- } | {
868
- name: "elementLinkSelector";
869
- sourceElementId: string;
870
- } | null;
871
- defaultSidebarDockedPreference: boolean;
872
- lastPointerDownWith: import("@excalidraw/element/types").PointerType;
873
- selectedElementIds: Readonly<{
874
- [id: string]: true;
875
- }>;
876
- hoveredElementIds: Readonly<{
877
- [id: string]: true;
878
- }>;
879
- previousSelectedElementIds: {
880
- [id: string]: true;
881
- };
882
- selectedElementsAreBeingDragged: boolean;
883
- shouldCacheIgnoreZoom: boolean;
884
- toast: {
885
- message: string;
886
- closable?: boolean | undefined;
887
- duration?: number | undefined;
888
- } | null;
889
- zenModeEnabled: boolean;
890
- theme: import("@excalidraw/element/types").Theme;
891
- gridSize: number;
892
- gridStep: number;
893
- gridModeEnabled: boolean;
894
- viewModeEnabled: boolean;
895
- selectedGroupIds: {
896
- [groupId: string]: boolean;
897
- };
898
- editingGroupId: string | null;
899
- width: number;
900
- height: number;
901
- offsetTop: number;
902
- offsetLeft: number;
903
- fileHandle: import("browser-fs-access").FileSystemHandle | null;
904
- collaborators: Map<import("../types").SocketId, Readonly<{
905
- pointer?: import("../types").CollaboratorPointer | undefined;
906
- button?: "up" | "down" | undefined;
907
- selectedElementIds?: Readonly<{
908
- [id: string]: true;
909
- }> | undefined;
910
- username?: string | null | undefined;
911
- userState?: import("@excalidraw/common").UserIdleState | undefined;
912
- color?: {
913
- background: string;
914
- stroke: string;
915
- } | undefined;
916
- avatarUrl?: string | undefined;
917
- id?: string | undefined;
918
- socketId?: import("../types").SocketId | undefined;
919
- isCurrentUser?: boolean | undefined;
920
- isInCall?: boolean | undefined;
921
- isSpeaking?: boolean | undefined;
922
- isMuted?: boolean | undefined;
923
- }>>;
924
- stats: {
925
- open: boolean;
926
- panels: number;
927
- };
928
- currentChartType: import("@excalidraw/element/types").ChartType;
929
- pasteDialog: {
930
- shown: false;
931
- data: null;
932
- } | {
933
- shown: true;
934
- data: import("../charts").Spreadsheet;
935
- };
936
- showHyperlinkPopup: false | "info" | "editor";
937
- selectedLinearElement: LinearElementEditor | null;
938
- snapLines: readonly import("../snapping").SnapLine[];
939
- originSnapOffset: {
940
- x: number;
941
- y: number;
942
- } | null;
943
- objectsSnapModeEnabled: boolean;
944
- userToFollow: import("../types").UserToFollow | null;
945
- followedBy: Set<import("../types").SocketId>;
946
- isCropping: boolean;
947
- croppingElementId: string | null;
948
- searchMatches: Readonly<{
949
- focusedId: string | null;
950
- matches: readonly import("../types").SearchMatch[];
951
- }> | null;
952
- activeLockedId: string | null;
953
- lockedMultiSelections: {
954
- [groupId: string]: true;
955
- };
956
- };
957
- captureUpdate: "IMMEDIATELY";
958
- };
959
- PanelComponent: ({ app, updateData }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
960
- } & {
961
- keyTest?: undefined;
962
- };
963
- export declare const actionChangeFontSize: {
964
- name: "changeFontSize";
965
- label: string;
966
- trackEvent: false;
967
- perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, value: any, app: AppClassProperties) => {
968
- elements: ExcalidrawElement[];
969
- appState: {
970
- currentItemFontSize: number;
971
- contextMenu: {
972
- items: import("../components/ContextMenu").ContextMenuItems;
973
- top: number;
974
- left: number;
975
- } | null;
976
- showWelcomeScreen: boolean;
977
- isLoading: boolean;
978
- errorMessage: import("react").ReactNode;
979
- activeEmbeddable: {
980
- element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
981
- state: "active" | "hover";
982
- } | null;
983
- newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
984
- resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
985
- multiElement: import("@excalidraw/element/types").NonDeleted<ExcalidrawLinearElement> | null;
986
- selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
987
- isBindingEnabled: boolean;
988
- startBoundElement: import("@excalidraw/element/types").NonDeleted<ExcalidrawBindableElement> | null;
989
- suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
990
- frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
991
- frameRendering: {
992
- enabled: boolean;
993
- name: boolean;
994
- outline: boolean;
995
- clip: boolean;
996
- };
997
- editingFrame: string | null;
998
- elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
999
- editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
1000
- activeTool: {
1001
- lastActiveTool: import("../types").ActiveTool | null;
1002
- locked: boolean;
1003
- fromSelection: boolean;
1004
- } & import("../types").ActiveTool;
1005
- preferredSelectionTool: {
1006
- type: "selection" | "lasso";
1007
- initialized: boolean;
1008
- };
1009
- penMode: boolean;
1010
- penDetected: boolean;
1011
- exportBackground: boolean;
1012
- exportEmbedScene: boolean;
1013
- exportWithDarkMode: boolean;
1014
- exportScale: number;
1015
- currentItemStrokeColor: string;
1016
- currentItemBackgroundColor: string;
1017
- currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
1018
- currentItemStrokeWidth: number;
1019
- currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
1020
- currentItemRoughness: number;
1021
- currentItemOpacity: number;
1022
- currentItemFontFamily: number;
1023
- currentItemTextAlign: string;
1024
- currentItemStartArrowhead: Arrowhead | null;
1025
- currentItemEndArrowhead: Arrowhead | null;
1026
- currentHoveredFontFamily: number | null;
1027
- currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
1028
- currentItemArrowType: "round" | "sharp" | "elbow";
1029
- viewBackgroundColor: string;
1030
- scrollX: number;
1031
- scrollY: number;
1032
- cursorButton: "up" | "down";
1033
- scrolledOutside: boolean;
1034
- name: string | null;
1035
- isResizing: boolean;
1036
- isRotating: boolean;
1037
- zoom: Readonly<{
1038
- value: import("../types").NormalizedZoomValue;
1039
- }>;
1040
- openMenu: "canvas" | null;
1041
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
1042
- openSidebar: {
1043
- name: string;
1044
- tab?: string | undefined;
1045
- } | null;
1046
- openDialog: {
1047
- name: "imageExport" | "help" | "jsonExport";
1048
- } | {
1049
- name: "ttd";
1050
- tab: "mermaid" | "text-to-diagram";
1051
- } | {
1052
- name: "commandPalette";
1053
- } | {
1054
- name: "elementLinkSelector";
1055
- sourceElementId: string;
1056
- } | null;
1057
- defaultSidebarDockedPreference: boolean;
1058
- lastPointerDownWith: import("@excalidraw/element/types").PointerType;
1059
- selectedElementIds: Readonly<{
1060
- [id: string]: true;
1061
- }>;
1062
- hoveredElementIds: Readonly<{
1063
- [id: string]: true;
1064
- }>;
1065
- previousSelectedElementIds: {
1066
- [id: string]: true;
1067
- };
1068
- selectedElementsAreBeingDragged: boolean;
1069
- shouldCacheIgnoreZoom: boolean;
1070
- toast: {
1071
- message: string;
1072
- closable?: boolean | undefined;
1073
- duration?: number | undefined;
1074
- } | null;
1075
- zenModeEnabled: boolean;
1076
- theme: import("@excalidraw/element/types").Theme;
1077
- gridSize: number;
1078
- gridStep: number;
1079
- gridModeEnabled: boolean;
1080
- viewModeEnabled: boolean;
1081
- selectedGroupIds: {
1082
- [groupId: string]: boolean;
1083
- };
1084
- editingGroupId: string | null;
1085
- width: number;
1086
- height: number;
1087
- offsetTop: number;
1088
- offsetLeft: number;
1089
- fileHandle: import("browser-fs-access").FileSystemHandle | null;
1090
- collaborators: Map<import("../types").SocketId, Readonly<{
1091
- pointer?: import("../types").CollaboratorPointer | undefined;
1092
- button?: "up" | "down" | undefined;
1093
- selectedElementIds?: Readonly<{
1094
- [id: string]: true;
1095
- }> | undefined;
1096
- username?: string | null | undefined;
1097
- userState?: import("@excalidraw/common").UserIdleState | undefined;
1098
- color?: {
1099
- background: string;
1100
- stroke: string;
1101
- } | undefined;
1102
- avatarUrl?: string | undefined;
1103
- id?: string | undefined;
1104
- socketId?: import("../types").SocketId | undefined;
1105
- isCurrentUser?: boolean | undefined;
1106
- isInCall?: boolean | undefined;
1107
- isSpeaking?: boolean | undefined;
1108
- isMuted?: boolean | undefined;
1109
- }>>;
1110
- stats: {
1111
- open: boolean;
1112
- panels: number;
1113
- };
1114
- currentChartType: import("@excalidraw/element/types").ChartType;
1115
- pasteDialog: {
1116
- shown: false;
1117
- data: null;
1118
- } | {
1119
- shown: true;
1120
- data: import("../charts").Spreadsheet;
1121
- };
1122
- showHyperlinkPopup: false | "info" | "editor";
1123
- selectedLinearElement: LinearElementEditor | null;
1124
- snapLines: readonly import("../snapping").SnapLine[];
1125
- originSnapOffset: {
1126
- x: number;
1127
- y: number;
1128
- } | null;
1129
- objectsSnapModeEnabled: boolean;
1130
- userToFollow: import("../types").UserToFollow | null;
1131
- followedBy: Set<import("../types").SocketId>;
1132
- isCropping: boolean;
1133
- croppingElementId: string | null;
1134
- searchMatches: Readonly<{
1135
- focusedId: string | null;
1136
- matches: readonly import("../types").SearchMatch[];
1137
- }> | null;
1138
- activeLockedId: string | null;
1139
- lockedMultiSelections: {
1140
- [groupId: string]: true;
1141
- };
1142
- };
1143
- captureUpdate: "IMMEDIATELY";
1144
- };
1145
- PanelComponent: ({ elements, appState, updateData, app, data }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
1146
- } & {
1147
- keyTest?: undefined;
1148
- };
1149
- export declare const actionDecreaseFontSize: {
1150
- name: "decreaseFontSize";
1151
- label: string;
1152
- icon: import("react/jsx-runtime").JSX.Element;
1153
- trackEvent: false;
1154
- perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, value: any, app: AppClassProperties) => {
1155
- elements: ExcalidrawElement[];
1156
- appState: {
1157
- currentItemFontSize: number;
1158
- contextMenu: {
1159
- items: import("../components/ContextMenu").ContextMenuItems;
1160
- top: number;
1161
- left: number;
1162
- } | null;
1163
- showWelcomeScreen: boolean;
1164
- isLoading: boolean;
1165
- errorMessage: import("react").ReactNode;
1166
- activeEmbeddable: {
1167
- element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
1168
- state: "active" | "hover";
1169
- } | null;
1170
- newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
1171
- resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
1172
- multiElement: import("@excalidraw/element/types").NonDeleted<ExcalidrawLinearElement> | null;
1173
- selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
1174
- isBindingEnabled: boolean;
1175
- startBoundElement: import("@excalidraw/element/types").NonDeleted<ExcalidrawBindableElement> | null;
1176
- suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
1177
- frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
1178
- frameRendering: {
1179
- enabled: boolean;
1180
- name: boolean;
1181
- outline: boolean;
1182
- clip: boolean;
1183
- };
1184
- editingFrame: string | null;
1185
- elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
1186
- editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
1187
- activeTool: {
1188
- lastActiveTool: import("../types").ActiveTool | null;
1189
- locked: boolean;
1190
- fromSelection: boolean;
1191
- } & import("../types").ActiveTool;
1192
- preferredSelectionTool: {
1193
- type: "selection" | "lasso";
1194
- initialized: boolean;
1195
- };
1196
- penMode: boolean;
1197
- penDetected: boolean;
1198
- exportBackground: boolean;
1199
- exportEmbedScene: boolean;
1200
- exportWithDarkMode: boolean;
1201
- exportScale: number;
1202
- currentItemStrokeColor: string;
1203
- currentItemBackgroundColor: string;
1204
- currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
1205
- currentItemStrokeWidth: number;
1206
- currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
1207
- currentItemRoughness: number;
1208
- currentItemOpacity: number;
1209
- currentItemFontFamily: number;
1210
- currentItemTextAlign: string;
1211
- currentItemStartArrowhead: Arrowhead | null;
1212
- currentItemEndArrowhead: Arrowhead | null;
1213
- currentHoveredFontFamily: number | null;
1214
- currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
1215
- currentItemArrowType: "round" | "sharp" | "elbow";
1216
- viewBackgroundColor: string;
1217
- scrollX: number;
1218
- scrollY: number;
1219
- cursorButton: "up" | "down";
1220
- scrolledOutside: boolean;
1221
- name: string | null;
1222
- isResizing: boolean;
1223
- isRotating: boolean;
1224
- zoom: Readonly<{
1225
- value: import("../types").NormalizedZoomValue;
1226
- }>;
1227
- openMenu: "canvas" | null;
1228
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
1229
- openSidebar: {
1230
- name: string;
1231
- tab?: string | undefined;
1232
- } | null;
1233
- openDialog: {
1234
- name: "imageExport" | "help" | "jsonExport";
1235
- } | {
1236
- name: "ttd";
1237
- tab: "mermaid" | "text-to-diagram";
1238
- } | {
1239
- name: "commandPalette";
1240
- } | {
1241
- name: "elementLinkSelector";
1242
- sourceElementId: string;
1243
- } | null;
1244
- defaultSidebarDockedPreference: boolean;
1245
- lastPointerDownWith: import("@excalidraw/element/types").PointerType;
1246
- selectedElementIds: Readonly<{
1247
- [id: string]: true;
1248
- }>;
1249
- hoveredElementIds: Readonly<{
1250
- [id: string]: true;
1251
- }>;
1252
- previousSelectedElementIds: {
1253
- [id: string]: true;
1254
- };
1255
- selectedElementsAreBeingDragged: boolean;
1256
- shouldCacheIgnoreZoom: boolean;
1257
- toast: {
1258
- message: string;
1259
- closable?: boolean | undefined;
1260
- duration?: number | undefined;
1261
- } | null;
1262
- zenModeEnabled: boolean;
1263
- theme: import("@excalidraw/element/types").Theme;
1264
- gridSize: number;
1265
- gridStep: number;
1266
- gridModeEnabled: boolean;
1267
- viewModeEnabled: boolean;
1268
- selectedGroupIds: {
1269
- [groupId: string]: boolean;
1270
- };
1271
- editingGroupId: string | null;
1272
- width: number;
1273
- height: number;
1274
- offsetTop: number;
1275
- offsetLeft: number;
1276
- fileHandle: import("browser-fs-access").FileSystemHandle | null;
1277
- collaborators: Map<import("../types").SocketId, Readonly<{
1278
- pointer?: import("../types").CollaboratorPointer | undefined;
1279
- button?: "up" | "down" | undefined;
1280
- selectedElementIds?: Readonly<{
1281
- [id: string]: true;
1282
- }> | undefined;
1283
- username?: string | null | undefined;
1284
- userState?: import("@excalidraw/common").UserIdleState | undefined;
1285
- color?: {
1286
- background: string;
1287
- stroke: string;
1288
- } | undefined;
1289
- avatarUrl?: string | undefined;
1290
- id?: string | undefined;
1291
- socketId?: import("../types").SocketId | undefined;
1292
- isCurrentUser?: boolean | undefined;
1293
- isInCall?: boolean | undefined;
1294
- isSpeaking?: boolean | undefined;
1295
- isMuted?: boolean | undefined;
1296
- }>>;
1297
- stats: {
1298
- open: boolean;
1299
- panels: number;
1300
- };
1301
- currentChartType: import("@excalidraw/element/types").ChartType;
1302
- pasteDialog: {
1303
- shown: false;
1304
- data: null;
1305
- } | {
1306
- shown: true;
1307
- data: import("../charts").Spreadsheet;
1308
- };
1309
- showHyperlinkPopup: false | "info" | "editor";
1310
- selectedLinearElement: LinearElementEditor | null;
1311
- snapLines: readonly import("../snapping").SnapLine[];
1312
- originSnapOffset: {
1313
- x: number;
1314
- y: number;
1315
- } | null;
1316
- objectsSnapModeEnabled: boolean;
1317
- userToFollow: import("../types").UserToFollow | null;
1318
- followedBy: Set<import("../types").SocketId>;
1319
- isCropping: boolean;
1320
- croppingElementId: string | null;
1321
- searchMatches: Readonly<{
1322
- focusedId: string | null;
1323
- matches: readonly import("../types").SearchMatch[];
1324
- }> | null;
1325
- activeLockedId: string | null;
1326
- lockedMultiSelections: {
1327
- [groupId: string]: true;
1328
- };
1329
- };
1330
- captureUpdate: "IMMEDIATELY";
1331
- };
1332
- keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
1333
- } & {
1334
- keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
1335
- };
1336
- export declare const actionIncreaseFontSize: {
1337
- name: "increaseFontSize";
1338
- label: string;
1339
- icon: import("react/jsx-runtime").JSX.Element;
1340
- trackEvent: false;
1341
- perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, value: any, app: AppClassProperties) => {
1342
- elements: ExcalidrawElement[];
1343
- appState: {
1344
- currentItemFontSize: number;
1345
- contextMenu: {
1346
- items: import("../components/ContextMenu").ContextMenuItems;
1347
- top: number;
1348
- left: number;
1349
- } | null;
1350
- showWelcomeScreen: boolean;
1351
- isLoading: boolean;
1352
- errorMessage: import("react").ReactNode;
1353
- activeEmbeddable: {
1354
- element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
1355
- state: "active" | "hover";
1356
- } | null;
1357
- newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
1358
- resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
1359
- multiElement: import("@excalidraw/element/types").NonDeleted<ExcalidrawLinearElement> | null;
1360
- selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
1361
- isBindingEnabled: boolean;
1362
- startBoundElement: import("@excalidraw/element/types").NonDeleted<ExcalidrawBindableElement> | null;
1363
- suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
1364
- frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
1365
- frameRendering: {
1366
- enabled: boolean;
1367
- name: boolean;
1368
- outline: boolean;
1369
- clip: boolean;
1370
- };
1371
- editingFrame: string | null;
1372
- elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
1373
- editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
1374
- activeTool: {
1375
- lastActiveTool: import("../types").ActiveTool | null;
1376
- locked: boolean;
1377
- fromSelection: boolean;
1378
- } & import("../types").ActiveTool;
1379
- preferredSelectionTool: {
1380
- type: "selection" | "lasso";
1381
- initialized: boolean;
1382
- };
1383
- penMode: boolean;
1384
- penDetected: boolean;
1385
- exportBackground: boolean;
1386
- exportEmbedScene: boolean;
1387
- exportWithDarkMode: boolean;
1388
- exportScale: number;
1389
- currentItemStrokeColor: string;
1390
- currentItemBackgroundColor: string;
1391
- currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
1392
- currentItemStrokeWidth: number;
1393
- currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
1394
- currentItemRoughness: number;
1395
- currentItemOpacity: number;
1396
- currentItemFontFamily: number;
1397
- currentItemTextAlign: string;
1398
- currentItemStartArrowhead: Arrowhead | null;
1399
- currentItemEndArrowhead: Arrowhead | null;
1400
- currentHoveredFontFamily: number | null;
1401
- currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
1402
- currentItemArrowType: "round" | "sharp" | "elbow";
1403
- viewBackgroundColor: string;
1404
- scrollX: number;
1405
- scrollY: number;
1406
- cursorButton: "up" | "down";
1407
- scrolledOutside: boolean;
1408
- name: string | null;
1409
- isResizing: boolean;
1410
- isRotating: boolean;
1411
- zoom: Readonly<{
1412
- value: import("../types").NormalizedZoomValue;
1413
- }>;
1414
- openMenu: "canvas" | null;
1415
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
1416
- openSidebar: {
1417
- name: string;
1418
- tab?: string | undefined;
1419
- } | null;
1420
- openDialog: {
1421
- name: "imageExport" | "help" | "jsonExport";
1422
- } | {
1423
- name: "ttd";
1424
- tab: "mermaid" | "text-to-diagram";
1425
- } | {
1426
- name: "commandPalette";
1427
- } | {
1428
- name: "elementLinkSelector";
1429
- sourceElementId: string;
1430
- } | null;
1431
- defaultSidebarDockedPreference: boolean;
1432
- lastPointerDownWith: import("@excalidraw/element/types").PointerType;
1433
- selectedElementIds: Readonly<{
1434
- [id: string]: true;
1435
- }>;
1436
- hoveredElementIds: Readonly<{
1437
- [id: string]: true;
1438
- }>;
1439
- previousSelectedElementIds: {
1440
- [id: string]: true;
1441
- };
1442
- selectedElementsAreBeingDragged: boolean;
1443
- shouldCacheIgnoreZoom: boolean;
1444
- toast: {
1445
- message: string;
1446
- closable?: boolean | undefined;
1447
- duration?: number | undefined;
1448
- } | null;
1449
- zenModeEnabled: boolean;
1450
- theme: import("@excalidraw/element/types").Theme;
1451
- gridSize: number;
1452
- gridStep: number;
1453
- gridModeEnabled: boolean;
1454
- viewModeEnabled: boolean;
1455
- selectedGroupIds: {
1456
- [groupId: string]: boolean;
1457
- };
1458
- editingGroupId: string | null;
1459
- width: number;
1460
- height: number;
1461
- offsetTop: number;
1462
- offsetLeft: number;
1463
- fileHandle: import("browser-fs-access").FileSystemHandle | null;
1464
- collaborators: Map<import("../types").SocketId, Readonly<{
1465
- pointer?: import("../types").CollaboratorPointer | undefined;
1466
- button?: "up" | "down" | undefined;
1467
- selectedElementIds?: Readonly<{
1468
- [id: string]: true;
1469
- }> | undefined;
1470
- username?: string | null | undefined;
1471
- userState?: import("@excalidraw/common").UserIdleState | undefined;
1472
- color?: {
1473
- background: string;
1474
- stroke: string;
1475
- } | undefined;
1476
- avatarUrl?: string | undefined;
1477
- id?: string | undefined;
1478
- socketId?: import("../types").SocketId | undefined;
1479
- isCurrentUser?: boolean | undefined;
1480
- isInCall?: boolean | undefined;
1481
- isSpeaking?: boolean | undefined;
1482
- isMuted?: boolean | undefined;
1483
- }>>;
1484
- stats: {
1485
- open: boolean;
1486
- panels: number;
1487
- };
1488
- currentChartType: import("@excalidraw/element/types").ChartType;
1489
- pasteDialog: {
1490
- shown: false;
1491
- data: null;
1492
- } | {
1493
- shown: true;
1494
- data: import("../charts").Spreadsheet;
1495
- };
1496
- showHyperlinkPopup: false | "info" | "editor";
1497
- selectedLinearElement: LinearElementEditor | null;
1498
- snapLines: readonly import("../snapping").SnapLine[];
1499
- originSnapOffset: {
1500
- x: number;
1501
- y: number;
1502
- } | null;
1503
- objectsSnapModeEnabled: boolean;
1504
- userToFollow: import("../types").UserToFollow | null;
1505
- followedBy: Set<import("../types").SocketId>;
1506
- isCropping: boolean;
1507
- croppingElementId: string | null;
1508
- searchMatches: Readonly<{
1509
- focusedId: string | null;
1510
- matches: readonly import("../types").SearchMatch[];
1511
- }> | null;
1512
- activeLockedId: string | null;
1513
- lockedMultiSelections: {
1514
- [groupId: string]: true;
1515
- };
1516
- };
1517
- captureUpdate: "IMMEDIATELY";
1518
- };
1519
- keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
1520
- } & {
1521
- keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
1522
- };
1523
- export declare const actionChangeFontFamily: {
1524
- name: "changeFontFamily";
1525
- label: string;
1526
- trackEvent: false;
1527
- perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, value: any, app: AppClassProperties) => {
1528
- appState: {
1529
- currentItemFontFamily: number;
1530
- currentHoveredFontFamily: number | null;
1531
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
1532
- contextMenu: {
1533
- items: import("../components/ContextMenu").ContextMenuItems;
1534
- top: number;
1535
- left: number;
1536
- } | null;
1537
- showWelcomeScreen: boolean;
1538
- isLoading: boolean;
1539
- errorMessage: import("react").ReactNode;
1540
- activeEmbeddable: {
1541
- element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
1542
- state: "active" | "hover";
1543
- } | null;
1544
- newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
1545
- resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
1546
- multiElement: import("@excalidraw/element/types").NonDeleted<ExcalidrawLinearElement> | null;
1547
- selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
1548
- isBindingEnabled: boolean;
1549
- startBoundElement: import("@excalidraw/element/types").NonDeleted<ExcalidrawBindableElement> | null;
1550
- suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
1551
- frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
1552
- frameRendering: {
1553
- enabled: boolean;
1554
- name: boolean;
1555
- outline: boolean;
1556
- clip: boolean;
1557
- };
1558
- editingFrame: string | null;
1559
- elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
1560
- editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
1561
- activeTool: {
1562
- lastActiveTool: import("../types").ActiveTool | null;
1563
- locked: boolean;
1564
- fromSelection: boolean;
1565
- } & import("../types").ActiveTool;
1566
- preferredSelectionTool: {
1567
- type: "selection" | "lasso";
1568
- initialized: boolean;
1569
- };
1570
- penMode: boolean;
1571
- penDetected: boolean;
1572
- exportBackground: boolean;
1573
- exportEmbedScene: boolean;
1574
- exportWithDarkMode: boolean;
1575
- exportScale: number;
1576
- currentItemStrokeColor: string;
1577
- currentItemBackgroundColor: string;
1578
- currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
1579
- currentItemStrokeWidth: number;
1580
- currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
1581
- currentItemRoughness: number;
1582
- currentItemOpacity: number;
1583
- currentItemFontSize: number;
1584
- currentItemTextAlign: string;
1585
- currentItemStartArrowhead: Arrowhead | null;
1586
- currentItemEndArrowhead: Arrowhead | null;
1587
- currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
1588
- currentItemArrowType: "round" | "sharp" | "elbow";
1589
- viewBackgroundColor: string;
1590
- scrollX: number;
1591
- scrollY: number;
1592
- cursorButton: "up" | "down";
1593
- scrolledOutside: boolean;
1594
- name: string | null;
1595
- isResizing: boolean;
1596
- isRotating: boolean;
1597
- zoom: Readonly<{
1598
- value: import("../types").NormalizedZoomValue;
1599
- }>;
1600
- openMenu: "canvas" | null;
1601
- openSidebar: {
1602
- name: string;
1603
- tab?: string | undefined;
1604
- } | null;
1605
- openDialog: {
1606
- name: "imageExport" | "help" | "jsonExport";
1607
- } | {
1608
- name: "ttd";
1609
- tab: "mermaid" | "text-to-diagram";
1610
- } | {
1611
- name: "commandPalette";
1612
- } | {
1613
- name: "elementLinkSelector";
1614
- sourceElementId: string;
1615
- } | null;
1616
- defaultSidebarDockedPreference: boolean;
1617
- lastPointerDownWith: import("@excalidraw/element/types").PointerType;
1618
- selectedElementIds: Readonly<{
1619
- [id: string]: true;
1620
- }>;
1621
- hoveredElementIds: Readonly<{
1622
- [id: string]: true;
1623
- }>;
1624
- previousSelectedElementIds: {
1625
- [id: string]: true;
1626
- };
1627
- selectedElementsAreBeingDragged: boolean;
1628
- shouldCacheIgnoreZoom: boolean;
1629
- toast: {
1630
- message: string;
1631
- closable?: boolean | undefined;
1632
- duration?: number | undefined;
1633
- } | null;
1634
- zenModeEnabled: boolean;
1635
- theme: import("@excalidraw/element/types").Theme;
1636
- gridSize: number;
1637
- gridStep: number;
1638
- gridModeEnabled: boolean;
1639
- viewModeEnabled: boolean;
1640
- selectedGroupIds: {
1641
- [groupId: string]: boolean;
1642
- };
1643
- editingGroupId: string | null;
1644
- width: number;
1645
- height: number;
1646
- offsetTop: number;
1647
- offsetLeft: number;
1648
- fileHandle: import("browser-fs-access").FileSystemHandle | null;
1649
- collaborators: Map<import("../types").SocketId, Readonly<{
1650
- pointer?: import("../types").CollaboratorPointer | undefined;
1651
- button?: "up" | "down" | undefined;
1652
- selectedElementIds?: Readonly<{
1653
- [id: string]: true;
1654
- }> | undefined;
1655
- username?: string | null | undefined;
1656
- userState?: import("@excalidraw/common").UserIdleState | undefined;
1657
- color?: {
1658
- background: string;
1659
- stroke: string;
1660
- } | undefined;
1661
- avatarUrl?: string | undefined;
1662
- id?: string | undefined;
1663
- socketId?: import("../types").SocketId | undefined;
1664
- isCurrentUser?: boolean | undefined;
1665
- isInCall?: boolean | undefined;
1666
- isSpeaking?: boolean | undefined;
1667
- isMuted?: boolean | undefined;
1668
- }>>;
1669
- stats: {
1670
- open: boolean;
1671
- panels: number;
1672
- };
1673
- currentChartType: import("@excalidraw/element/types").ChartType;
1674
- pasteDialog: {
1675
- shown: false;
1676
- data: null;
1677
- } | {
1678
- shown: true;
1679
- data: import("../charts").Spreadsheet;
1680
- };
1681
- showHyperlinkPopup: false | "info" | "editor";
1682
- selectedLinearElement: LinearElementEditor | null;
1683
- snapLines: readonly import("../snapping").SnapLine[];
1684
- originSnapOffset: {
1685
- x: number;
1686
- y: number;
1687
- } | null;
1688
- objectsSnapModeEnabled: boolean;
1689
- userToFollow: import("../types").UserToFollow | null;
1690
- followedBy: Set<import("../types").SocketId>;
1691
- isCropping: boolean;
1692
- croppingElementId: string | null;
1693
- searchMatches: Readonly<{
1694
- focusedId: string | null;
1695
- matches: readonly import("../types").SearchMatch[];
1696
- }> | null;
1697
- activeLockedId: string | null;
1698
- lockedMultiSelections: {
1699
- [groupId: string]: true;
1700
- };
1701
- };
1702
- captureUpdate: "IMMEDIATELY" | "EVENTUALLY";
1703
- } | {
1704
- elements: ExcalidrawElement[];
1705
- appState: {
1706
- currentItemFontFamily: number;
1707
- currentHoveredFontFamily: number | null;
1708
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
1709
- contextMenu: {
1710
- items: import("../components/ContextMenu").ContextMenuItems;
1711
- top: number;
1712
- left: number;
1713
- } | null;
1714
- showWelcomeScreen: boolean;
1715
- isLoading: boolean;
1716
- errorMessage: import("react").ReactNode;
1717
- activeEmbeddable: {
1718
- element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
1719
- state: "active" | "hover";
1720
- } | null;
1721
- newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
1722
- resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
1723
- multiElement: import("@excalidraw/element/types").NonDeleted<ExcalidrawLinearElement> | null;
1724
- selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
1725
- isBindingEnabled: boolean;
1726
- startBoundElement: import("@excalidraw/element/types").NonDeleted<ExcalidrawBindableElement> | null;
1727
- suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
1728
- frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
1729
- frameRendering: {
1730
- enabled: boolean;
1731
- name: boolean;
1732
- outline: boolean;
1733
- clip: boolean;
1734
- };
1735
- editingFrame: string | null;
1736
- elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
1737
- editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
1738
- activeTool: {
1739
- lastActiveTool: import("../types").ActiveTool | null;
1740
- locked: boolean;
1741
- fromSelection: boolean;
1742
- } & import("../types").ActiveTool;
1743
- preferredSelectionTool: {
1744
- type: "selection" | "lasso";
1745
- initialized: boolean;
1746
- };
1747
- penMode: boolean;
1748
- penDetected: boolean;
1749
- exportBackground: boolean;
1750
- exportEmbedScene: boolean;
1751
- exportWithDarkMode: boolean;
1752
- exportScale: number;
1753
- currentItemStrokeColor: string;
1754
- currentItemBackgroundColor: string;
1755
- currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
1756
- currentItemStrokeWidth: number;
1757
- currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
1758
- currentItemRoughness: number;
1759
- currentItemOpacity: number;
1760
- currentItemFontSize: number;
1761
- currentItemTextAlign: string;
1762
- currentItemStartArrowhead: Arrowhead | null;
1763
- currentItemEndArrowhead: Arrowhead | null;
1764
- currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
1765
- currentItemArrowType: "round" | "sharp" | "elbow";
1766
- viewBackgroundColor: string;
1767
- scrollX: number;
1768
- scrollY: number;
1769
- cursorButton: "up" | "down";
1770
- scrolledOutside: boolean;
1771
- name: string | null;
1772
- isResizing: boolean;
1773
- isRotating: boolean;
1774
- zoom: Readonly<{
1775
- value: import("../types").NormalizedZoomValue;
1776
- }>;
1777
- openMenu: "canvas" | null;
1778
- openSidebar: {
1779
- name: string;
1780
- tab?: string | undefined;
1781
- } | null;
1782
- openDialog: {
1783
- name: "imageExport" | "help" | "jsonExport";
1784
- } | {
1785
- name: "ttd";
1786
- tab: "mermaid" | "text-to-diagram";
1787
- } | {
1788
- name: "commandPalette";
1789
- } | {
1790
- name: "elementLinkSelector";
1791
- sourceElementId: string;
1792
- } | null;
1793
- defaultSidebarDockedPreference: boolean;
1794
- lastPointerDownWith: import("@excalidraw/element/types").PointerType;
1795
- selectedElementIds: Readonly<{
1796
- [id: string]: true;
1797
- }>;
1798
- hoveredElementIds: Readonly<{
1799
- [id: string]: true;
1800
- }>;
1801
- previousSelectedElementIds: {
1802
- [id: string]: true;
1803
- };
1804
- selectedElementsAreBeingDragged: boolean;
1805
- shouldCacheIgnoreZoom: boolean;
1806
- toast: {
1807
- message: string;
1808
- closable?: boolean | undefined;
1809
- duration?: number | undefined;
1810
- } | null;
1811
- zenModeEnabled: boolean;
1812
- theme: import("@excalidraw/element/types").Theme;
1813
- gridSize: number;
1814
- gridStep: number;
1815
- gridModeEnabled: boolean;
1816
- viewModeEnabled: boolean;
1817
- selectedGroupIds: {
1818
- [groupId: string]: boolean;
1819
- };
1820
- editingGroupId: string | null;
1821
- width: number;
1822
- height: number;
1823
- offsetTop: number;
1824
- offsetLeft: number;
1825
- fileHandle: import("browser-fs-access").FileSystemHandle | null;
1826
- collaborators: Map<import("../types").SocketId, Readonly<{
1827
- pointer?: import("../types").CollaboratorPointer | undefined;
1828
- button?: "up" | "down" | undefined;
1829
- selectedElementIds?: Readonly<{
1830
- [id: string]: true;
1831
- }> | undefined;
1832
- username?: string | null | undefined;
1833
- userState?: import("@excalidraw/common").UserIdleState | undefined;
1834
- color?: {
1835
- background: string;
1836
- stroke: string;
1837
- } | undefined;
1838
- avatarUrl?: string | undefined;
1839
- id?: string | undefined;
1840
- socketId?: import("../types").SocketId | undefined;
1841
- isCurrentUser?: boolean | undefined;
1842
- isInCall?: boolean | undefined;
1843
- isSpeaking?: boolean | undefined;
1844
- isMuted?: boolean | undefined;
1845
- }>>;
1846
- stats: {
1847
- open: boolean;
1848
- panels: number;
1849
- };
1850
- currentChartType: import("@excalidraw/element/types").ChartType;
1851
- pasteDialog: {
1852
- shown: false;
1853
- data: null;
1854
- } | {
1855
- shown: true;
1856
- data: import("../charts").Spreadsheet;
1857
- };
1858
- showHyperlinkPopup: false | "info" | "editor";
1859
- selectedLinearElement: LinearElementEditor | null;
1860
- snapLines: readonly import("../snapping").SnapLine[];
1861
- originSnapOffset: {
1862
- x: number;
1863
- y: number;
1864
- } | null;
1865
- objectsSnapModeEnabled: boolean;
1866
- userToFollow: import("../types").UserToFollow | null;
1867
- followedBy: Set<import("../types").SocketId>;
1868
- isCropping: boolean;
1869
- croppingElementId: string | null;
1870
- searchMatches: Readonly<{
1871
- focusedId: string | null;
1872
- matches: readonly import("../types").SearchMatch[];
1873
- }> | null;
1874
- activeLockedId: string | null;
1875
- lockedMultiSelections: {
1876
- [groupId: string]: true;
1877
- };
1878
- };
1879
- captureUpdate: "NEVER";
1880
- };
1881
- PanelComponent: ({ elements, appState, app, updateData }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
1882
- } & {
1883
- keyTest?: undefined;
1884
- };
1885
- export declare const actionChangeTextAlign: {
1886
- name: "changeTextAlign";
1887
- label: string;
1888
- trackEvent: false;
1889
- perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, value: any, app: AppClassProperties) => {
1890
- elements: ExcalidrawElement[];
1891
- appState: {
1892
- currentItemTextAlign: any;
1893
- contextMenu: {
1894
- items: import("../components/ContextMenu").ContextMenuItems;
1895
- top: number;
1896
- left: number;
1897
- } | null;
1898
- showWelcomeScreen: boolean;
1899
- isLoading: boolean;
1900
- errorMessage: import("react").ReactNode;
1901
- activeEmbeddable: {
1902
- element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
1903
- state: "active" | "hover";
1904
- } | null;
1905
- newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
1906
- resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
1907
- multiElement: import("@excalidraw/element/types").NonDeleted<ExcalidrawLinearElement> | null;
1908
- selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
1909
- isBindingEnabled: boolean;
1910
- startBoundElement: import("@excalidraw/element/types").NonDeleted<ExcalidrawBindableElement> | null;
1911
- suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
1912
- frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
1913
- frameRendering: {
1914
- enabled: boolean;
1915
- name: boolean;
1916
- outline: boolean;
1917
- clip: boolean;
1918
- };
1919
- editingFrame: string | null;
1920
- elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
1921
- editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
1922
- activeTool: {
1923
- lastActiveTool: import("../types").ActiveTool | null;
1924
- locked: boolean;
1925
- fromSelection: boolean;
1926
- } & import("../types").ActiveTool;
1927
- preferredSelectionTool: {
1928
- type: "selection" | "lasso";
1929
- initialized: boolean;
1930
- };
1931
- penMode: boolean;
1932
- penDetected: boolean;
1933
- exportBackground: boolean;
1934
- exportEmbedScene: boolean;
1935
- exportWithDarkMode: boolean;
1936
- exportScale: number;
1937
- currentItemStrokeColor: string;
1938
- currentItemBackgroundColor: string;
1939
- currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
1940
- currentItemStrokeWidth: number;
1941
- currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
1942
- currentItemRoughness: number;
1943
- currentItemOpacity: number;
1944
- currentItemFontFamily: number;
1945
- currentItemFontSize: number;
1946
- currentItemStartArrowhead: Arrowhead | null;
1947
- currentItemEndArrowhead: Arrowhead | null;
1948
- currentHoveredFontFamily: number | null;
1949
- currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
1950
- currentItemArrowType: "round" | "sharp" | "elbow";
1951
- viewBackgroundColor: string;
1952
- scrollX: number;
1953
- scrollY: number;
1954
- cursorButton: "up" | "down";
1955
- scrolledOutside: boolean;
1956
- name: string | null;
1957
- isResizing: boolean;
1958
- isRotating: boolean;
1959
- zoom: Readonly<{
1960
- value: import("../types").NormalizedZoomValue;
1961
- }>;
1962
- openMenu: "canvas" | null;
1963
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
1964
- openSidebar: {
1965
- name: string;
1966
- tab?: string | undefined;
1967
- } | null;
1968
- openDialog: {
1969
- name: "imageExport" | "help" | "jsonExport";
1970
- } | {
1971
- name: "ttd";
1972
- tab: "mermaid" | "text-to-diagram";
1973
- } | {
1974
- name: "commandPalette";
1975
- } | {
1976
- name: "elementLinkSelector";
1977
- sourceElementId: string;
1978
- } | null;
1979
- defaultSidebarDockedPreference: boolean;
1980
- lastPointerDownWith: import("@excalidraw/element/types").PointerType;
1981
- selectedElementIds: Readonly<{
1982
- [id: string]: true;
1983
- }>;
1984
- hoveredElementIds: Readonly<{
1985
- [id: string]: true;
1986
- }>;
1987
- previousSelectedElementIds: {
1988
- [id: string]: true;
1989
- };
1990
- selectedElementsAreBeingDragged: boolean;
1991
- shouldCacheIgnoreZoom: boolean;
1992
- toast: {
1993
- message: string;
1994
- closable?: boolean | undefined;
1995
- duration?: number | undefined;
1996
- } | null;
1997
- zenModeEnabled: boolean;
1998
- theme: import("@excalidraw/element/types").Theme;
1999
- gridSize: number;
2000
- gridStep: number;
2001
- gridModeEnabled: boolean;
2002
- viewModeEnabled: boolean;
2003
- selectedGroupIds: {
2004
- [groupId: string]: boolean;
2005
- };
2006
- editingGroupId: string | null;
2007
- width: number;
2008
- height: number;
2009
- offsetTop: number;
2010
- offsetLeft: number;
2011
- fileHandle: import("browser-fs-access").FileSystemHandle | null;
2012
- collaborators: Map<import("../types").SocketId, Readonly<{
2013
- pointer?: import("../types").CollaboratorPointer | undefined;
2014
- button?: "up" | "down" | undefined;
2015
- selectedElementIds?: Readonly<{
2016
- [id: string]: true;
2017
- }> | undefined;
2018
- username?: string | null | undefined;
2019
- userState?: import("@excalidraw/common").UserIdleState | undefined;
2020
- color?: {
2021
- background: string;
2022
- stroke: string;
2023
- } | undefined;
2024
- avatarUrl?: string | undefined;
2025
- id?: string | undefined;
2026
- socketId?: import("../types").SocketId | undefined;
2027
- isCurrentUser?: boolean | undefined;
2028
- isInCall?: boolean | undefined;
2029
- isSpeaking?: boolean | undefined;
2030
- isMuted?: boolean | undefined;
2031
- }>>;
2032
- stats: {
2033
- open: boolean;
2034
- panels: number;
2035
- };
2036
- currentChartType: import("@excalidraw/element/types").ChartType;
2037
- pasteDialog: {
2038
- shown: false;
2039
- data: null;
2040
- } | {
2041
- shown: true;
2042
- data: import("../charts").Spreadsheet;
2043
- };
2044
- showHyperlinkPopup: false | "info" | "editor";
2045
- selectedLinearElement: LinearElementEditor | null;
2046
- snapLines: readonly import("../snapping").SnapLine[];
2047
- originSnapOffset: {
2048
- x: number;
2049
- y: number;
2050
- } | null;
2051
- objectsSnapModeEnabled: boolean;
2052
- userToFollow: import("../types").UserToFollow | null;
2053
- followedBy: Set<import("../types").SocketId>;
2054
- isCropping: boolean;
2055
- croppingElementId: string | null;
2056
- searchMatches: Readonly<{
2057
- focusedId: string | null;
2058
- matches: readonly import("../types").SearchMatch[];
2059
- }> | null;
2060
- activeLockedId: string | null;
2061
- lockedMultiSelections: {
2062
- [groupId: string]: true;
2063
- };
2064
- };
2065
- captureUpdate: "IMMEDIATELY";
2066
- };
2067
- PanelComponent: ({ elements, appState, updateData, app, data }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
2068
- } & {
2069
- keyTest?: undefined;
2070
- };
2071
- export declare const actionChangeVerticalAlign: {
2072
- name: "changeVerticalAlign";
2073
- label: string;
2074
- trackEvent: {
2075
- category: "element";
2076
- };
2077
- perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, value: any, app: AppClassProperties) => {
2078
- elements: ExcalidrawElement[];
2079
- appState: {
2080
- contextMenu: {
2081
- items: import("../components/ContextMenu").ContextMenuItems;
2082
- top: number;
2083
- left: number;
2084
- } | null;
2085
- showWelcomeScreen: boolean;
2086
- isLoading: boolean;
2087
- errorMessage: import("react").ReactNode;
2088
- activeEmbeddable: {
2089
- element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
2090
- state: "active" | "hover";
2091
- } | null;
2092
- newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
2093
- resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
2094
- multiElement: import("@excalidraw/element/types").NonDeleted<ExcalidrawLinearElement> | null;
2095
- selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
2096
- isBindingEnabled: boolean;
2097
- startBoundElement: import("@excalidraw/element/types").NonDeleted<ExcalidrawBindableElement> | null;
2098
- suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
2099
- frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
2100
- frameRendering: {
2101
- enabled: boolean;
2102
- name: boolean;
2103
- outline: boolean;
2104
- clip: boolean;
2105
- };
2106
- editingFrame: string | null;
2107
- elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
2108
- editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
2109
- activeTool: {
2110
- lastActiveTool: import("../types").ActiveTool | null;
2111
- locked: boolean;
2112
- fromSelection: boolean;
2113
- } & import("../types").ActiveTool;
2114
- preferredSelectionTool: {
2115
- type: "selection" | "lasso";
2116
- initialized: boolean;
2117
- };
2118
- penMode: boolean;
2119
- penDetected: boolean;
2120
- exportBackground: boolean;
2121
- exportEmbedScene: boolean;
2122
- exportWithDarkMode: boolean;
2123
- exportScale: number;
2124
- currentItemStrokeColor: string;
2125
- currentItemBackgroundColor: string;
2126
- currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
2127
- currentItemStrokeWidth: number;
2128
- currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
2129
- currentItemRoughness: number;
2130
- currentItemOpacity: number;
2131
- currentItemFontFamily: number;
2132
- currentItemFontSize: number;
2133
- currentItemTextAlign: string;
2134
- currentItemStartArrowhead: Arrowhead | null;
2135
- currentItemEndArrowhead: Arrowhead | null;
2136
- currentHoveredFontFamily: number | null;
2137
- currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
2138
- currentItemArrowType: "round" | "sharp" | "elbow";
2139
- viewBackgroundColor: string;
2140
- scrollX: number;
2141
- scrollY: number;
2142
- cursorButton: "up" | "down";
2143
- scrolledOutside: boolean;
2144
- name: string | null;
2145
- isResizing: boolean;
2146
- isRotating: boolean;
2147
- zoom: Readonly<{
2148
- value: import("../types").NormalizedZoomValue;
2149
- }>;
2150
- openMenu: "canvas" | null;
2151
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
2152
- openSidebar: {
2153
- name: string;
2154
- tab?: string | undefined;
2155
- } | null;
2156
- openDialog: {
2157
- name: "imageExport" | "help" | "jsonExport";
2158
- } | {
2159
- name: "ttd";
2160
- tab: "mermaid" | "text-to-diagram";
2161
- } | {
2162
- name: "commandPalette";
2163
- } | {
2164
- name: "elementLinkSelector";
2165
- sourceElementId: string;
2166
- } | null;
2167
- defaultSidebarDockedPreference: boolean;
2168
- lastPointerDownWith: import("@excalidraw/element/types").PointerType;
2169
- selectedElementIds: Readonly<{
2170
- [id: string]: true;
2171
- }>;
2172
- hoveredElementIds: Readonly<{
2173
- [id: string]: true;
2174
- }>;
2175
- previousSelectedElementIds: {
2176
- [id: string]: true;
2177
- };
2178
- selectedElementsAreBeingDragged: boolean;
2179
- shouldCacheIgnoreZoom: boolean;
2180
- toast: {
2181
- message: string;
2182
- closable?: boolean | undefined;
2183
- duration?: number | undefined;
2184
- } | null;
2185
- zenModeEnabled: boolean;
2186
- theme: import("@excalidraw/element/types").Theme;
2187
- gridSize: number;
2188
- gridStep: number;
2189
- gridModeEnabled: boolean;
2190
- viewModeEnabled: boolean;
2191
- selectedGroupIds: {
2192
- [groupId: string]: boolean;
2193
- };
2194
- editingGroupId: string | null;
2195
- width: number;
2196
- height: number;
2197
- offsetTop: number;
2198
- offsetLeft: number;
2199
- fileHandle: import("browser-fs-access").FileSystemHandle | null;
2200
- collaborators: Map<import("../types").SocketId, Readonly<{
2201
- pointer?: import("../types").CollaboratorPointer | undefined;
2202
- button?: "up" | "down" | undefined;
2203
- selectedElementIds?: Readonly<{
2204
- [id: string]: true;
2205
- }> | undefined;
2206
- username?: string | null | undefined;
2207
- userState?: import("@excalidraw/common").UserIdleState | undefined;
2208
- color?: {
2209
- background: string;
2210
- stroke: string;
2211
- } | undefined;
2212
- avatarUrl?: string | undefined;
2213
- id?: string | undefined;
2214
- socketId?: import("../types").SocketId | undefined;
2215
- isCurrentUser?: boolean | undefined;
2216
- isInCall?: boolean | undefined;
2217
- isSpeaking?: boolean | undefined;
2218
- isMuted?: boolean | undefined;
2219
- }>>;
2220
- stats: {
2221
- open: boolean;
2222
- panels: number;
2223
- };
2224
- currentChartType: import("@excalidraw/element/types").ChartType;
2225
- pasteDialog: {
2226
- shown: false;
2227
- data: null;
2228
- } | {
2229
- shown: true;
2230
- data: import("../charts").Spreadsheet;
2231
- };
2232
- showHyperlinkPopup: false | "info" | "editor";
2233
- selectedLinearElement: LinearElementEditor | null;
2234
- snapLines: readonly import("../snapping").SnapLine[];
2235
- originSnapOffset: {
2236
- x: number;
2237
- y: number;
2238
- } | null;
2239
- objectsSnapModeEnabled: boolean;
2240
- userToFollow: import("../types").UserToFollow | null;
2241
- followedBy: Set<import("../types").SocketId>;
2242
- isCropping: boolean;
2243
- croppingElementId: string | null;
2244
- searchMatches: Readonly<{
2245
- focusedId: string | null;
2246
- matches: readonly import("../types").SearchMatch[];
2247
- }> | null;
2248
- activeLockedId: string | null;
2249
- lockedMultiSelections: {
2250
- [groupId: string]: true;
2251
- };
2252
- };
2253
- captureUpdate: "IMMEDIATELY";
2254
- };
2255
- PanelComponent: ({ elements, appState, updateData, app, data }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
2256
- } & {
2257
- keyTest?: undefined;
5
+ export declare const getFormValue: <T extends Primitive>(elements: readonly ExcalidrawElement[], app: AppClassProperties, getAttribute: (element: ExcalidrawElement) => T, elementPredicate: true | ((element: ExcalidrawElement) => boolean), defaultValue: T | ((isSomeElementSelected: boolean) => T)) => T;
6
+ export declare const actionChangeStrokeColor: import("./types").Action<Pick<AppState, "currentItemStrokeColor">> & {
7
+ keyTest?: ((event: React.KeyboardEvent | KeyboardEvent, appState: AppState, elements: readonly ExcalidrawElement[], app: AppClassProperties) => boolean) | undefined;
8
+ };
9
+ export declare const actionChangeBackgroundColor: import("./types").Action<Pick<AppState, "viewBackgroundColor" | "currentItemBackgroundColor">> & {
10
+ keyTest?: ((event: React.KeyboardEvent | KeyboardEvent, appState: AppState, elements: readonly ExcalidrawElement[], app: AppClassProperties) => boolean) | undefined;
11
+ };
12
+ export declare const actionChangeFillStyle: import("./types").Action<import("@excalidraw/element/types").FillStyle> & {
13
+ keyTest?: ((event: React.KeyboardEvent | KeyboardEvent, appState: AppState, elements: readonly ExcalidrawElement[], app: AppClassProperties) => boolean) | undefined;
14
+ };
15
+ export declare const actionChangeStrokeWidth: import("./types").Action<number> & {
16
+ keyTest?: ((event: React.KeyboardEvent | KeyboardEvent, appState: AppState, elements: readonly ExcalidrawElement[], app: AppClassProperties) => boolean) | undefined;
17
+ };
18
+ export declare const actionChangeSloppiness: import("./types").Action<number> & {
19
+ keyTest?: ((event: React.KeyboardEvent | KeyboardEvent, appState: AppState, elements: readonly ExcalidrawElement[], app: AppClassProperties) => boolean) | undefined;
20
+ };
21
+ export declare const actionChangeStrokeStyle: import("./types").Action<import("@excalidraw/element/types").StrokeStyle> & {
22
+ keyTest?: ((event: React.KeyboardEvent | KeyboardEvent, appState: AppState, elements: readonly ExcalidrawElement[], app: AppClassProperties) => boolean) | undefined;
2258
23
  };
2259
- export declare const actionChangeRoundness: {
2260
- name: "changeRoundness";
24
+ export declare const actionChangeOpacity: import("./types").Action<number> & {
25
+ keyTest?: ((event: React.KeyboardEvent | KeyboardEvent, appState: AppState, elements: readonly ExcalidrawElement[], app: AppClassProperties) => boolean) | undefined;
26
+ };
27
+ export declare const actionChangeFontSize: import("./types").Action<number> & {
28
+ keyTest?: ((event: React.KeyboardEvent | KeyboardEvent, appState: AppState, elements: readonly ExcalidrawElement[], app: AppClassProperties) => boolean) | undefined;
29
+ };
30
+ export declare const actionDecreaseFontSize: {
31
+ name: "decreaseFontSize";
2261
32
  label: string;
33
+ icon: import("react/jsx-runtime").JSX.Element;
2262
34
  trackEvent: false;
2263
- perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, value: any) => {
35
+ perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, value: unknown, app: AppClassProperties) => {
2264
36
  elements: ExcalidrawElement[];
2265
37
  appState: {
2266
- currentItemRoundness: any;
38
+ currentItemFontSize: number;
2267
39
  contextMenu: {
2268
40
  items: import("../components/ContextMenu").ContextMenuItems;
2269
41
  top: number;
@@ -2271,18 +43,24 @@ export declare const actionChangeRoundness: {
2271
43
  } | null;
2272
44
  showWelcomeScreen: boolean;
2273
45
  isLoading: boolean;
2274
- errorMessage: import("react").ReactNode;
46
+ errorMessage: React.ReactNode;
2275
47
  activeEmbeddable: {
2276
48
  element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
2277
- state: "active" | "hover";
49
+ state: "hover" | "active";
2278
50
  } | null;
2279
51
  newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
2280
52
  resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
2281
53
  multiElement: import("@excalidraw/element/types").NonDeleted<ExcalidrawLinearElement> | null;
2282
54
  selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
2283
55
  isBindingEnabled: boolean;
56
+ boxSelectionMode: import("../types").BoxSelectionMode;
57
+ bindingPreference: "enabled" | "disabled";
58
+ isMidpointSnappingEnabled: boolean;
2284
59
  startBoundElement: import("@excalidraw/element/types").NonDeleted<ExcalidrawBindableElement> | null;
2285
- suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
60
+ suggestedBinding: {
61
+ element: import("@excalidraw/element/types").NonDeleted<ExcalidrawBindableElement>;
62
+ midPoint?: import("@excalidraw/math").GlobalPoint;
63
+ } | null;
2286
64
  frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
2287
65
  frameRendering: {
2288
66
  enabled: boolean;
@@ -2292,7 +70,7 @@ export declare const actionChangeRoundness: {
2292
70
  };
2293
71
  editingFrame: string | null;
2294
72
  elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
2295
- editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
73
+ editingTextElement: ExcalidrawTextElement | null;
2296
74
  activeTool: {
2297
75
  lastActiveTool: import("../types").ActiveTool | null;
2298
76
  locked: boolean;
@@ -2310,18 +88,18 @@ export declare const actionChangeRoundness: {
2310
88
  exportScale: number;
2311
89
  currentItemStrokeColor: string;
2312
90
  currentItemBackgroundColor: string;
2313
- currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
91
+ currentItemFillStyle: ExcalidrawElement["fillStyle"];
2314
92
  currentItemStrokeWidth: number;
2315
- currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
93
+ currentItemStrokeStyle: ExcalidrawElement["strokeStyle"];
2316
94
  currentItemRoughness: number;
2317
95
  currentItemOpacity: number;
2318
- currentItemFontFamily: number;
2319
- currentItemFontSize: number;
2320
- currentItemTextAlign: string;
96
+ currentItemFontFamily: FontFamilyValues;
97
+ currentItemTextAlign: TextAlign;
2321
98
  currentItemStartArrowhead: Arrowhead | null;
2322
99
  currentItemEndArrowhead: Arrowhead | null;
2323
- currentHoveredFontFamily: number | null;
2324
- currentItemArrowType: "round" | "sharp" | "elbow";
100
+ currentHoveredFontFamily: FontFamilyValues | null;
101
+ currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
102
+ currentItemArrowType: "sharp" | "round" | "elbow";
2325
103
  viewBackgroundColor: string;
2326
104
  scrollX: number;
2327
105
  scrollY: number;
@@ -2330,26 +108,30 @@ export declare const actionChangeRoundness: {
2330
108
  name: string | null;
2331
109
  isResizing: boolean;
2332
110
  isRotating: boolean;
2333
- zoom: Readonly<{
2334
- value: import("../types").NormalizedZoomValue;
2335
- }>;
111
+ zoom: import("../types").Zoom;
2336
112
  openMenu: "canvas" | null;
2337
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
113
+ openPopup: "canvasBackground" | "elementBackground" | "elementStroke" | "fontFamily" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
2338
114
  openSidebar: {
2339
- name: string;
2340
- tab?: string | undefined;
115
+ name: import("../types").SidebarName;
116
+ tab?: import("../types").SidebarTabName;
2341
117
  } | null;
2342
- openDialog: {
118
+ openDialog: null | {
2343
119
  name: "imageExport" | "help" | "jsonExport";
2344
120
  } | {
2345
121
  name: "ttd";
2346
- tab: "mermaid" | "text-to-diagram";
122
+ tab: "text-to-diagram" | "mermaid";
2347
123
  } | {
2348
124
  name: "commandPalette";
125
+ } | {
126
+ name: "settings";
2349
127
  } | {
2350
128
  name: "elementLinkSelector";
2351
- sourceElementId: string;
2352
- } | null;
129
+ sourceElementId: ExcalidrawElement["id"];
130
+ } | {
131
+ name: "charts";
132
+ data: import("../charts").Spreadsheet;
133
+ rawText: string;
134
+ };
2353
135
  defaultSidebarDockedPreference: boolean;
2354
136
  lastPointerDownWith: import("@excalidraw/element/types").PointerType;
2355
137
  selectedElementIds: Readonly<{
@@ -2364,9 +146,9 @@ export declare const actionChangeRoundness: {
2364
146
  selectedElementsAreBeingDragged: boolean;
2365
147
  shouldCacheIgnoreZoom: boolean;
2366
148
  toast: {
2367
- message: string;
2368
- closable?: boolean | undefined;
2369
- duration?: number | undefined;
149
+ message: React.ReactNode;
150
+ closable?: boolean;
151
+ duration?: number;
2370
152
  } | null;
2371
153
  zenModeEnabled: boolean;
2372
154
  theme: import("@excalidraw/element/types").Theme;
@@ -2377,44 +159,17 @@ export declare const actionChangeRoundness: {
2377
159
  selectedGroupIds: {
2378
160
  [groupId: string]: boolean;
2379
161
  };
2380
- editingGroupId: string | null;
162
+ editingGroupId: import("@excalidraw/element/types").GroupId | null;
2381
163
  width: number;
2382
164
  height: number;
2383
165
  offsetTop: number;
2384
166
  offsetLeft: number;
2385
- fileHandle: import("browser-fs-access").FileSystemHandle | null;
2386
- collaborators: Map<import("../types").SocketId, Readonly<{
2387
- pointer?: import("../types").CollaboratorPointer | undefined;
2388
- button?: "up" | "down" | undefined;
2389
- selectedElementIds?: Readonly<{
2390
- [id: string]: true;
2391
- }> | undefined;
2392
- username?: string | null | undefined;
2393
- userState?: import("@excalidraw/common").UserIdleState | undefined;
2394
- color?: {
2395
- background: string;
2396
- stroke: string;
2397
- } | undefined;
2398
- avatarUrl?: string | undefined;
2399
- id?: string | undefined;
2400
- socketId?: import("../types").SocketId | undefined;
2401
- isCurrentUser?: boolean | undefined;
2402
- isInCall?: boolean | undefined;
2403
- isSpeaking?: boolean | undefined;
2404
- isMuted?: boolean | undefined;
2405
- }>>;
167
+ fileHandle: FileSystemFileHandle | null;
168
+ collaborators: Map<import("../types").SocketId, import("../types").Collaborator>;
2406
169
  stats: {
2407
170
  open: boolean;
2408
171
  panels: number;
2409
172
  };
2410
- currentChartType: import("@excalidraw/element/types").ChartType;
2411
- pasteDialog: {
2412
- shown: false;
2413
- data: null;
2414
- } | {
2415
- shown: true;
2416
- data: import("../charts").Spreadsheet;
2417
- };
2418
173
  showHyperlinkPopup: false | "info" | "editor";
2419
174
  selectedLinearElement: LinearElementEditor | null;
2420
175
  snapLines: readonly import("../snapping").SnapLine[];
@@ -2426,32 +181,32 @@ export declare const actionChangeRoundness: {
2426
181
  userToFollow: import("../types").UserToFollow | null;
2427
182
  followedBy: Set<import("../types").SocketId>;
2428
183
  isCropping: boolean;
2429
- croppingElementId: string | null;
184
+ croppingElementId: ExcalidrawElement["id"] | null;
2430
185
  searchMatches: Readonly<{
2431
- focusedId: string | null;
186
+ focusedId: ExcalidrawElement["id"] | null;
2432
187
  matches: readonly import("../types").SearchMatch[];
2433
188
  }> | null;
2434
189
  activeLockedId: string | null;
2435
190
  lockedMultiSelections: {
2436
191
  [groupId: string]: true;
2437
192
  };
193
+ bindMode: import("@excalidraw/element/types").BindMode;
2438
194
  };
2439
195
  captureUpdate: "IMMEDIATELY";
2440
196
  };
2441
- PanelComponent: ({ elements, appState, updateData, app, renderAction }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
197
+ keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
2442
198
  } & {
2443
- keyTest?: undefined;
199
+ keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
2444
200
  };
2445
- export declare const actionChangeArrowhead: {
2446
- name: "changeArrowhead";
201
+ export declare const actionIncreaseFontSize: {
202
+ name: "increaseFontSize";
2447
203
  label: string;
204
+ icon: import("react/jsx-runtime").JSX.Element;
2448
205
  trackEvent: false;
2449
- perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, value: {
2450
- position: "start" | "end";
2451
- type: Arrowhead;
2452
- }) => {
206
+ perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, value: unknown, app: AppClassProperties) => {
2453
207
  elements: ExcalidrawElement[];
2454
208
  appState: {
209
+ currentItemFontSize: number;
2455
210
  contextMenu: {
2456
211
  items: import("../components/ContextMenu").ContextMenuItems;
2457
212
  top: number;
@@ -2459,18 +214,24 @@ export declare const actionChangeArrowhead: {
2459
214
  } | null;
2460
215
  showWelcomeScreen: boolean;
2461
216
  isLoading: boolean;
2462
- errorMessage: import("react").ReactNode;
217
+ errorMessage: React.ReactNode;
2463
218
  activeEmbeddable: {
2464
219
  element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
2465
- state: "active" | "hover";
220
+ state: "hover" | "active";
2466
221
  } | null;
2467
222
  newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
2468
223
  resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
2469
224
  multiElement: import("@excalidraw/element/types").NonDeleted<ExcalidrawLinearElement> | null;
2470
225
  selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
2471
226
  isBindingEnabled: boolean;
227
+ boxSelectionMode: import("../types").BoxSelectionMode;
228
+ bindingPreference: "enabled" | "disabled";
229
+ isMidpointSnappingEnabled: boolean;
2472
230
  startBoundElement: import("@excalidraw/element/types").NonDeleted<ExcalidrawBindableElement> | null;
2473
- suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
231
+ suggestedBinding: {
232
+ element: import("@excalidraw/element/types").NonDeleted<ExcalidrawBindableElement>;
233
+ midPoint?: import("@excalidraw/math").GlobalPoint;
234
+ } | null;
2474
235
  frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
2475
236
  frameRendering: {
2476
237
  enabled: boolean;
@@ -2480,7 +241,7 @@ export declare const actionChangeArrowhead: {
2480
241
  };
2481
242
  editingFrame: string | null;
2482
243
  elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
2483
- editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
244
+ editingTextElement: ExcalidrawTextElement | null;
2484
245
  activeTool: {
2485
246
  lastActiveTool: import("../types").ActiveTool | null;
2486
247
  locked: boolean;
@@ -2498,19 +259,18 @@ export declare const actionChangeArrowhead: {
2498
259
  exportScale: number;
2499
260
  currentItemStrokeColor: string;
2500
261
  currentItemBackgroundColor: string;
2501
- currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
262
+ currentItemFillStyle: ExcalidrawElement["fillStyle"];
2502
263
  currentItemStrokeWidth: number;
2503
- currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
264
+ currentItemStrokeStyle: ExcalidrawElement["strokeStyle"];
2504
265
  currentItemRoughness: number;
2505
266
  currentItemOpacity: number;
2506
- currentItemFontFamily: number;
2507
- currentItemFontSize: number;
2508
- currentItemTextAlign: string;
267
+ currentItemFontFamily: FontFamilyValues;
268
+ currentItemTextAlign: TextAlign;
2509
269
  currentItemStartArrowhead: Arrowhead | null;
2510
270
  currentItemEndArrowhead: Arrowhead | null;
2511
- currentHoveredFontFamily: number | null;
271
+ currentHoveredFontFamily: FontFamilyValues | null;
2512
272
  currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
2513
- currentItemArrowType: "round" | "sharp" | "elbow";
273
+ currentItemArrowType: "sharp" | "round" | "elbow";
2514
274
  viewBackgroundColor: string;
2515
275
  scrollX: number;
2516
276
  scrollY: number;
@@ -2519,26 +279,30 @@ export declare const actionChangeArrowhead: {
2519
279
  name: string | null;
2520
280
  isResizing: boolean;
2521
281
  isRotating: boolean;
2522
- zoom: Readonly<{
2523
- value: import("../types").NormalizedZoomValue;
2524
- }>;
282
+ zoom: import("../types").Zoom;
2525
283
  openMenu: "canvas" | null;
2526
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
284
+ openPopup: "canvasBackground" | "elementBackground" | "elementStroke" | "fontFamily" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
2527
285
  openSidebar: {
2528
- name: string;
2529
- tab?: string | undefined;
286
+ name: import("../types").SidebarName;
287
+ tab?: import("../types").SidebarTabName;
2530
288
  } | null;
2531
- openDialog: {
289
+ openDialog: null | {
2532
290
  name: "imageExport" | "help" | "jsonExport";
2533
291
  } | {
2534
292
  name: "ttd";
2535
- tab: "mermaid" | "text-to-diagram";
293
+ tab: "text-to-diagram" | "mermaid";
2536
294
  } | {
2537
295
  name: "commandPalette";
296
+ } | {
297
+ name: "settings";
2538
298
  } | {
2539
299
  name: "elementLinkSelector";
2540
- sourceElementId: string;
2541
- } | null;
300
+ sourceElementId: ExcalidrawElement["id"];
301
+ } | {
302
+ name: "charts";
303
+ data: import("../charts").Spreadsheet;
304
+ rawText: string;
305
+ };
2542
306
  defaultSidebarDockedPreference: boolean;
2543
307
  lastPointerDownWith: import("@excalidraw/element/types").PointerType;
2544
308
  selectedElementIds: Readonly<{
@@ -2553,9 +317,9 @@ export declare const actionChangeArrowhead: {
2553
317
  selectedElementsAreBeingDragged: boolean;
2554
318
  shouldCacheIgnoreZoom: boolean;
2555
319
  toast: {
2556
- message: string;
2557
- closable?: boolean | undefined;
2558
- duration?: number | undefined;
320
+ message: React.ReactNode;
321
+ closable?: boolean;
322
+ duration?: number;
2559
323
  } | null;
2560
324
  zenModeEnabled: boolean;
2561
325
  theme: import("@excalidraw/element/types").Theme;
@@ -2566,44 +330,17 @@ export declare const actionChangeArrowhead: {
2566
330
  selectedGroupIds: {
2567
331
  [groupId: string]: boolean;
2568
332
  };
2569
- editingGroupId: string | null;
333
+ editingGroupId: import("@excalidraw/element/types").GroupId | null;
2570
334
  width: number;
2571
335
  height: number;
2572
336
  offsetTop: number;
2573
337
  offsetLeft: number;
2574
- fileHandle: import("browser-fs-access").FileSystemHandle | null;
2575
- collaborators: Map<import("../types").SocketId, Readonly<{
2576
- pointer?: import("../types").CollaboratorPointer | undefined;
2577
- button?: "up" | "down" | undefined;
2578
- selectedElementIds?: Readonly<{
2579
- [id: string]: true;
2580
- }> | undefined;
2581
- username?: string | null | undefined;
2582
- userState?: import("@excalidraw/common").UserIdleState | undefined;
2583
- color?: {
2584
- background: string;
2585
- stroke: string;
2586
- } | undefined;
2587
- avatarUrl?: string | undefined;
2588
- id?: string | undefined;
2589
- socketId?: import("../types").SocketId | undefined;
2590
- isCurrentUser?: boolean | undefined;
2591
- isInCall?: boolean | undefined;
2592
- isSpeaking?: boolean | undefined;
2593
- isMuted?: boolean | undefined;
2594
- }>>;
338
+ fileHandle: FileSystemFileHandle | null;
339
+ collaborators: Map<import("../types").SocketId, import("../types").Collaborator>;
2595
340
  stats: {
2596
341
  open: boolean;
2597
342
  panels: number;
2598
343
  };
2599
- currentChartType: import("@excalidraw/element/types").ChartType;
2600
- pasteDialog: {
2601
- shown: false;
2602
- data: null;
2603
- } | {
2604
- shown: true;
2605
- data: import("../charts").Spreadsheet;
2606
- };
2607
344
  showHyperlinkPopup: false | "info" | "editor";
2608
345
  selectedLinearElement: LinearElementEditor | null;
2609
346
  snapLines: readonly import("../snapping").SnapLine[];
@@ -2615,214 +352,53 @@ export declare const actionChangeArrowhead: {
2615
352
  userToFollow: import("../types").UserToFollow | null;
2616
353
  followedBy: Set<import("../types").SocketId>;
2617
354
  isCropping: boolean;
2618
- croppingElementId: string | null;
355
+ croppingElementId: ExcalidrawElement["id"] | null;
2619
356
  searchMatches: Readonly<{
2620
- focusedId: string | null;
357
+ focusedId: ExcalidrawElement["id"] | null;
2621
358
  matches: readonly import("../types").SearchMatch[];
2622
359
  }> | null;
2623
360
  activeLockedId: string | null;
2624
361
  lockedMultiSelections: {
2625
362
  [groupId: string]: true;
2626
363
  };
364
+ bindMode: import("@excalidraw/element/types").BindMode;
2627
365
  };
2628
366
  captureUpdate: "IMMEDIATELY";
2629
367
  };
2630
- PanelComponent: ({ elements, appState, updateData, app }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
368
+ keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
2631
369
  } & {
2632
- keyTest?: undefined;
370
+ keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
371
+ };
372
+ export declare const actionChangeFontFamily: import("./types").Action<{
373
+ currentItemFontFamily: any;
374
+ currentHoveredFontFamily: any;
375
+ }> & {
376
+ keyTest?: ((event: React.KeyboardEvent | KeyboardEvent, appState: AppState, elements: readonly ExcalidrawElement[], app: AppClassProperties) => boolean) | undefined;
377
+ };
378
+ export declare const actionChangeTextAlign: import("./types").Action<string> & {
379
+ keyTest?: ((event: React.KeyboardEvent | KeyboardEvent, appState: AppState, elements: readonly ExcalidrawElement[], app: AppClassProperties) => boolean) | undefined;
380
+ };
381
+ export declare const actionChangeVerticalAlign: import("./types").Action<string> & {
382
+ keyTest?: ((event: React.KeyboardEvent | KeyboardEvent, appState: AppState, elements: readonly ExcalidrawElement[], app: AppClassProperties) => boolean) | undefined;
383
+ };
384
+ export declare const actionChangeRoundness: import("./types").Action<"round" | "sharp"> & {
385
+ keyTest?: ((event: React.KeyboardEvent | KeyboardEvent, appState: AppState, elements: readonly ExcalidrawElement[], app: AppClassProperties) => boolean) | undefined;
386
+ };
387
+ export declare const actionChangeArrowhead: import("./types").Action<{
388
+ position: "start" | "end";
389
+ type: Arrowhead;
390
+ }> & {
391
+ keyTest?: ((event: React.KeyboardEvent | KeyboardEvent, appState: AppState, elements: readonly ExcalidrawElement[], app: AppClassProperties) => boolean) | undefined;
2633
392
  };
2634
393
  export declare const actionChangeArrowProperties: {
2635
394
  name: "changeArrowProperties";
2636
395
  label: string;
2637
396
  trackEvent: false;
2638
- perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, value: any, app: AppClassProperties) => false;
397
+ perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, value: unknown, app: AppClassProperties) => false;
2639
398
  PanelComponent: ({ elements, appState, updateData, app, renderAction }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
2640
399
  } & {
2641
400
  keyTest?: undefined;
2642
401
  };
2643
- export declare const actionChangeArrowType: {
2644
- name: "changeArrowType";
2645
- label: string;
2646
- trackEvent: false;
2647
- perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, value: any, app: AppClassProperties) => {
2648
- elements: ExcalidrawElement[];
2649
- appState: {
2650
- currentItemArrowType: any;
2651
- contextMenu: {
2652
- items: import("../components/ContextMenu").ContextMenuItems;
2653
- top: number;
2654
- left: number;
2655
- } | null;
2656
- showWelcomeScreen: boolean;
2657
- isLoading: boolean;
2658
- errorMessage: import("react").ReactNode;
2659
- activeEmbeddable: {
2660
- element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
2661
- state: "active" | "hover";
2662
- } | null;
2663
- newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
2664
- resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
2665
- multiElement: import("@excalidraw/element/types").NonDeleted<ExcalidrawLinearElement> | null;
2666
- selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
2667
- isBindingEnabled: boolean;
2668
- startBoundElement: import("@excalidraw/element/types").NonDeleted<ExcalidrawBindableElement> | null;
2669
- suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
2670
- frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
2671
- frameRendering: {
2672
- enabled: boolean;
2673
- name: boolean;
2674
- outline: boolean;
2675
- clip: boolean;
2676
- };
2677
- editingFrame: string | null;
2678
- elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
2679
- editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
2680
- activeTool: {
2681
- lastActiveTool: import("../types").ActiveTool | null;
2682
- locked: boolean;
2683
- fromSelection: boolean;
2684
- } & import("../types").ActiveTool;
2685
- preferredSelectionTool: {
2686
- type: "selection" | "lasso";
2687
- initialized: boolean;
2688
- };
2689
- penMode: boolean;
2690
- penDetected: boolean;
2691
- exportBackground: boolean;
2692
- exportEmbedScene: boolean;
2693
- exportWithDarkMode: boolean;
2694
- exportScale: number;
2695
- currentItemStrokeColor: string;
2696
- currentItemBackgroundColor: string;
2697
- currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
2698
- currentItemStrokeWidth: number;
2699
- currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
2700
- currentItemRoughness: number;
2701
- currentItemOpacity: number;
2702
- currentItemFontFamily: number;
2703
- currentItemFontSize: number;
2704
- currentItemTextAlign: string;
2705
- currentItemStartArrowhead: Arrowhead | null;
2706
- currentItemEndArrowhead: Arrowhead | null;
2707
- currentHoveredFontFamily: number | null;
2708
- currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
2709
- viewBackgroundColor: string;
2710
- scrollX: number;
2711
- scrollY: number;
2712
- cursorButton: "up" | "down";
2713
- scrolledOutside: boolean;
2714
- name: string | null;
2715
- isResizing: boolean;
2716
- isRotating: boolean;
2717
- zoom: Readonly<{
2718
- value: import("../types").NormalizedZoomValue;
2719
- }>;
2720
- openMenu: "canvas" | null;
2721
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
2722
- openSidebar: {
2723
- name: string;
2724
- tab?: string | undefined;
2725
- } | null;
2726
- openDialog: {
2727
- name: "imageExport" | "help" | "jsonExport";
2728
- } | {
2729
- name: "ttd";
2730
- tab: "mermaid" | "text-to-diagram";
2731
- } | {
2732
- name: "commandPalette";
2733
- } | {
2734
- name: "elementLinkSelector";
2735
- sourceElementId: string;
2736
- } | null;
2737
- defaultSidebarDockedPreference: boolean;
2738
- lastPointerDownWith: import("@excalidraw/element/types").PointerType;
2739
- selectedElementIds: Readonly<{
2740
- [id: string]: true;
2741
- }>;
2742
- hoveredElementIds: Readonly<{
2743
- [id: string]: true;
2744
- }>;
2745
- previousSelectedElementIds: {
2746
- [id: string]: true;
2747
- };
2748
- selectedElementsAreBeingDragged: boolean;
2749
- shouldCacheIgnoreZoom: boolean;
2750
- toast: {
2751
- message: string;
2752
- closable?: boolean | undefined;
2753
- duration?: number | undefined;
2754
- } | null;
2755
- zenModeEnabled: boolean;
2756
- theme: import("@excalidraw/element/types").Theme;
2757
- gridSize: number;
2758
- gridStep: number;
2759
- gridModeEnabled: boolean;
2760
- viewModeEnabled: boolean;
2761
- selectedGroupIds: {
2762
- [groupId: string]: boolean;
2763
- };
2764
- editingGroupId: string | null;
2765
- width: number;
2766
- height: number;
2767
- offsetTop: number;
2768
- offsetLeft: number;
2769
- fileHandle: import("browser-fs-access").FileSystemHandle | null;
2770
- collaborators: Map<import("../types").SocketId, Readonly<{
2771
- pointer?: import("../types").CollaboratorPointer | undefined;
2772
- button?: "up" | "down" | undefined;
2773
- selectedElementIds?: Readonly<{
2774
- [id: string]: true;
2775
- }> | undefined;
2776
- username?: string | null | undefined;
2777
- userState?: import("@excalidraw/common").UserIdleState | undefined;
2778
- color?: {
2779
- background: string;
2780
- stroke: string;
2781
- } | undefined;
2782
- avatarUrl?: string | undefined;
2783
- id?: string | undefined;
2784
- socketId?: import("../types").SocketId | undefined;
2785
- isCurrentUser?: boolean | undefined;
2786
- isInCall?: boolean | undefined;
2787
- isSpeaking?: boolean | undefined;
2788
- isMuted?: boolean | undefined;
2789
- }>>;
2790
- stats: {
2791
- open: boolean;
2792
- panels: number;
2793
- };
2794
- currentChartType: import("@excalidraw/element/types").ChartType;
2795
- pasteDialog: {
2796
- shown: false;
2797
- data: null;
2798
- } | {
2799
- shown: true;
2800
- data: import("../charts").Spreadsheet;
2801
- };
2802
- showHyperlinkPopup: false | "info" | "editor";
2803
- selectedLinearElement: LinearElementEditor | null;
2804
- snapLines: readonly import("../snapping").SnapLine[];
2805
- originSnapOffset: {
2806
- x: number;
2807
- y: number;
2808
- } | null;
2809
- objectsSnapModeEnabled: boolean;
2810
- userToFollow: import("../types").UserToFollow | null;
2811
- followedBy: Set<import("../types").SocketId>;
2812
- isCropping: boolean;
2813
- croppingElementId: string | null;
2814
- searchMatches: Readonly<{
2815
- focusedId: string | null;
2816
- matches: readonly import("../types").SearchMatch[];
2817
- }> | null;
2818
- activeLockedId: string | null;
2819
- lockedMultiSelections: {
2820
- [groupId: string]: true;
2821
- };
2822
- };
2823
- captureUpdate: "IMMEDIATELY";
2824
- };
2825
- PanelComponent: ({ elements, appState, updateData, app }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
2826
- } & {
2827
- keyTest?: undefined;
402
+ export declare const actionChangeArrowType: import("./types").Action<"round" | "sharp" | "elbow"> & {
403
+ keyTest?: ((event: React.KeyboardEvent | KeyboardEvent, appState: AppState, elements: readonly ExcalidrawElement[], app: AppClassProperties) => boolean) | undefined;
2828
404
  };