@excalidraw/math 0.18.0-c141960 → 0.18.0-c158187

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 (171) hide show
  1. package/dist/types/common/src/bounds.d.ts +10 -0
  2. package/dist/types/common/src/colors.d.ts +5 -2
  3. package/dist/types/common/src/constants.d.ts +13 -11
  4. package/dist/types/common/src/font-metadata.d.ts +1 -3
  5. package/dist/types/common/src/index.d.ts +1 -0
  6. package/dist/types/common/src/keys.d.ts +1 -1
  7. package/dist/types/common/src/utility-types.d.ts +0 -1
  8. package/dist/types/common/src/utils.d.ts +43 -33
  9. package/dist/types/common/src/visualdebug.d.ts +1 -1
  10. package/dist/types/element/src/Scene.d.ts +3 -3
  11. package/dist/types/element/src/binding.d.ts +6 -4
  12. package/dist/types/element/src/bounds.d.ts +2 -10
  13. package/dist/types/element/src/collision.d.ts +2 -2
  14. package/dist/types/element/src/comparisons.d.ts +7 -7
  15. package/dist/types/element/src/dragElements.d.ts +3 -3
  16. package/dist/types/element/src/duplicate.d.ts +3 -3
  17. package/dist/types/element/src/fractionalIndex.d.ts +2 -2
  18. package/dist/types/element/src/frame.d.ts +5 -1
  19. package/dist/types/element/src/heading.d.ts +2 -1
  20. package/dist/types/element/src/image.d.ts +1 -11
  21. package/dist/types/element/src/index.d.ts +1 -0
  22. package/dist/types/element/src/linearElementEditor.d.ts +1 -2
  23. package/dist/types/element/src/mutateElement.d.ts +3 -1
  24. package/dist/types/element/src/newElement.d.ts +6 -6
  25. package/dist/types/element/src/renderElement.d.ts +0 -6
  26. package/dist/types/element/src/resizeElements.d.ts +10 -10
  27. package/dist/types/element/src/resizeTest.d.ts +1 -1
  28. package/dist/types/element/src/selection.d.ts +3 -7
  29. package/dist/types/element/src/shape.d.ts +8 -7
  30. package/dist/types/element/src/textMeasurements.d.ts +1 -3
  31. package/dist/types/{excalidraw/data → element/src}/transform.d.ts +3 -3
  32. package/dist/types/element/src/transformHandles.d.ts +3 -23
  33. package/dist/types/element/src/typeChecks.d.ts +2 -4
  34. package/dist/types/element/src/utils.d.ts +3 -1
  35. package/dist/types/excalidraw/actions/actionAddToLibrary.d.ts +114 -178
  36. package/dist/types/excalidraw/actions/actionAlign.d.ts +0 -1
  37. package/dist/types/excalidraw/actions/actionBoundText.d.ts +44 -87
  38. package/dist/types/excalidraw/actions/actionCanvas.d.ts +263 -510
  39. package/dist/types/excalidraw/actions/actionClipboard.d.ts +85 -128
  40. package/dist/types/excalidraw/actions/actionCropEditor.d.ts +21 -43
  41. package/dist/types/excalidraw/actions/actionDeleteSelected.d.ts +68 -136
  42. package/dist/types/excalidraw/actions/actionDistribute.d.ts +0 -1
  43. package/dist/types/excalidraw/actions/actionDuplicateSelection.d.ts +2 -3
  44. package/dist/types/excalidraw/actions/actionElementLink.d.ts +41 -63
  45. package/dist/types/excalidraw/actions/actionElementLock.d.ts +45 -88
  46. package/dist/types/excalidraw/actions/actionEmbeddable.d.ts +41 -63
  47. package/dist/types/excalidraw/actions/actionExport.d.ts +85 -170
  48. package/dist/types/excalidraw/actions/actionFinalize.d.ts +1 -2
  49. package/dist/types/excalidraw/actions/actionFlip.d.ts +0 -1
  50. package/dist/types/excalidraw/actions/actionFrame.d.ts +167 -288
  51. package/dist/types/excalidraw/actions/actionGroup.d.ts +48 -99
  52. package/dist/types/excalidraw/actions/actionLinearEditor.d.ts +102 -160
  53. package/dist/types/excalidraw/actions/actionLink.d.ts +43 -65
  54. package/dist/types/excalidraw/actions/actionMenu.d.ts +35 -57
  55. package/dist/types/excalidraw/actions/actionNavigate.d.ts +14 -17
  56. package/dist/types/excalidraw/actions/actionProperties.d.ts +59 -102
  57. package/dist/types/excalidraw/actions/actionSelectAll.d.ts +24 -50
  58. package/dist/types/excalidraw/actions/actionStyles.d.ts +20 -42
  59. package/dist/types/excalidraw/actions/actionTextAutoResize.d.ts +3 -3
  60. package/dist/types/excalidraw/actions/actionToggleGridMode.d.ts +41 -63
  61. package/dist/types/excalidraw/actions/actionToggleObjectsSnapMode.d.ts +41 -63
  62. package/dist/types/excalidraw/actions/actionToggleSearchMenu.d.ts +35 -57
  63. package/dist/types/excalidraw/actions/actionToggleStats.d.ts +40 -62
  64. package/dist/types/excalidraw/actions/actionToggleViewMode.d.ts +41 -63
  65. package/dist/types/excalidraw/actions/actionToggleZenMode.d.ts +41 -63
  66. package/dist/types/excalidraw/actions/actionZindex.d.ts +8 -9
  67. package/dist/types/excalidraw/actions/manager.d.ts +1 -1
  68. package/dist/types/excalidraw/actions/register.d.ts +2 -2
  69. package/dist/types/excalidraw/appState.d.ts +12 -12
  70. package/dist/types/excalidraw/clipboard.d.ts +7 -31
  71. package/dist/types/excalidraw/components/Actions.d.ts +1 -1
  72. package/dist/types/excalidraw/components/App.d.ts +33 -41
  73. package/dist/types/excalidraw/components/Card.d.ts +0 -1
  74. package/dist/types/excalidraw/components/ColorPicker/ColorInput.d.ts +7 -4
  75. package/dist/types/excalidraw/components/ColorPicker/ColorPicker.d.ts +0 -1
  76. package/dist/types/excalidraw/components/ColorPicker/keyboardNavHandlers.d.ts +0 -1
  77. package/dist/types/excalidraw/components/CommandPalette/types.d.ts +0 -1
  78. package/dist/types/excalidraw/components/ConvertElementTypePopup.d.ts +2 -2
  79. package/dist/types/excalidraw/components/DarkModeToggle.d.ts +1 -1
  80. package/dist/types/excalidraw/components/DefaultSidebar.d.ts +9 -13
  81. package/dist/types/excalidraw/components/ElementLinkDialog.d.ts +1 -1
  82. package/dist/types/excalidraw/components/Ellipsify.d.ts +1 -2
  83. package/dist/types/excalidraw/components/ErrorDialog.d.ts +1 -1
  84. package/dist/types/excalidraw/components/ExcalidrawLogo.d.ts +0 -1
  85. package/dist/types/excalidraw/components/EyeDropper.d.ts +0 -1
  86. package/dist/types/excalidraw/components/FontPicker/keyboardNavHandlers.d.ts +0 -1
  87. package/dist/types/excalidraw/components/HelpDialog.d.ts +1 -1
  88. package/dist/types/excalidraw/components/InlineIcon.d.ts +2 -2
  89. package/dist/types/excalidraw/components/LibraryMenuControlButtons.d.ts +1 -1
  90. package/dist/types/excalidraw/components/LibraryMenuHeaderContent.d.ts +1 -2
  91. package/dist/types/excalidraw/components/LibraryUnit.d.ts +2 -3
  92. package/dist/types/excalidraw/components/LoadingMessage.d.ts +0 -1
  93. package/dist/types/excalidraw/components/MobileToolBar.d.ts +0 -1
  94. package/dist/types/excalidraw/components/Modal.d.ts +0 -1
  95. package/dist/types/excalidraw/components/OverwriteConfirm/OverwriteConfirm.d.ts +1 -1
  96. package/dist/types/excalidraw/components/RadioGroup.d.ts +0 -1
  97. package/dist/types/excalidraw/components/RadioSelection.d.ts +4 -4
  98. package/dist/types/excalidraw/components/ScrollableList.d.ts +0 -1
  99. package/dist/types/excalidraw/components/Sidebar/Sidebar.d.ts +15 -21
  100. package/dist/types/excalidraw/components/Sidebar/SidebarHeader.d.ts +1 -1
  101. package/dist/types/excalidraw/components/Sidebar/SidebarTab.d.ts +1 -2
  102. package/dist/types/excalidraw/components/Sidebar/SidebarTabTrigger.d.ts +1 -2
  103. package/dist/types/excalidraw/components/Sidebar/SidebarTabTriggers.d.ts +1 -2
  104. package/dist/types/excalidraw/components/Sidebar/SidebarTabs.d.ts +1 -2
  105. package/dist/types/excalidraw/components/Spinner.d.ts +4 -4
  106. package/dist/types/excalidraw/components/Stats/CanvasGrid.d.ts +0 -1
  107. package/dist/types/excalidraw/components/Stats/Collapsible.d.ts +0 -1
  108. package/dist/types/excalidraw/components/Stats/DragInput.d.ts +0 -1
  109. package/dist/types/excalidraw/components/Stats/index.d.ts +7 -8
  110. package/dist/types/excalidraw/components/TTDDialog/TTDDialog.d.ts +1 -2
  111. package/dist/types/excalidraw/components/TTDDialog/TTDDialogOutput.d.ts +0 -1
  112. package/dist/types/excalidraw/components/TTDDialog/TTDDialogTab.d.ts +1 -2
  113. package/dist/types/excalidraw/components/TTDDialog/TTDDialogTabTrigger.d.ts +1 -2
  114. package/dist/types/excalidraw/components/TTDDialog/TTDDialogTabTriggers.d.ts +1 -2
  115. package/dist/types/excalidraw/components/TTDDialog/TTDDialogTrigger.d.ts +1 -1
  116. package/dist/types/excalidraw/components/TTDDialog/common.d.ts +2 -3
  117. package/dist/types/excalidraw/components/Toast.d.ts +3 -3
  118. package/dist/types/excalidraw/components/Trans.d.ts +2 -2
  119. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenu.d.ts +28 -32
  120. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuContent.d.ts +5 -5
  121. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuGroup.d.ts +3 -3
  122. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuItem.d.ts +10 -18
  123. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuItemContent.d.ts +3 -3
  124. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuItemContentRadio.d.ts +0 -1
  125. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuItemCustom.d.ts +2 -2
  126. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuItemLink.d.ts +6 -6
  127. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuTrigger.d.ts +3 -4
  128. package/dist/types/excalidraw/components/dropdownMenu/common.d.ts +1 -1
  129. package/dist/types/excalidraw/components/hoc/withInternalFallback.d.ts +1 -1
  130. package/dist/types/excalidraw/components/hyperlink/helpers.d.ts +1 -1
  131. package/dist/types/excalidraw/components/icons.d.ts +11 -11
  132. package/dist/types/excalidraw/components/live-collaboration/LiveCollaborationTrigger.d.ts +2 -13
  133. package/dist/types/excalidraw/components/main-menu/DefaultItems.d.ts +2 -2
  134. package/dist/types/excalidraw/components/main-menu/MainMenu.d.ts +26 -28
  135. package/dist/types/excalidraw/components/welcome-screen/WelcomeScreen.Center.d.ts +6 -6
  136. package/dist/types/excalidraw/components/welcome-screen/WelcomeScreen.d.ts +15 -16
  137. package/dist/types/excalidraw/data/blob.d.ts +321 -3
  138. package/dist/types/excalidraw/data/encode.d.ts +4 -4
  139. package/dist/types/excalidraw/data/encryption.d.ts +5 -5
  140. package/dist/types/excalidraw/data/filesystem.d.ts +2 -2
  141. package/dist/types/excalidraw/data/index.d.ts +3 -3
  142. package/dist/types/excalidraw/data/json.d.ts +159 -2
  143. package/dist/types/excalidraw/data/library.d.ts +24 -9
  144. package/dist/types/excalidraw/data/restore.d.ts +25 -10
  145. package/dist/types/excalidraw/editor-jotai.d.ts +11 -11
  146. package/dist/types/excalidraw/hooks/useOutsideClick.d.ts +1 -2
  147. package/dist/types/excalidraw/hooks/useScrollPosition.d.ts +1 -2
  148. package/dist/types/excalidraw/i18n.d.ts +2 -2
  149. package/dist/types/excalidraw/index.d.ts +2 -4
  150. package/dist/types/excalidraw/renderer/helpers.d.ts +6 -4
  151. package/dist/types/excalidraw/renderer/interactiveScene.d.ts +8 -6
  152. package/dist/types/excalidraw/scene/Renderer.d.ts +5 -2
  153. package/dist/types/excalidraw/scene/export.d.ts +2 -2
  154. package/dist/types/excalidraw/scene/scroll.d.ts +1 -6
  155. package/dist/types/excalidraw/scene/types.d.ts +7 -2
  156. package/dist/types/excalidraw/snapping.d.ts +5 -5
  157. package/dist/types/excalidraw/subset/harfbuzz/harfbuzz-bindings.d.ts +1 -1
  158. package/dist/types/excalidraw/subset/harfbuzz/harfbuzz-loader.d.ts +1 -1
  159. package/dist/types/excalidraw/subset/harfbuzz/harfbuzz-wasm.d.ts +1 -1
  160. package/dist/types/excalidraw/subset/woff2/woff2-loader.d.ts +2 -2
  161. package/dist/types/excalidraw/subset/woff2/woff2-wasm.d.ts +1 -1
  162. package/dist/types/excalidraw/types.d.ts +1 -1
  163. package/dist/types/excalidraw/wysiwyg/textWysiwyg.d.ts +2 -2
  164. package/dist/types/math/src/polygon.d.ts +2 -2
  165. package/dist/types/math/src/range.d.ts +1 -3
  166. package/dist/types/math/src/segment.d.ts +3 -3
  167. package/dist/types/utils/src/bbox.d.ts +1 -1
  168. package/dist/types/utils/src/export.d.ts +5 -5
  169. package/dist/types/utils/src/shape.d.ts +6 -6
  170. package/dist/types/utils/src/withinBounds.d.ts +2 -2
  171. package/package.json +2 -2
@@ -1,32 +1,31 @@
1
- /// <reference types="react" />
2
1
  import { LinearElementEditor } from "@excalidraw/element";
3
- import type { Arrowhead, ExcalidrawBindableElement, ExcalidrawElement, ExcalidrawLinearElement } from "@excalidraw/element/types";
2
+ import type { Arrowhead, ExcalidrawBindableElement, ExcalidrawElement, ExcalidrawLinearElement, FontFamilyValues, TextAlign } from "@excalidraw/element/types";
4
3
  import type { AppClassProperties, AppState, Primitive } from "../types";
5
4
  export declare const changeProperty: (elements: readonly ExcalidrawElement[], appState: AppState, callback: (element: ExcalidrawElement) => ExcalidrawElement, includeBoundText?: boolean) => ExcalidrawElement[];
6
5
  export declare const getFormValue: <T extends Primitive>(elements: readonly ExcalidrawElement[], app: AppClassProperties, getAttribute: (element: ExcalidrawElement) => T, isRelevantElement: true | ((element: ExcalidrawElement) => boolean), defaultValue: T | ((isSomeElementSelected: boolean) => T)) => T;
7
6
  export declare const actionChangeStrokeColor: import("./types").Action<Pick<AppState, "currentItemStrokeColor">> & {
8
- keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>, appState: AppState, elements: readonly ExcalidrawElement[], app: AppClassProperties) => boolean) | undefined;
7
+ keyTest?: ((event: React.KeyboardEvent | KeyboardEvent, appState: AppState, elements: readonly ExcalidrawElement[], app: AppClassProperties) => boolean) | undefined;
9
8
  };
10
9
  export declare const actionChangeBackgroundColor: import("./types").Action<Pick<AppState, "viewBackgroundColor" | "currentItemBackgroundColor">> & {
11
- keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>, appState: AppState, elements: readonly ExcalidrawElement[], app: AppClassProperties) => boolean) | undefined;
10
+ keyTest?: ((event: React.KeyboardEvent | KeyboardEvent, appState: AppState, elements: readonly ExcalidrawElement[], app: AppClassProperties) => boolean) | undefined;
12
11
  };
13
12
  export declare const actionChangeFillStyle: import("./types").Action<import("@excalidraw/element/types").FillStyle> & {
14
- keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>, appState: AppState, elements: readonly ExcalidrawElement[], app: AppClassProperties) => boolean) | undefined;
13
+ keyTest?: ((event: React.KeyboardEvent | KeyboardEvent, appState: AppState, elements: readonly ExcalidrawElement[], app: AppClassProperties) => boolean) | undefined;
15
14
  };
16
15
  export declare const actionChangeStrokeWidth: import("./types").Action<number> & {
17
- keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>, appState: AppState, elements: readonly ExcalidrawElement[], app: AppClassProperties) => boolean) | undefined;
16
+ keyTest?: ((event: React.KeyboardEvent | KeyboardEvent, appState: AppState, elements: readonly ExcalidrawElement[], app: AppClassProperties) => boolean) | undefined;
18
17
  };
19
18
  export declare const actionChangeSloppiness: import("./types").Action<number> & {
20
- keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>, appState: AppState, elements: readonly ExcalidrawElement[], app: AppClassProperties) => boolean) | undefined;
19
+ keyTest?: ((event: React.KeyboardEvent | KeyboardEvent, appState: AppState, elements: readonly ExcalidrawElement[], app: AppClassProperties) => boolean) | undefined;
21
20
  };
22
21
  export declare const actionChangeStrokeStyle: import("./types").Action<import("@excalidraw/element/types").StrokeStyle> & {
23
- keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>, appState: AppState, elements: readonly ExcalidrawElement[], app: AppClassProperties) => boolean) | undefined;
22
+ keyTest?: ((event: React.KeyboardEvent | KeyboardEvent, appState: AppState, elements: readonly ExcalidrawElement[], app: AppClassProperties) => boolean) | undefined;
24
23
  };
25
24
  export declare const actionChangeOpacity: import("./types").Action<number> & {
26
- keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>, appState: AppState, elements: readonly ExcalidrawElement[], app: AppClassProperties) => boolean) | undefined;
25
+ keyTest?: ((event: React.KeyboardEvent | KeyboardEvent, appState: AppState, elements: readonly ExcalidrawElement[], app: AppClassProperties) => boolean) | undefined;
27
26
  };
28
27
  export declare const actionChangeFontSize: import("./types").Action<number> & {
29
- keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>, appState: AppState, elements: readonly ExcalidrawElement[], app: AppClassProperties) => boolean) | undefined;
28
+ keyTest?: ((event: React.KeyboardEvent | KeyboardEvent, appState: AppState, elements: readonly ExcalidrawElement[], app: AppClassProperties) => boolean) | undefined;
30
29
  };
31
30
  export declare const actionDecreaseFontSize: {
32
31
  name: "decreaseFontSize";
@@ -44,10 +43,10 @@ export declare const actionDecreaseFontSize: {
44
43
  } | null;
45
44
  showWelcomeScreen: boolean;
46
45
  isLoading: boolean;
47
- errorMessage: import("react").ReactNode;
46
+ errorMessage: React.ReactNode;
48
47
  activeEmbeddable: {
49
48
  element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
50
- state: "active" | "hover";
49
+ state: "hover" | "active";
51
50
  } | null;
52
51
  newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
53
52
  resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
@@ -83,18 +82,18 @@ export declare const actionDecreaseFontSize: {
83
82
  exportScale: number;
84
83
  currentItemStrokeColor: string;
85
84
  currentItemBackgroundColor: string;
86
- currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
85
+ currentItemFillStyle: ExcalidrawElement["fillStyle"];
87
86
  currentItemStrokeWidth: number;
88
- currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
87
+ currentItemStrokeStyle: ExcalidrawElement["strokeStyle"];
89
88
  currentItemRoughness: number;
90
89
  currentItemOpacity: number;
91
- currentItemFontFamily: number;
92
- currentItemTextAlign: string;
90
+ currentItemFontFamily: FontFamilyValues;
91
+ currentItemTextAlign: TextAlign;
93
92
  currentItemStartArrowhead: Arrowhead | null;
94
93
  currentItemEndArrowhead: Arrowhead | null;
95
- currentHoveredFontFamily: number | null;
94
+ currentHoveredFontFamily: FontFamilyValues | null;
96
95
  currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
97
- currentItemArrowType: "round" | "sharp" | "elbow";
96
+ currentItemArrowType: "sharp" | "round" | "elbow";
98
97
  viewBackgroundColor: string;
99
98
  scrollX: number;
100
99
  scrollY: number;
@@ -103,28 +102,26 @@ export declare const actionDecreaseFontSize: {
103
102
  name: string | null;
104
103
  isResizing: boolean;
105
104
  isRotating: boolean;
106
- zoom: Readonly<{
107
- value: import("../types").NormalizedZoomValue;
108
- }>;
105
+ zoom: import("../types").Zoom;
109
106
  openMenu: "canvas" | null;
110
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
107
+ openPopup: "canvasBackground" | "elementBackground" | "elementStroke" | "fontFamily" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
111
108
  openSidebar: {
112
- name: string;
113
- tab?: string | undefined;
109
+ name: import("../types").SidebarName;
110
+ tab?: import("../types").SidebarTabName;
114
111
  } | null;
115
- openDialog: {
112
+ openDialog: null | {
116
113
  name: "imageExport" | "help" | "jsonExport";
117
114
  } | {
118
115
  name: "ttd";
119
- tab: "mermaid" | "text-to-diagram";
116
+ tab: "text-to-diagram" | "mermaid";
120
117
  } | {
121
118
  name: "commandPalette";
122
119
  } | {
123
120
  name: "settings";
124
121
  } | {
125
122
  name: "elementLinkSelector";
126
- sourceElementId: string;
127
- } | null;
123
+ sourceElementId: ExcalidrawElement["id"];
124
+ };
128
125
  defaultSidebarDockedPreference: boolean;
129
126
  lastPointerDownWith: import("@excalidraw/element/types").PointerType;
130
127
  selectedElementIds: Readonly<{
@@ -140,8 +137,8 @@ export declare const actionDecreaseFontSize: {
140
137
  shouldCacheIgnoreZoom: boolean;
141
138
  toast: {
142
139
  message: string;
143
- closable?: boolean | undefined;
144
- duration?: number | undefined;
140
+ closable?: boolean;
141
+ duration?: number;
145
142
  } | null;
146
143
  zenModeEnabled: boolean;
147
144
  theme: import("@excalidraw/element/types").Theme;
@@ -152,32 +149,13 @@ export declare const actionDecreaseFontSize: {
152
149
  selectedGroupIds: {
153
150
  [groupId: string]: boolean;
154
151
  };
155
- editingGroupId: string | null;
152
+ editingGroupId: import("@excalidraw/element/types").GroupId | null;
156
153
  width: number;
157
154
  height: number;
158
155
  offsetTop: number;
159
156
  offsetLeft: number;
160
157
  fileHandle: import("browser-fs-access").FileSystemHandle | null;
161
- collaborators: Map<import("../types").SocketId, Readonly<{
162
- pointer?: import("../types").CollaboratorPointer | undefined;
163
- button?: "up" | "down" | undefined;
164
- selectedElementIds?: Readonly<{
165
- [id: string]: true;
166
- }> | undefined;
167
- username?: string | null | undefined;
168
- userState?: import("@excalidraw/common").UserIdleState | undefined;
169
- color?: {
170
- background: string;
171
- stroke: string;
172
- } | undefined;
173
- avatarUrl?: string | undefined;
174
- id?: string | undefined;
175
- socketId?: import("../types").SocketId | undefined;
176
- isCurrentUser?: boolean | undefined;
177
- isInCall?: boolean | undefined;
178
- isSpeaking?: boolean | undefined;
179
- isMuted?: boolean | undefined;
180
- }>>;
158
+ collaborators: Map<import("../types").SocketId, import("../types").Collaborator>;
181
159
  stats: {
182
160
  open: boolean;
183
161
  panels: number;
@@ -201,9 +179,9 @@ export declare const actionDecreaseFontSize: {
201
179
  userToFollow: import("../types").UserToFollow | null;
202
180
  followedBy: Set<import("../types").SocketId>;
203
181
  isCropping: boolean;
204
- croppingElementId: string | null;
182
+ croppingElementId: ExcalidrawElement["id"] | null;
205
183
  searchMatches: Readonly<{
206
- focusedId: string | null;
184
+ focusedId: ExcalidrawElement["id"] | null;
207
185
  matches: readonly import("../types").SearchMatch[];
208
186
  }> | null;
209
187
  activeLockedId: string | null;
@@ -234,10 +212,10 @@ export declare const actionIncreaseFontSize: {
234
212
  } | null;
235
213
  showWelcomeScreen: boolean;
236
214
  isLoading: boolean;
237
- errorMessage: import("react").ReactNode;
215
+ errorMessage: React.ReactNode;
238
216
  activeEmbeddable: {
239
217
  element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
240
- state: "active" | "hover";
218
+ state: "hover" | "active";
241
219
  } | null;
242
220
  newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
243
221
  resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
@@ -273,18 +251,18 @@ export declare const actionIncreaseFontSize: {
273
251
  exportScale: number;
274
252
  currentItemStrokeColor: string;
275
253
  currentItemBackgroundColor: string;
276
- currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
254
+ currentItemFillStyle: ExcalidrawElement["fillStyle"];
277
255
  currentItemStrokeWidth: number;
278
- currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
256
+ currentItemStrokeStyle: ExcalidrawElement["strokeStyle"];
279
257
  currentItemRoughness: number;
280
258
  currentItemOpacity: number;
281
- currentItemFontFamily: number;
282
- currentItemTextAlign: string;
259
+ currentItemFontFamily: FontFamilyValues;
260
+ currentItemTextAlign: TextAlign;
283
261
  currentItemStartArrowhead: Arrowhead | null;
284
262
  currentItemEndArrowhead: Arrowhead | null;
285
- currentHoveredFontFamily: number | null;
263
+ currentHoveredFontFamily: FontFamilyValues | null;
286
264
  currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
287
- currentItemArrowType: "round" | "sharp" | "elbow";
265
+ currentItemArrowType: "sharp" | "round" | "elbow";
288
266
  viewBackgroundColor: string;
289
267
  scrollX: number;
290
268
  scrollY: number;
@@ -293,28 +271,26 @@ export declare const actionIncreaseFontSize: {
293
271
  name: string | null;
294
272
  isResizing: boolean;
295
273
  isRotating: boolean;
296
- zoom: Readonly<{
297
- value: import("../types").NormalizedZoomValue;
298
- }>;
274
+ zoom: import("../types").Zoom;
299
275
  openMenu: "canvas" | null;
300
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
276
+ openPopup: "canvasBackground" | "elementBackground" | "elementStroke" | "fontFamily" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
301
277
  openSidebar: {
302
- name: string;
303
- tab?: string | undefined;
278
+ name: import("../types").SidebarName;
279
+ tab?: import("../types").SidebarTabName;
304
280
  } | null;
305
- openDialog: {
281
+ openDialog: null | {
306
282
  name: "imageExport" | "help" | "jsonExport";
307
283
  } | {
308
284
  name: "ttd";
309
- tab: "mermaid" | "text-to-diagram";
285
+ tab: "text-to-diagram" | "mermaid";
310
286
  } | {
311
287
  name: "commandPalette";
312
288
  } | {
313
289
  name: "settings";
314
290
  } | {
315
291
  name: "elementLinkSelector";
316
- sourceElementId: string;
317
- } | null;
292
+ sourceElementId: ExcalidrawElement["id"];
293
+ };
318
294
  defaultSidebarDockedPreference: boolean;
319
295
  lastPointerDownWith: import("@excalidraw/element/types").PointerType;
320
296
  selectedElementIds: Readonly<{
@@ -330,8 +306,8 @@ export declare const actionIncreaseFontSize: {
330
306
  shouldCacheIgnoreZoom: boolean;
331
307
  toast: {
332
308
  message: string;
333
- closable?: boolean | undefined;
334
- duration?: number | undefined;
309
+ closable?: boolean;
310
+ duration?: number;
335
311
  } | null;
336
312
  zenModeEnabled: boolean;
337
313
  theme: import("@excalidraw/element/types").Theme;
@@ -342,32 +318,13 @@ export declare const actionIncreaseFontSize: {
342
318
  selectedGroupIds: {
343
319
  [groupId: string]: boolean;
344
320
  };
345
- editingGroupId: string | null;
321
+ editingGroupId: import("@excalidraw/element/types").GroupId | null;
346
322
  width: number;
347
323
  height: number;
348
324
  offsetTop: number;
349
325
  offsetLeft: number;
350
326
  fileHandle: import("browser-fs-access").FileSystemHandle | null;
351
- collaborators: Map<import("../types").SocketId, Readonly<{
352
- pointer?: import("../types").CollaboratorPointer | undefined;
353
- button?: "up" | "down" | undefined;
354
- selectedElementIds?: Readonly<{
355
- [id: string]: true;
356
- }> | undefined;
357
- username?: string | null | undefined;
358
- userState?: import("@excalidraw/common").UserIdleState | undefined;
359
- color?: {
360
- background: string;
361
- stroke: string;
362
- } | undefined;
363
- avatarUrl?: string | undefined;
364
- id?: string | undefined;
365
- socketId?: import("../types").SocketId | undefined;
366
- isCurrentUser?: boolean | undefined;
367
- isInCall?: boolean | undefined;
368
- isSpeaking?: boolean | undefined;
369
- isMuted?: boolean | undefined;
370
- }>>;
327
+ collaborators: Map<import("../types").SocketId, import("../types").Collaborator>;
371
328
  stats: {
372
329
  open: boolean;
373
330
  panels: number;
@@ -391,9 +348,9 @@ export declare const actionIncreaseFontSize: {
391
348
  userToFollow: import("../types").UserToFollow | null;
392
349
  followedBy: Set<import("../types").SocketId>;
393
350
  isCropping: boolean;
394
- croppingElementId: string | null;
351
+ croppingElementId: ExcalidrawElement["id"] | null;
395
352
  searchMatches: Readonly<{
396
- focusedId: string | null;
353
+ focusedId: ExcalidrawElement["id"] | null;
397
354
  matches: readonly import("../types").SearchMatch[];
398
355
  }> | null;
399
356
  activeLockedId: string | null;
@@ -412,22 +369,22 @@ export declare const actionChangeFontFamily: import("./types").Action<{
412
369
  currentItemFontFamily: any;
413
370
  currentHoveredFontFamily: any;
414
371
  }> & {
415
- keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>, appState: AppState, elements: readonly ExcalidrawElement[], app: AppClassProperties) => boolean) | undefined;
372
+ keyTest?: ((event: React.KeyboardEvent | KeyboardEvent, appState: AppState, elements: readonly ExcalidrawElement[], app: AppClassProperties) => boolean) | undefined;
416
373
  };
417
374
  export declare const actionChangeTextAlign: import("./types").Action<string> & {
418
- keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>, appState: AppState, elements: readonly ExcalidrawElement[], app: AppClassProperties) => boolean) | undefined;
375
+ keyTest?: ((event: React.KeyboardEvent | KeyboardEvent, appState: AppState, elements: readonly ExcalidrawElement[], app: AppClassProperties) => boolean) | undefined;
419
376
  };
420
377
  export declare const actionChangeVerticalAlign: import("./types").Action<string> & {
421
- keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>, appState: AppState, elements: readonly ExcalidrawElement[], app: AppClassProperties) => boolean) | undefined;
378
+ keyTest?: ((event: React.KeyboardEvent | KeyboardEvent, appState: AppState, elements: readonly ExcalidrawElement[], app: AppClassProperties) => boolean) | undefined;
422
379
  };
423
380
  export declare const actionChangeRoundness: import("./types").Action<"round" | "sharp"> & {
424
- keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>, appState: AppState, elements: readonly ExcalidrawElement[], app: AppClassProperties) => boolean) | undefined;
381
+ keyTest?: ((event: React.KeyboardEvent | KeyboardEvent, appState: AppState, elements: readonly ExcalidrawElement[], app: AppClassProperties) => boolean) | undefined;
425
382
  };
426
383
  export declare const actionChangeArrowhead: import("./types").Action<{
427
384
  position: "start" | "end";
428
385
  type: Arrowhead;
429
386
  }> & {
430
- keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>, appState: AppState, elements: readonly ExcalidrawElement[], app: AppClassProperties) => boolean) | undefined;
387
+ keyTest?: ((event: React.KeyboardEvent | KeyboardEvent, appState: AppState, elements: readonly ExcalidrawElement[], app: AppClassProperties) => boolean) | undefined;
431
388
  };
432
389
  export declare const actionChangeArrowProperties: {
433
390
  name: "changeArrowProperties";
@@ -439,5 +396,5 @@ export declare const actionChangeArrowProperties: {
439
396
  keyTest?: undefined;
440
397
  };
441
398
  export declare const actionChangeArrowType: import("./types").Action<"round" | "sharp" | "elbow"> & {
442
- keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>, appState: AppState, elements: readonly ExcalidrawElement[], app: AppClassProperties) => boolean) | undefined;
399
+ keyTest?: ((event: React.KeyboardEvent | KeyboardEvent, appState: AppState, elements: readonly ExcalidrawElement[], app: AppClassProperties) => boolean) | undefined;
443
400
  };
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { LinearElementEditor } from "@excalidraw/element";
3
2
  import type { ExcalidrawElement } from "@excalidraw/element/types";
4
3
  export declare const actionSelectAll: {
@@ -12,13 +11,9 @@ export declare const actionSelectAll: {
12
11
  perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, value: unknown, app: import("../types").AppClassProperties) => false | {
13
12
  appState: {
14
13
  selectedLinearElement: LinearElementEditor | null;
15
- editingGroupId: string | null;
16
- selectedElementIds: Readonly<{
17
- [id: string]: true;
18
- }>;
19
- selectedGroupIds: {
20
- [groupId: string]: boolean;
21
- };
14
+ editingGroupId: import("../types").AppState["editingGroupId"];
15
+ selectedElementIds: import("../types").AppState["selectedElementIds"];
16
+ selectedGroupIds: import("../types").AppState["selectedGroupIds"];
22
17
  contextMenu: {
23
18
  items: import("../components/ContextMenu").ContextMenuItems;
24
19
  top: number;
@@ -26,10 +21,10 @@ export declare const actionSelectAll: {
26
21
  } | null;
27
22
  showWelcomeScreen: boolean;
28
23
  isLoading: boolean;
29
- errorMessage: import("react").ReactNode;
24
+ errorMessage: React.ReactNode;
30
25
  activeEmbeddable: {
31
26
  element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
32
- state: "active" | "hover";
27
+ state: "hover" | "active";
33
28
  } | null;
34
29
  newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
35
30
  resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
@@ -65,19 +60,19 @@ export declare const actionSelectAll: {
65
60
  exportScale: number;
66
61
  currentItemStrokeColor: string;
67
62
  currentItemBackgroundColor: string;
68
- currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
63
+ currentItemFillStyle: ExcalidrawElement["fillStyle"];
69
64
  currentItemStrokeWidth: number;
70
- currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
65
+ currentItemStrokeStyle: ExcalidrawElement["strokeStyle"];
71
66
  currentItemRoughness: number;
72
67
  currentItemOpacity: number;
73
- currentItemFontFamily: number;
68
+ currentItemFontFamily: import("@excalidraw/element/types").FontFamilyValues;
74
69
  currentItemFontSize: number;
75
- currentItemTextAlign: string;
70
+ currentItemTextAlign: import("@excalidraw/element/types").TextAlign;
76
71
  currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
77
72
  currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
78
- currentHoveredFontFamily: number | null;
73
+ currentHoveredFontFamily: import("@excalidraw/element/types").FontFamilyValues | null;
79
74
  currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
80
- currentItemArrowType: "round" | "sharp" | "elbow";
75
+ currentItemArrowType: "sharp" | "round" | "elbow";
81
76
  viewBackgroundColor: string;
82
77
  scrollX: number;
83
78
  scrollY: number;
@@ -86,28 +81,26 @@ export declare const actionSelectAll: {
86
81
  name: string | null;
87
82
  isResizing: boolean;
88
83
  isRotating: boolean;
89
- zoom: Readonly<{
90
- value: import("../types").NormalizedZoomValue;
91
- }>;
84
+ zoom: import("../types").Zoom;
92
85
  openMenu: "canvas" | null;
93
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
86
+ openPopup: "canvasBackground" | "elementBackground" | "elementStroke" | "fontFamily" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
94
87
  openSidebar: {
95
- name: string;
96
- tab?: string | undefined;
88
+ name: import("../types").SidebarName;
89
+ tab?: import("../types").SidebarTabName;
97
90
  } | null;
98
- openDialog: {
91
+ openDialog: null | {
99
92
  name: "imageExport" | "help" | "jsonExport";
100
93
  } | {
101
94
  name: "ttd";
102
- tab: "mermaid" | "text-to-diagram";
95
+ tab: "text-to-diagram" | "mermaid";
103
96
  } | {
104
97
  name: "commandPalette";
105
98
  } | {
106
99
  name: "settings";
107
100
  } | {
108
101
  name: "elementLinkSelector";
109
- sourceElementId: string;
110
- } | null;
102
+ sourceElementId: ExcalidrawElement["id"];
103
+ };
111
104
  defaultSidebarDockedPreference: boolean;
112
105
  lastPointerDownWith: import("@excalidraw/element/types").PointerType;
113
106
  hoveredElementIds: Readonly<{
@@ -120,8 +113,8 @@ export declare const actionSelectAll: {
120
113
  shouldCacheIgnoreZoom: boolean;
121
114
  toast: {
122
115
  message: string;
123
- closable?: boolean | undefined;
124
- duration?: number | undefined;
116
+ closable?: boolean;
117
+ duration?: number;
125
118
  } | null;
126
119
  zenModeEnabled: boolean;
127
120
  theme: import("@excalidraw/element/types").Theme;
@@ -134,26 +127,7 @@ export declare const actionSelectAll: {
134
127
  offsetTop: number;
135
128
  offsetLeft: number;
136
129
  fileHandle: import("browser-fs-access").FileSystemHandle | null;
137
- collaborators: Map<import("../types").SocketId, Readonly<{
138
- pointer?: import("../types").CollaboratorPointer | undefined;
139
- button?: "up" | "down" | undefined;
140
- selectedElementIds?: Readonly<{
141
- [id: string]: true;
142
- }> | undefined;
143
- username?: string | null | undefined;
144
- userState?: import("@excalidraw/common").UserIdleState | undefined;
145
- color?: {
146
- background: string;
147
- stroke: string;
148
- } | undefined;
149
- avatarUrl?: string | undefined;
150
- id?: string | undefined;
151
- socketId?: import("../types").SocketId | undefined;
152
- isCurrentUser?: boolean | undefined;
153
- isInCall?: boolean | undefined;
154
- isSpeaking?: boolean | undefined;
155
- isMuted?: boolean | undefined;
156
- }>>;
130
+ collaborators: Map<import("../types").SocketId, import("../types").Collaborator>;
157
131
  stats: {
158
132
  open: boolean;
159
133
  panels: number;
@@ -176,9 +150,9 @@ export declare const actionSelectAll: {
176
150
  userToFollow: import("../types").UserToFollow | null;
177
151
  followedBy: Set<import("../types").SocketId>;
178
152
  isCropping: boolean;
179
- croppingElementId: string | null;
153
+ croppingElementId: ExcalidrawElement["id"] | null;
180
154
  searchMatches: Readonly<{
181
- focusedId: string | null;
155
+ focusedId: ExcalidrawElement["id"] | null;
182
156
  matches: readonly import("../types").SearchMatch[];
183
157
  }> | null;
184
158
  activeLockedId: string | null;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  export declare let copiedStyles: string;
3
2
  export declare const actionCopyStyles: {
4
3
  name: "copyStyles";
@@ -19,10 +18,10 @@ export declare const actionCopyStyles: {
19
18
  } | null;
20
19
  showWelcomeScreen: boolean;
21
20
  isLoading: boolean;
22
- errorMessage: import("react").ReactNode;
21
+ errorMessage: React.ReactNode;
23
22
  activeEmbeddable: {
24
23
  element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
25
- state: "active" | "hover";
24
+ state: "hover" | "active";
26
25
  } | null;
27
26
  newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
28
27
  resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
@@ -58,19 +57,19 @@ export declare const actionCopyStyles: {
58
57
  exportScale: number;
59
58
  currentItemStrokeColor: string;
60
59
  currentItemBackgroundColor: string;
61
- currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
60
+ currentItemFillStyle: import("@excalidraw/element/types").ExcalidrawElement["fillStyle"];
62
61
  currentItemStrokeWidth: number;
63
- currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
62
+ currentItemStrokeStyle: import("@excalidraw/element/types").ExcalidrawElement["strokeStyle"];
64
63
  currentItemRoughness: number;
65
64
  currentItemOpacity: number;
66
- currentItemFontFamily: number;
65
+ currentItemFontFamily: import("@excalidraw/element/types").FontFamilyValues;
67
66
  currentItemFontSize: number;
68
- currentItemTextAlign: string;
67
+ currentItemTextAlign: import("@excalidraw/element/types").TextAlign;
69
68
  currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
70
69
  currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
71
- currentHoveredFontFamily: number | null;
70
+ currentHoveredFontFamily: import("@excalidraw/element/types").FontFamilyValues | null;
72
71
  currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
73
- currentItemArrowType: "round" | "sharp" | "elbow";
72
+ currentItemArrowType: "sharp" | "round" | "elbow";
74
73
  viewBackgroundColor: string;
75
74
  scrollX: number;
76
75
  scrollY: number;
@@ -79,28 +78,26 @@ export declare const actionCopyStyles: {
79
78
  name: string | null;
80
79
  isResizing: boolean;
81
80
  isRotating: boolean;
82
- zoom: Readonly<{
83
- value: import("../types").NormalizedZoomValue;
84
- }>;
81
+ zoom: import("../types").Zoom;
85
82
  openMenu: "canvas" | null;
86
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
83
+ openPopup: "canvasBackground" | "elementBackground" | "elementStroke" | "fontFamily" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
87
84
  openSidebar: {
88
- name: string;
89
- tab?: string | undefined;
85
+ name: import("../types").SidebarName;
86
+ tab?: import("../types").SidebarTabName;
90
87
  } | null;
91
- openDialog: {
88
+ openDialog: null | {
92
89
  name: "imageExport" | "help" | "jsonExport";
93
90
  } | {
94
91
  name: "ttd";
95
- tab: "mermaid" | "text-to-diagram";
92
+ tab: "text-to-diagram" | "mermaid";
96
93
  } | {
97
94
  name: "commandPalette";
98
95
  } | {
99
96
  name: "settings";
100
97
  } | {
101
98
  name: "elementLinkSelector";
102
- sourceElementId: string;
103
- } | null;
99
+ sourceElementId: import("@excalidraw/element/types").ExcalidrawElement["id"];
100
+ };
104
101
  defaultSidebarDockedPreference: boolean;
105
102
  lastPointerDownWith: import("@excalidraw/element/types").PointerType;
106
103
  selectedElementIds: Readonly<{
@@ -123,32 +120,13 @@ export declare const actionCopyStyles: {
123
120
  selectedGroupIds: {
124
121
  [groupId: string]: boolean;
125
122
  };
126
- editingGroupId: string | null;
123
+ editingGroupId: import("@excalidraw/element/types").GroupId | null;
127
124
  width: number;
128
125
  height: number;
129
126
  offsetTop: number;
130
127
  offsetLeft: number;
131
128
  fileHandle: import("browser-fs-access").FileSystemHandle | null;
132
- collaborators: Map<import("../types").SocketId, Readonly<{
133
- pointer?: import("../types").CollaboratorPointer | undefined;
134
- button?: "up" | "down" | undefined;
135
- selectedElementIds?: Readonly<{
136
- [id: string]: true;
137
- }> | undefined;
138
- username?: string | null | undefined;
139
- userState?: import("@excalidraw/common").UserIdleState | undefined;
140
- color?: {
141
- background: string;
142
- stroke: string;
143
- } | undefined;
144
- avatarUrl?: string | undefined;
145
- id?: string | undefined;
146
- socketId?: import("../types").SocketId | undefined;
147
- isCurrentUser?: boolean | undefined;
148
- isInCall?: boolean | undefined;
149
- isSpeaking?: boolean | undefined;
150
- isMuted?: boolean | undefined;
151
- }>>;
129
+ collaborators: Map<import("../types").SocketId, import("../types").Collaborator>;
152
130
  stats: {
153
131
  open: boolean;
154
132
  panels: number;
@@ -172,9 +150,9 @@ export declare const actionCopyStyles: {
172
150
  userToFollow: import("../types").UserToFollow | null;
173
151
  followedBy: Set<import("../types").SocketId>;
174
152
  isCropping: boolean;
175
- croppingElementId: string | null;
153
+ croppingElementId: import("@excalidraw/element/types").ExcalidrawElement["id"] | null;
176
154
  searchMatches: Readonly<{
177
- focusedId: string | null;
155
+ focusedId: import("@excalidraw/element/types").ExcalidrawElement["id"] | null;
178
156
  matches: readonly import("../types").SearchMatch[];
179
157
  }> | null;
180
158
  activeLockedId: string | null;
@@ -6,10 +6,10 @@ export declare const actionTextAutoResize: {
6
6
  trackEvent: {
7
7
  category: "element";
8
8
  };
9
- predicate: (elements: readonly import("../../element/src/types").ExcalidrawElement[], appState: import("../types").AppState, _: unknown, app: AppClassProperties) => boolean;
10
- perform: (elements: readonly import("../../element/src/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, _: unknown, app: AppClassProperties) => {
9
+ predicate: (elements: readonly import("@excalidraw/element/types").ExcalidrawElement[], appState: import("../types").AppState, _: unknown, app: AppClassProperties) => boolean;
10
+ perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, _: unknown, app: AppClassProperties) => {
11
11
  appState: Readonly<import("../types").AppState>;
12
- elements: import("../../element/src/types").OrderedExcalidrawElement[];
12
+ elements: import("@excalidraw/element/types").OrderedExcalidrawElement[];
13
13
  captureUpdate: "IMMEDIATELY";
14
14
  };
15
15
  } & {