@zsviczian/excalidraw 0.18.0-6 → 0.18.0-60

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 (199) hide show
  1. package/dist/excalidraw.development.js +757 -504
  2. package/dist/excalidraw.production.min.js +1 -1
  3. package/dist/excalidraw.production.min.js.LICENSE.txt +0 -2
  4. package/dist/styles.development.css +1080 -437
  5. package/dist/styles.production.css +26 -22
  6. package/package.json +15 -4
  7. package/types/common/src/commonObsidianUtils.d.ts +20 -0
  8. package/types/common/src/constants.d.ts +42 -18
  9. package/types/common/src/editorInterface.d.ts +35 -0
  10. package/types/{excalidraw → common/src}/emitter.d.ts +1 -1
  11. package/types/common/src/font-metadata.d.ts +4 -2
  12. package/types/common/src/index.d.ts +4 -0
  13. package/types/common/src/utility-types.d.ts +5 -0
  14. package/types/common/src/utils.d.ts +25 -6
  15. package/types/{excalidraw → common/src}/visualdebug.d.ts +2 -2
  16. package/types/{excalidraw/scene → element/src}/Scene.d.ts +16 -15
  17. package/types/element/src/align.d.ts +4 -3
  18. package/types/element/src/binding.d.ts +62 -41
  19. package/types/element/src/bounds.d.ts +14 -6
  20. package/types/element/src/collision.d.ts +23 -13
  21. package/types/element/src/cropElement.d.ts +1 -1
  22. package/types/{excalidraw/change.d.ts → element/src/delta.d.ts} +77 -40
  23. package/types/element/src/distance.d.ts +2 -2
  24. package/types/element/src/distribute.d.ts +2 -1
  25. package/types/element/src/dragElements.d.ts +3 -2
  26. package/types/element/src/duplicate.d.ts +10 -13
  27. package/types/element/src/elbowArrow.d.ts +1 -1
  28. package/types/element/src/flowchart.d.ts +3 -2
  29. package/types/element/src/fractionalIndex.d.ts +9 -3
  30. package/types/element/src/frame.d.ts +5 -4
  31. package/types/element/src/groups.d.ts +1 -0
  32. package/types/element/src/index.d.ts +44 -5
  33. package/types/element/src/linearElementEditor.d.ts +34 -50
  34. package/types/element/src/mutateElement.d.ts +11 -3
  35. package/types/element/src/newElement.d.ts +6 -4
  36. package/types/element/src/positionElementsOnGrid.d.ts +2 -0
  37. package/types/element/src/renderElement.d.ts +5 -2
  38. package/types/element/src/resizeElements.d.ts +6 -5
  39. package/types/element/src/resizeTest.d.ts +5 -4
  40. package/types/element/src/selection.d.ts +11 -5
  41. package/types/element/src/shape.d.ts +42 -0
  42. package/types/element/src/sizeHelpers.d.ts +2 -2
  43. package/types/element/src/store.d.ts +237 -0
  44. package/types/element/src/textElement.d.ts +4 -3
  45. package/types/element/src/transformHandles.d.ts +5 -4
  46. package/types/element/src/typeChecks.d.ts +20 -3
  47. package/types/element/src/types.d.ts +31 -12
  48. package/types/element/src/utils.d.ts +17 -6
  49. package/types/element/src/zindex.d.ts +8 -2
  50. package/types/excalidraw/actions/actionAddToLibrary.d.ts +88 -58
  51. package/types/excalidraw/actions/actionAlign.d.ts +6 -6
  52. package/types/excalidraw/actions/actionBoundText.d.ts +61 -41
  53. package/types/excalidraw/actions/actionCanvas.d.ts +430 -519
  54. package/types/excalidraw/actions/actionClipboard.d.ts +81 -944
  55. package/types/excalidraw/actions/actionCropEditor.d.ts +30 -20
  56. package/types/excalidraw/actions/actionDeleteSelected.d.ts +97 -68
  57. package/types/excalidraw/actions/actionDistribute.d.ts +2 -2
  58. package/types/excalidraw/actions/actionDuplicateSelection.d.ts +2 -2
  59. package/types/excalidraw/actions/actionElementLink.d.ts +28 -20
  60. package/types/excalidraw/actions/actionElementLock.d.ts +73 -54
  61. package/types/excalidraw/actions/actionEmbeddable.d.ts +30 -20
  62. package/types/excalidraw/actions/actionExport.d.ts +142 -1185
  63. package/types/excalidraw/actions/actionFinalize.d.ts +10 -424
  64. package/types/excalidraw/actions/actionFlip.d.ts +2 -2
  65. package/types/excalidraw/actions/actionFrame.d.ts +176 -129
  66. package/types/excalidraw/actions/actionGroup.d.ts +60 -40
  67. package/types/excalidraw/actions/actionHistory.d.ts +1 -2
  68. package/types/excalidraw/actions/actionLinearEditor.d.ts +564 -22
  69. package/types/excalidraw/actions/actionLink.d.ts +27 -17
  70. package/types/excalidraw/actions/actionMenu.d.ts +27 -457
  71. package/types/excalidraw/actions/actionNavigate.d.ts +21 -431
  72. package/types/excalidraw/actions/actionProperties.d.ts +169 -2702
  73. package/types/excalidraw/actions/actionSelectAll.d.ts +30 -20
  74. package/types/excalidraw/actions/actionStyles.d.ts +31 -21
  75. package/types/excalidraw/actions/actionTextAutoResize.d.ts +1 -1
  76. package/types/excalidraw/actions/actionToggleGridMode.d.ts +29 -19
  77. package/types/excalidraw/actions/actionToggleObjectsSnapMode.d.ts +29 -19
  78. package/types/excalidraw/actions/actionToggleSearchMenu.d.ts +27 -224
  79. package/types/excalidraw/actions/actionToggleShapeSwitch.d.ts +19 -0
  80. package/types/excalidraw/actions/actionToggleStats.d.ts +29 -19
  81. package/types/excalidraw/actions/actionToggleViewMode.d.ts +30 -20
  82. package/types/excalidraw/actions/actionToggleZenMode.d.ts +30 -20
  83. package/types/excalidraw/actions/actionTrayMenu.d.ts +229 -0
  84. package/types/excalidraw/actions/actionZindex.d.ts +2 -2
  85. package/types/excalidraw/actions/index.d.ts +4 -2
  86. package/types/excalidraw/actions/manager.d.ts +1 -1
  87. package/types/excalidraw/actions/register.d.ts +1 -1
  88. package/types/excalidraw/actions/types.d.ts +7 -6
  89. package/types/excalidraw/appState.d.ts +22 -7
  90. package/types/excalidraw/clipboard.d.ts +68 -5
  91. package/types/excalidraw/components/Actions.d.ts +20 -7
  92. package/types/excalidraw/components/App.d.ts +68 -46
  93. package/types/excalidraw/components/ButtonIcon.d.ts +1 -0
  94. package/types/excalidraw/components/ColorPicker/ColorInput.d.ts +2 -1
  95. package/types/excalidraw/components/ColorPicker/ColorPicker.d.ts +5 -1
  96. package/types/excalidraw/components/ColorPicker/CustomColorList.d.ts +1 -1
  97. package/types/excalidraw/components/ColorPicker/Picker.d.ts +4 -3
  98. package/types/excalidraw/components/ColorPicker/PickerColorList.d.ts +3 -3
  99. package/types/excalidraw/components/ColorPicker/ShadeList.d.ts +3 -2
  100. package/types/excalidraw/components/ColorPicker/TopPicks.d.ts +1 -1
  101. package/types/excalidraw/components/ColorPicker/colorPickerUtils.d.ts +1 -1
  102. package/types/excalidraw/components/ColorPicker/keyboardNavHandlers.d.ts +1 -1
  103. package/types/excalidraw/components/CommandPalette/CommandPalette.d.ts +1 -0
  104. package/types/excalidraw/components/CommandPalette/types.d.ts +1 -2
  105. package/types/excalidraw/components/ConvertElementTypePopup.d.ts +23 -0
  106. package/types/excalidraw/components/ElementLinkDialog.d.ts +4 -3
  107. package/types/excalidraw/components/Ellipsify.d.ts +3 -0
  108. package/types/excalidraw/components/ExcalidrawLogo.d.ts +1 -1
  109. package/types/excalidraw/components/FilledButton.d.ts +1 -1
  110. package/types/excalidraw/components/FixedSideContainer.d.ts +2 -1
  111. package/types/excalidraw/components/FontPicker/FontPicker.d.ts +2 -1
  112. package/types/excalidraw/components/FontPicker/FontPickerTrigger.d.ts +3 -1
  113. package/types/excalidraw/components/HintViewer.d.ts +4 -3
  114. package/types/excalidraw/components/InlineIcon.d.ts +3 -1
  115. package/types/excalidraw/components/LayerUI.d.ts +2 -1
  116. package/types/excalidraw/components/LibraryMenuSection.d.ts +1 -1
  117. package/types/excalidraw/components/LinkButton.d.ts +4 -0
  118. package/types/excalidraw/components/MobileMenu.d.ts +4 -5
  119. package/types/excalidraw/components/MobileToolBar.d.ts +10 -0
  120. package/types/excalidraw/components/Popover.d.ts +2 -1
  121. package/types/excalidraw/components/PropertiesPopover.d.ts +1 -0
  122. package/types/excalidraw/components/{ButtonIconSelect.d.ts → RadioSelection.d.ts} +1 -1
  123. package/types/excalidraw/components/Range.d.ts +3 -3
  124. package/types/excalidraw/components/Section.d.ts +1 -0
  125. package/types/excalidraw/components/Stats/Angle.d.ts +1 -1
  126. package/types/excalidraw/components/Stats/CanvasGrid.d.ts +1 -1
  127. package/types/excalidraw/components/Stats/CanvasGridSize.d.ts +1 -1
  128. package/types/excalidraw/components/Stats/Collapsible.d.ts +2 -1
  129. package/types/excalidraw/components/Stats/Dimension.d.ts +1 -1
  130. package/types/excalidraw/components/Stats/DragInput.d.ts +12 -2
  131. package/types/excalidraw/components/Stats/FontSize.d.ts +1 -1
  132. package/types/excalidraw/components/Stats/MultiAngle.d.ts +1 -1
  133. package/types/excalidraw/components/Stats/MultiDimension.d.ts +1 -1
  134. package/types/excalidraw/components/Stats/MultiFontSize.d.ts +1 -1
  135. package/types/excalidraw/components/Stats/MultiPosition.d.ts +1 -1
  136. package/types/excalidraw/components/Stats/Position.d.ts +1 -1
  137. package/types/excalidraw/components/Stats/utils.d.ts +4 -11
  138. package/types/excalidraw/components/TTDDialog/TTDDialogTrigger.d.ts +1 -2
  139. package/types/excalidraw/components/TextField.d.ts +1 -0
  140. package/types/excalidraw/components/ToolPopover.d.ts +25 -0
  141. package/types/excalidraw/components/TrayMenu.d.ts +26 -0
  142. package/types/excalidraw/components/UnlockPopup.d.ts +8 -0
  143. package/types/excalidraw/components/canvases/InteractiveCanvas.d.ts +7 -3
  144. package/types/excalidraw/components/dropdownMenu/DropdownMenu.d.ts +4 -2
  145. package/types/excalidraw/components/dropdownMenu/DropdownMenuContent.d.ts +2 -1
  146. package/types/excalidraw/components/hyperlink/Hyperlink.d.ts +3 -2
  147. package/types/excalidraw/components/hyperlink/helpers.d.ts +2 -1
  148. package/types/excalidraw/components/icons.d.ts +17 -0
  149. package/types/excalidraw/components/live-collaboration/LiveCollaborationTrigger.d.ts +14 -1
  150. package/types/excalidraw/components/main-menu/MainMenu.d.ts +0 -3
  151. package/types/excalidraw/components/shapes.d.ts +115 -5
  152. package/types/excalidraw/data/blob.d.ts +3 -7
  153. package/types/excalidraw/data/reconcile.d.ts +1 -0
  154. package/types/excalidraw/data/restore.d.ts +7 -2
  155. package/types/excalidraw/data/transform.d.ts +1 -1
  156. package/types/excalidraw/data/types.d.ts +4 -1
  157. package/types/excalidraw/editor-jotai.d.ts +6 -6
  158. package/types/excalidraw/eraser/index.d.ts +0 -2
  159. package/types/excalidraw/fonts/Fonts.d.ts +1 -1
  160. package/types/excalidraw/history.d.ts +30 -22
  161. package/types/excalidraw/hooks/useEmitter.d.ts +1 -1
  162. package/types/excalidraw/hooks/useLibraryItemSvg.d.ts +1 -1
  163. package/types/excalidraw/hooks/useOutsideClick.d.ts +3 -1
  164. package/types/excalidraw/hooks/useTextEditorFocus.d.ts +14 -0
  165. package/types/excalidraw/index.d.ts +16 -15
  166. package/types/excalidraw/lasso/index.d.ts +1 -0
  167. package/types/excalidraw/lasso/utils.d.ts +2 -1
  168. package/types/excalidraw/obsidianUtils.d.ts +22 -9
  169. package/types/excalidraw/renderer/animation.d.ts +12 -0
  170. package/types/excalidraw/renderer/helpers.d.ts +3 -2
  171. package/types/excalidraw/renderer/interactiveScene.d.ts +5 -13
  172. package/types/excalidraw/renderer/staticScene.d.ts +4 -1
  173. package/types/excalidraw/scene/Renderer.d.ts +1 -2
  174. package/types/excalidraw/scene/index.d.ts +2 -2
  175. package/types/excalidraw/scene/scrollbars.d.ts +2 -3
  176. package/types/excalidraw/scene/types.d.ts +17 -3
  177. package/types/excalidraw/shortcut.d.ts +1 -0
  178. package/types/excalidraw/snapping.d.ts +2 -2
  179. package/types/excalidraw/types.d.ts +83 -33
  180. package/types/excalidraw/webpack.dev.config.d.ts +2 -0
  181. package/types/excalidraw/webpack.prod.config.d.ts +2 -0
  182. package/types/excalidraw/wysiwyg/textWysiwyg.d.ts +3 -1
  183. package/types/math/src/angle.d.ts +2 -0
  184. package/types/math/src/constants.d.ts +3 -0
  185. package/types/math/src/curve.d.ts +34 -0
  186. package/types/math/src/index.d.ts +1 -0
  187. package/types/math/src/point.d.ts +1 -1
  188. package/types/math/src/rectangle.d.ts +2 -0
  189. package/types/math/src/segment.d.ts +1 -0
  190. package/types/math/src/vector.d.ts +8 -2
  191. package/types/utils/src/bbox.d.ts +1 -1
  192. package/types/utils/src/index.d.ts +1 -1
  193. package/types/utils/src/withinBounds.d.ts +1 -1
  194. package/types/element/src/Shape.d.ts +0 -17
  195. package/types/element/src/ShapeCache.d.ts +0 -25
  196. package/types/element/src/shapes.d.ts +0 -23
  197. package/types/excalidraw/components/ButtonSelect.d.ts +0 -9
  198. package/types/excalidraw/store.d.ts +0 -129
  199. package/types/utils/src/collision.d.ts +0 -8
@@ -1,432 +1,22 @@
1
- import type { Collaborator } from "../types";
2
- export declare const actionGoToCollaborator: {
3
- name: "goToCollaborator";
4
- label: string;
5
- viewMode: true;
6
- trackEvent: {
7
- category: "collab";
8
- };
9
- perform: (_elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, collaborator: Collaborator) => {
10
- appState: {
11
- userToFollow: null;
12
- contextMenu: {
13
- items: import("../components/ContextMenu").ContextMenuItems;
14
- top: number;
15
- left: number;
16
- } | null;
17
- showWelcomeScreen: boolean;
18
- isLoading: boolean;
19
- errorMessage: import("react").ReactNode;
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/binding").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
- editingLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
42
- activeTool: {
43
- lastActiveTool: import("../types").ActiveTool | null;
44
- locked: boolean;
45
- fromSelection: boolean;
46
- } & import("../types").ActiveTool;
47
- penMode: boolean;
48
- penDetected: boolean;
49
- exportBackground: boolean;
50
- exportEmbedScene: boolean;
51
- exportWithDarkMode: boolean;
52
- exportScale: number;
53
- currentItemStrokeColor: string;
54
- currentItemBackgroundColor: string;
55
- currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
56
- currentItemStrokeWidth: number;
57
- currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
58
- currentItemRoughness: number;
59
- currentItemOpacity: number;
60
- currentItemFontFamily: number;
61
- currentItemFontSize: number;
62
- currentItemTextAlign: string;
63
- currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
64
- currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
65
- currentHoveredFontFamily: number | null;
66
- currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
67
- currentItemArrowType: "round" | "sharp" | "elbow";
68
- viewBackgroundColor: string;
69
- scrollX: number;
70
- scrollY: number;
71
- cursorButton: "up" | "down";
72
- scrolledOutside: boolean;
73
- name: string | null;
74
- isResizing: boolean;
75
- isRotating: boolean;
76
- zoom: Readonly<{
77
- value: import("../types").NormalizedZoomValue;
78
- }>;
79
- openMenu: "shape" | "canvas" | null;
80
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
81
- openSidebar: {
82
- name: string;
83
- tab?: string | undefined;
84
- } | null;
85
- openDialog: {
86
- name: "help" | "imageExport" | "jsonExport";
87
- } | {
88
- name: "ttd";
89
- tab: "mermaid" | "text-to-diagram";
90
- } | {
91
- name: "commandPalette";
92
- } | {
93
- name: "elementLinkSelector";
94
- sourceElementId: string;
95
- } | null;
96
- defaultSidebarDockedPreference: boolean;
97
- lastPointerDownWith: import("@excalidraw/element/types").PointerType;
98
- selectedElementIds: Readonly<{
99
- [id: string]: true;
100
- }>;
101
- hoveredElementIds: Readonly<{
102
- [id: string]: true;
103
- }>;
104
- previousSelectedElementIds: {
105
- [id: string]: true;
106
- };
107
- selectedElementsAreBeingDragged: boolean;
108
- shouldCacheIgnoreZoom: boolean;
109
- toast: {
110
- message: string;
111
- closable?: boolean | undefined;
112
- duration?: number | undefined;
113
- } | null;
114
- zenModeEnabled: boolean;
115
- theme: import("@excalidraw/element/types").Theme;
116
- gridSize: number;
117
- gridStep: number;
118
- gridModeEnabled: boolean;
119
- viewModeEnabled: boolean;
120
- selectedGroupIds: {
121
- [groupId: string]: boolean;
122
- };
123
- editingGroupId: string | null;
124
- width: number;
125
- height: number;
126
- offsetTop: number;
127
- offsetLeft: number;
128
- fileHandle: import("browser-fs-access").FileSystemHandle | null;
129
- collaborators: Map<import("../types").SocketId, Readonly<{
130
- pointer?: import("../types").CollaboratorPointer | undefined;
131
- button?: "up" | "down" | undefined;
132
- selectedElementIds?: Readonly<{
133
- [id: string]: true;
134
- }> | undefined;
135
- username?: string | null | undefined;
136
- userState?: import("@excalidraw/common").UserIdleState | undefined;
137
- color?: {
138
- background: string;
139
- stroke: string;
140
- } | undefined;
141
- avatarUrl?: string | undefined;
142
- id?: string | undefined;
143
- socketId?: import("../types").SocketId | undefined;
144
- isCurrentUser?: boolean | undefined;
145
- isInCall?: boolean | undefined;
146
- isSpeaking?: boolean | undefined;
147
- isMuted?: boolean | undefined;
148
- }>>;
149
- stats: {
150
- open: boolean;
151
- panels: number;
152
- };
153
- currentChartType: import("@excalidraw/element/types").ChartType;
154
- pasteDialog: {
155
- shown: false;
156
- data: null;
157
- } | {
158
- shown: true;
159
- data: import("../charts").Spreadsheet;
160
- };
161
- pendingImageElementId: string | null;
162
- showHyperlinkPopup: false | "editor" | "info";
163
- linkOpacity: number;
164
- trayModeEnabled: boolean;
165
- colorPalette?: {
166
- canvasBackground: import("@excalidraw/common").ColorPaletteCustom;
167
- elementBackground: import("@excalidraw/common").ColorPaletteCustom;
168
- elementStroke: import("@excalidraw/common").ColorPaletteCustom;
169
- topPicks: {
170
- canvasBackground: [string, string, string, string, string];
171
- elementStroke: [string, string, string, string, string];
172
- elementBackground: [string, string, string, string, string];
173
- };
174
- } | undefined;
175
- allowWheelZoom?: boolean | undefined;
176
- allowPinchZoom?: boolean | undefined;
177
- pinnedScripts?: string[] | undefined;
178
- customPens?: any[] | undefined;
179
- currentStrokeOptions?: any;
180
- resetCustomPen?: any;
181
- gridColor: {
182
- Bold: string;
183
- Regular: string;
184
- };
185
- highlightSearchResult: boolean;
186
- dynamicStyle: {
187
- [x: string]: string;
188
- };
189
- frameColor: {
190
- stroke: string;
191
- fill: string;
192
- nameColor: string;
193
- };
194
- invertBindingBehaviour: boolean;
195
- selectedLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
196
- snapLines: readonly import("../snapping").SnapLine[];
197
- originSnapOffset: {
198
- x: number;
199
- y: number;
200
- } | null;
201
- objectsSnapModeEnabled: boolean;
202
- followedBy: Set<import("../types").SocketId>;
203
- isCropping: boolean;
204
- croppingElementId: string | null;
205
- searchMatches: readonly {
206
- id: string;
207
- focus: boolean;
208
- matchedLines: {
209
- offsetX: number;
210
- offsetY: number;
211
- width: number;
212
- height: number;
213
- }[];
214
- }[];
215
- };
216
- captureUpdate: "EVENTUALLY";
217
- } | {
218
- appState: {
219
- userToFollow: {
220
- socketId: import("../types").SocketId;
221
- username: string;
222
- };
223
- openMenu: "shape" | null;
224
- contextMenu: {
225
- items: import("../components/ContextMenu").ContextMenuItems;
226
- top: number;
227
- left: number;
228
- } | null;
229
- showWelcomeScreen: boolean;
230
- isLoading: boolean;
231
- errorMessage: import("react").ReactNode;
232
- activeEmbeddable: {
233
- element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
234
- state: "active" | "hover";
235
- } | null;
236
- newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
237
- resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
238
- multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
239
- selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
240
- isBindingEnabled: boolean;
241
- startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
242
- suggestedBindings: import("@excalidraw/element/binding").SuggestedBinding[];
243
- frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
244
- frameRendering: {
245
- enabled: boolean;
246
- name: boolean;
247
- outline: boolean;
248
- clip: boolean;
249
- };
250
- editingFrame: string | null;
251
- elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
252
- editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
253
- editingLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
254
- activeTool: {
255
- lastActiveTool: import("../types").ActiveTool | null;
256
- locked: boolean;
257
- fromSelection: boolean;
258
- } & import("../types").ActiveTool;
259
- penMode: boolean;
260
- penDetected: boolean;
261
- exportBackground: boolean;
262
- exportEmbedScene: boolean;
263
- exportWithDarkMode: boolean;
264
- exportScale: number;
265
- currentItemStrokeColor: string;
266
- currentItemBackgroundColor: string;
267
- currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
268
- currentItemStrokeWidth: number;
269
- currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
270
- currentItemRoughness: number;
271
- currentItemOpacity: number;
272
- currentItemFontFamily: number;
273
- currentItemFontSize: number;
274
- currentItemTextAlign: string;
275
- currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
276
- currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
277
- currentHoveredFontFamily: number | null;
278
- currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
279
- currentItemArrowType: "round" | "sharp" | "elbow";
280
- viewBackgroundColor: string;
281
- scrollX: number;
282
- scrollY: number;
283
- cursorButton: "up" | "down";
284
- scrolledOutside: boolean;
285
- name: string | null;
286
- isResizing: boolean;
287
- isRotating: boolean;
288
- zoom: Readonly<{
289
- value: import("../types").NormalizedZoomValue;
290
- }>;
291
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
292
- openSidebar: {
293
- name: string;
294
- tab?: string | undefined;
295
- } | null;
296
- openDialog: {
297
- name: "help" | "imageExport" | "jsonExport";
298
- } | {
299
- name: "ttd";
300
- tab: "mermaid" | "text-to-diagram";
301
- } | {
302
- name: "commandPalette";
303
- } | {
304
- name: "elementLinkSelector";
305
- sourceElementId: string;
306
- } | null;
307
- defaultSidebarDockedPreference: boolean;
308
- lastPointerDownWith: import("@excalidraw/element/types").PointerType;
309
- selectedElementIds: Readonly<{
310
- [id: string]: true;
311
- }>;
312
- hoveredElementIds: Readonly<{
313
- [id: string]: true;
314
- }>;
315
- previousSelectedElementIds: {
316
- [id: string]: true;
317
- };
318
- selectedElementsAreBeingDragged: boolean;
319
- shouldCacheIgnoreZoom: boolean;
320
- toast: {
321
- message: string;
322
- closable?: boolean | undefined;
323
- duration?: number | undefined;
324
- } | null;
325
- zenModeEnabled: boolean;
326
- theme: import("@excalidraw/element/types").Theme;
327
- gridSize: number;
328
- gridStep: number;
329
- gridModeEnabled: boolean;
330
- viewModeEnabled: boolean;
331
- selectedGroupIds: {
332
- [groupId: string]: boolean;
333
- };
334
- editingGroupId: string | null;
335
- width: number;
336
- height: number;
337
- offsetTop: number;
338
- offsetLeft: number;
339
- fileHandle: import("browser-fs-access").FileSystemHandle | null;
340
- collaborators: Map<import("../types").SocketId, Readonly<{
341
- pointer?: import("../types").CollaboratorPointer | undefined;
342
- button?: "up" | "down" | undefined;
343
- selectedElementIds?: Readonly<{
344
- [id: string]: true;
345
- }> | undefined;
346
- username?: string | null | undefined;
347
- userState?: import("@excalidraw/common").UserIdleState | undefined;
348
- color?: {
349
- background: string;
350
- stroke: string;
351
- } | undefined;
352
- avatarUrl?: string | undefined;
353
- id?: string | undefined;
354
- socketId?: import("../types").SocketId | undefined;
355
- isCurrentUser?: boolean | undefined;
356
- isInCall?: boolean | undefined;
357
- isSpeaking?: boolean | undefined;
358
- isMuted?: boolean | undefined;
359
- }>>;
360
- stats: {
361
- open: boolean;
362
- panels: number;
363
- };
364
- currentChartType: import("@excalidraw/element/types").ChartType;
365
- pasteDialog: {
366
- shown: false;
367
- data: null;
368
- } | {
369
- shown: true;
370
- data: import("../charts").Spreadsheet;
371
- };
372
- pendingImageElementId: string | null;
373
- showHyperlinkPopup: false | "editor" | "info";
374
- linkOpacity: number;
375
- trayModeEnabled: boolean;
376
- colorPalette?: {
377
- canvasBackground: import("@excalidraw/common").ColorPaletteCustom;
378
- elementBackground: import("@excalidraw/common").ColorPaletteCustom;
379
- elementStroke: import("@excalidraw/common").ColorPaletteCustom;
380
- topPicks: {
381
- canvasBackground: [string, string, string, string, string];
382
- elementStroke: [string, string, string, string, string];
383
- elementBackground: [string, string, string, string, string];
384
- };
385
- } | undefined;
386
- allowWheelZoom?: boolean | undefined;
387
- allowPinchZoom?: boolean | undefined;
388
- pinnedScripts?: string[] | undefined;
389
- customPens?: any[] | undefined;
390
- currentStrokeOptions?: any;
391
- resetCustomPen?: any;
392
- gridColor: {
393
- Bold: string;
394
- Regular: string;
395
- };
396
- highlightSearchResult: boolean;
397
- dynamicStyle: {
398
- [x: string]: string;
399
- };
400
- frameColor: {
401
- stroke: string;
402
- fill: string;
403
- nameColor: string;
404
- };
405
- invertBindingBehaviour: boolean;
406
- selectedLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
407
- snapLines: readonly import("../snapping").SnapLine[];
408
- originSnapOffset: {
409
- x: number;
410
- y: number;
411
- } | null;
412
- objectsSnapModeEnabled: boolean;
413
- followedBy: Set<import("../types").SocketId>;
414
- isCropping: boolean;
415
- croppingElementId: string | null;
416
- searchMatches: readonly {
417
- id: string;
418
- focus: boolean;
419
- matchedLines: {
420
- offsetX: number;
421
- offsetY: number;
422
- width: number;
423
- height: number;
424
- }[];
425
- }[];
426
- };
427
- captureUpdate: "EVENTUALLY";
428
- };
429
- PanelComponent: ({ updateData, data, appState }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
430
- } & {
431
- keyTest?: undefined;
1
+ export declare const actionGoToCollaborator: import("./types").Action<Readonly<{
2
+ pointer?: import("../types").CollaboratorPointer | undefined;
3
+ button?: "up" | "down" | undefined;
4
+ selectedElementIds?: Readonly<{
5
+ [id: string]: true;
6
+ }> | undefined;
7
+ username?: string | null | undefined;
8
+ userState?: import("@excalidraw/common").UserIdleState | undefined;
9
+ color?: {
10
+ background: string;
11
+ stroke: string;
12
+ } | undefined;
13
+ avatarUrl?: string | undefined;
14
+ id?: string | undefined;
15
+ socketId?: import("../types").SocketId | undefined;
16
+ isCurrentUser?: boolean | undefined;
17
+ isInCall?: boolean | undefined;
18
+ isSpeaking?: boolean | undefined;
19
+ isMuted?: boolean | undefined;
20
+ }>> & {
21
+ keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>, appState: import("../types").AppState, elements: readonly import("@excalidraw/element/types").ExcalidrawElement[], app: import("../types").AppClassProperties) => boolean) | undefined;
432
22
  };