@excalidraw/math 0.18.0-ec07091 → 0.18.0-f2600fe

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 (65) hide show
  1. package/dist/types/common/src/constants.d.ts +3 -16
  2. package/dist/types/common/src/editorInterface.d.ts +34 -0
  3. package/dist/types/common/src/index.d.ts +1 -0
  4. package/dist/types/common/src/utils.d.ts +0 -2
  5. package/dist/types/element/src/resizeTest.d.ts +5 -4
  6. package/dist/types/element/src/transformHandles.d.ts +5 -4
  7. package/dist/types/excalidraw/actions/actionAddToLibrary.d.ts +18 -9
  8. package/dist/types/excalidraw/actions/actionBoundText.d.ts +12 -6
  9. package/dist/types/excalidraw/actions/actionCanvas.d.ts +78 -39
  10. package/dist/types/excalidraw/actions/actionClipboard.d.ts +36 -18
  11. package/dist/types/excalidraw/actions/actionCropEditor.d.ts +6 -3
  12. package/dist/types/excalidraw/actions/actionDeleteSelected.d.ts +19 -10
  13. package/dist/types/excalidraw/actions/actionDuplicateSelection.d.ts +1 -1
  14. package/dist/types/excalidraw/actions/actionElementLink.d.ts +6 -3
  15. package/dist/types/excalidraw/actions/actionElementLock.d.ts +12 -6
  16. package/dist/types/excalidraw/actions/actionEmbeddable.d.ts +6 -3
  17. package/dist/types/excalidraw/actions/actionExport.d.ts +54 -27
  18. package/dist/types/excalidraw/actions/actionFinalize.d.ts +12 -6
  19. package/dist/types/excalidraw/actions/actionFrame.d.ts +24 -12
  20. package/dist/types/excalidraw/actions/actionGroup.d.ts +12 -6
  21. package/dist/types/excalidraw/actions/actionLinearEditor.d.ts +6 -3
  22. package/dist/types/excalidraw/actions/actionLink.d.ts +4 -1
  23. package/dist/types/excalidraw/actions/actionMenu.d.ts +7 -372
  24. package/dist/types/excalidraw/actions/actionNavigate.d.ts +12 -6
  25. package/dist/types/excalidraw/actions/actionProperties.d.ts +91 -46
  26. package/dist/types/excalidraw/actions/actionSelectAll.d.ts +6 -3
  27. package/dist/types/excalidraw/actions/actionStyles.d.ts +6 -3
  28. package/dist/types/excalidraw/actions/actionToggleGridMode.d.ts +6 -3
  29. package/dist/types/excalidraw/actions/actionToggleObjectsSnapMode.d.ts +6 -3
  30. package/dist/types/excalidraw/actions/actionToggleSearchMenu.d.ts +6 -3
  31. package/dist/types/excalidraw/actions/actionToggleStats.d.ts +6 -3
  32. package/dist/types/excalidraw/actions/actionToggleViewMode.d.ts +6 -3
  33. package/dist/types/excalidraw/actions/actionToggleZenMode.d.ts +7 -4
  34. package/dist/types/excalidraw/actions/index.d.ts +1 -1
  35. package/dist/types/excalidraw/actions/types.d.ts +1 -1
  36. package/dist/types/excalidraw/appState.d.ts +5 -2
  37. package/dist/types/excalidraw/components/Actions.d.ts +13 -3
  38. package/dist/types/excalidraw/components/App.d.ts +19 -17
  39. package/dist/types/excalidraw/components/ColorPicker/ColorPicker.d.ts +1 -2
  40. package/dist/types/excalidraw/components/ColorPicker/Picker.d.ts +2 -0
  41. package/dist/types/excalidraw/components/ColorPicker/PickerColorList.d.ts +2 -1
  42. package/dist/types/excalidraw/components/ColorPicker/ShadeList.d.ts +2 -1
  43. package/dist/types/excalidraw/components/ExcalidrawLogo.d.ts +1 -1
  44. package/dist/types/excalidraw/components/FilledButton.d.ts +1 -1
  45. package/dist/types/excalidraw/components/FontPicker/FontPickerTrigger.d.ts +2 -1
  46. package/dist/types/excalidraw/components/HintViewer.d.ts +4 -3
  47. package/dist/types/excalidraw/components/LayerUI.d.ts +2 -1
  48. package/dist/types/excalidraw/components/MobileMenu.d.ts +3 -5
  49. package/dist/types/excalidraw/components/MobileToolBar.d.ts +11 -0
  50. package/dist/types/excalidraw/components/Popover.d.ts +2 -1
  51. package/dist/types/excalidraw/components/TTDDialog/TTDDialogTrigger.d.ts +1 -2
  52. package/dist/types/excalidraw/components/ToolPopover.d.ts +25 -0
  53. package/dist/types/excalidraw/components/canvases/InteractiveCanvas.d.ts +3 -2
  54. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenu.d.ts +4 -2
  55. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuContent.d.ts +2 -1
  56. package/dist/types/excalidraw/components/icons.d.ts +5 -1
  57. package/dist/types/excalidraw/components/live-collaboration/LiveCollaborationTrigger.d.ts +13 -1
  58. package/dist/types/excalidraw/components/main-menu/MainMenu.d.ts +0 -3
  59. package/dist/types/excalidraw/hooks/useOutsideClick.d.ts +3 -1
  60. package/dist/types/excalidraw/index.d.ts +2 -3
  61. package/dist/types/excalidraw/renderer/interactiveScene.d.ts +1 -1
  62. package/dist/types/excalidraw/scene/types.d.ts +3 -3
  63. package/dist/types/excalidraw/shortcut.d.ts +1 -0
  64. package/dist/types/excalidraw/types.d.ts +16 -17
  65. package/package.json +2 -2
@@ -1,372 +1,4 @@
1
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("../../element/src/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("../../element/src/types").NonDeletedExcalidrawElement;
21
- state: "active" | "hover";
22
- } | null;
23
- newElement: import("../../element/src/types").NonDeleted<import("../../element/src/types").ExcalidrawNonSelectionElement> | null;
24
- resizingElement: import("../../element/src/types").NonDeletedExcalidrawElement | null;
25
- multiElement: import("../../element/src/types").NonDeleted<import("../../element/src/types").ExcalidrawLinearElement> | null;
26
- selectionElement: import("../../element/src/types").NonDeletedExcalidrawElement | null;
27
- isBindingEnabled: boolean;
28
- startBoundElement: import("../../element/src/types").NonDeleted<import("../../element/src/types").ExcalidrawBindableElement> | null;
29
- suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
30
- frameToHighlight: import("../../element/src/types").NonDeleted<import("../../element/src/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("../../element/src/types").NonDeleted<import("../../element/src/types").ExcalidrawElement>[] | null;
39
- editingTextElement: import("../../element/src/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("../../element/src/types").FillStyle;
54
- currentItemStrokeWidth: number;
55
- currentItemStrokeStyle: import("../../element/src/types").StrokeStyle;
56
- currentItemRoughness: number;
57
- currentItemOpacity: number;
58
- currentItemFontFamily: number;
59
- currentItemFontSize: number;
60
- currentItemTextAlign: string;
61
- currentItemStartArrowhead: import("../../element/src/types").Arrowhead | null;
62
- currentItemEndArrowhead: import("../../element/src/types").Arrowhead | null;
63
- currentHoveredFontFamily: number | null;
64
- currentItemRoundness: import("../../element/src/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("../../element/src/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("../../element/src/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("../../element/src/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("../../element/src/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("../../element/src/types").NonDeletedExcalidrawElement;
205
- state: "active" | "hover";
206
- } | null;
207
- newElement: import("../../element/src/types").NonDeleted<import("../../element/src/types").ExcalidrawNonSelectionElement> | null;
208
- resizingElement: import("../../element/src/types").NonDeletedExcalidrawElement | null;
209
- multiElement: import("../../element/src/types").NonDeleted<import("../../element/src/types").ExcalidrawLinearElement> | null;
210
- selectionElement: import("../../element/src/types").NonDeletedExcalidrawElement | null;
211
- isBindingEnabled: boolean;
212
- startBoundElement: import("../../element/src/types").NonDeleted<import("../../element/src/types").ExcalidrawBindableElement> | null;
213
- suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
214
- frameToHighlight: import("../../element/src/types").NonDeleted<import("../../element/src/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("../../element/src/types").NonDeleted<import("../../element/src/types").ExcalidrawElement>[] | null;
223
- editingTextElement: import("../../element/src/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("../../element/src/types").FillStyle;
238
- currentItemStrokeWidth: number;
239
- currentItemStrokeStyle: import("../../element/src/types").StrokeStyle;
240
- currentItemRoughness: number;
241
- currentItemOpacity: number;
242
- currentItemFontFamily: number;
243
- currentItemFontSize: number;
244
- currentItemTextAlign: string;
245
- currentItemStartArrowhead: import("../../element/src/types").Arrowhead | null;
246
- currentItemEndArrowhead: import("../../element/src/types").Arrowhead | null;
247
- currentHoveredFontFamily: number | null;
248
- currentItemRoundness: import("../../element/src/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("../../element/src/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("../../element/src/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("../../element/src/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
2
  export declare const actionShortcuts: {
371
3
  name: "toggleShortcuts";
372
4
  label: string;
@@ -381,6 +13,8 @@ export declare const actionShortcuts: {
381
13
  openDialog: {
382
14
  name: "help";
383
15
  } | null;
16
+ openMenu: null;
17
+ openPopup: null;
384
18
  contextMenu: {
385
19
  items: import("../components/ContextMenu").ContextMenuItems;
386
20
  top: number;
@@ -415,6 +49,10 @@ export declare const actionShortcuts: {
415
49
  locked: boolean;
416
50
  fromSelection: boolean;
417
51
  } & import("../types").ActiveTool;
52
+ preferredSelectionTool: {
53
+ type: "selection" | "lasso";
54
+ initialized: boolean;
55
+ };
418
56
  penMode: boolean;
419
57
  penDetected: boolean;
420
58
  exportBackground: boolean;
@@ -447,8 +85,6 @@ export declare const actionShortcuts: {
447
85
  zoom: Readonly<{
448
86
  value: import("../types").NormalizedZoomValue;
449
87
  }>;
450
- openMenu: "canvas" | "shape" | null;
451
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
452
88
  openSidebar: {
453
89
  name: string;
454
90
  tab?: string | undefined;
@@ -518,7 +154,7 @@ export declare const actionShortcuts: {
518
154
  shown: true;
519
155
  data: import("../charts").Spreadsheet;
520
156
  };
521
- showHyperlinkPopup: false | "editor" | "info";
157
+ showHyperlinkPopup: false | "info" | "editor";
522
158
  selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
523
159
  snapLines: readonly import("../snapping").SnapLine[];
524
160
  originSnapOffset: {
@@ -538,7 +174,6 @@ export declare const actionShortcuts: {
538
174
  lockedMultiSelections: {
539
175
  [groupId: string]: true;
540
176
  };
541
- stylesPanelMode: "compact" | "full";
542
177
  };
543
178
  captureUpdate: "EVENTUALLY";
544
179
  };
@@ -44,6 +44,10 @@ export declare const actionGoToCollaborator: {
44
44
  locked: boolean;
45
45
  fromSelection: boolean;
46
46
  } & import("../types").ActiveTool;
47
+ preferredSelectionTool: {
48
+ type: "selection" | "lasso";
49
+ initialized: boolean;
50
+ };
47
51
  penMode: boolean;
48
52
  penDetected: boolean;
49
53
  exportBackground: boolean;
@@ -76,7 +80,7 @@ export declare const actionGoToCollaborator: {
76
80
  zoom: Readonly<{
77
81
  value: import("../types").NormalizedZoomValue;
78
82
  }>;
79
- openMenu: "canvas" | "shape" | null;
83
+ openMenu: "canvas" | null;
80
84
  openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
81
85
  openSidebar: {
82
86
  name: string;
@@ -158,7 +162,7 @@ export declare const actionGoToCollaborator: {
158
162
  shown: true;
159
163
  data: import("../charts").Spreadsheet;
160
164
  };
161
- showHyperlinkPopup: false | "editor" | "info";
165
+ showHyperlinkPopup: false | "info" | "editor";
162
166
  selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
163
167
  snapLines: readonly import("../snapping").SnapLine[];
164
168
  originSnapOffset: {
@@ -177,7 +181,6 @@ export declare const actionGoToCollaborator: {
177
181
  lockedMultiSelections: {
178
182
  [groupId: string]: true;
179
183
  };
180
- stylesPanelMode: "compact" | "full";
181
184
  };
182
185
  captureUpdate: "EVENTUALLY";
183
186
  } | {
@@ -186,7 +189,7 @@ export declare const actionGoToCollaborator: {
186
189
  socketId: import("../types").SocketId;
187
190
  username: string;
188
191
  };
189
- openMenu: "shape" | null;
192
+ openMenu: null;
190
193
  contextMenu: {
191
194
  items: import("../components/ContextMenu").ContextMenuItems;
192
195
  top: number;
@@ -221,6 +224,10 @@ export declare const actionGoToCollaborator: {
221
224
  locked: boolean;
222
225
  fromSelection: boolean;
223
226
  } & import("../types").ActiveTool;
227
+ preferredSelectionTool: {
228
+ type: "selection" | "lasso";
229
+ initialized: boolean;
230
+ };
224
231
  penMode: boolean;
225
232
  penDetected: boolean;
226
233
  exportBackground: boolean;
@@ -334,7 +341,7 @@ export declare const actionGoToCollaborator: {
334
341
  shown: true;
335
342
  data: import("../charts").Spreadsheet;
336
343
  };
337
- showHyperlinkPopup: false | "editor" | "info";
344
+ showHyperlinkPopup: false | "info" | "editor";
338
345
  selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
339
346
  snapLines: readonly import("../snapping").SnapLine[];
340
347
  originSnapOffset: {
@@ -353,7 +360,6 @@ export declare const actionGoToCollaborator: {
353
360
  lockedMultiSelections: {
354
361
  [groupId: string]: true;
355
362
  };
356
- stylesPanelMode: "compact" | "full";
357
363
  };
358
364
  captureUpdate: "EVENTUALLY";
359
365
  };