@excalidraw/element 0.18.0-91c7748 → 0.18.0-9ba0f5d

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 (218) hide show
  1. package/dist/dev/index.js +3239 -1814
  2. package/dist/dev/index.js.map +4 -4
  3. package/dist/prod/index.js +17 -17
  4. package/dist/types/common/src/bounds.d.ts +10 -0
  5. package/dist/types/common/src/colors.d.ts +59 -39
  6. package/dist/types/common/src/constants.d.ts +19 -27
  7. package/dist/types/common/src/editorInterface.d.ts +34 -0
  8. package/dist/types/common/src/font-metadata.d.ts +1 -3
  9. package/dist/types/common/src/index.d.ts +2 -0
  10. package/dist/types/common/src/keys.d.ts +1 -1
  11. package/dist/types/common/src/utility-types.d.ts +0 -1
  12. package/dist/types/common/src/utils.d.ts +49 -35
  13. package/dist/types/element/src/Scene.d.ts +3 -3
  14. package/dist/types/element/src/binding.d.ts +58 -44
  15. package/dist/types/element/src/bounds.d.ts +2 -10
  16. package/dist/types/element/src/collision.d.ts +6 -2
  17. package/dist/types/element/src/comparisons.d.ts +7 -7
  18. package/dist/types/element/src/dragElements.d.ts +3 -3
  19. package/dist/types/element/src/duplicate.d.ts +3 -3
  20. package/dist/types/element/src/fractionalIndex.d.ts +2 -2
  21. package/dist/types/element/src/frame.d.ts +5 -1
  22. package/dist/types/element/src/heading.d.ts +2 -1
  23. package/dist/types/element/src/image.d.ts +1 -11
  24. package/dist/types/element/src/index.d.ts +1 -3
  25. package/dist/types/element/src/linearElementEditor.d.ts +16 -20
  26. package/dist/types/element/src/mutateElement.d.ts +3 -1
  27. package/dist/types/element/src/newElement.d.ts +6 -6
  28. package/dist/types/element/src/renderElement.d.ts +1 -7
  29. package/dist/types/element/src/resizeElements.d.ts +10 -10
  30. package/dist/types/element/src/resizeTest.d.ts +6 -5
  31. package/dist/types/element/src/selection.d.ts +3 -7
  32. package/dist/types/element/src/shape.d.ts +8 -7
  33. package/dist/types/element/src/textMeasurements.d.ts +1 -3
  34. package/dist/types/{excalidraw/data → element/src}/transform.d.ts +3 -3
  35. package/dist/types/element/src/transformHandles.d.ts +8 -27
  36. package/dist/types/element/src/typeChecks.d.ts +4 -7
  37. package/dist/types/element/src/types.d.ts +7 -11
  38. package/dist/types/element/src/utils.d.ts +5 -2
  39. package/dist/types/element/src/visualdebug.d.ts +59 -0
  40. package/dist/types/element/src/zindex.d.ts +7 -1
  41. package/dist/types/excalidraw/actions/actionAddToLibrary.d.ts +93 -139
  42. package/dist/types/excalidraw/actions/actionAlign.d.ts +6 -7
  43. package/dist/types/excalidraw/actions/actionBoundText.d.ts +67 -98
  44. package/dist/types/excalidraw/actions/actionCanvas.d.ts +401 -771
  45. package/dist/types/excalidraw/actions/actionClipboard.d.ts +86 -862
  46. package/dist/types/excalidraw/actions/actionCropEditor.d.ts +32 -48
  47. package/dist/types/excalidraw/actions/actionDeleteSelected.d.ts +110 -162
  48. package/dist/types/excalidraw/actions/actionDistribute.d.ts +2 -3
  49. package/dist/types/excalidraw/actions/actionDuplicateSelection.d.ts +2 -3
  50. package/dist/types/excalidraw/actions/actionElementLink.d.ts +28 -46
  51. package/dist/types/excalidraw/actions/actionElementLock.d.ts +66 -97
  52. package/dist/types/excalidraw/actions/actionEmbeddable.d.ts +33 -49
  53. package/dist/types/excalidraw/actions/actionExport.d.ts +144 -1113
  54. package/dist/types/excalidraw/actions/actionFinalize.d.ts +10 -396
  55. package/dist/types/excalidraw/actions/actionFlip.d.ts +2 -3
  56. package/dist/types/excalidraw/actions/actionFrame.d.ts +227 -326
  57. package/dist/types/excalidraw/actions/actionGroup.d.ts +70 -109
  58. package/dist/types/excalidraw/actions/actionLinearEditor.d.ts +139 -195
  59. package/dist/types/excalidraw/actions/actionLink.d.ts +30 -46
  60. package/dist/types/excalidraw/actions/actionMenu.d.ts +27 -413
  61. package/dist/types/excalidraw/actions/actionNavigate.d.ts +18 -361
  62. package/dist/types/excalidraw/actions/actionProperties.d.ts +127 -2510
  63. package/dist/types/excalidraw/actions/actionSelectAll.d.ts +35 -55
  64. package/dist/types/excalidraw/actions/actionStyles.d.ts +32 -48
  65. package/dist/types/excalidraw/actions/actionTextAutoResize.d.ts +1 -1
  66. package/dist/types/excalidraw/actions/actionToggleGridMode.d.ts +32 -48
  67. package/dist/types/excalidraw/actions/actionToggleObjectsSnapMode.d.ts +32 -48
  68. package/dist/types/excalidraw/actions/actionToggleSearchMenu.d.ts +25 -43
  69. package/dist/types/excalidraw/actions/actionToggleShapeSwitch.d.ts +1 -1
  70. package/dist/types/excalidraw/actions/actionToggleStats.d.ts +32 -48
  71. package/dist/types/excalidraw/actions/actionToggleViewMode.d.ts +32 -48
  72. package/dist/types/excalidraw/actions/actionToggleZenMode.d.ts +33 -49
  73. package/dist/types/excalidraw/actions/actionZindex.d.ts +2 -3
  74. package/dist/types/excalidraw/actions/index.d.ts +1 -1
  75. package/dist/types/excalidraw/actions/register.d.ts +2 -2
  76. package/dist/types/excalidraw/actions/types.d.ts +4 -4
  77. package/dist/types/excalidraw/appState.d.ts +12 -8
  78. package/dist/types/excalidraw/clipboard.d.ts +7 -31
  79. package/dist/types/excalidraw/components/Actions.d.ts +14 -4
  80. package/dist/types/excalidraw/components/App.d.ts +58 -59
  81. package/dist/types/excalidraw/components/Card.d.ts +1 -3
  82. package/dist/types/excalidraw/components/ColorPicker/ColorInput.d.ts +2 -4
  83. package/dist/types/excalidraw/components/ColorPicker/ColorPicker.d.ts +1 -3
  84. package/dist/types/excalidraw/components/ColorPicker/Picker.d.ts +2 -0
  85. package/dist/types/excalidraw/components/ColorPicker/PickerColorList.d.ts +2 -1
  86. package/dist/types/excalidraw/components/ColorPicker/ShadeList.d.ts +2 -1
  87. package/dist/types/excalidraw/components/ColorPicker/colorPickerUtils.d.ts +0 -1
  88. package/dist/types/excalidraw/components/ColorPicker/keyboardNavHandlers.d.ts +0 -1
  89. package/dist/types/excalidraw/components/CommandPalette/CommandPalette.d.ts +1 -0
  90. package/dist/types/excalidraw/components/CommandPalette/types.d.ts +1 -3
  91. package/dist/types/excalidraw/components/ConvertElementTypePopup.d.ts +2 -2
  92. package/dist/types/excalidraw/components/DarkModeToggle.d.ts +1 -1
  93. package/dist/types/excalidraw/components/DefaultSidebar.d.ts +9 -13
  94. package/dist/types/excalidraw/components/ElementLinkDialog.d.ts +1 -1
  95. package/dist/types/excalidraw/components/Ellipsify.d.ts +1 -2
  96. package/dist/types/excalidraw/components/ErrorDialog.d.ts +1 -1
  97. package/dist/types/excalidraw/components/ExcalidrawLogo.d.ts +1 -2
  98. package/dist/types/excalidraw/components/EyeDropper.d.ts +0 -1
  99. package/dist/types/excalidraw/components/FilledButton.d.ts +2 -1
  100. package/dist/types/excalidraw/components/FontPicker/FontPickerTrigger.d.ts +2 -1
  101. package/dist/types/excalidraw/components/FontPicker/keyboardNavHandlers.d.ts +0 -1
  102. package/dist/types/excalidraw/components/HelpDialog.d.ts +1 -1
  103. package/dist/types/excalidraw/components/HintViewer.d.ts +4 -3
  104. package/dist/types/excalidraw/components/InlineIcon.d.ts +3 -1
  105. package/dist/types/excalidraw/components/LayerUI.d.ts +2 -1
  106. package/dist/types/excalidraw/components/LibraryMenuControlButtons.d.ts +1 -1
  107. package/dist/types/excalidraw/components/LibraryMenuHeaderContent.d.ts +1 -2
  108. package/dist/types/excalidraw/components/LibraryMenuSection.d.ts +1 -1
  109. package/dist/types/excalidraw/components/LibraryUnit.d.ts +2 -3
  110. package/dist/types/excalidraw/components/LoadingMessage.d.ts +0 -1
  111. package/dist/types/excalidraw/components/MobileMenu.d.ts +3 -5
  112. package/dist/types/excalidraw/components/MobileToolBar.d.ts +10 -0
  113. package/dist/types/excalidraw/components/Modal.d.ts +0 -1
  114. package/dist/types/excalidraw/components/OverwriteConfirm/OverwriteConfirm.d.ts +1 -1
  115. package/dist/types/excalidraw/components/Popover.d.ts +2 -1
  116. package/dist/types/excalidraw/components/RadioGroup.d.ts +0 -1
  117. package/dist/types/excalidraw/components/RadioSelection.d.ts +4 -4
  118. package/dist/types/excalidraw/components/ScrollableList.d.ts +0 -1
  119. package/dist/types/excalidraw/components/Sidebar/Sidebar.d.ts +15 -21
  120. package/dist/types/excalidraw/components/Sidebar/SidebarHeader.d.ts +1 -1
  121. package/dist/types/excalidraw/components/Sidebar/SidebarTab.d.ts +1 -2
  122. package/dist/types/excalidraw/components/Sidebar/SidebarTabTrigger.d.ts +1 -2
  123. package/dist/types/excalidraw/components/Sidebar/SidebarTabTriggers.d.ts +1 -2
  124. package/dist/types/excalidraw/components/Sidebar/SidebarTabs.d.ts +1 -2
  125. package/dist/types/excalidraw/components/Spinner.d.ts +4 -4
  126. package/dist/types/excalidraw/components/Stats/CanvasGrid.d.ts +0 -1
  127. package/dist/types/excalidraw/components/Stats/Collapsible.d.ts +0 -1
  128. package/dist/types/excalidraw/components/Stats/DragInput.d.ts +0 -1
  129. package/dist/types/excalidraw/components/Stats/index.d.ts +7 -8
  130. package/dist/types/excalidraw/components/Stats/utils.d.ts +1 -1
  131. package/dist/types/excalidraw/components/TTDDialog/Chat/ChatHistoryMenu.d.ts +15 -0
  132. package/dist/types/excalidraw/components/TTDDialog/Chat/ChatInterface.d.ts +27 -0
  133. package/dist/types/excalidraw/components/TTDDialog/Chat/ChatMessage.d.ts +14 -0
  134. package/dist/types/excalidraw/components/TTDDialog/Chat/TTDChatPanel.d.ts +26 -0
  135. package/dist/types/excalidraw/components/TTDDialog/Chat/index.d.ts +3 -0
  136. package/dist/types/excalidraw/components/TTDDialog/Chat/useChatAgent.d.ts +8 -0
  137. package/dist/types/excalidraw/components/TTDDialog/MermaidToExcalidraw.d.ts +3 -2
  138. package/dist/types/excalidraw/components/TTDDialog/TTDContext.d.ts +13 -0
  139. package/dist/types/excalidraw/components/TTDDialog/TTDDialog.d.ts +4 -25
  140. package/dist/types/excalidraw/components/TTDDialog/TTDDialogOutput.d.ts +2 -2
  141. package/dist/types/excalidraw/components/TTDDialog/TTDDialogPanel.d.ts +13 -9
  142. package/dist/types/excalidraw/components/TTDDialog/TTDDialogTab.d.ts +1 -2
  143. package/dist/types/excalidraw/components/TTDDialog/TTDDialogTabTrigger.d.ts +1 -2
  144. package/dist/types/excalidraw/components/TTDDialog/TTDDialogTabTriggers.d.ts +1 -2
  145. package/dist/types/excalidraw/components/TTDDialog/TTDDialogTrigger.d.ts +2 -3
  146. package/dist/types/excalidraw/components/TTDDialog/TTDPreviewPanel.d.ts +9 -0
  147. package/dist/types/excalidraw/components/TTDDialog/TextToDiagram.d.ts +8 -0
  148. package/dist/types/excalidraw/components/TTDDialog/common.d.ts +16 -16
  149. package/dist/types/excalidraw/components/TTDDialog/hooks/useChatManagement.d.ts +13 -0
  150. package/dist/types/excalidraw/components/TTDDialog/hooks/useMermaidRenderer.d.ts +14 -0
  151. package/dist/types/excalidraw/components/TTDDialog/hooks/useTextGeneration.d.ts +7 -0
  152. package/dist/types/excalidraw/components/TTDDialog/types.d.ts +91 -0
  153. package/dist/types/excalidraw/components/TTDDialog/useTTDChatStorage.d.ts +22 -0
  154. package/dist/types/excalidraw/components/TTDDialog/utils/TTDStreamFetch.d.ts +24 -0
  155. package/dist/types/excalidraw/components/TTDDialog/utils/chat.d.ts +10 -0
  156. package/dist/types/excalidraw/components/TTDDialog/utils/mermaidValidation.d.ts +1 -0
  157. package/dist/types/excalidraw/components/TextField.d.ts +1 -0
  158. package/dist/types/excalidraw/components/Toast.d.ts +3 -3
  159. package/dist/types/excalidraw/components/ToolPopover.d.ts +25 -0
  160. package/dist/types/excalidraw/components/Trans.d.ts +2 -2
  161. package/dist/types/excalidraw/components/canvases/InteractiveCanvas.d.ts +6 -3
  162. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenu.d.ts +30 -32
  163. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuContent.d.ts +6 -5
  164. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuGroup.d.ts +3 -3
  165. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuItem.d.ts +10 -18
  166. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuItemContent.d.ts +3 -3
  167. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuItemContentRadio.d.ts +0 -1
  168. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuItemCustom.d.ts +2 -2
  169. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuItemLink.d.ts +6 -6
  170. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuTrigger.d.ts +3 -4
  171. package/dist/types/excalidraw/components/dropdownMenu/common.d.ts +1 -1
  172. package/dist/types/excalidraw/components/hoc/withInternalFallback.d.ts +1 -1
  173. package/dist/types/excalidraw/components/hyperlink/helpers.d.ts +1 -1
  174. package/dist/types/excalidraw/components/icons.d.ts +21 -13
  175. package/dist/types/excalidraw/components/live-collaboration/LiveCollaborationTrigger.d.ts +4 -3
  176. package/dist/types/excalidraw/components/main-menu/DefaultItems.d.ts +2 -2
  177. package/dist/types/excalidraw/components/main-menu/MainMenu.d.ts +25 -30
  178. package/dist/types/excalidraw/components/welcome-screen/WelcomeScreen.Center.d.ts +6 -6
  179. package/dist/types/excalidraw/components/welcome-screen/WelcomeScreen.d.ts +15 -16
  180. package/dist/types/excalidraw/data/blob.d.ts +323 -5
  181. package/dist/types/excalidraw/data/encode.d.ts +4 -4
  182. package/dist/types/excalidraw/data/encryption.d.ts +5 -5
  183. package/dist/types/excalidraw/data/filesystem.d.ts +2 -2
  184. package/dist/types/excalidraw/data/index.d.ts +3 -3
  185. package/dist/types/excalidraw/data/json.d.ts +159 -2
  186. package/dist/types/excalidraw/data/library.d.ts +24 -9
  187. package/dist/types/excalidraw/data/restore.d.ts +25 -10
  188. package/dist/types/excalidraw/editor-jotai.d.ts +11 -11
  189. package/dist/types/excalidraw/errors.d.ts +14 -0
  190. package/dist/types/excalidraw/hooks/useLibraryItemSvg.d.ts +1 -1
  191. package/dist/types/excalidraw/hooks/useOutsideClick.d.ts +4 -3
  192. package/dist/types/excalidraw/hooks/useScrollPosition.d.ts +1 -2
  193. package/dist/types/excalidraw/i18n.d.ts +2 -2
  194. package/dist/types/excalidraw/index.d.ts +6 -7
  195. package/dist/types/excalidraw/renderer/animation.d.ts +12 -0
  196. package/dist/types/excalidraw/renderer/helpers.d.ts +6 -8
  197. package/dist/types/excalidraw/renderer/interactiveScene.d.ts +8 -14
  198. package/dist/types/excalidraw/scene/Renderer.d.ts +5 -2
  199. package/dist/types/excalidraw/scene/export.d.ts +2 -2
  200. package/dist/types/excalidraw/scene/scroll.d.ts +1 -6
  201. package/dist/types/excalidraw/scene/types.d.ts +22 -5
  202. package/dist/types/excalidraw/shortcut.d.ts +1 -0
  203. package/dist/types/excalidraw/snapping.d.ts +5 -5
  204. package/dist/types/excalidraw/subset/harfbuzz/harfbuzz-bindings.d.ts +1 -1
  205. package/dist/types/excalidraw/subset/harfbuzz/harfbuzz-loader.d.ts +1 -1
  206. package/dist/types/excalidraw/subset/harfbuzz/harfbuzz-wasm.d.ts +1 -1
  207. package/dist/types/excalidraw/subset/woff2/woff2-loader.d.ts +2 -2
  208. package/dist/types/excalidraw/subset/woff2/woff2-wasm.d.ts +1 -1
  209. package/dist/types/excalidraw/types.d.ts +29 -22
  210. package/dist/types/excalidraw/wysiwyg/textWysiwyg.d.ts +2 -2
  211. package/dist/types/math/src/polygon.d.ts +2 -2
  212. package/dist/types/math/src/range.d.ts +1 -3
  213. package/dist/types/math/src/segment.d.ts +3 -3
  214. package/dist/types/utils/src/bbox.d.ts +1 -1
  215. package/dist/types/utils/src/export.d.ts +5 -5
  216. package/dist/types/utils/src/shape.d.ts +6 -6
  217. package/dist/types/utils/src/withinBounds.d.ts +2 -2
  218. package/package.json +9 -3
@@ -1,372 +1,3 @@
1
- /// <reference types="react" />
2
- export declare const actionToggleCanvasMenu: {
3
- name: "toggleCanvasMenu";
4
- label: string;
5
- trackEvent: {
6
- category: "menu";
7
- };
8
- perform: (_: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>) => {
9
- appState: {
10
- openMenu: "canvas" | null;
11
- contextMenu: {
12
- items: import("../components/ContextMenu").ContextMenuItems;
13
- top: number;
14
- left: number;
15
- } | null;
16
- showWelcomeScreen: boolean;
17
- isLoading: boolean;
18
- errorMessage: import("react").ReactNode;
19
- activeEmbeddable: {
20
- element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
21
- state: "active" | "hover";
22
- } | null;
23
- newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
24
- resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
25
- multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
26
- selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
27
- isBindingEnabled: boolean;
28
- startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
29
- suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
30
- frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
31
- frameRendering: {
32
- enabled: boolean;
33
- name: boolean;
34
- outline: boolean;
35
- clip: boolean;
36
- };
37
- editingFrame: string | null;
38
- elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
39
- editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
40
- activeTool: {
41
- lastActiveTool: import("../types").ActiveTool | null;
42
- locked: boolean;
43
- fromSelection: boolean;
44
- } & import("../types").ActiveTool;
45
- penMode: boolean;
46
- penDetected: boolean;
47
- exportBackground: boolean;
48
- exportEmbedScene: boolean;
49
- exportWithDarkMode: boolean;
50
- exportScale: number;
51
- currentItemStrokeColor: string;
52
- currentItemBackgroundColor: string;
53
- currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
54
- currentItemStrokeWidth: number;
55
- currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
56
- currentItemRoughness: number;
57
- currentItemOpacity: number;
58
- currentItemFontFamily: number;
59
- currentItemFontSize: number;
60
- currentItemTextAlign: string;
61
- currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
62
- currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
63
- currentHoveredFontFamily: number | null;
64
- currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
65
- currentItemArrowType: "round" | "sharp" | "elbow";
66
- viewBackgroundColor: string;
67
- scrollX: number;
68
- scrollY: number;
69
- cursorButton: "up" | "down";
70
- scrolledOutside: boolean;
71
- name: string | null;
72
- isResizing: boolean;
73
- isRotating: boolean;
74
- zoom: Readonly<{
75
- value: import("../types").NormalizedZoomValue;
76
- }>;
77
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
78
- openSidebar: {
79
- name: string;
80
- tab?: string | undefined;
81
- } | null;
82
- openDialog: {
83
- name: "imageExport" | "help" | "jsonExport";
84
- } | {
85
- name: "ttd";
86
- tab: "mermaid" | "text-to-diagram";
87
- } | {
88
- name: "commandPalette";
89
- } | {
90
- name: "elementLinkSelector";
91
- sourceElementId: string;
92
- } | null;
93
- defaultSidebarDockedPreference: boolean;
94
- lastPointerDownWith: import("@excalidraw/element/types").PointerType;
95
- selectedElementIds: Readonly<{
96
- [id: string]: true;
97
- }>;
98
- hoveredElementIds: Readonly<{
99
- [id: string]: true;
100
- }>;
101
- previousSelectedElementIds: {
102
- [id: string]: true;
103
- };
104
- selectedElementsAreBeingDragged: boolean;
105
- shouldCacheIgnoreZoom: boolean;
106
- toast: {
107
- message: string;
108
- closable?: boolean | undefined;
109
- duration?: number | undefined;
110
- } | null;
111
- zenModeEnabled: boolean;
112
- theme: import("@excalidraw/element/types").Theme;
113
- gridSize: number;
114
- gridStep: number;
115
- gridModeEnabled: boolean;
116
- viewModeEnabled: boolean;
117
- selectedGroupIds: {
118
- [groupId: string]: boolean;
119
- };
120
- editingGroupId: string | null;
121
- width: number;
122
- height: number;
123
- offsetTop: number;
124
- offsetLeft: number;
125
- fileHandle: import("browser-fs-access").FileSystemHandle | null;
126
- collaborators: Map<import("../types").SocketId, Readonly<{
127
- pointer?: import("../types").CollaboratorPointer | undefined;
128
- button?: "up" | "down" | undefined;
129
- selectedElementIds?: Readonly<{
130
- [id: string]: true;
131
- }> | undefined;
132
- username?: string | null | undefined;
133
- userState?: import("@excalidraw/common").UserIdleState | undefined;
134
- color?: {
135
- background: string;
136
- stroke: string;
137
- } | undefined;
138
- avatarUrl?: string | undefined;
139
- id?: string | undefined;
140
- socketId?: import("../types").SocketId | undefined;
141
- isCurrentUser?: boolean | undefined;
142
- isInCall?: boolean | undefined;
143
- isSpeaking?: boolean | undefined;
144
- isMuted?: boolean | undefined;
145
- }>>;
146
- stats: {
147
- open: boolean;
148
- panels: number;
149
- };
150
- currentChartType: import("@excalidraw/element/types").ChartType;
151
- pasteDialog: {
152
- shown: false;
153
- data: null;
154
- } | {
155
- shown: true;
156
- data: import("../charts").Spreadsheet;
157
- };
158
- showHyperlinkPopup: false | "editor" | "info";
159
- selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
160
- snapLines: readonly import("../snapping").SnapLine[];
161
- originSnapOffset: {
162
- x: number;
163
- y: number;
164
- } | null;
165
- objectsSnapModeEnabled: boolean;
166
- userToFollow: import("../types").UserToFollow | null;
167
- followedBy: Set<import("../types").SocketId>;
168
- isCropping: boolean;
169
- croppingElementId: string | null;
170
- searchMatches: Readonly<{
171
- focusedId: string | null;
172
- matches: readonly import("../types").SearchMatch[];
173
- }> | null;
174
- activeLockedId: string | null;
175
- lockedMultiSelections: {
176
- [groupId: string]: true;
177
- };
178
- stylesPanelMode: "compact" | "full";
179
- };
180
- captureUpdate: "EVENTUALLY";
181
- };
182
- PanelComponent: ({ appState, updateData }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
183
- } & {
184
- keyTest?: undefined;
185
- };
186
- export declare const actionToggleEditMenu: {
187
- name: "toggleEditMenu";
188
- label: string;
189
- trackEvent: {
190
- category: "menu";
191
- };
192
- perform: (_elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>) => {
193
- appState: {
194
- openMenu: "shape" | null;
195
- contextMenu: {
196
- items: import("../components/ContextMenu").ContextMenuItems;
197
- top: number;
198
- left: number;
199
- } | null;
200
- showWelcomeScreen: boolean;
201
- isLoading: boolean;
202
- errorMessage: import("react").ReactNode;
203
- activeEmbeddable: {
204
- element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
205
- state: "active" | "hover";
206
- } | null;
207
- newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
208
- resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
209
- multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
210
- selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
211
- isBindingEnabled: boolean;
212
- startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
213
- suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
214
- frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
215
- frameRendering: {
216
- enabled: boolean;
217
- name: boolean;
218
- outline: boolean;
219
- clip: boolean;
220
- };
221
- editingFrame: string | null;
222
- elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
223
- editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
224
- activeTool: {
225
- lastActiveTool: import("../types").ActiveTool | null;
226
- locked: boolean;
227
- fromSelection: boolean;
228
- } & import("../types").ActiveTool;
229
- penMode: boolean;
230
- penDetected: boolean;
231
- exportBackground: boolean;
232
- exportEmbedScene: boolean;
233
- exportWithDarkMode: boolean;
234
- exportScale: number;
235
- currentItemStrokeColor: string;
236
- currentItemBackgroundColor: string;
237
- currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
238
- currentItemStrokeWidth: number;
239
- currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
240
- currentItemRoughness: number;
241
- currentItemOpacity: number;
242
- currentItemFontFamily: number;
243
- currentItemFontSize: number;
244
- currentItemTextAlign: string;
245
- currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
246
- currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
247
- currentHoveredFontFamily: number | null;
248
- currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
249
- currentItemArrowType: "round" | "sharp" | "elbow";
250
- viewBackgroundColor: string;
251
- scrollX: number;
252
- scrollY: number;
253
- cursorButton: "up" | "down";
254
- scrolledOutside: boolean;
255
- name: string | null;
256
- isResizing: boolean;
257
- isRotating: boolean;
258
- zoom: Readonly<{
259
- value: import("../types").NormalizedZoomValue;
260
- }>;
261
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
262
- openSidebar: {
263
- name: string;
264
- tab?: string | undefined;
265
- } | null;
266
- openDialog: {
267
- name: "imageExport" | "help" | "jsonExport";
268
- } | {
269
- name: "ttd";
270
- tab: "mermaid" | "text-to-diagram";
271
- } | {
272
- name: "commandPalette";
273
- } | {
274
- name: "elementLinkSelector";
275
- sourceElementId: string;
276
- } | null;
277
- defaultSidebarDockedPreference: boolean;
278
- lastPointerDownWith: import("@excalidraw/element/types").PointerType;
279
- selectedElementIds: Readonly<{
280
- [id: string]: true;
281
- }>;
282
- hoveredElementIds: Readonly<{
283
- [id: string]: true;
284
- }>;
285
- previousSelectedElementIds: {
286
- [id: string]: true;
287
- };
288
- selectedElementsAreBeingDragged: boolean;
289
- shouldCacheIgnoreZoom: boolean;
290
- toast: {
291
- message: string;
292
- closable?: boolean | undefined;
293
- duration?: number | undefined;
294
- } | null;
295
- zenModeEnabled: boolean;
296
- theme: import("@excalidraw/element/types").Theme;
297
- gridSize: number;
298
- gridStep: number;
299
- gridModeEnabled: boolean;
300
- viewModeEnabled: boolean;
301
- selectedGroupIds: {
302
- [groupId: string]: boolean;
303
- };
304
- editingGroupId: string | null;
305
- width: number;
306
- height: number;
307
- offsetTop: number;
308
- offsetLeft: number;
309
- fileHandle: import("browser-fs-access").FileSystemHandle | null;
310
- collaborators: Map<import("../types").SocketId, Readonly<{
311
- pointer?: import("../types").CollaboratorPointer | undefined;
312
- button?: "up" | "down" | undefined;
313
- selectedElementIds?: Readonly<{
314
- [id: string]: true;
315
- }> | undefined;
316
- username?: string | null | undefined;
317
- userState?: import("@excalidraw/common").UserIdleState | undefined;
318
- color?: {
319
- background: string;
320
- stroke: string;
321
- } | undefined;
322
- avatarUrl?: string | undefined;
323
- id?: string | undefined;
324
- socketId?: import("../types").SocketId | undefined;
325
- isCurrentUser?: boolean | undefined;
326
- isInCall?: boolean | undefined;
327
- isSpeaking?: boolean | undefined;
328
- isMuted?: boolean | undefined;
329
- }>>;
330
- stats: {
331
- open: boolean;
332
- panels: number;
333
- };
334
- currentChartType: import("@excalidraw/element/types").ChartType;
335
- pasteDialog: {
336
- shown: false;
337
- data: null;
338
- } | {
339
- shown: true;
340
- data: import("../charts").Spreadsheet;
341
- };
342
- showHyperlinkPopup: false | "editor" | "info";
343
- selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
344
- snapLines: readonly import("../snapping").SnapLine[];
345
- originSnapOffset: {
346
- x: number;
347
- y: number;
348
- } | null;
349
- objectsSnapModeEnabled: boolean;
350
- userToFollow: import("../types").UserToFollow | null;
351
- followedBy: Set<import("../types").SocketId>;
352
- isCropping: boolean;
353
- croppingElementId: string | null;
354
- searchMatches: Readonly<{
355
- focusedId: string | null;
356
- matches: readonly import("../types").SearchMatch[];
357
- }> | null;
358
- activeLockedId: string | null;
359
- lockedMultiSelections: {
360
- [groupId: string]: true;
361
- };
362
- stylesPanelMode: "compact" | "full";
363
- };
364
- captureUpdate: "EVENTUALLY";
365
- };
366
- PanelComponent: ({ elements, appState, updateData }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
367
- } & {
368
- keyTest?: undefined;
369
- };
370
1
  export declare const actionShortcuts: {
371
2
  name: "toggleShortcuts";
372
3
  label: string;
@@ -376,11 +7,13 @@ export declare const actionShortcuts: {
376
7
  category: "menu";
377
8
  action: string;
378
9
  };
379
- perform: (_elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, _: any, { focusContainer }: import("../types").AppClassProperties) => {
10
+ perform: (_elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, _: unknown, { focusContainer }: import("../types").AppClassProperties) => {
380
11
  appState: {
381
12
  openDialog: {
382
13
  name: "help";
383
14
  } | null;
15
+ openMenu: null;
16
+ openPopup: null;
384
17
  contextMenu: {
385
18
  items: import("../components/ContextMenu").ContextMenuItems;
386
19
  top: number;
@@ -388,10 +21,10 @@ export declare const actionShortcuts: {
388
21
  } | null;
389
22
  showWelcomeScreen: boolean;
390
23
  isLoading: boolean;
391
- errorMessage: import("react").ReactNode;
24
+ errorMessage: React.ReactNode;
392
25
  activeEmbeddable: {
393
26
  element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
394
- state: "active" | "hover";
27
+ state: "hover" | "active";
395
28
  } | null;
396
29
  newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
397
30
  resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
@@ -399,7 +32,7 @@ export declare const actionShortcuts: {
399
32
  selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
400
33
  isBindingEnabled: boolean;
401
34
  startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
402
- suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
35
+ suggestedBinding: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
403
36
  frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
404
37
  frameRendering: {
405
38
  enabled: boolean;
@@ -415,6 +48,10 @@ export declare const actionShortcuts: {
415
48
  locked: boolean;
416
49
  fromSelection: boolean;
417
50
  } & import("../types").ActiveTool;
51
+ preferredSelectionTool: {
52
+ type: "selection" | "lasso";
53
+ initialized: boolean;
54
+ };
418
55
  penMode: boolean;
419
56
  penDetected: boolean;
420
57
  exportBackground: boolean;
@@ -423,19 +60,19 @@ export declare const actionShortcuts: {
423
60
  exportScale: number;
424
61
  currentItemStrokeColor: string;
425
62
  currentItemBackgroundColor: string;
426
- currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
63
+ currentItemFillStyle: import("@excalidraw/element/types").ExcalidrawElement["fillStyle"];
427
64
  currentItemStrokeWidth: number;
428
- currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
65
+ currentItemStrokeStyle: import("@excalidraw/element/types").ExcalidrawElement["strokeStyle"];
429
66
  currentItemRoughness: number;
430
67
  currentItemOpacity: number;
431
- currentItemFontFamily: number;
68
+ currentItemFontFamily: import("@excalidraw/element/types").FontFamilyValues;
432
69
  currentItemFontSize: number;
433
- currentItemTextAlign: string;
70
+ currentItemTextAlign: import("@excalidraw/element/types").TextAlign;
434
71
  currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
435
72
  currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
436
- currentHoveredFontFamily: number | null;
73
+ currentHoveredFontFamily: import("@excalidraw/element/types").FontFamilyValues | null;
437
74
  currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
438
- currentItemArrowType: "round" | "sharp" | "elbow";
75
+ currentItemArrowType: "sharp" | "round" | "elbow";
439
76
  viewBackgroundColor: string;
440
77
  scrollX: number;
441
78
  scrollY: number;
@@ -444,14 +81,10 @@ export declare const actionShortcuts: {
444
81
  name: string | null;
445
82
  isResizing: boolean;
446
83
  isRotating: boolean;
447
- zoom: Readonly<{
448
- value: import("../types").NormalizedZoomValue;
449
- }>;
450
- openMenu: "canvas" | "shape" | null;
451
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
84
+ zoom: import("../types").Zoom;
452
85
  openSidebar: {
453
- name: string;
454
- tab?: string | undefined;
86
+ name: import("../types").SidebarName;
87
+ tab?: import("../types").SidebarTabName;
455
88
  } | null;
456
89
  defaultSidebarDockedPreference: boolean;
457
90
  lastPointerDownWith: import("@excalidraw/element/types").PointerType;
@@ -468,8 +101,8 @@ export declare const actionShortcuts: {
468
101
  shouldCacheIgnoreZoom: boolean;
469
102
  toast: {
470
103
  message: string;
471
- closable?: boolean | undefined;
472
- duration?: number | undefined;
104
+ closable?: boolean;
105
+ duration?: number;
473
106
  } | null;
474
107
  zenModeEnabled: boolean;
475
108
  theme: import("@excalidraw/element/types").Theme;
@@ -480,32 +113,13 @@ export declare const actionShortcuts: {
480
113
  selectedGroupIds: {
481
114
  [groupId: string]: boolean;
482
115
  };
483
- editingGroupId: string | null;
116
+ editingGroupId: import("@excalidraw/element/types").GroupId | null;
484
117
  width: number;
485
118
  height: number;
486
119
  offsetTop: number;
487
120
  offsetLeft: number;
488
121
  fileHandle: import("browser-fs-access").FileSystemHandle | null;
489
- collaborators: Map<import("../types").SocketId, Readonly<{
490
- pointer?: import("../types").CollaboratorPointer | undefined;
491
- button?: "up" | "down" | undefined;
492
- selectedElementIds?: Readonly<{
493
- [id: string]: true;
494
- }> | undefined;
495
- username?: string | null | undefined;
496
- userState?: import("@excalidraw/common").UserIdleState | undefined;
497
- color?: {
498
- background: string;
499
- stroke: string;
500
- } | undefined;
501
- avatarUrl?: string | undefined;
502
- id?: string | undefined;
503
- socketId?: import("../types").SocketId | undefined;
504
- isCurrentUser?: boolean | undefined;
505
- isInCall?: boolean | undefined;
506
- isSpeaking?: boolean | undefined;
507
- isMuted?: boolean | undefined;
508
- }>>;
122
+ collaborators: Map<import("../types").SocketId, import("../types").Collaborator>;
509
123
  stats: {
510
124
  open: boolean;
511
125
  panels: number;
@@ -518,7 +132,7 @@ export declare const actionShortcuts: {
518
132
  shown: true;
519
133
  data: import("../charts").Spreadsheet;
520
134
  };
521
- showHyperlinkPopup: false | "editor" | "info";
135
+ showHyperlinkPopup: false | "info" | "editor";
522
136
  selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
523
137
  snapLines: readonly import("../snapping").SnapLine[];
524
138
  originSnapOffset: {
@@ -529,16 +143,16 @@ export declare const actionShortcuts: {
529
143
  userToFollow: import("../types").UserToFollow | null;
530
144
  followedBy: Set<import("../types").SocketId>;
531
145
  isCropping: boolean;
532
- croppingElementId: string | null;
146
+ croppingElementId: import("@excalidraw/element/types").ExcalidrawElement["id"] | null;
533
147
  searchMatches: Readonly<{
534
- focusedId: string | null;
148
+ focusedId: import("@excalidraw/element/types").ExcalidrawElement["id"] | null;
535
149
  matches: readonly import("../types").SearchMatch[];
536
150
  }> | null;
537
151
  activeLockedId: string | null;
538
152
  lockedMultiSelections: {
539
153
  [groupId: string]: true;
540
154
  };
541
- stylesPanelMode: "compact" | "full";
155
+ bindMode: import("@excalidraw/element/types").BindMode;
542
156
  };
543
157
  captureUpdate: "EVENTUALLY";
544
158
  };