@excalidraw/math 0.18.0-b7aac689a → 0.18.0-c141960

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 (115) hide show
  1. package/dist/dev/index.js +58 -61
  2. package/dist/dev/index.js.map +3 -3
  3. package/dist/prod/index.js +1 -1
  4. package/dist/types/common/src/constants.d.ts +21 -15
  5. package/dist/types/common/src/editorInterface.d.ts +34 -0
  6. package/dist/types/common/src/index.d.ts +2 -0
  7. package/dist/types/common/src/utils.d.ts +9 -3
  8. package/dist/types/common/src/visualdebug.d.ts +41 -0
  9. package/dist/types/element/src/Scene.d.ts +6 -2
  10. package/dist/types/element/src/align.d.ts +2 -1
  11. package/dist/types/element/src/binding.d.ts +55 -43
  12. package/dist/types/element/src/bounds.d.ts +1 -1
  13. package/dist/types/element/src/collision.d.ts +6 -2
  14. package/dist/types/element/src/delta.d.ts +16 -4
  15. package/dist/types/element/src/distribute.d.ts +2 -1
  16. package/dist/types/element/src/groups.d.ts +1 -0
  17. package/dist/types/element/src/index.d.ts +1 -3
  18. package/dist/types/element/src/linearElementEditor.d.ts +17 -19
  19. package/dist/types/element/src/positionElementsOnGrid.d.ts +2 -0
  20. package/dist/types/element/src/renderElement.d.ts +5 -2
  21. package/dist/types/element/src/resizeTest.d.ts +5 -4
  22. package/dist/types/element/src/store.d.ts +6 -1
  23. package/dist/types/element/src/textElement.d.ts +1 -1
  24. package/dist/types/element/src/transformHandles.d.ts +5 -4
  25. package/dist/types/element/src/typeChecks.d.ts +2 -3
  26. package/dist/types/element/src/types.d.ts +7 -11
  27. package/dist/types/element/src/utils.d.ts +2 -1
  28. package/dist/types/element/src/zindex.d.ts +7 -1
  29. package/dist/types/excalidraw/actions/actionAddToLibrary.d.ts +34 -16
  30. package/dist/types/excalidraw/actions/actionAlign.d.ts +6 -6
  31. package/dist/types/excalidraw/actions/actionBoundText.d.ts +25 -13
  32. package/dist/types/excalidraw/actions/actionCanvas.d.ts +153 -275
  33. package/dist/types/excalidraw/actions/actionClipboard.d.ts +45 -777
  34. package/dist/types/excalidraw/actions/actionCropEditor.d.ts +12 -6
  35. package/dist/types/excalidraw/actions/actionDeleteSelected.d.ts +45 -29
  36. package/dist/types/excalidraw/actions/actionDistribute.d.ts +2 -2
  37. package/dist/types/excalidraw/actions/actionDuplicateSelection.d.ts +2 -2
  38. package/dist/types/excalidraw/actions/actionElementLink.d.ts +11 -7
  39. package/dist/types/excalidraw/actions/actionElementLock.d.ts +23 -11
  40. package/dist/types/excalidraw/actions/actionEmbeddable.d.ts +12 -6
  41. package/dist/types/excalidraw/actions/actionExport.d.ts +68 -952
  42. package/dist/types/excalidraw/actions/actionFinalize.d.ts +10 -394
  43. package/dist/types/excalidraw/actions/actionFlip.d.ts +2 -2
  44. package/dist/types/excalidraw/actions/actionFrame.d.ts +50 -28
  45. package/dist/types/excalidraw/actions/actionGroup.d.ts +24 -12
  46. package/dist/types/excalidraw/actions/actionLinearEditor.d.ts +47 -14
  47. package/dist/types/excalidraw/actions/actionLink.d.ts +9 -3
  48. package/dist/types/excalidraw/actions/actionMenu.d.ts +10 -374
  49. package/dist/types/excalidraw/actions/actionNavigate.d.ts +21 -361
  50. package/dist/types/excalidraw/actions/actionProperties.d.ts +87 -2418
  51. package/dist/types/excalidraw/actions/actionSelectAll.d.ts +12 -6
  52. package/dist/types/excalidraw/actions/actionStyles.d.ts +13 -7
  53. package/dist/types/excalidraw/actions/actionTextAutoResize.d.ts +1 -1
  54. package/dist/types/excalidraw/actions/actionToggleGridMode.d.ts +11 -5
  55. package/dist/types/excalidraw/actions/actionToggleObjectsSnapMode.d.ts +11 -5
  56. package/dist/types/excalidraw/actions/actionToggleSearchMenu.d.ts +10 -6
  57. package/dist/types/excalidraw/actions/actionToggleShapeSwitch.d.ts +1 -1
  58. package/dist/types/excalidraw/actions/actionToggleStats.d.ts +11 -5
  59. package/dist/types/excalidraw/actions/actionToggleViewMode.d.ts +11 -5
  60. package/dist/types/excalidraw/actions/actionToggleZenMode.d.ts +12 -6
  61. package/dist/types/excalidraw/actions/actionZindex.d.ts +2 -2
  62. package/dist/types/excalidraw/actions/index.d.ts +2 -2
  63. package/dist/types/excalidraw/actions/manager.d.ts +1 -1
  64. package/dist/types/excalidraw/actions/register.d.ts +1 -1
  65. package/dist/types/excalidraw/actions/types.d.ts +4 -4
  66. package/dist/types/excalidraw/appState.d.ts +9 -4
  67. package/dist/types/excalidraw/clipboard.d.ts +64 -1
  68. package/dist/types/excalidraw/components/Actions.d.ts +20 -7
  69. package/dist/types/excalidraw/components/App.d.ts +35 -25
  70. package/dist/types/excalidraw/components/ColorPicker/Picker.d.ts +2 -0
  71. package/dist/types/excalidraw/components/ColorPicker/PickerColorList.d.ts +2 -1
  72. package/dist/types/excalidraw/components/ColorPicker/ShadeList.d.ts +2 -1
  73. package/dist/types/excalidraw/components/CommandPalette/CommandPalette.d.ts +1 -0
  74. package/dist/types/excalidraw/components/CommandPalette/types.d.ts +1 -2
  75. package/dist/types/excalidraw/components/Ellipsify.d.ts +4 -0
  76. package/dist/types/excalidraw/components/ExcalidrawLogo.d.ts +1 -1
  77. package/dist/types/excalidraw/components/FilledButton.d.ts +1 -1
  78. package/dist/types/excalidraw/components/FontPicker/FontPicker.d.ts +2 -1
  79. package/dist/types/excalidraw/components/FontPicker/FontPickerTrigger.d.ts +3 -1
  80. package/dist/types/excalidraw/components/HintViewer.d.ts +4 -3
  81. package/dist/types/excalidraw/components/InlineIcon.d.ts +3 -1
  82. package/dist/types/excalidraw/components/LayerUI.d.ts +2 -1
  83. package/dist/types/excalidraw/components/LibraryMenuSection.d.ts +1 -1
  84. package/dist/types/excalidraw/components/MobileMenu.d.ts +3 -5
  85. package/dist/types/excalidraw/components/MobileToolBar.d.ts +11 -0
  86. package/dist/types/excalidraw/components/Popover.d.ts +2 -1
  87. package/dist/types/excalidraw/components/PropertiesPopover.d.ts +1 -0
  88. package/dist/types/excalidraw/components/Stats/utils.d.ts +1 -1
  89. package/dist/types/excalidraw/components/TTDDialog/TTDDialogTrigger.d.ts +1 -2
  90. package/dist/types/excalidraw/components/TextField.d.ts +1 -0
  91. package/dist/types/excalidraw/components/ToolPopover.d.ts +25 -0
  92. package/dist/types/excalidraw/components/canvases/InteractiveCanvas.d.ts +6 -3
  93. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenu.d.ts +4 -2
  94. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuContent.d.ts +2 -1
  95. package/dist/types/excalidraw/components/icons.d.ts +10 -0
  96. package/dist/types/excalidraw/components/live-collaboration/LiveCollaborationTrigger.d.ts +13 -1
  97. package/dist/types/excalidraw/components/main-menu/MainMenu.d.ts +0 -3
  98. package/dist/types/excalidraw/components/shapes.d.ts +129 -1
  99. package/dist/types/excalidraw/data/blob.d.ts +3 -7
  100. package/dist/types/excalidraw/data/reconcile.d.ts +1 -0
  101. package/dist/types/excalidraw/data/restore.d.ts +7 -2
  102. package/dist/types/excalidraw/data/types.d.ts +4 -1
  103. package/dist/types/excalidraw/hooks/useLibraryItemSvg.d.ts +1 -1
  104. package/dist/types/excalidraw/hooks/useOutsideClick.d.ts +3 -1
  105. package/dist/types/excalidraw/hooks/useTextEditorFocus.d.ts +14 -0
  106. package/dist/types/excalidraw/index.d.ts +4 -4
  107. package/dist/types/excalidraw/renderer/animation.d.ts +12 -0
  108. package/dist/types/excalidraw/renderer/helpers.d.ts +2 -6
  109. package/dist/types/excalidraw/renderer/interactiveScene.d.ts +5 -13
  110. package/dist/types/excalidraw/renderer/staticScene.d.ts +4 -1
  111. package/dist/types/excalidraw/scene/types.d.ts +15 -3
  112. package/dist/types/excalidraw/shortcut.d.ts +1 -0
  113. package/dist/types/excalidraw/types.d.ts +37 -24
  114. package/dist/types/math/src/segment.d.ts +1 -0
  115. package/package.json +2 -2
@@ -1,742 +1,18 @@
1
1
  /// <reference types="react" />
2
2
  import type { Theme } from "@excalidraw/element/types";
3
3
  import "../components/ToolIcon.scss";
4
- export declare const actionChangeProjectName: {
5
- name: "changeProjectName";
6
- label: string;
7
- trackEvent: false;
8
- perform: (_elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, value: any) => {
9
- appState: {
10
- name: any;
11
- contextMenu: {
12
- items: import("../components/ContextMenu").ContextMenuItems;
13
- top: number;
14
- left: number;
15
- } | null;
16
- showWelcomeScreen: boolean;
17
- isLoading: boolean;
18
- errorMessage: import("react").ReactNode;
19
- activeEmbeddable: {
20
- element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
21
- state: "active" | "hover";
22
- } | null;
23
- newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
24
- resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
25
- multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
26
- selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
27
- isBindingEnabled: boolean;
28
- startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
29
- suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
30
- frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
31
- frameRendering: {
32
- enabled: boolean;
33
- name: boolean;
34
- outline: boolean;
35
- clip: boolean;
36
- };
37
- editingFrame: string | null;
38
- elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
39
- editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
40
- editingLinearElement: import("@excalidraw/element").LinearElementEditor | null;
41
- activeTool: {
42
- lastActiveTool: import("../types").ActiveTool | null;
43
- locked: boolean;
44
- fromSelection: boolean;
45
- } & import("../types").ActiveTool;
46
- penMode: boolean;
47
- penDetected: boolean;
48
- exportBackground: boolean;
49
- exportEmbedScene: boolean;
50
- exportWithDarkMode: boolean;
51
- exportScale: number;
52
- currentItemStrokeColor: string;
53
- currentItemBackgroundColor: string;
54
- currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
55
- currentItemStrokeWidth: number;
56
- currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
57
- currentItemRoughness: number;
58
- currentItemOpacity: number;
59
- currentItemFontFamily: number;
60
- currentItemFontSize: number;
61
- currentItemTextAlign: string;
62
- currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
63
- currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
64
- currentHoveredFontFamily: number | null;
65
- currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
66
- currentItemArrowType: "round" | "sharp" | "elbow";
67
- viewBackgroundColor: string;
68
- scrollX: number;
69
- scrollY: number;
70
- cursorButton: "up" | "down";
71
- scrolledOutside: boolean;
72
- isResizing: boolean;
73
- isRotating: boolean;
74
- zoom: Readonly<{
75
- value: import("../types").NormalizedZoomValue;
76
- }>;
77
- openMenu: "canvas" | "shape" | null;
78
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
79
- openSidebar: {
80
- name: string;
81
- tab?: string | undefined;
82
- } | null;
83
- openDialog: {
84
- name: "imageExport" | "help" | "jsonExport";
85
- } | {
86
- name: "ttd";
87
- tab: "mermaid" | "text-to-diagram";
88
- } | {
89
- name: "commandPalette";
90
- } | {
91
- name: "elementLinkSelector";
92
- sourceElementId: string;
93
- } | null;
94
- defaultSidebarDockedPreference: boolean;
95
- lastPointerDownWith: import("@excalidraw/element/types").PointerType;
96
- selectedElementIds: Readonly<{
97
- [id: string]: true;
98
- }>;
99
- hoveredElementIds: Readonly<{
100
- [id: string]: true;
101
- }>;
102
- previousSelectedElementIds: {
103
- [id: string]: true;
104
- };
105
- selectedElementsAreBeingDragged: boolean;
106
- shouldCacheIgnoreZoom: boolean;
107
- toast: {
108
- message: string;
109
- closable?: boolean | undefined;
110
- duration?: number | undefined;
111
- } | null;
112
- zenModeEnabled: boolean;
113
- theme: Theme;
114
- gridSize: number;
115
- gridStep: number;
116
- gridModeEnabled: boolean;
117
- viewModeEnabled: boolean;
118
- selectedGroupIds: {
119
- [groupId: string]: boolean;
120
- };
121
- editingGroupId: string | null;
122
- width: number;
123
- height: number;
124
- offsetTop: number;
125
- offsetLeft: number;
126
- fileHandle: import("browser-fs-access").FileSystemHandle | null;
127
- collaborators: Map<import("../types").SocketId, Readonly<{
128
- pointer?: import("../types").CollaboratorPointer | undefined;
129
- button?: "up" | "down" | undefined;
130
- selectedElementIds?: Readonly<{
131
- [id: string]: true;
132
- }> | undefined;
133
- username?: string | null | undefined;
134
- userState?: import("@excalidraw/common").UserIdleState | undefined;
135
- color?: {
136
- background: string;
137
- stroke: string;
138
- } | undefined;
139
- avatarUrl?: string | undefined;
140
- id?: string | undefined;
141
- socketId?: import("../types").SocketId | undefined;
142
- isCurrentUser?: boolean | undefined;
143
- isInCall?: boolean | undefined;
144
- isSpeaking?: boolean | undefined;
145
- isMuted?: boolean | undefined;
146
- }>>;
147
- stats: {
148
- open: boolean;
149
- panels: number;
150
- };
151
- currentChartType: import("@excalidraw/element/types").ChartType;
152
- pasteDialog: {
153
- shown: false;
154
- data: null;
155
- } | {
156
- shown: true;
157
- data: import("../charts").Spreadsheet;
158
- };
159
- showHyperlinkPopup: false | "editor" | "info";
160
- selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
161
- snapLines: readonly import("../snapping").SnapLine[];
162
- originSnapOffset: {
163
- x: number;
164
- y: number;
165
- } | null;
166
- objectsSnapModeEnabled: boolean;
167
- userToFollow: import("../types").UserToFollow | null;
168
- followedBy: Set<import("../types").SocketId>;
169
- isCropping: boolean;
170
- croppingElementId: string | null;
171
- searchMatches: Readonly<{
172
- focusedId: string | null;
173
- matches: readonly import("../types").SearchMatch[];
174
- }> | null;
175
- activeLockedId: string | null;
176
- lockedMultiSelections: {
177
- [groupId: string]: true;
178
- };
179
- };
180
- captureUpdate: "EVENTUALLY";
181
- };
182
- PanelComponent: ({ appState, updateData, appProps, data, app }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
183
- } & {
184
- keyTest?: undefined;
185
- };
186
- export declare const actionChangeExportScale: {
187
- name: "changeExportScale";
188
- label: string;
189
- trackEvent: {
190
- category: "export";
191
- action: string;
192
- };
193
- perform: (_elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, value: any) => {
194
- appState: {
195
- exportScale: any;
196
- contextMenu: {
197
- items: import("../components/ContextMenu").ContextMenuItems;
198
- top: number;
199
- left: number;
200
- } | null;
201
- showWelcomeScreen: boolean;
202
- isLoading: boolean;
203
- errorMessage: import("react").ReactNode;
204
- activeEmbeddable: {
205
- element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
206
- state: "active" | "hover";
207
- } | null;
208
- newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
209
- resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
210
- multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
211
- selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
212
- isBindingEnabled: boolean;
213
- startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
214
- suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
215
- frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
216
- frameRendering: {
217
- enabled: boolean;
218
- name: boolean;
219
- outline: boolean;
220
- clip: boolean;
221
- };
222
- editingFrame: string | null;
223
- elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
224
- editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
225
- editingLinearElement: import("@excalidraw/element").LinearElementEditor | null;
226
- activeTool: {
227
- lastActiveTool: import("../types").ActiveTool | null;
228
- locked: boolean;
229
- fromSelection: boolean;
230
- } & import("../types").ActiveTool;
231
- penMode: boolean;
232
- penDetected: boolean;
233
- exportBackground: boolean;
234
- exportEmbedScene: boolean;
235
- exportWithDarkMode: boolean;
236
- currentItemStrokeColor: string;
237
- currentItemBackgroundColor: string;
238
- currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
239
- currentItemStrokeWidth: number;
240
- currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
241
- currentItemRoughness: number;
242
- currentItemOpacity: number;
243
- currentItemFontFamily: number;
244
- currentItemFontSize: number;
245
- currentItemTextAlign: string;
246
- currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
247
- currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
248
- currentHoveredFontFamily: number | null;
249
- currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
250
- currentItemArrowType: "round" | "sharp" | "elbow";
251
- viewBackgroundColor: string;
252
- scrollX: number;
253
- scrollY: number;
254
- cursorButton: "up" | "down";
255
- scrolledOutside: boolean;
256
- name: string | null;
257
- isResizing: boolean;
258
- isRotating: boolean;
259
- zoom: Readonly<{
260
- value: import("../types").NormalizedZoomValue;
261
- }>;
262
- openMenu: "canvas" | "shape" | null;
263
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
264
- openSidebar: {
265
- name: string;
266
- tab?: string | undefined;
267
- } | null;
268
- openDialog: {
269
- name: "imageExport" | "help" | "jsonExport";
270
- } | {
271
- name: "ttd";
272
- tab: "mermaid" | "text-to-diagram";
273
- } | {
274
- name: "commandPalette";
275
- } | {
276
- name: "elementLinkSelector";
277
- sourceElementId: string;
278
- } | null;
279
- defaultSidebarDockedPreference: boolean;
280
- lastPointerDownWith: import("@excalidraw/element/types").PointerType;
281
- selectedElementIds: Readonly<{
282
- [id: string]: true;
283
- }>;
284
- hoveredElementIds: Readonly<{
285
- [id: string]: true;
286
- }>;
287
- previousSelectedElementIds: {
288
- [id: string]: true;
289
- };
290
- selectedElementsAreBeingDragged: boolean;
291
- shouldCacheIgnoreZoom: boolean;
292
- toast: {
293
- message: string;
294
- closable?: boolean | undefined;
295
- duration?: number | undefined;
296
- } | null;
297
- zenModeEnabled: boolean;
298
- theme: Theme;
299
- gridSize: number;
300
- gridStep: number;
301
- gridModeEnabled: boolean;
302
- viewModeEnabled: boolean;
303
- selectedGroupIds: {
304
- [groupId: string]: boolean;
305
- };
306
- editingGroupId: string | null;
307
- width: number;
308
- height: number;
309
- offsetTop: number;
310
- offsetLeft: number;
311
- fileHandle: import("browser-fs-access").FileSystemHandle | null;
312
- collaborators: Map<import("../types").SocketId, Readonly<{
313
- pointer?: import("../types").CollaboratorPointer | undefined;
314
- button?: "up" | "down" | undefined;
315
- selectedElementIds?: Readonly<{
316
- [id: string]: true;
317
- }> | undefined;
318
- username?: string | null | undefined;
319
- userState?: import("@excalidraw/common").UserIdleState | undefined;
320
- color?: {
321
- background: string;
322
- stroke: string;
323
- } | undefined;
324
- avatarUrl?: string | undefined;
325
- id?: string | undefined;
326
- socketId?: import("../types").SocketId | undefined;
327
- isCurrentUser?: boolean | undefined;
328
- isInCall?: boolean | undefined;
329
- isSpeaking?: boolean | undefined;
330
- isMuted?: boolean | undefined;
331
- }>>;
332
- stats: {
333
- open: boolean;
334
- panels: number;
335
- };
336
- currentChartType: import("@excalidraw/element/types").ChartType;
337
- pasteDialog: {
338
- shown: false;
339
- data: null;
340
- } | {
341
- shown: true;
342
- data: import("../charts").Spreadsheet;
343
- };
344
- showHyperlinkPopup: false | "editor" | "info";
345
- selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
346
- snapLines: readonly import("../snapping").SnapLine[];
347
- originSnapOffset: {
348
- x: number;
349
- y: number;
350
- } | null;
351
- objectsSnapModeEnabled: boolean;
352
- userToFollow: import("../types").UserToFollow | null;
353
- followedBy: Set<import("../types").SocketId>;
354
- isCropping: boolean;
355
- croppingElementId: string | null;
356
- searchMatches: Readonly<{
357
- focusedId: string | null;
358
- matches: readonly import("../types").SearchMatch[];
359
- }> | null;
360
- activeLockedId: string | null;
361
- lockedMultiSelections: {
362
- [groupId: string]: true;
363
- };
364
- };
365
- captureUpdate: "EVENTUALLY";
366
- };
367
- PanelComponent: ({ elements: allElements, appState, updateData }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
368
- } & {
369
- keyTest?: undefined;
370
- };
371
- export declare const actionChangeExportBackground: {
372
- name: "changeExportBackground";
373
- label: string;
374
- trackEvent: {
375
- category: "export";
376
- action: string;
377
- };
378
- perform: (_elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, value: any) => {
379
- appState: {
380
- exportBackground: any;
381
- contextMenu: {
382
- items: import("../components/ContextMenu").ContextMenuItems;
383
- top: number;
384
- left: number;
385
- } | null;
386
- showWelcomeScreen: boolean;
387
- isLoading: boolean;
388
- errorMessage: import("react").ReactNode;
389
- activeEmbeddable: {
390
- element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
391
- state: "active" | "hover";
392
- } | null;
393
- newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
394
- resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
395
- multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
396
- selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
397
- isBindingEnabled: boolean;
398
- startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
399
- suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
400
- frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
401
- frameRendering: {
402
- enabled: boolean;
403
- name: boolean;
404
- outline: boolean;
405
- clip: boolean;
406
- };
407
- editingFrame: string | null;
408
- elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
409
- editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
410
- editingLinearElement: import("@excalidraw/element").LinearElementEditor | null;
411
- activeTool: {
412
- lastActiveTool: import("../types").ActiveTool | null;
413
- locked: boolean;
414
- fromSelection: boolean;
415
- } & import("../types").ActiveTool;
416
- penMode: boolean;
417
- penDetected: boolean;
418
- exportEmbedScene: boolean;
419
- exportWithDarkMode: boolean;
420
- exportScale: number;
421
- currentItemStrokeColor: string;
422
- currentItemBackgroundColor: string;
423
- currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
424
- currentItemStrokeWidth: number;
425
- currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
426
- currentItemRoughness: number;
427
- currentItemOpacity: number;
428
- currentItemFontFamily: number;
429
- currentItemFontSize: number;
430
- currentItemTextAlign: string;
431
- currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
432
- currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
433
- currentHoveredFontFamily: number | null;
434
- currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
435
- currentItemArrowType: "round" | "sharp" | "elbow";
436
- viewBackgroundColor: string;
437
- scrollX: number;
438
- scrollY: number;
439
- cursorButton: "up" | "down";
440
- scrolledOutside: boolean;
441
- name: string | null;
442
- isResizing: boolean;
443
- isRotating: boolean;
444
- zoom: Readonly<{
445
- value: import("../types").NormalizedZoomValue;
446
- }>;
447
- openMenu: "canvas" | "shape" | null;
448
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
449
- openSidebar: {
450
- name: string;
451
- tab?: string | undefined;
452
- } | null;
453
- openDialog: {
454
- name: "imageExport" | "help" | "jsonExport";
455
- } | {
456
- name: "ttd";
457
- tab: "mermaid" | "text-to-diagram";
458
- } | {
459
- name: "commandPalette";
460
- } | {
461
- name: "elementLinkSelector";
462
- sourceElementId: string;
463
- } | null;
464
- defaultSidebarDockedPreference: boolean;
465
- lastPointerDownWith: import("@excalidraw/element/types").PointerType;
466
- selectedElementIds: Readonly<{
467
- [id: string]: true;
468
- }>;
469
- hoveredElementIds: Readonly<{
470
- [id: string]: true;
471
- }>;
472
- previousSelectedElementIds: {
473
- [id: string]: true;
474
- };
475
- selectedElementsAreBeingDragged: boolean;
476
- shouldCacheIgnoreZoom: boolean;
477
- toast: {
478
- message: string;
479
- closable?: boolean | undefined;
480
- duration?: number | undefined;
481
- } | null;
482
- zenModeEnabled: boolean;
483
- theme: Theme;
484
- gridSize: number;
485
- gridStep: number;
486
- gridModeEnabled: boolean;
487
- viewModeEnabled: boolean;
488
- selectedGroupIds: {
489
- [groupId: string]: boolean;
490
- };
491
- editingGroupId: string | null;
492
- width: number;
493
- height: number;
494
- offsetTop: number;
495
- offsetLeft: number;
496
- fileHandle: import("browser-fs-access").FileSystemHandle | null;
497
- collaborators: Map<import("../types").SocketId, Readonly<{
498
- pointer?: import("../types").CollaboratorPointer | undefined;
499
- button?: "up" | "down" | undefined;
500
- selectedElementIds?: Readonly<{
501
- [id: string]: true;
502
- }> | undefined;
503
- username?: string | null | undefined;
504
- userState?: import("@excalidraw/common").UserIdleState | undefined;
505
- color?: {
506
- background: string;
507
- stroke: string;
508
- } | undefined;
509
- avatarUrl?: string | undefined;
510
- id?: string | undefined;
511
- socketId?: import("../types").SocketId | undefined;
512
- isCurrentUser?: boolean | undefined;
513
- isInCall?: boolean | undefined;
514
- isSpeaking?: boolean | undefined;
515
- isMuted?: boolean | undefined;
516
- }>>;
517
- stats: {
518
- open: boolean;
519
- panels: number;
520
- };
521
- currentChartType: import("@excalidraw/element/types").ChartType;
522
- pasteDialog: {
523
- shown: false;
524
- data: null;
525
- } | {
526
- shown: true;
527
- data: import("../charts").Spreadsheet;
528
- };
529
- showHyperlinkPopup: false | "editor" | "info";
530
- selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
531
- snapLines: readonly import("../snapping").SnapLine[];
532
- originSnapOffset: {
533
- x: number;
534
- y: number;
535
- } | null;
536
- objectsSnapModeEnabled: boolean;
537
- userToFollow: import("../types").UserToFollow | null;
538
- followedBy: Set<import("../types").SocketId>;
539
- isCropping: boolean;
540
- croppingElementId: string | null;
541
- searchMatches: Readonly<{
542
- focusedId: string | null;
543
- matches: readonly import("../types").SearchMatch[];
544
- }> | null;
545
- activeLockedId: string | null;
546
- lockedMultiSelections: {
547
- [groupId: string]: true;
548
- };
549
- };
550
- captureUpdate: "EVENTUALLY";
551
- };
552
- PanelComponent: ({ appState, updateData }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
553
- } & {
554
- keyTest?: undefined;
555
- };
556
- export declare const actionChangeExportEmbedScene: {
557
- name: "changeExportEmbedScene";
558
- label: string;
559
- trackEvent: {
560
- category: "export";
561
- action: string;
562
- };
563
- perform: (_elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, value: any) => {
564
- appState: {
565
- exportEmbedScene: any;
566
- contextMenu: {
567
- items: import("../components/ContextMenu").ContextMenuItems;
568
- top: number;
569
- left: number;
570
- } | null;
571
- showWelcomeScreen: boolean;
572
- isLoading: boolean;
573
- errorMessage: import("react").ReactNode;
574
- activeEmbeddable: {
575
- element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
576
- state: "active" | "hover";
577
- } | null;
578
- newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
579
- resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
580
- multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
581
- selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
582
- isBindingEnabled: boolean;
583
- startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
584
- suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
585
- frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
586
- frameRendering: {
587
- enabled: boolean;
588
- name: boolean;
589
- outline: boolean;
590
- clip: boolean;
591
- };
592
- editingFrame: string | null;
593
- elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
594
- editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
595
- editingLinearElement: import("@excalidraw/element").LinearElementEditor | null;
596
- activeTool: {
597
- lastActiveTool: import("../types").ActiveTool | null;
598
- locked: boolean;
599
- fromSelection: boolean;
600
- } & import("../types").ActiveTool;
601
- penMode: boolean;
602
- penDetected: boolean;
603
- exportBackground: boolean;
604
- exportWithDarkMode: boolean;
605
- exportScale: number;
606
- currentItemStrokeColor: string;
607
- currentItemBackgroundColor: string;
608
- currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
609
- currentItemStrokeWidth: number;
610
- currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
611
- currentItemRoughness: number;
612
- currentItemOpacity: number;
613
- currentItemFontFamily: number;
614
- currentItemFontSize: number;
615
- currentItemTextAlign: string;
616
- currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
617
- currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
618
- currentHoveredFontFamily: number | null;
619
- currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
620
- currentItemArrowType: "round" | "sharp" | "elbow";
621
- viewBackgroundColor: string;
622
- scrollX: number;
623
- scrollY: number;
624
- cursorButton: "up" | "down";
625
- scrolledOutside: boolean;
626
- name: string | null;
627
- isResizing: boolean;
628
- isRotating: boolean;
629
- zoom: Readonly<{
630
- value: import("../types").NormalizedZoomValue;
631
- }>;
632
- openMenu: "canvas" | "shape" | null;
633
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
634
- openSidebar: {
635
- name: string;
636
- tab?: string | undefined;
637
- } | null;
638
- openDialog: {
639
- name: "imageExport" | "help" | "jsonExport";
640
- } | {
641
- name: "ttd";
642
- tab: "mermaid" | "text-to-diagram";
643
- } | {
644
- name: "commandPalette";
645
- } | {
646
- name: "elementLinkSelector";
647
- sourceElementId: string;
648
- } | null;
649
- defaultSidebarDockedPreference: boolean;
650
- lastPointerDownWith: import("@excalidraw/element/types").PointerType;
651
- selectedElementIds: Readonly<{
652
- [id: string]: true;
653
- }>;
654
- hoveredElementIds: Readonly<{
655
- [id: string]: true;
656
- }>;
657
- previousSelectedElementIds: {
658
- [id: string]: true;
659
- };
660
- selectedElementsAreBeingDragged: boolean;
661
- shouldCacheIgnoreZoom: boolean;
662
- toast: {
663
- message: string;
664
- closable?: boolean | undefined;
665
- duration?: number | undefined;
666
- } | null;
667
- zenModeEnabled: boolean;
668
- theme: Theme;
669
- gridSize: number;
670
- gridStep: number;
671
- gridModeEnabled: boolean;
672
- viewModeEnabled: boolean;
673
- selectedGroupIds: {
674
- [groupId: string]: boolean;
675
- };
676
- editingGroupId: string | null;
677
- width: number;
678
- height: number;
679
- offsetTop: number;
680
- offsetLeft: number;
681
- fileHandle: import("browser-fs-access").FileSystemHandle | null;
682
- collaborators: Map<import("../types").SocketId, Readonly<{
683
- pointer?: import("../types").CollaboratorPointer | undefined;
684
- button?: "up" | "down" | undefined;
685
- selectedElementIds?: Readonly<{
686
- [id: string]: true;
687
- }> | undefined;
688
- username?: string | null | undefined;
689
- userState?: import("@excalidraw/common").UserIdleState | undefined;
690
- color?: {
691
- background: string;
692
- stroke: string;
693
- } | undefined;
694
- avatarUrl?: string | undefined;
695
- id?: string | undefined;
696
- socketId?: import("../types").SocketId | undefined;
697
- isCurrentUser?: boolean | undefined;
698
- isInCall?: boolean | undefined;
699
- isSpeaking?: boolean | undefined;
700
- isMuted?: boolean | undefined;
701
- }>>;
702
- stats: {
703
- open: boolean;
704
- panels: number;
705
- };
706
- currentChartType: import("@excalidraw/element/types").ChartType;
707
- pasteDialog: {
708
- shown: false;
709
- data: null;
710
- } | {
711
- shown: true;
712
- data: import("../charts").Spreadsheet;
713
- };
714
- showHyperlinkPopup: false | "editor" | "info";
715
- selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
716
- snapLines: readonly import("../snapping").SnapLine[];
717
- originSnapOffset: {
718
- x: number;
719
- y: number;
720
- } | null;
721
- objectsSnapModeEnabled: boolean;
722
- userToFollow: import("../types").UserToFollow | null;
723
- followedBy: Set<import("../types").SocketId>;
724
- isCropping: boolean;
725
- croppingElementId: string | null;
726
- searchMatches: Readonly<{
727
- focusedId: string | null;
728
- matches: readonly import("../types").SearchMatch[];
729
- }> | null;
730
- activeLockedId: string | null;
731
- lockedMultiSelections: {
732
- [groupId: string]: true;
733
- };
734
- };
735
- captureUpdate: "EVENTUALLY";
736
- };
737
- PanelComponent: ({ appState, updateData }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
738
- } & {
739
- keyTest?: undefined;
4
+ import type { AppState } from "../types";
5
+ export declare const actionChangeProjectName: import("./types").Action<string | null> & {
6
+ keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>, appState: AppState, elements: readonly import("@excalidraw/element/types").ExcalidrawElement[], app: import("../types").AppClassProperties) => boolean) | undefined;
7
+ };
8
+ export declare const actionChangeExportScale: import("./types").Action<number> & {
9
+ keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>, appState: AppState, elements: readonly import("@excalidraw/element/types").ExcalidrawElement[], app: import("../types").AppClassProperties) => boolean) | undefined;
10
+ };
11
+ export declare const actionChangeExportBackground: import("./types").Action<boolean> & {
12
+ keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>, appState: AppState, elements: readonly import("@excalidraw/element/types").ExcalidrawElement[], app: import("../types").AppClassProperties) => boolean) | undefined;
13
+ };
14
+ export declare const actionChangeExportEmbedScene: import("./types").Action<boolean> & {
15
+ keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>, appState: AppState, elements: readonly import("@excalidraw/element/types").ExcalidrawElement[], app: import("../types").AppClassProperties) => boolean) | undefined;
740
16
  };
741
17
  export declare const actionSaveToActiveFile: {
742
18
  name: "saveToActiveFile";
@@ -745,8 +21,8 @@ export declare const actionSaveToActiveFile: {
745
21
  trackEvent: {
746
22
  category: "export";
747
23
  };
748
- predicate: (elements: readonly import("@excalidraw/element/types").ExcalidrawElement[], appState: import("../types").AppState, props: import("../types").ExcalidrawProps, app: import("../types").AppClassProperties) => boolean;
749
- perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, value: any, app: import("../types").AppClassProperties) => Promise<{
24
+ predicate: (elements: readonly import("@excalidraw/element/types").ExcalidrawElement[], appState: AppState, props: import("../types").ExcalidrawProps, app: import("../types").AppClassProperties) => boolean;
25
+ perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, value: unknown, app: import("../types").AppClassProperties) => Promise<{
750
26
  captureUpdate: "EVENTUALLY";
751
27
  appState: {
752
28
  fileHandle: import("browser-fs-access").FileSystemHandle | null;
@@ -771,7 +47,7 @@ export declare const actionSaveToActiveFile: {
771
47
  selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
772
48
  isBindingEnabled: boolean;
773
49
  startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
774
- suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
50
+ suggestedBinding: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
775
51
  frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
776
52
  frameRendering: {
777
53
  enabled: boolean;
@@ -782,12 +58,15 @@ export declare const actionSaveToActiveFile: {
782
58
  editingFrame: string | null;
783
59
  elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
784
60
  editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
785
- editingLinearElement: import("@excalidraw/element").LinearElementEditor | null;
786
61
  activeTool: {
787
62
  lastActiveTool: import("../types").ActiveTool | null;
788
63
  locked: boolean;
789
64
  fromSelection: boolean;
790
65
  } & import("../types").ActiveTool;
66
+ preferredSelectionTool: {
67
+ type: "selection" | "lasso";
68
+ initialized: boolean;
69
+ };
791
70
  penMode: boolean;
792
71
  penDetected: boolean;
793
72
  exportBackground: boolean;
@@ -820,8 +99,8 @@ export declare const actionSaveToActiveFile: {
820
99
  zoom: Readonly<{
821
100
  value: import("../types").NormalizedZoomValue;
822
101
  }>;
823
- openMenu: "canvas" | "shape" | null;
824
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
102
+ openMenu: "canvas" | null;
103
+ openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
825
104
  openSidebar: {
826
105
  name: string;
827
106
  tab?: string | undefined;
@@ -833,6 +112,8 @@ export declare const actionSaveToActiveFile: {
833
112
  tab: "mermaid" | "text-to-diagram";
834
113
  } | {
835
114
  name: "commandPalette";
115
+ } | {
116
+ name: "settings";
836
117
  } | {
837
118
  name: "elementLinkSelector";
838
119
  sourceElementId: string;
@@ -896,7 +177,7 @@ export declare const actionSaveToActiveFile: {
896
177
  shown: true;
897
178
  data: import("../charts").Spreadsheet;
898
179
  };
899
- showHyperlinkPopup: false | "editor" | "info";
180
+ showHyperlinkPopup: false | "info" | "editor";
900
181
  selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
901
182
  snapLines: readonly import("../snapping").SnapLine[];
902
183
  originSnapOffset: {
@@ -916,6 +197,7 @@ export declare const actionSaveToActiveFile: {
916
197
  lockedMultiSelections: {
917
198
  [groupId: string]: true;
918
199
  };
200
+ bindMode: import("@excalidraw/element/types").BindMode;
919
201
  };
920
202
  } | {
921
203
  captureUpdate: "EVENTUALLY";
@@ -933,7 +215,7 @@ export declare const actionSaveFileToDisk: {
933
215
  trackEvent: {
934
216
  category: "export";
935
217
  };
936
- perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, value: any, app: import("../types").AppClassProperties) => Promise<{
218
+ perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, value: unknown, app: import("../types").AppClassProperties) => Promise<{
937
219
  captureUpdate: "EVENTUALLY";
938
220
  appState: {
939
221
  openDialog: null;
@@ -959,7 +241,7 @@ export declare const actionSaveFileToDisk: {
959
241
  selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
960
242
  isBindingEnabled: boolean;
961
243
  startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
962
- suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
244
+ suggestedBinding: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
963
245
  frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
964
246
  frameRendering: {
965
247
  enabled: boolean;
@@ -970,12 +252,15 @@ export declare const actionSaveFileToDisk: {
970
252
  editingFrame: string | null;
971
253
  elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
972
254
  editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
973
- editingLinearElement: import("@excalidraw/element").LinearElementEditor | null;
974
255
  activeTool: {
975
256
  lastActiveTool: import("../types").ActiveTool | null;
976
257
  locked: boolean;
977
258
  fromSelection: boolean;
978
259
  } & import("../types").ActiveTool;
260
+ preferredSelectionTool: {
261
+ type: "selection" | "lasso";
262
+ initialized: boolean;
263
+ };
979
264
  penMode: boolean;
980
265
  penDetected: boolean;
981
266
  exportBackground: boolean;
@@ -1008,8 +293,8 @@ export declare const actionSaveFileToDisk: {
1008
293
  zoom: Readonly<{
1009
294
  value: import("../types").NormalizedZoomValue;
1010
295
  }>;
1011
- openMenu: "canvas" | "shape" | null;
1012
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
296
+ openMenu: "canvas" | null;
297
+ openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
1013
298
  openSidebar: {
1014
299
  name: string;
1015
300
  tab?: string | undefined;
@@ -1073,7 +358,7 @@ export declare const actionSaveFileToDisk: {
1073
358
  shown: true;
1074
359
  data: import("../charts").Spreadsheet;
1075
360
  };
1076
- showHyperlinkPopup: false | "editor" | "info";
361
+ showHyperlinkPopup: false | "info" | "editor";
1077
362
  selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
1078
363
  snapLines: readonly import("../snapping").SnapLine[];
1079
364
  originSnapOffset: {
@@ -1093,6 +378,7 @@ export declare const actionSaveFileToDisk: {
1093
378
  lockedMultiSelections: {
1094
379
  [groupId: string]: true;
1095
380
  };
381
+ bindMode: import("@excalidraw/element/types").BindMode;
1096
382
  };
1097
383
  } | {
1098
384
  captureUpdate: "EVENTUALLY";
@@ -1109,8 +395,8 @@ export declare const actionLoadScene: {
1109
395
  trackEvent: {
1110
396
  category: "export";
1111
397
  };
1112
- predicate: (elements: readonly import("@excalidraw/element/types").ExcalidrawElement[], appState: import("../types").AppState, props: import("../types").ExcalidrawProps, app: import("../types").AppClassProperties) => boolean;
1113
- perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, _: any, app: import("../types").AppClassProperties) => Promise<false | {
398
+ predicate: (elements: readonly import("@excalidraw/element/types").ExcalidrawElement[], appState: AppState, props: import("../types").ExcalidrawProps, app: import("../types").AppClassProperties) => boolean;
399
+ perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: unknown, app: import("../types").AppClassProperties) => Promise<false | {
1114
400
  elements: import("@excalidraw/element/types").OrderedExcalidrawElement[];
1115
401
  appState: {
1116
402
  viewBackgroundColor: string;
@@ -1134,6 +420,8 @@ export declare const actionLoadScene: {
1134
420
  tab: "mermaid" | "text-to-diagram";
1135
421
  } | {
1136
422
  name: "commandPalette";
423
+ } | {
424
+ name: "settings";
1137
425
  } | {
1138
426
  name: "elementLinkSelector";
1139
427
  sourceElementId: string;
@@ -1148,15 +436,15 @@ export declare const actionLoadScene: {
1148
436
  element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
1149
437
  state: "active" | "hover";
1150
438
  } | null;
1151
- editingLinearElement: import("@excalidraw/element").LinearElementEditor | null;
1152
439
  selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
1153
440
  selectedGroupIds: {
1154
441
  [groupId: string]: boolean;
1155
442
  };
1156
443
  selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
1157
444
  multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
445
+ newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
1158
446
  isBindingEnabled: boolean;
1159
- suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
447
+ suggestedBinding: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
1160
448
  isRotating: boolean;
1161
449
  elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
1162
450
  collaborators: Map<import("../types").SocketId, Readonly<{
@@ -1189,6 +477,13 @@ export declare const actionLoadScene: {
1189
477
  matches: readonly import("../types").SearchMatch[];
1190
478
  }> | null;
1191
479
  activeLockedId: string | null;
480
+ hoveredElementIds: Readonly<{
481
+ [id: string]: true;
482
+ }>;
483
+ shouldCacheIgnoreZoom: boolean;
484
+ exportScale: number;
485
+ bindMode: import("@excalidraw/element/types").BindMode;
486
+ gridSize: number;
1192
487
  contextMenu: {
1193
488
  items: import("../components/ContextMenu").ContextMenuItems;
1194
489
  top: number;
@@ -1197,7 +492,6 @@ export declare const actionLoadScene: {
1197
492
  showWelcomeScreen: boolean;
1198
493
  isLoading: boolean;
1199
494
  errorMessage: import("react").ReactNode;
1200
- newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
1201
495
  resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
1202
496
  startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
1203
497
  editingFrame: string | null;
@@ -1206,12 +500,15 @@ export declare const actionLoadScene: {
1206
500
  locked: boolean;
1207
501
  fromSelection: boolean;
1208
502
  } & import("../types").ActiveTool;
503
+ preferredSelectionTool: {
504
+ type: "selection" | "lasso";
505
+ initialized: boolean;
506
+ };
1209
507
  penMode: boolean;
1210
508
  penDetected: boolean;
1211
509
  exportBackground: boolean;
1212
510
  exportEmbedScene: boolean;
1213
511
  exportWithDarkMode: boolean;
1214
- exportScale: number;
1215
512
  currentItemStrokeColor: string;
1216
513
  currentItemBackgroundColor: string;
1217
514
  currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
@@ -1230,28 +527,23 @@ export declare const actionLoadScene: {
1230
527
  cursorButton: "up" | "down";
1231
528
  scrolledOutside: boolean;
1232
529
  isResizing: boolean;
1233
- openMenu: "canvas" | "shape" | null;
1234
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
530
+ openMenu: "canvas" | null;
531
+ openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
1235
532
  openSidebar: {
1236
533
  name: string;
1237
534
  tab?: string | undefined;
1238
535
  } | null;
1239
536
  defaultSidebarDockedPreference: boolean;
1240
537
  lastPointerDownWith: import("@excalidraw/element/types").PointerType;
1241
- hoveredElementIds: Readonly<{
1242
- [id: string]: true;
1243
- }>;
1244
538
  previousSelectedElementIds: {
1245
539
  [id: string]: true;
1246
540
  };
1247
541
  selectedElementsAreBeingDragged: boolean;
1248
- shouldCacheIgnoreZoom: boolean;
1249
542
  toast: {
1250
543
  message: string;
1251
544
  closable?: boolean | undefined;
1252
545
  duration?: number | undefined;
1253
546
  } | null;
1254
- gridSize: number;
1255
547
  gridStep: number;
1256
548
  gridModeEnabled: boolean;
1257
549
  fileHandle: import("browser-fs-access").FileSystemHandle | null;
@@ -1267,7 +559,7 @@ export declare const actionLoadScene: {
1267
559
  shown: true;
1268
560
  data: import("../charts").Spreadsheet;
1269
561
  };
1270
- showHyperlinkPopup: false | "editor" | "info";
562
+ showHyperlinkPopup: false | "info" | "editor";
1271
563
  originSnapOffset: {
1272
564
  x: number;
1273
565
  y: number;
@@ -1302,7 +594,7 @@ export declare const actionLoadScene: {
1302
594
  selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
1303
595
  isBindingEnabled: boolean;
1304
596
  startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
1305
- suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
597
+ suggestedBinding: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
1306
598
  frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
1307
599
  frameRendering: {
1308
600
  enabled: boolean;
@@ -1313,12 +605,15 @@ export declare const actionLoadScene: {
1313
605
  editingFrame: string | null;
1314
606
  elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
1315
607
  editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
1316
- editingLinearElement: import("@excalidraw/element").LinearElementEditor | null;
1317
608
  activeTool: {
1318
609
  lastActiveTool: import("../types").ActiveTool | null;
1319
610
  locked: boolean;
1320
611
  fromSelection: boolean;
1321
612
  } & import("../types").ActiveTool;
613
+ preferredSelectionTool: {
614
+ type: "selection" | "lasso";
615
+ initialized: boolean;
616
+ };
1322
617
  penMode: boolean;
1323
618
  penDetected: boolean;
1324
619
  exportBackground: boolean;
@@ -1351,8 +646,8 @@ export declare const actionLoadScene: {
1351
646
  zoom: Readonly<{
1352
647
  value: import("../types").NormalizedZoomValue;
1353
648
  }>;
1354
- openMenu: "canvas" | "shape" | null;
1355
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
649
+ openMenu: "canvas" | null;
650
+ openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
1356
651
  openSidebar: {
1357
652
  name: string;
1358
653
  tab?: string | undefined;
@@ -1364,6 +659,8 @@ export declare const actionLoadScene: {
1364
659
  tab: "mermaid" | "text-to-diagram";
1365
660
  } | {
1366
661
  name: "commandPalette";
662
+ } | {
663
+ name: "settings";
1367
664
  } | {
1368
665
  name: "elementLinkSelector";
1369
666
  sourceElementId: string;
@@ -1433,7 +730,7 @@ export declare const actionLoadScene: {
1433
730
  shown: true;
1434
731
  data: import("../charts").Spreadsheet;
1435
732
  };
1436
- showHyperlinkPopup: false | "editor" | "info";
733
+ showHyperlinkPopup: false | "info" | "editor";
1437
734
  selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
1438
735
  snapLines: readonly import("../snapping").SnapLine[];
1439
736
  originSnapOffset: {
@@ -1453,6 +750,7 @@ export declare const actionLoadScene: {
1453
750
  lockedMultiSelections: {
1454
751
  [groupId: string]: true;
1455
752
  };
753
+ bindMode: import("@excalidraw/element/types").BindMode;
1456
754
  };
1457
755
  files: import("../types").BinaryFiles;
1458
756
  captureUpdate: "EVENTUALLY";
@@ -1461,188 +759,6 @@ export declare const actionLoadScene: {
1461
759
  } & {
1462
760
  keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
1463
761
  };
1464
- export declare const actionExportWithDarkMode: {
1465
- name: "exportWithDarkMode";
1466
- label: string;
1467
- trackEvent: {
1468
- category: "export";
1469
- action: string;
1470
- };
1471
- perform: (_elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, value: any) => {
1472
- appState: {
1473
- exportWithDarkMode: any;
1474
- contextMenu: {
1475
- items: import("../components/ContextMenu").ContextMenuItems;
1476
- top: number;
1477
- left: number;
1478
- } | null;
1479
- showWelcomeScreen: boolean;
1480
- isLoading: boolean;
1481
- errorMessage: import("react").ReactNode;
1482
- activeEmbeddable: {
1483
- element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
1484
- state: "active" | "hover";
1485
- } | null;
1486
- newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
1487
- resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
1488
- multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
1489
- selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
1490
- isBindingEnabled: boolean;
1491
- startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
1492
- suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
1493
- frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
1494
- frameRendering: {
1495
- enabled: boolean;
1496
- name: boolean;
1497
- outline: boolean;
1498
- clip: boolean;
1499
- };
1500
- editingFrame: string | null;
1501
- elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
1502
- editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
1503
- editingLinearElement: import("@excalidraw/element").LinearElementEditor | null;
1504
- activeTool: {
1505
- lastActiveTool: import("../types").ActiveTool | null;
1506
- locked: boolean;
1507
- fromSelection: boolean;
1508
- } & import("../types").ActiveTool;
1509
- penMode: boolean;
1510
- penDetected: boolean;
1511
- exportBackground: boolean;
1512
- exportEmbedScene: boolean;
1513
- exportScale: number;
1514
- currentItemStrokeColor: string;
1515
- currentItemBackgroundColor: string;
1516
- currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
1517
- currentItemStrokeWidth: number;
1518
- currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
1519
- currentItemRoughness: number;
1520
- currentItemOpacity: number;
1521
- currentItemFontFamily: number;
1522
- currentItemFontSize: number;
1523
- currentItemTextAlign: string;
1524
- currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
1525
- currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
1526
- currentHoveredFontFamily: number | null;
1527
- currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
1528
- currentItemArrowType: "round" | "sharp" | "elbow";
1529
- viewBackgroundColor: string;
1530
- scrollX: number;
1531
- scrollY: number;
1532
- cursorButton: "up" | "down";
1533
- scrolledOutside: boolean;
1534
- name: string | null;
1535
- isResizing: boolean;
1536
- isRotating: boolean;
1537
- zoom: Readonly<{
1538
- value: import("../types").NormalizedZoomValue;
1539
- }>;
1540
- openMenu: "canvas" | "shape" | null;
1541
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
1542
- openSidebar: {
1543
- name: string;
1544
- tab?: string | undefined;
1545
- } | null;
1546
- openDialog: {
1547
- name: "imageExport" | "help" | "jsonExport";
1548
- } | {
1549
- name: "ttd";
1550
- tab: "mermaid" | "text-to-diagram";
1551
- } | {
1552
- name: "commandPalette";
1553
- } | {
1554
- name: "elementLinkSelector";
1555
- sourceElementId: string;
1556
- } | null;
1557
- defaultSidebarDockedPreference: boolean;
1558
- lastPointerDownWith: import("@excalidraw/element/types").PointerType;
1559
- selectedElementIds: Readonly<{
1560
- [id: string]: true;
1561
- }>;
1562
- hoveredElementIds: Readonly<{
1563
- [id: string]: true;
1564
- }>;
1565
- previousSelectedElementIds: {
1566
- [id: string]: true;
1567
- };
1568
- selectedElementsAreBeingDragged: boolean;
1569
- shouldCacheIgnoreZoom: boolean;
1570
- toast: {
1571
- message: string;
1572
- closable?: boolean | undefined;
1573
- duration?: number | undefined;
1574
- } | null;
1575
- zenModeEnabled: boolean;
1576
- theme: Theme;
1577
- gridSize: number;
1578
- gridStep: number;
1579
- gridModeEnabled: boolean;
1580
- viewModeEnabled: boolean;
1581
- selectedGroupIds: {
1582
- [groupId: string]: boolean;
1583
- };
1584
- editingGroupId: string | null;
1585
- width: number;
1586
- height: number;
1587
- offsetTop: number;
1588
- offsetLeft: number;
1589
- fileHandle: import("browser-fs-access").FileSystemHandle | null;
1590
- collaborators: Map<import("../types").SocketId, Readonly<{
1591
- pointer?: import("../types").CollaboratorPointer | undefined;
1592
- button?: "up" | "down" | undefined;
1593
- selectedElementIds?: Readonly<{
1594
- [id: string]: true;
1595
- }> | undefined;
1596
- username?: string | null | undefined;
1597
- userState?: import("@excalidraw/common").UserIdleState | undefined;
1598
- color?: {
1599
- background: string;
1600
- stroke: string;
1601
- } | undefined;
1602
- avatarUrl?: string | undefined;
1603
- id?: string | undefined;
1604
- socketId?: import("../types").SocketId | undefined;
1605
- isCurrentUser?: boolean | undefined;
1606
- isInCall?: boolean | undefined;
1607
- isSpeaking?: boolean | undefined;
1608
- isMuted?: boolean | undefined;
1609
- }>>;
1610
- stats: {
1611
- open: boolean;
1612
- panels: number;
1613
- };
1614
- currentChartType: import("@excalidraw/element/types").ChartType;
1615
- pasteDialog: {
1616
- shown: false;
1617
- data: null;
1618
- } | {
1619
- shown: true;
1620
- data: import("../charts").Spreadsheet;
1621
- };
1622
- showHyperlinkPopup: false | "editor" | "info";
1623
- selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
1624
- snapLines: readonly import("../snapping").SnapLine[];
1625
- originSnapOffset: {
1626
- x: number;
1627
- y: number;
1628
- } | null;
1629
- objectsSnapModeEnabled: boolean;
1630
- userToFollow: import("../types").UserToFollow | null;
1631
- followedBy: Set<import("../types").SocketId>;
1632
- isCropping: boolean;
1633
- croppingElementId: string | null;
1634
- searchMatches: Readonly<{
1635
- focusedId: string | null;
1636
- matches: readonly import("../types").SearchMatch[];
1637
- }> | null;
1638
- activeLockedId: string | null;
1639
- lockedMultiSelections: {
1640
- [groupId: string]: true;
1641
- };
1642
- };
1643
- captureUpdate: "EVENTUALLY";
1644
- };
1645
- PanelComponent: ({ appState, updateData }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
1646
- } & {
1647
- keyTest?: undefined;
762
+ export declare const actionExportWithDarkMode: import("./types").Action<boolean> & {
763
+ keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>, appState: AppState, elements: readonly import("@excalidraw/element/types").ExcalidrawElement[], app: import("../types").AppClassProperties) => boolean) | undefined;
1648
764
  };