@excalidraw/element 0.18.0-7b8a5f54c → 0.18.0-7ea3229

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 (240) hide show
  1. package/dist/dev/index.js +5099 -2604
  2. package/dist/dev/index.js.map +4 -4
  3. package/dist/prod/index.js +18 -18
  4. package/dist/types/common/debug.d.ts +21 -0
  5. package/dist/types/common/src/bounds.d.ts +10 -0
  6. package/dist/types/common/src/colors.d.ts +59 -39
  7. package/dist/types/common/src/constants.d.ts +37 -26
  8. package/dist/types/common/src/editorInterface.d.ts +34 -0
  9. package/dist/types/common/src/font-metadata.d.ts +1 -3
  10. package/dist/types/common/src/index.d.ts +3 -0
  11. package/dist/types/common/src/keys.d.ts +1 -1
  12. package/dist/types/common/src/utility-types.d.ts +0 -1
  13. package/dist/types/common/src/utils.d.ts +52 -38
  14. package/dist/types/element/src/Scene.d.ts +3 -3
  15. package/dist/types/element/src/arrows/focus.d.ts +27 -0
  16. package/dist/types/element/src/arrows/helpers.d.ts +5 -0
  17. package/dist/types/element/src/binding.d.ts +66 -46
  18. package/dist/types/element/src/bounds.d.ts +3 -11
  19. package/dist/types/element/src/collision.d.ts +7 -2
  20. package/dist/types/element/src/comparisons.d.ts +7 -7
  21. package/dist/types/element/src/delta.d.ts +4 -4
  22. package/dist/types/element/src/distribute.d.ts +2 -1
  23. package/dist/types/element/src/dragElements.d.ts +3 -3
  24. package/dist/types/element/src/duplicate.d.ts +3 -3
  25. package/dist/types/element/src/fractionalIndex.d.ts +2 -2
  26. package/dist/types/element/src/frame.d.ts +5 -1
  27. package/dist/types/element/src/heading.d.ts +2 -1
  28. package/dist/types/element/src/image.d.ts +1 -11
  29. package/dist/types/element/src/index.d.ts +4 -3
  30. package/dist/types/element/src/linearElementEditor.d.ts +18 -20
  31. package/dist/types/element/src/mutateElement.d.ts +3 -1
  32. package/dist/types/element/src/newElement.d.ts +6 -6
  33. package/dist/types/element/src/positionElementsOnGrid.d.ts +2 -0
  34. package/dist/types/element/src/renderElement.d.ts +4 -7
  35. package/dist/types/element/src/resizeElements.d.ts +10 -10
  36. package/dist/types/element/src/resizeTest.d.ts +6 -5
  37. package/dist/types/element/src/selection.d.ts +3 -7
  38. package/dist/types/element/src/shape.d.ts +8 -7
  39. package/dist/types/element/src/store.d.ts +3 -2
  40. package/dist/types/element/src/textElement.d.ts +1 -1
  41. package/dist/types/element/src/textMeasurements.d.ts +1 -3
  42. package/dist/types/{excalidraw/data → element/src}/transform.d.ts +3 -3
  43. package/dist/types/element/src/transformHandles.d.ts +8 -27
  44. package/dist/types/element/src/typeChecks.d.ts +4 -7
  45. package/dist/types/element/src/types.d.ts +7 -11
  46. package/dist/types/element/src/utils.d.ts +8 -3
  47. package/dist/types/element/src/visualdebug.d.ts +59 -0
  48. package/dist/types/element/src/zindex.d.ts +7 -1
  49. package/dist/types/excalidraw/actions/actionAddToLibrary.d.ts +102 -136
  50. package/dist/types/excalidraw/actions/actionAlign.d.ts +6 -7
  51. package/dist/types/excalidraw/actions/actionBoundText.d.ts +73 -96
  52. package/dist/types/excalidraw/actions/actionCanvas.d.ts +438 -758
  53. package/dist/types/excalidraw/actions/actionClipboard.d.ts +92 -856
  54. package/dist/types/excalidraw/actions/actionCropEditor.d.ts +35 -47
  55. package/dist/types/excalidraw/actions/actionDeleteSelected.d.ts +121 -159
  56. package/dist/types/excalidraw/actions/actionDistribute.d.ts +2 -3
  57. package/dist/types/excalidraw/actions/actionDuplicateSelection.d.ts +2 -3
  58. package/dist/types/excalidraw/actions/actionElementLink.d.ts +31 -45
  59. package/dist/types/excalidraw/actions/actionElementLock.d.ts +72 -95
  60. package/dist/types/excalidraw/actions/actionEmbeddable.d.ts +36 -48
  61. package/dist/types/excalidraw/actions/actionExport.d.ts +161 -1109
  62. package/dist/types/excalidraw/actions/actionFinalize.d.ts +10 -394
  63. package/dist/types/excalidraw/actions/actionFlip.d.ts +2 -3
  64. package/dist/types/excalidraw/actions/actionFrame.d.ts +239 -322
  65. package/dist/types/excalidraw/actions/actionGroup.d.ts +76 -107
  66. package/dist/types/excalidraw/actions/actionLinearEditor.d.ts +145 -195
  67. package/dist/types/excalidraw/actions/actionLink.d.ts +33 -45
  68. package/dist/types/excalidraw/actions/actionMenu.d.ts +30 -410
  69. package/dist/types/excalidraw/actions/actionNavigate.d.ts +18 -359
  70. package/dist/types/excalidraw/actions/actionProperties.d.ts +135 -2488
  71. package/dist/types/excalidraw/actions/actionSelectAll.d.ts +38 -54
  72. package/dist/types/excalidraw/actions/actionStyles.d.ts +35 -47
  73. package/dist/types/excalidraw/actions/actionTextAutoResize.d.ts +1 -1
  74. package/dist/types/excalidraw/actions/actionToggleGridMode.d.ts +35 -47
  75. package/dist/types/excalidraw/actions/actionToggleObjectsSnapMode.d.ts +35 -47
  76. package/dist/types/excalidraw/actions/actionToggleSearchMenu.d.ts +28 -42
  77. package/dist/types/excalidraw/actions/actionToggleShapeSwitch.d.ts +1 -1
  78. package/dist/types/excalidraw/actions/actionToggleStats.d.ts +35 -47
  79. package/dist/types/excalidraw/actions/actionToggleViewMode.d.ts +35 -47
  80. package/dist/types/excalidraw/actions/actionToggleZenMode.d.ts +36 -48
  81. package/dist/types/excalidraw/actions/actionZindex.d.ts +2 -3
  82. package/dist/types/excalidraw/actions/index.d.ts +2 -2
  83. package/dist/types/excalidraw/actions/register.d.ts +2 -2
  84. package/dist/types/excalidraw/actions/shortcuts.d.ts +1 -1
  85. package/dist/types/excalidraw/actions/types.d.ts +4 -4
  86. package/dist/types/excalidraw/appState.d.ts +17 -12
  87. package/dist/types/excalidraw/clipboard.d.ts +58 -17
  88. package/dist/types/excalidraw/components/Actions.d.ts +22 -5
  89. package/dist/types/excalidraw/components/App.d.ts +77 -68
  90. package/dist/types/excalidraw/components/Card.d.ts +1 -3
  91. package/dist/types/excalidraw/components/ColorPicker/ColorInput.d.ts +2 -4
  92. package/dist/types/excalidraw/components/ColorPicker/ColorPicker.d.ts +0 -1
  93. package/dist/types/excalidraw/components/ColorPicker/Picker.d.ts +2 -0
  94. package/dist/types/excalidraw/components/ColorPicker/PickerColorList.d.ts +2 -1
  95. package/dist/types/excalidraw/components/ColorPicker/ShadeList.d.ts +2 -1
  96. package/dist/types/excalidraw/components/ColorPicker/colorPickerUtils.d.ts +0 -1
  97. package/dist/types/excalidraw/components/ColorPicker/keyboardNavHandlers.d.ts +0 -1
  98. package/dist/types/excalidraw/components/CommandPalette/CommandPalette.d.ts +1 -0
  99. package/dist/types/excalidraw/components/CommandPalette/types.d.ts +2 -4
  100. package/dist/types/excalidraw/components/ConvertElementTypePopup.d.ts +2 -2
  101. package/dist/types/excalidraw/components/DarkModeToggle.d.ts +1 -1
  102. package/dist/types/excalidraw/components/DefaultSidebar.d.ts +9 -13
  103. package/dist/types/excalidraw/components/ElementLinkDialog.d.ts +1 -1
  104. package/dist/types/excalidraw/components/Ellipsify.d.ts +1 -2
  105. package/dist/types/excalidraw/components/ErrorDialog.d.ts +1 -1
  106. package/dist/types/excalidraw/components/ExcalidrawLogo.d.ts +1 -2
  107. package/dist/types/excalidraw/components/EyeDropper.d.ts +0 -1
  108. package/dist/types/excalidraw/components/FilledButton.d.ts +2 -1
  109. package/dist/types/excalidraw/components/FontPicker/FontPicker.d.ts +2 -1
  110. package/dist/types/excalidraw/components/FontPicker/FontPickerTrigger.d.ts +3 -1
  111. package/dist/types/excalidraw/components/FontPicker/keyboardNavHandlers.d.ts +0 -1
  112. package/dist/types/excalidraw/components/HelpDialog.d.ts +1 -1
  113. package/dist/types/excalidraw/components/HintViewer.d.ts +4 -3
  114. package/dist/types/excalidraw/components/InlineIcon.d.ts +3 -1
  115. package/dist/types/excalidraw/components/LayerUI.d.ts +2 -1
  116. package/dist/types/excalidraw/components/LibraryMenuControlButtons.d.ts +1 -1
  117. package/dist/types/excalidraw/components/LibraryMenuHeaderContent.d.ts +1 -2
  118. package/dist/types/excalidraw/components/LibraryMenuSection.d.ts +1 -1
  119. package/dist/types/excalidraw/components/LibraryUnit.d.ts +2 -3
  120. package/dist/types/excalidraw/components/LoadingMessage.d.ts +0 -1
  121. package/dist/types/excalidraw/components/MobileMenu.d.ts +3 -5
  122. package/dist/types/excalidraw/components/MobileToolBar.d.ts +10 -0
  123. package/dist/types/excalidraw/components/Modal.d.ts +0 -1
  124. package/dist/types/excalidraw/components/OverwriteConfirm/OverwriteConfirm.d.ts +1 -1
  125. package/dist/types/excalidraw/components/Popover.d.ts +2 -1
  126. package/dist/types/excalidraw/components/PropertiesPopover.d.ts +2 -1
  127. package/dist/types/excalidraw/components/RadioGroup.d.ts +0 -1
  128. package/dist/types/excalidraw/components/RadioSelection.d.ts +4 -4
  129. package/dist/types/excalidraw/components/ScrollableList.d.ts +0 -1
  130. package/dist/types/excalidraw/components/Sidebar/Sidebar.d.ts +15 -21
  131. package/dist/types/excalidraw/components/Sidebar/SidebarHeader.d.ts +1 -1
  132. package/dist/types/excalidraw/components/Sidebar/SidebarTab.d.ts +1 -2
  133. package/dist/types/excalidraw/components/Sidebar/SidebarTabTrigger.d.ts +1 -2
  134. package/dist/types/excalidraw/components/Sidebar/SidebarTabTriggers.d.ts +1 -2
  135. package/dist/types/excalidraw/components/Sidebar/SidebarTabs.d.ts +1 -2
  136. package/dist/types/excalidraw/components/Spinner.d.ts +4 -4
  137. package/dist/types/excalidraw/components/Stats/CanvasGrid.d.ts +0 -1
  138. package/dist/types/excalidraw/components/Stats/Collapsible.d.ts +0 -1
  139. package/dist/types/excalidraw/components/Stats/DragInput.d.ts +0 -1
  140. package/dist/types/excalidraw/components/Stats/index.d.ts +7 -8
  141. package/dist/types/excalidraw/components/Stats/utils.d.ts +1 -1
  142. package/dist/types/excalidraw/components/TTDDialog/Chat/ChatHistoryMenu.d.ts +15 -0
  143. package/dist/types/excalidraw/components/TTDDialog/Chat/ChatInterface.d.ts +23 -0
  144. package/dist/types/excalidraw/components/TTDDialog/Chat/ChatMessage.d.ts +14 -0
  145. package/dist/types/excalidraw/components/TTDDialog/Chat/TTDChatPanel.d.ts +27 -0
  146. package/dist/types/excalidraw/components/TTDDialog/Chat/index.d.ts +3 -0
  147. package/dist/types/excalidraw/components/TTDDialog/Chat/useChatAgent.d.ts +8 -0
  148. package/dist/types/excalidraw/components/TTDDialog/MermaidToExcalidraw.d.ts +3 -2
  149. package/dist/types/excalidraw/components/TTDDialog/TTDContext.d.ts +13 -0
  150. package/dist/types/excalidraw/components/TTDDialog/TTDDialog.d.ts +12 -29
  151. package/dist/types/excalidraw/components/TTDDialog/TTDDialogOutput.d.ts +2 -2
  152. package/dist/types/excalidraw/components/TTDDialog/TTDDialogPanel.d.ts +13 -9
  153. package/dist/types/excalidraw/components/TTDDialog/TTDDialogTab.d.ts +1 -2
  154. package/dist/types/excalidraw/components/TTDDialog/TTDDialogTabTrigger.d.ts +1 -2
  155. package/dist/types/excalidraw/components/TTDDialog/TTDDialogTabTriggers.d.ts +1 -2
  156. package/dist/types/excalidraw/components/TTDDialog/TTDDialogTrigger.d.ts +2 -3
  157. package/dist/types/excalidraw/components/TTDDialog/TTDPreviewPanel.d.ts +9 -0
  158. package/dist/types/excalidraw/components/TTDDialog/TTDWelcomeMessage.d.ts +1 -0
  159. package/dist/types/excalidraw/components/TTDDialog/TextToDiagram.d.ts +9 -0
  160. package/dist/types/excalidraw/components/TTDDialog/common.d.ts +16 -16
  161. package/dist/types/excalidraw/components/TTDDialog/hooks/useChatManagement.d.ts +13 -0
  162. package/dist/types/excalidraw/components/TTDDialog/hooks/useMermaidRenderer.d.ts +14 -0
  163. package/dist/types/excalidraw/components/TTDDialog/hooks/useTextGeneration.d.ts +7 -0
  164. package/dist/types/excalidraw/components/TTDDialog/types.d.ts +95 -0
  165. package/dist/types/excalidraw/components/TTDDialog/useTTDChatStorage.d.ts +22 -0
  166. package/dist/types/excalidraw/components/TTDDialog/utils/TTDStreamFetch.d.ts +24 -0
  167. package/dist/types/excalidraw/components/TTDDialog/utils/chat.d.ts +10 -0
  168. package/dist/types/excalidraw/components/TTDDialog/utils/mermaidValidation.d.ts +1 -0
  169. package/dist/types/excalidraw/components/TextField.d.ts +1 -0
  170. package/dist/types/excalidraw/components/Toast.d.ts +3 -3
  171. package/dist/types/excalidraw/components/ToolPopover.d.ts +25 -0
  172. package/dist/types/excalidraw/components/Trans.d.ts +2 -2
  173. package/dist/types/excalidraw/components/canvases/InteractiveCanvas.d.ts +6 -3
  174. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenu.d.ts +47 -35
  175. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuContent.d.ts +7 -5
  176. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuGroup.d.ts +3 -3
  177. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuItem.d.ts +13 -22
  178. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuItemCheckbox.d.ts +5 -0
  179. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuItemContent.d.ts +5 -4
  180. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuItemContentRadio.d.ts +0 -1
  181. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuItemCustom.d.ts +2 -2
  182. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuItemLink.d.ts +6 -6
  183. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuSub.d.ts +23 -0
  184. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuSubContent.d.ts +8 -0
  185. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuSubTrigger.d.ts +12 -0
  186. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuTrigger.d.ts +3 -4
  187. package/dist/types/excalidraw/components/dropdownMenu/common.d.ts +2 -2
  188. package/dist/types/excalidraw/components/dropdownMenu/dropdownMenuUtils.d.ts +2 -0
  189. package/dist/types/excalidraw/components/hoc/withInternalFallback.d.ts +1 -1
  190. package/dist/types/excalidraw/components/hyperlink/helpers.d.ts +1 -1
  191. package/dist/types/excalidraw/components/icons.d.ts +32 -13
  192. package/dist/types/excalidraw/components/live-collaboration/LiveCollaborationTrigger.d.ts +4 -3
  193. package/dist/types/excalidraw/components/main-menu/DefaultItems.d.ts +17 -2
  194. package/dist/types/excalidraw/components/main-menu/MainMenu.d.ts +39 -35
  195. package/dist/types/excalidraw/components/shapes.d.ts +202 -1
  196. package/dist/types/excalidraw/components/welcome-screen/WelcomeScreen.Center.d.ts +6 -6
  197. package/dist/types/excalidraw/components/welcome-screen/WelcomeScreen.d.ts +15 -16
  198. package/dist/types/excalidraw/data/blob.d.ts +330 -10
  199. package/dist/types/excalidraw/data/encode.d.ts +4 -4
  200. package/dist/types/excalidraw/data/encryption.d.ts +5 -5
  201. package/dist/types/excalidraw/data/filesystem.d.ts +2 -2
  202. package/dist/types/excalidraw/data/index.d.ts +3 -3
  203. package/dist/types/excalidraw/data/json.d.ts +162 -2
  204. package/dist/types/excalidraw/data/library.d.ts +24 -9
  205. package/dist/types/excalidraw/data/restore.d.ts +25 -10
  206. package/dist/types/excalidraw/data/types.d.ts +4 -1
  207. package/dist/types/excalidraw/editor-jotai.d.ts +11 -11
  208. package/dist/types/excalidraw/errors.d.ts +14 -0
  209. package/dist/types/excalidraw/hooks/useLibraryItemSvg.d.ts +1 -1
  210. package/dist/types/excalidraw/hooks/useOutsideClick.d.ts +4 -3
  211. package/dist/types/excalidraw/hooks/useScrollPosition.d.ts +1 -2
  212. package/dist/types/excalidraw/hooks/useTextEditorFocus.d.ts +14 -0
  213. package/dist/types/excalidraw/i18n.d.ts +2 -2
  214. package/dist/types/excalidraw/index.d.ts +7 -7
  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 +22 -5
  222. package/dist/types/excalidraw/shortcut.d.ts +1 -0
  223. package/dist/types/excalidraw/snapping.d.ts +5 -5
  224. package/dist/types/excalidraw/subset/harfbuzz/harfbuzz-bindings.d.ts +1 -1
  225. package/dist/types/excalidraw/subset/harfbuzz/harfbuzz-loader.d.ts +1 -1
  226. package/dist/types/excalidraw/subset/harfbuzz/harfbuzz-wasm.d.ts +1 -1
  227. package/dist/types/excalidraw/subset/woff2/woff2-loader.d.ts +2 -2
  228. package/dist/types/excalidraw/subset/woff2/woff2-wasm.d.ts +1 -1
  229. package/dist/types/excalidraw/types.d.ts +38 -21
  230. package/dist/types/excalidraw/wysiwyg/textWysiwyg.d.ts +2 -2
  231. package/dist/types/math/src/point.d.ts +6 -1
  232. package/dist/types/math/src/polygon.d.ts +2 -2
  233. package/dist/types/math/src/range.d.ts +1 -3
  234. package/dist/types/math/src/segment.d.ts +4 -3
  235. package/dist/types/math/src/types.d.ts +25 -1
  236. package/dist/types/utils/src/bbox.d.ts +1 -1
  237. package/dist/types/utils/src/export.d.ts +5 -5
  238. package/dist/types/utils/src/shape.d.ts +6 -6
  239. package/dist/types/utils/src/withinBounds.d.ts +2 -2
  240. package/package.json +9 -3
@@ -1,593 +1,16 @@
1
- /// <reference types="react" />
2
- export declare const actionCopy: {
3
- name: "copy";
4
- label: string;
5
- icon: import("react/jsx-runtime").JSX.Element;
6
- trackEvent: {
7
- category: "element";
8
- };
9
- perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, event: ClipboardEvent | null, app: import("../types").AppClassProperties) => Promise<{
10
- captureUpdate: "EVENTUALLY";
11
- appState: {
12
- errorMessage: any;
13
- contextMenu: {
14
- items: import("../components/ContextMenu").ContextMenuItems;
15
- top: number;
16
- left: number;
17
- } | null;
18
- showWelcomeScreen: boolean;
19
- isLoading: boolean;
20
- activeEmbeddable: {
21
- element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
22
- state: "active" | "hover";
23
- } | null;
24
- newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
25
- resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
26
- multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
27
- selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
28
- isBindingEnabled: boolean;
29
- startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
30
- suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
31
- frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
32
- frameRendering: {
33
- enabled: boolean;
34
- name: boolean;
35
- outline: boolean;
36
- clip: boolean;
37
- };
38
- editingFrame: string | null;
39
- elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
40
- editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
41
- activeTool: {
42
- lastActiveTool: import("../types").ActiveTool | null;
43
- locked: boolean;
44
- fromSelection: boolean;
45
- } & import("../types").ActiveTool;
46
- penMode: boolean;
47
- penDetected: boolean;
48
- exportBackground: boolean;
49
- exportEmbedScene: boolean;
50
- exportWithDarkMode: boolean;
51
- exportScale: number;
52
- currentItemStrokeColor: string;
53
- currentItemBackgroundColor: string;
54
- currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
55
- currentItemStrokeWidth: number;
56
- currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
57
- currentItemRoughness: number;
58
- currentItemOpacity: number;
59
- currentItemFontFamily: number;
60
- currentItemFontSize: number;
61
- currentItemTextAlign: string;
62
- currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
63
- currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
64
- currentHoveredFontFamily: number | null;
65
- currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
66
- currentItemArrowType: "round" | "sharp" | "elbow";
67
- viewBackgroundColor: string;
68
- scrollX: number;
69
- scrollY: number;
70
- cursorButton: "up" | "down";
71
- scrolledOutside: boolean;
72
- name: string | null;
73
- isResizing: boolean;
74
- isRotating: boolean;
75
- zoom: Readonly<{
76
- value: import("../types").NormalizedZoomValue;
77
- }>;
78
- openMenu: "canvas" | "shape" | null;
79
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
80
- openSidebar: {
81
- name: string;
82
- tab?: string | undefined;
83
- } | null;
84
- openDialog: {
85
- name: "imageExport" | "help" | "jsonExport";
86
- } | {
87
- name: "ttd";
88
- tab: "mermaid" | "text-to-diagram";
89
- } | {
90
- name: "commandPalette";
91
- } | {
92
- name: "elementLinkSelector";
93
- sourceElementId: string;
94
- } | null;
95
- defaultSidebarDockedPreference: boolean;
96
- lastPointerDownWith: import("@excalidraw/element/types").PointerType;
97
- selectedElementIds: Readonly<{
98
- [id: string]: true;
99
- }>;
100
- hoveredElementIds: Readonly<{
101
- [id: string]: true;
102
- }>;
103
- previousSelectedElementIds: {
104
- [id: string]: true;
105
- };
106
- selectedElementsAreBeingDragged: boolean;
107
- shouldCacheIgnoreZoom: boolean;
108
- toast: {
109
- message: string;
110
- closable?: boolean | undefined;
111
- duration?: number | undefined;
112
- } | null;
113
- zenModeEnabled: boolean;
114
- theme: import("@excalidraw/element/types").Theme;
115
- gridSize: number;
116
- gridStep: number;
117
- gridModeEnabled: boolean;
118
- viewModeEnabled: boolean;
119
- selectedGroupIds: {
120
- [groupId: string]: boolean;
121
- };
122
- editingGroupId: string | null;
123
- width: number;
124
- height: number;
125
- offsetTop: number;
126
- offsetLeft: number;
127
- fileHandle: import("browser-fs-access").FileSystemHandle | null;
128
- collaborators: Map<import("../types").SocketId, Readonly<{
129
- pointer?: import("../types").CollaboratorPointer | undefined;
130
- button?: "up" | "down" | undefined;
131
- selectedElementIds?: Readonly<{
132
- [id: string]: true;
133
- }> | undefined;
134
- username?: string | null | undefined;
135
- userState?: import("@excalidraw/common").UserIdleState | undefined;
136
- color?: {
137
- background: string;
138
- stroke: string;
139
- } | undefined;
140
- avatarUrl?: string | undefined;
141
- id?: string | undefined;
142
- socketId?: import("../types").SocketId | undefined;
143
- isCurrentUser?: boolean | undefined;
144
- isInCall?: boolean | undefined;
145
- isSpeaking?: boolean | undefined;
146
- isMuted?: boolean | undefined;
147
- }>>;
148
- stats: {
149
- open: boolean;
150
- panels: number;
151
- };
152
- currentChartType: import("@excalidraw/element/types").ChartType;
153
- pasteDialog: {
154
- shown: false;
155
- data: null;
156
- } | {
157
- shown: true;
158
- data: import("../charts").Spreadsheet;
159
- };
160
- showHyperlinkPopup: false | "editor" | "info";
161
- selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
162
- snapLines: readonly import("../snapping").SnapLine[];
163
- originSnapOffset: {
164
- x: number;
165
- y: number;
166
- } | null;
167
- objectsSnapModeEnabled: boolean;
168
- userToFollow: import("../types").UserToFollow | null;
169
- followedBy: Set<import("../types").SocketId>;
170
- isCropping: boolean;
171
- croppingElementId: string | null;
172
- searchMatches: Readonly<{
173
- focusedId: string | null;
174
- matches: readonly import("../types").SearchMatch[];
175
- }> | null;
176
- activeLockedId: string | null;
177
- lockedMultiSelections: {
178
- [groupId: string]: true;
179
- };
180
- };
181
- } | {
182
- captureUpdate: "EVENTUALLY";
183
- appState?: undefined;
184
- }>;
185
- keyTest: undefined;
186
- } & {
187
- keyTest?: undefined;
188
- };
189
- export declare const actionPaste: {
190
- name: "paste";
191
- label: string;
192
- trackEvent: {
193
- category: "element";
194
- };
195
- perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, data: any, app: import("../types").AppClassProperties) => Promise<false | {
196
- captureUpdate: "EVENTUALLY";
197
- appState: {
198
- errorMessage: string;
199
- contextMenu: {
200
- items: import("../components/ContextMenu").ContextMenuItems;
201
- top: number;
202
- left: number;
203
- } | null;
204
- showWelcomeScreen: boolean;
205
- isLoading: boolean;
206
- activeEmbeddable: {
207
- element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
208
- state: "active" | "hover";
209
- } | null;
210
- newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
211
- resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
212
- multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
213
- selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
214
- isBindingEnabled: boolean;
215
- startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
216
- suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
217
- frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
218
- frameRendering: {
219
- enabled: boolean;
220
- name: boolean;
221
- outline: boolean;
222
- clip: boolean;
223
- };
224
- editingFrame: string | null;
225
- elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
226
- editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
227
- activeTool: {
228
- lastActiveTool: import("../types").ActiveTool | null;
229
- locked: boolean;
230
- fromSelection: boolean;
231
- } & import("../types").ActiveTool;
232
- penMode: boolean;
233
- penDetected: boolean;
234
- exportBackground: boolean;
235
- exportEmbedScene: boolean;
236
- exportWithDarkMode: boolean;
237
- exportScale: number;
238
- currentItemStrokeColor: string;
239
- currentItemBackgroundColor: string;
240
- currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
241
- currentItemStrokeWidth: number;
242
- currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
243
- currentItemRoughness: number;
244
- currentItemOpacity: number;
245
- currentItemFontFamily: number;
246
- currentItemFontSize: number;
247
- currentItemTextAlign: string;
248
- currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
249
- currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
250
- currentHoveredFontFamily: number | null;
251
- currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
252
- currentItemArrowType: "round" | "sharp" | "elbow";
253
- viewBackgroundColor: string;
254
- scrollX: number;
255
- scrollY: number;
256
- cursorButton: "up" | "down";
257
- scrolledOutside: boolean;
258
- name: string | null;
259
- isResizing: boolean;
260
- isRotating: boolean;
261
- zoom: Readonly<{
262
- value: import("../types").NormalizedZoomValue;
263
- }>;
264
- openMenu: "canvas" | "shape" | null;
265
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
266
- openSidebar: {
267
- name: string;
268
- tab?: string | undefined;
269
- } | null;
270
- openDialog: {
271
- name: "imageExport" | "help" | "jsonExport";
272
- } | {
273
- name: "ttd";
274
- tab: "mermaid" | "text-to-diagram";
275
- } | {
276
- name: "commandPalette";
277
- } | {
278
- name: "elementLinkSelector";
279
- sourceElementId: string;
280
- } | null;
281
- defaultSidebarDockedPreference: boolean;
282
- lastPointerDownWith: import("@excalidraw/element/types").PointerType;
283
- selectedElementIds: Readonly<{
284
- [id: string]: true;
285
- }>;
286
- hoveredElementIds: Readonly<{
287
- [id: string]: true;
288
- }>;
289
- previousSelectedElementIds: {
290
- [id: string]: true;
291
- };
292
- selectedElementsAreBeingDragged: boolean;
293
- shouldCacheIgnoreZoom: boolean;
294
- toast: {
295
- message: string;
296
- closable?: boolean | undefined;
297
- duration?: number | undefined;
298
- } | null;
299
- zenModeEnabled: boolean;
300
- theme: import("@excalidraw/element/types").Theme;
301
- gridSize: number;
302
- gridStep: number;
303
- gridModeEnabled: boolean;
304
- viewModeEnabled: boolean;
305
- selectedGroupIds: {
306
- [groupId: string]: boolean;
307
- };
308
- editingGroupId: string | null;
309
- width: number;
310
- height: number;
311
- offsetTop: number;
312
- offsetLeft: number;
313
- fileHandle: import("browser-fs-access").FileSystemHandle | null;
314
- collaborators: Map<import("../types").SocketId, Readonly<{
315
- pointer?: import("../types").CollaboratorPointer | undefined;
316
- button?: "up" | "down" | undefined;
317
- selectedElementIds?: Readonly<{
318
- [id: string]: true;
319
- }> | undefined;
320
- username?: string | null | undefined;
321
- userState?: import("@excalidraw/common").UserIdleState | undefined;
322
- color?: {
323
- background: string;
324
- stroke: string;
325
- } | undefined;
326
- avatarUrl?: string | undefined;
327
- id?: string | undefined;
328
- socketId?: import("../types").SocketId | undefined;
329
- isCurrentUser?: boolean | undefined;
330
- isInCall?: boolean | undefined;
331
- isSpeaking?: boolean | undefined;
332
- isMuted?: boolean | undefined;
333
- }>>;
334
- stats: {
335
- open: boolean;
336
- panels: number;
337
- };
338
- currentChartType: import("@excalidraw/element/types").ChartType;
339
- pasteDialog: {
340
- shown: false;
341
- data: null;
342
- } | {
343
- shown: true;
344
- data: import("../charts").Spreadsheet;
345
- };
346
- showHyperlinkPopup: false | "editor" | "info";
347
- selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
348
- snapLines: readonly import("../snapping").SnapLine[];
349
- originSnapOffset: {
350
- x: number;
351
- y: number;
352
- } | null;
353
- objectsSnapModeEnabled: boolean;
354
- userToFollow: import("../types").UserToFollow | null;
355
- followedBy: Set<import("../types").SocketId>;
356
- isCropping: boolean;
357
- croppingElementId: string | null;
358
- searchMatches: Readonly<{
359
- focusedId: string | null;
360
- matches: readonly import("../types").SearchMatch[];
361
- }> | null;
362
- activeLockedId: string | null;
363
- lockedMultiSelections: {
364
- [groupId: string]: true;
365
- };
366
- };
367
- } | {
368
- captureUpdate: "EVENTUALLY";
369
- appState?: undefined;
370
- }>;
371
- keyTest: undefined;
372
- } & {
373
- keyTest?: undefined;
374
- };
375
- export declare const actionCut: {
376
- name: "cut";
377
- label: string;
378
- icon: import("react/jsx-runtime").JSX.Element;
379
- trackEvent: {
380
- category: "element";
381
- };
382
- perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, event: ClipboardEvent | null, app: import("../types").AppClassProperties) => false | {
383
- elements: import("@excalidraw/element/types").OrderedExcalidrawElement[];
384
- appState: {
385
- selectedLinearElement: null;
386
- contextMenu: {
387
- items: import("../components/ContextMenu").ContextMenuItems;
388
- top: number;
389
- left: number;
390
- } | null;
391
- showWelcomeScreen: boolean;
392
- isLoading: boolean;
393
- errorMessage: import("react").ReactNode;
394
- activeEmbeddable: {
395
- element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
396
- state: "active" | "hover";
397
- } | null;
398
- newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
399
- resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
400
- multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
401
- selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
402
- isBindingEnabled: boolean;
403
- startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
404
- suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
405
- frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
406
- frameRendering: {
407
- enabled: boolean;
408
- name: boolean;
409
- outline: boolean;
410
- clip: boolean;
411
- };
412
- editingFrame: string | null;
413
- elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
414
- editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
415
- activeTool: {
416
- lastActiveTool: import("../types").ActiveTool | null;
417
- locked: boolean;
418
- fromSelection: boolean;
419
- } & import("../types").ActiveTool;
420
- penMode: boolean;
421
- penDetected: boolean;
422
- exportBackground: boolean;
423
- exportEmbedScene: boolean;
424
- exportWithDarkMode: boolean;
425
- exportScale: number;
426
- currentItemStrokeColor: string;
427
- currentItemBackgroundColor: string;
428
- currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
429
- currentItemStrokeWidth: number;
430
- currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
431
- currentItemRoughness: number;
432
- currentItemOpacity: number;
433
- currentItemFontFamily: number;
434
- currentItemFontSize: number;
435
- currentItemTextAlign: string;
436
- currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
437
- currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
438
- currentHoveredFontFamily: number | null;
439
- currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
440
- currentItemArrowType: "round" | "sharp" | "elbow";
441
- viewBackgroundColor: string;
442
- scrollX: number;
443
- scrollY: number;
444
- cursorButton: "up" | "down";
445
- scrolledOutside: boolean;
446
- name: string | null;
447
- isResizing: boolean;
448
- isRotating: boolean;
449
- zoom: Readonly<{
450
- value: import("../types").NormalizedZoomValue;
451
- }>;
452
- openMenu: "canvas" | "shape" | null;
453
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
454
- openSidebar: {
455
- name: string;
456
- tab?: string | undefined;
457
- } | null;
458
- openDialog: {
459
- name: "imageExport" | "help" | "jsonExport";
460
- } | {
461
- name: "ttd";
462
- tab: "mermaid" | "text-to-diagram";
463
- } | {
464
- name: "commandPalette";
465
- } | {
466
- name: "elementLinkSelector";
467
- sourceElementId: string;
468
- } | null;
469
- defaultSidebarDockedPreference: boolean;
470
- lastPointerDownWith: import("@excalidraw/element/types").PointerType;
471
- selectedElementIds: Readonly<{
472
- [id: string]: true;
473
- }>;
474
- hoveredElementIds: Readonly<{
475
- [id: string]: true;
476
- }>;
477
- previousSelectedElementIds: {
478
- [id: string]: true;
479
- };
480
- selectedElementsAreBeingDragged: boolean;
481
- shouldCacheIgnoreZoom: boolean;
482
- toast: {
483
- message: string;
484
- closable?: boolean | undefined;
485
- duration?: number | undefined;
486
- } | null;
487
- zenModeEnabled: boolean;
488
- theme: import("@excalidraw/element/types").Theme;
489
- gridSize: number;
490
- gridStep: number;
491
- gridModeEnabled: boolean;
492
- viewModeEnabled: boolean;
493
- selectedGroupIds: {
494
- [groupId: string]: boolean;
495
- };
496
- editingGroupId: string | null;
497
- width: number;
498
- height: number;
499
- offsetTop: number;
500
- offsetLeft: number;
501
- fileHandle: import("browser-fs-access").FileSystemHandle | null;
502
- collaborators: Map<import("../types").SocketId, Readonly<{
503
- pointer?: import("../types").CollaboratorPointer | undefined;
504
- button?: "up" | "down" | undefined;
505
- selectedElementIds?: Readonly<{
506
- [id: string]: true;
507
- }> | undefined;
508
- username?: string | null | undefined;
509
- userState?: import("@excalidraw/common").UserIdleState | undefined;
510
- color?: {
511
- background: string;
512
- stroke: string;
513
- } | undefined;
514
- avatarUrl?: string | undefined;
515
- id?: string | undefined;
516
- socketId?: import("../types").SocketId | undefined;
517
- isCurrentUser?: boolean | undefined;
518
- isInCall?: boolean | undefined;
519
- isSpeaking?: boolean | undefined;
520
- isMuted?: boolean | undefined;
521
- }>>;
522
- stats: {
523
- open: boolean;
524
- panels: number;
525
- };
526
- currentChartType: import("@excalidraw/element/types").ChartType;
527
- pasteDialog: {
528
- shown: false;
529
- data: null;
530
- } | {
531
- shown: true;
532
- data: import("../charts").Spreadsheet;
533
- };
534
- showHyperlinkPopup: false | "editor" | "info";
535
- snapLines: readonly import("../snapping").SnapLine[];
536
- originSnapOffset: {
537
- x: number;
538
- y: number;
539
- } | null;
540
- objectsSnapModeEnabled: boolean;
541
- userToFollow: import("../types").UserToFollow | null;
542
- followedBy: Set<import("../types").SocketId>;
543
- isCropping: boolean;
544
- croppingElementId: string | null;
545
- searchMatches: Readonly<{
546
- focusedId: string | null;
547
- matches: readonly import("../types").SearchMatch[];
548
- }> | null;
549
- activeLockedId: string | null;
550
- lockedMultiSelections: {
551
- [groupId: string]: true;
552
- };
553
- };
554
- captureUpdate: "IMMEDIATELY";
555
- } | {
556
- elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[];
1
+ export declare const actionCopy: import("./types").Action<ClipboardEvent | null> & {
2
+ keyTest?: ((event: React.KeyboardEvent | KeyboardEvent, appState: import("../types").AppState, elements: readonly import("@excalidraw/element/types").ExcalidrawElement[], app: import("../types").AppClassProperties) => boolean) | undefined;
3
+ };
4
+ export declare const actionPaste: {
5
+ name: "paste";
6
+ label: string;
7
+ trackEvent: {
8
+ category: "element";
9
+ };
10
+ perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, data: unknown, app: import("../types").AppClassProperties) => Promise<false | {
11
+ captureUpdate: "EVENTUALLY";
557
12
  appState: {
558
- selectedLinearElement: {
559
- selectedPointsIndices: number[];
560
- startBindingElement: import("@excalidraw/element/types").ExcalidrawBindableElement | "keep" | null;
561
- endBindingElement: import("@excalidraw/element/types").ExcalidrawBindableElement | "keep" | null;
562
- elementId: string & {
563
- _brand: "excalidrawLinearElementId";
564
- };
565
- pointerDownState: Readonly<{
566
- prevSelectedPointsIndices: readonly number[] | null;
567
- lastClickedPoint: number;
568
- lastClickedIsEndPoint: boolean;
569
- origin: Readonly<{
570
- x: number;
571
- y: number;
572
- }> | null;
573
- segmentMidpoint: {
574
- value: import("../../math/src").GlobalPoint | null;
575
- index: number | null;
576
- added: boolean;
577
- };
578
- }>;
579
- isDragging: boolean;
580
- lastUncommittedPoint: import("../../math/src").LocalPoint | null;
581
- pointerOffset: Readonly<{
582
- x: number;
583
- y: number;
584
- }>;
585
- hoverPointIndex: number;
586
- segmentMidPointHoveredCoords: import("../../math/src").GlobalPoint | null;
587
- elbowed: boolean;
588
- customLineAngle: number | null;
589
- isEditing: boolean;
590
- };
13
+ errorMessage: string;
591
14
  contextMenu: {
592
15
  items: import("../components/ContextMenu").ContextMenuItems;
593
16
  top: number;
@@ -595,10 +18,9 @@ export declare const actionCut: {
595
18
  } | null;
596
19
  showWelcomeScreen: boolean;
597
20
  isLoading: boolean;
598
- errorMessage: import("react").ReactNode;
599
21
  activeEmbeddable: {
600
22
  element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
601
- state: "active" | "hover";
23
+ state: "hover" | "active";
602
24
  } | null;
603
25
  newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
604
26
  resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
@@ -606,7 +28,10 @@ export declare const actionCut: {
606
28
  selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
607
29
  isBindingEnabled: boolean;
608
30
  startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
609
- suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
31
+ suggestedBinding: {
32
+ element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
33
+ midPoint?: import("@excalidraw/math").GlobalPoint;
34
+ } | null;
610
35
  frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
611
36
  frameRendering: {
612
37
  enabled: boolean;
@@ -622,6 +47,10 @@ export declare const actionCut: {
622
47
  locked: boolean;
623
48
  fromSelection: boolean;
624
49
  } & import("../types").ActiveTool;
50
+ preferredSelectionTool: {
51
+ type: "selection" | "lasso";
52
+ initialized: boolean;
53
+ };
625
54
  penMode: boolean;
626
55
  penDetected: boolean;
627
56
  exportBackground: boolean;
@@ -630,19 +59,19 @@ export declare const actionCut: {
630
59
  exportScale: number;
631
60
  currentItemStrokeColor: string;
632
61
  currentItemBackgroundColor: string;
633
- currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
62
+ currentItemFillStyle: import("@excalidraw/element/types").ExcalidrawElement["fillStyle"];
634
63
  currentItemStrokeWidth: number;
635
- currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
64
+ currentItemStrokeStyle: import("@excalidraw/element/types").ExcalidrawElement["strokeStyle"];
636
65
  currentItemRoughness: number;
637
66
  currentItemOpacity: number;
638
- currentItemFontFamily: number;
67
+ currentItemFontFamily: import("@excalidraw/element/types").FontFamilyValues;
639
68
  currentItemFontSize: number;
640
- currentItemTextAlign: string;
69
+ currentItemTextAlign: import("@excalidraw/element/types").TextAlign;
641
70
  currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
642
71
  currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
643
- currentHoveredFontFamily: number | null;
72
+ currentHoveredFontFamily: import("@excalidraw/element/types").FontFamilyValues | null;
644
73
  currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
645
- currentItemArrowType: "round" | "sharp" | "elbow";
74
+ currentItemArrowType: "sharp" | "round" | "elbow";
646
75
  viewBackgroundColor: string;
647
76
  scrollX: number;
648
77
  scrollY: number;
@@ -651,26 +80,26 @@ export declare const actionCut: {
651
80
  name: string | null;
652
81
  isResizing: boolean;
653
82
  isRotating: boolean;
654
- zoom: Readonly<{
655
- value: import("../types").NormalizedZoomValue;
656
- }>;
657
- openMenu: "canvas" | "shape" | null;
658
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
83
+ zoom: import("../types").Zoom;
84
+ openMenu: "canvas" | null;
85
+ openPopup: "canvasBackground" | "elementBackground" | "elementStroke" | "fontFamily" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
659
86
  openSidebar: {
660
- name: string;
661
- tab?: string | undefined;
87
+ name: import("../types").SidebarName;
88
+ tab?: import("../types").SidebarTabName;
662
89
  } | null;
663
- openDialog: {
90
+ openDialog: null | {
664
91
  name: "imageExport" | "help" | "jsonExport";
665
92
  } | {
666
93
  name: "ttd";
667
- tab: "mermaid" | "text-to-diagram";
94
+ tab: "text-to-diagram" | "mermaid";
668
95
  } | {
669
96
  name: "commandPalette";
97
+ } | {
98
+ name: "settings";
670
99
  } | {
671
100
  name: "elementLinkSelector";
672
- sourceElementId: string;
673
- } | null;
101
+ sourceElementId: import("@excalidraw/element/types").ExcalidrawElement["id"];
102
+ };
674
103
  defaultSidebarDockedPreference: boolean;
675
104
  lastPointerDownWith: import("@excalidraw/element/types").PointerType;
676
105
  selectedElementIds: Readonly<{
@@ -686,8 +115,8 @@ export declare const actionCut: {
686
115
  shouldCacheIgnoreZoom: boolean;
687
116
  toast: {
688
117
  message: string;
689
- closable?: boolean | undefined;
690
- duration?: number | undefined;
118
+ closable?: boolean;
119
+ duration?: number;
691
120
  } | null;
692
121
  zenModeEnabled: boolean;
693
122
  theme: import("@excalidraw/element/types").Theme;
@@ -698,32 +127,13 @@ export declare const actionCut: {
698
127
  selectedGroupIds: {
699
128
  [groupId: string]: boolean;
700
129
  };
701
- editingGroupId: string | null;
130
+ editingGroupId: import("@excalidraw/element/types").GroupId | null;
702
131
  width: number;
703
132
  height: number;
704
133
  offsetTop: number;
705
134
  offsetLeft: number;
706
135
  fileHandle: import("browser-fs-access").FileSystemHandle | null;
707
- collaborators: Map<import("../types").SocketId, Readonly<{
708
- pointer?: import("../types").CollaboratorPointer | undefined;
709
- button?: "up" | "down" | undefined;
710
- selectedElementIds?: Readonly<{
711
- [id: string]: true;
712
- }> | undefined;
713
- username?: string | null | undefined;
714
- userState?: import("@excalidraw/common").UserIdleState | undefined;
715
- color?: {
716
- background: string;
717
- stroke: string;
718
- } | undefined;
719
- avatarUrl?: string | undefined;
720
- id?: string | undefined;
721
- socketId?: import("../types").SocketId | undefined;
722
- isCurrentUser?: boolean | undefined;
723
- isInCall?: boolean | undefined;
724
- isSpeaking?: boolean | undefined;
725
- isMuted?: boolean | undefined;
726
- }>>;
136
+ collaborators: Map<import("../types").SocketId, import("../types").Collaborator>;
727
137
  stats: {
728
138
  open: boolean;
729
139
  panels: number;
@@ -736,7 +146,8 @@ export declare const actionCut: {
736
146
  shown: true;
737
147
  data: import("../charts").Spreadsheet;
738
148
  };
739
- showHyperlinkPopup: false | "editor" | "info";
149
+ showHyperlinkPopup: false | "info" | "editor";
150
+ selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
740
151
  snapLines: readonly import("../snapping").SnapLine[];
741
152
  originSnapOffset: {
742
153
  x: number;
@@ -746,191 +157,27 @@ export declare const actionCut: {
746
157
  userToFollow: import("../types").UserToFollow | null;
747
158
  followedBy: Set<import("../types").SocketId>;
748
159
  isCropping: boolean;
749
- croppingElementId: string | null;
160
+ croppingElementId: import("@excalidraw/element/types").ExcalidrawElement["id"] | null;
750
161
  searchMatches: Readonly<{
751
- focusedId: string | null;
162
+ focusedId: import("@excalidraw/element/types").ExcalidrawElement["id"] | null;
752
163
  matches: readonly import("../types").SearchMatch[];
753
164
  }> | null;
754
165
  activeLockedId: string | null;
755
166
  lockedMultiSelections: {
756
167
  [groupId: string]: true;
757
168
  };
169
+ bindMode: import("@excalidraw/element/types").BindMode;
758
170
  };
759
- captureUpdate: "IMMEDIATELY";
760
171
  } | {
761
- elements: import("@excalidraw/element/types").ExcalidrawElement[];
762
- appState: {
763
- activeTool: {
764
- lastActiveTool: import("../types").ActiveTool | null;
765
- locked: boolean;
766
- fromSelection: boolean;
767
- } & import("../types").ActiveTool;
768
- multiElement: null;
769
- activeEmbeddable: null;
770
- selectedLinearElement: null;
771
- editingGroupId: string | null;
772
- selectedElementIds: Readonly<{
773
- [id: string]: true;
774
- }>;
775
- selectedGroupIds: {
776
- [groupId: string]: boolean;
777
- };
778
- contextMenu: {
779
- items: import("../components/ContextMenu").ContextMenuItems;
780
- top: number;
781
- left: number;
782
- } | null;
783
- showWelcomeScreen: boolean;
784
- isLoading: boolean;
785
- errorMessage: import("react").ReactNode;
786
- newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
787
- resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
788
- selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
789
- isBindingEnabled: boolean;
790
- startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
791
- suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
792
- frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
793
- frameRendering: {
794
- enabled: boolean;
795
- name: boolean;
796
- outline: boolean;
797
- clip: boolean;
798
- };
799
- editingFrame: string | null;
800
- elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
801
- editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
802
- penMode: boolean;
803
- penDetected: boolean;
804
- exportBackground: boolean;
805
- exportEmbedScene: boolean;
806
- exportWithDarkMode: boolean;
807
- exportScale: number;
808
- currentItemStrokeColor: string;
809
- currentItemBackgroundColor: string;
810
- currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
811
- currentItemStrokeWidth: number;
812
- currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
813
- currentItemRoughness: number;
814
- currentItemOpacity: number;
815
- currentItemFontFamily: number;
816
- currentItemFontSize: number;
817
- currentItemTextAlign: string;
818
- currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
819
- currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
820
- currentHoveredFontFamily: number | null;
821
- currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
822
- currentItemArrowType: "round" | "sharp" | "elbow";
823
- viewBackgroundColor: string;
824
- scrollX: number;
825
- scrollY: number;
826
- cursorButton: "up" | "down";
827
- scrolledOutside: boolean;
828
- name: string | null;
829
- isResizing: boolean;
830
- isRotating: boolean;
831
- zoom: Readonly<{
832
- value: import("../types").NormalizedZoomValue;
833
- }>;
834
- openMenu: "canvas" | "shape" | null;
835
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
836
- openSidebar: {
837
- name: string;
838
- tab?: string | undefined;
839
- } | null;
840
- openDialog: {
841
- name: "imageExport" | "help" | "jsonExport";
842
- } | {
843
- name: "ttd";
844
- tab: "mermaid" | "text-to-diagram";
845
- } | {
846
- name: "commandPalette";
847
- } | {
848
- name: "elementLinkSelector";
849
- sourceElementId: string;
850
- } | null;
851
- defaultSidebarDockedPreference: boolean;
852
- lastPointerDownWith: import("@excalidraw/element/types").PointerType;
853
- hoveredElementIds: Readonly<{
854
- [id: string]: true;
855
- }>;
856
- previousSelectedElementIds: {
857
- [id: string]: true;
858
- };
859
- selectedElementsAreBeingDragged: boolean;
860
- shouldCacheIgnoreZoom: boolean;
861
- toast: {
862
- message: string;
863
- closable?: boolean | undefined;
864
- duration?: number | undefined;
865
- } | null;
866
- zenModeEnabled: boolean;
867
- theme: import("@excalidraw/element/types").Theme;
868
- gridSize: number;
869
- gridStep: number;
870
- gridModeEnabled: boolean;
871
- viewModeEnabled: boolean;
872
- width: number;
873
- height: number;
874
- offsetTop: number;
875
- offsetLeft: number;
876
- fileHandle: import("browser-fs-access").FileSystemHandle | null;
877
- collaborators: Map<import("../types").SocketId, Readonly<{
878
- pointer?: import("../types").CollaboratorPointer | undefined;
879
- button?: "up" | "down" | undefined;
880
- selectedElementIds?: Readonly<{
881
- [id: string]: true;
882
- }> | undefined;
883
- username?: string | null | undefined;
884
- userState?: import("@excalidraw/common").UserIdleState | undefined;
885
- color?: {
886
- background: string;
887
- stroke: string;
888
- } | undefined;
889
- avatarUrl?: string | undefined;
890
- id?: string | undefined;
891
- socketId?: import("../types").SocketId | undefined;
892
- isCurrentUser?: boolean | undefined;
893
- isInCall?: boolean | undefined;
894
- isSpeaking?: boolean | undefined;
895
- isMuted?: boolean | undefined;
896
- }>>;
897
- stats: {
898
- open: boolean;
899
- panels: number;
900
- };
901
- currentChartType: import("@excalidraw/element/types").ChartType;
902
- pasteDialog: {
903
- shown: false;
904
- data: null;
905
- } | {
906
- shown: true;
907
- data: import("../charts").Spreadsheet;
908
- };
909
- showHyperlinkPopup: false | "editor" | "info";
910
- snapLines: readonly import("../snapping").SnapLine[];
911
- originSnapOffset: {
912
- x: number;
913
- y: number;
914
- } | null;
915
- objectsSnapModeEnabled: boolean;
916
- userToFollow: import("../types").UserToFollow | null;
917
- followedBy: Set<import("../types").SocketId>;
918
- isCropping: boolean;
919
- croppingElementId: string | null;
920
- searchMatches: Readonly<{
921
- focusedId: string | null;
922
- matches: readonly import("../types").SearchMatch[];
923
- }> | null;
924
- activeLockedId: string | null;
925
- lockedMultiSelections: {
926
- [groupId: string]: true;
927
- };
928
- };
929
- captureUpdate: "IMMEDIATELY" | "EVENTUALLY";
930
- };
931
- keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
172
+ captureUpdate: "EVENTUALLY";
173
+ appState?: undefined;
174
+ }>;
175
+ keyTest: undefined;
932
176
  } & {
933
- keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
177
+ keyTest?: undefined;
178
+ };
179
+ export declare const actionCut: import("./types").Action<ClipboardEvent | null> & {
180
+ keyTest?: ((event: React.KeyboardEvent | KeyboardEvent, appState: import("../types").AppState, elements: readonly import("@excalidraw/element/types").ExcalidrawElement[], app: import("../types").AppClassProperties) => boolean) | undefined;
934
181
  };
935
182
  export declare const actionCopyAsSvg: {
936
183
  name: "copyAsSvg";
@@ -939,7 +186,7 @@ export declare const actionCopyAsSvg: {
939
186
  trackEvent: {
940
187
  category: "element";
941
188
  };
942
- perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, _data: any, app: import("../types").AppClassProperties) => Promise<{
189
+ perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, _data: unknown, app: import("../types").AppClassProperties) => Promise<{
943
190
  captureUpdate: "EVENTUALLY";
944
191
  appState?: undefined;
945
192
  } | {
@@ -969,7 +216,7 @@ export declare const actionCopyAsPng: {
969
216
  trackEvent: {
970
217
  category: "element";
971
218
  };
972
- perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, _data: any, app: import("../types").AppClassProperties) => Promise<{
219
+ perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, _data: unknown, app: import("../types").AppClassProperties) => Promise<{
973
220
  captureUpdate: "EVENTUALLY";
974
221
  appState?: undefined;
975
222
  } | {
@@ -984,7 +231,7 @@ export declare const actionCopyAsPng: {
984
231
  isLoading: boolean;
985
232
  activeEmbeddable: {
986
233
  element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
987
- state: "active" | "hover";
234
+ state: "hover" | "active";
988
235
  } | null;
989
236
  newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
990
237
  resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
@@ -992,7 +239,10 @@ export declare const actionCopyAsPng: {
992
239
  selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
993
240
  isBindingEnabled: boolean;
994
241
  startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
995
- suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
242
+ suggestedBinding: {
243
+ element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
244
+ midPoint?: import("@excalidraw/math").GlobalPoint;
245
+ } | null;
996
246
  frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
997
247
  frameRendering: {
998
248
  enabled: boolean;
@@ -1008,6 +258,10 @@ export declare const actionCopyAsPng: {
1008
258
  locked: boolean;
1009
259
  fromSelection: boolean;
1010
260
  } & import("../types").ActiveTool;
261
+ preferredSelectionTool: {
262
+ type: "selection" | "lasso";
263
+ initialized: boolean;
264
+ };
1011
265
  penMode: boolean;
1012
266
  penDetected: boolean;
1013
267
  exportBackground: boolean;
@@ -1016,19 +270,19 @@ export declare const actionCopyAsPng: {
1016
270
  exportScale: number;
1017
271
  currentItemStrokeColor: string;
1018
272
  currentItemBackgroundColor: string;
1019
- currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
273
+ currentItemFillStyle: import("@excalidraw/element/types").ExcalidrawElement["fillStyle"];
1020
274
  currentItemStrokeWidth: number;
1021
- currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
275
+ currentItemStrokeStyle: import("@excalidraw/element/types").ExcalidrawElement["strokeStyle"];
1022
276
  currentItemRoughness: number;
1023
277
  currentItemOpacity: number;
1024
- currentItemFontFamily: number;
278
+ currentItemFontFamily: import("@excalidraw/element/types").FontFamilyValues;
1025
279
  currentItemFontSize: number;
1026
- currentItemTextAlign: string;
280
+ currentItemTextAlign: import("@excalidraw/element/types").TextAlign;
1027
281
  currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
1028
282
  currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
1029
- currentHoveredFontFamily: number | null;
283
+ currentHoveredFontFamily: import("@excalidraw/element/types").FontFamilyValues | null;
1030
284
  currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
1031
- currentItemArrowType: "round" | "sharp" | "elbow";
285
+ currentItemArrowType: "sharp" | "round" | "elbow";
1032
286
  viewBackgroundColor: string;
1033
287
  scrollX: number;
1034
288
  scrollY: number;
@@ -1037,26 +291,26 @@ export declare const actionCopyAsPng: {
1037
291
  name: string | null;
1038
292
  isResizing: boolean;
1039
293
  isRotating: boolean;
1040
- zoom: Readonly<{
1041
- value: import("../types").NormalizedZoomValue;
1042
- }>;
1043
- openMenu: "canvas" | "shape" | null;
1044
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
294
+ zoom: import("../types").Zoom;
295
+ openMenu: "canvas" | null;
296
+ openPopup: "canvasBackground" | "elementBackground" | "elementStroke" | "fontFamily" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
1045
297
  openSidebar: {
1046
- name: string;
1047
- tab?: string | undefined;
298
+ name: import("../types").SidebarName;
299
+ tab?: import("../types").SidebarTabName;
1048
300
  } | null;
1049
- openDialog: {
301
+ openDialog: null | {
1050
302
  name: "imageExport" | "help" | "jsonExport";
1051
303
  } | {
1052
304
  name: "ttd";
1053
- tab: "mermaid" | "text-to-diagram";
305
+ tab: "text-to-diagram" | "mermaid";
1054
306
  } | {
1055
307
  name: "commandPalette";
308
+ } | {
309
+ name: "settings";
1056
310
  } | {
1057
311
  name: "elementLinkSelector";
1058
- sourceElementId: string;
1059
- } | null;
312
+ sourceElementId: import("@excalidraw/element/types").ExcalidrawElement["id"];
313
+ };
1060
314
  defaultSidebarDockedPreference: boolean;
1061
315
  lastPointerDownWith: import("@excalidraw/element/types").PointerType;
1062
316
  selectedElementIds: Readonly<{
@@ -1072,8 +326,8 @@ export declare const actionCopyAsPng: {
1072
326
  shouldCacheIgnoreZoom: boolean;
1073
327
  toast: {
1074
328
  message: string;
1075
- closable?: boolean | undefined;
1076
- duration?: number | undefined;
329
+ closable?: boolean;
330
+ duration?: number;
1077
331
  } | null;
1078
332
  zenModeEnabled: boolean;
1079
333
  theme: import("@excalidraw/element/types").Theme;
@@ -1084,32 +338,13 @@ export declare const actionCopyAsPng: {
1084
338
  selectedGroupIds: {
1085
339
  [groupId: string]: boolean;
1086
340
  };
1087
- editingGroupId: string | null;
341
+ editingGroupId: import("@excalidraw/element/types").GroupId | null;
1088
342
  width: number;
1089
343
  height: number;
1090
344
  offsetTop: number;
1091
345
  offsetLeft: number;
1092
346
  fileHandle: import("browser-fs-access").FileSystemHandle | null;
1093
- collaborators: Map<import("../types").SocketId, Readonly<{
1094
- pointer?: import("../types").CollaboratorPointer | undefined;
1095
- button?: "up" | "down" | undefined;
1096
- selectedElementIds?: Readonly<{
1097
- [id: string]: true;
1098
- }> | undefined;
1099
- username?: string | null | undefined;
1100
- userState?: import("@excalidraw/common").UserIdleState | undefined;
1101
- color?: {
1102
- background: string;
1103
- stroke: string;
1104
- } | undefined;
1105
- avatarUrl?: string | undefined;
1106
- id?: string | undefined;
1107
- socketId?: import("../types").SocketId | undefined;
1108
- isCurrentUser?: boolean | undefined;
1109
- isInCall?: boolean | undefined;
1110
- isSpeaking?: boolean | undefined;
1111
- isMuted?: boolean | undefined;
1112
- }>>;
347
+ collaborators: Map<import("../types").SocketId, import("../types").Collaborator>;
1113
348
  stats: {
1114
349
  open: boolean;
1115
350
  panels: number;
@@ -1122,7 +357,7 @@ export declare const actionCopyAsPng: {
1122
357
  shown: true;
1123
358
  data: import("../charts").Spreadsheet;
1124
359
  };
1125
- showHyperlinkPopup: false | "editor" | "info";
360
+ showHyperlinkPopup: false | "info" | "editor";
1126
361
  selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
1127
362
  snapLines: readonly import("../snapping").SnapLine[];
1128
363
  originSnapOffset: {
@@ -1133,15 +368,16 @@ export declare const actionCopyAsPng: {
1133
368
  userToFollow: import("../types").UserToFollow | null;
1134
369
  followedBy: Set<import("../types").SocketId>;
1135
370
  isCropping: boolean;
1136
- croppingElementId: string | null;
371
+ croppingElementId: import("@excalidraw/element/types").ExcalidrawElement["id"] | null;
1137
372
  searchMatches: Readonly<{
1138
- focusedId: string | null;
373
+ focusedId: import("@excalidraw/element/types").ExcalidrawElement["id"] | null;
1139
374
  matches: readonly import("../types").SearchMatch[];
1140
375
  }> | null;
1141
376
  activeLockedId: string | null;
1142
377
  lockedMultiSelections: {
1143
378
  [groupId: string]: true;
1144
379
  };
380
+ bindMode: import("@excalidraw/element/types").BindMode;
1145
381
  };
1146
382
  captureUpdate: "EVENTUALLY";
1147
383
  }>;
@@ -1157,7 +393,7 @@ export declare const copyText: {
1157
393
  trackEvent: {
1158
394
  category: "element";
1159
395
  };
1160
- perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, _: any, app: import("../types").AppClassProperties) => {
396
+ perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, _: unknown, app: import("../types").AppClassProperties) => {
1161
397
  captureUpdate: "EVENTUALLY";
1162
398
  };
1163
399
  predicate: (elements: readonly import("@excalidraw/element/types").ExcalidrawElement[], appState: import("../types").AppState, _: import("../types").ExcalidrawProps, app: import("../types").AppClassProperties) => boolean;