@zsviczian/excalidraw 0.15.2-obsidian-12 → 0.15.3-obsidian

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 (101) hide show
  1. package/dist/excalidraw.development.js +119 -42
  2. package/dist/excalidraw.production.min.js +1 -1
  3. package/package.json +1 -1
  4. package/types/actions/actionAddToLibrary.d.ts +12 -3
  5. package/types/actions/actionBoundText.d.ts +8 -2
  6. package/types/actions/actionCanvas.d.ts +48 -12
  7. package/types/actions/actionClipboard.d.ts +20 -5
  8. package/types/actions/actionDeleteSelected.d.ts +12 -3
  9. package/types/actions/actionElementLock.d.ts +8 -2
  10. package/types/actions/actionExport.d.ts +36 -9
  11. package/types/actions/actionFinalize.d.ts +9 -3
  12. package/types/actions/actionFrame.d.ts +12 -3
  13. package/types/actions/actionGroup.d.ts +291 -3
  14. package/types/actions/actionLinearEditor.d.ts +4 -1
  15. package/types/actions/actionMenu.d.ts +12 -3
  16. package/types/actions/actionProperties.d.ts +52 -13
  17. package/types/actions/actionSelectAll.d.ts +146 -1
  18. package/types/actions/actionStyles.d.ts +4 -1
  19. package/types/actions/actionToggleGridMode.d.ts +4 -1
  20. package/types/actions/actionToggleStats.d.ts +4 -1
  21. package/types/actions/actionToggleViewMode.d.ts +4 -1
  22. package/types/actions/actionToggleZenMode.d.ts +4 -1
  23. package/types/clipboard.d.ts +1 -0
  24. package/types/components/Actions.d.ts +2 -2
  25. package/types/components/App.d.ts +8 -6
  26. package/types/components/JSONExportDialog.d.ts +1 -1
  27. package/types/components/LayerUI.d.ts +3 -2
  28. package/types/components/MobileMenu.d.ts +2 -2
  29. package/types/components/canvases/InteractiveCanvas.d.ts +27 -0
  30. package/types/components/canvases/StaticCanvas.d.ts +18 -0
  31. package/types/components/canvases/index.d.ts +3 -0
  32. package/types/constants.d.ts +1 -0
  33. package/types/data/transform.d.ts +71 -0
  34. package/types/element/Hyperlink.d.ts +5 -2
  35. package/types/element/binding.d.ts +1 -0
  36. package/types/element/embeddable.d.ts +4 -1
  37. package/types/element/linearElementEditor.d.ts +7 -4
  38. package/types/element/newElement.d.ts +9 -5
  39. package/types/element/sizeHelpers.d.ts +8 -1
  40. package/types/element/textElement.d.ts +3 -1
  41. package/types/element/textWysiwyg.d.ts +1 -1
  42. package/types/element/transformHandles.d.ts +2 -2
  43. package/types/frame.d.ts +3 -3
  44. package/types/groups.d.ts +11 -11
  45. package/types/packages/excalidraw/example/initialData.d.ts +182 -70
  46. package/types/packages/excalidraw/index.d.ts +1 -0
  47. package/types/renderer/renderElement.d.ts +9 -21
  48. package/types/renderer/renderScene.d.ts +16 -36
  49. package/types/scene/Renderer.d.ts +25 -0
  50. package/types/scene/Scene.d.ts +2 -0
  51. package/types/scene/Shape.d.ts +12 -0
  52. package/types/scene/ShapeCache.d.ts +20 -0
  53. package/types/scene/scroll.d.ts +1 -1
  54. package/types/scene/scrollbars.d.ts +2 -6
  55. package/types/scene/selection.d.ts +2 -2
  56. package/types/scene/types.d.ts +57 -24
  57. package/types/types.d.ts +49 -4
  58. package/types/utils.d.ts +12 -4
  59. package/types/actions/actionToggleLock.d.ts +0 -139
  60. package/types/bug-issue-template.d.ts +0 -2
  61. package/types/components/ActiveFile.d.ts +0 -7
  62. package/types/components/BackgroundPickerAndDarkModeToggle.d.ts +0 -4
  63. package/types/components/ClearCanvas.d.ts +0 -4
  64. package/types/components/CollabButton.d.ts +0 -7
  65. package/types/components/ColorPicker.d.ts +0 -19
  66. package/types/components/EncryptedIcon.d.ts +0 -2
  67. package/types/components/Footer.d.ts +0 -10
  68. package/types/components/HelpIcon.d.ts +0 -8
  69. package/types/components/LibraryButton.d.ts +0 -8
  70. package/types/components/MenuItem.d.ts +0 -11
  71. package/types/components/MenuUtils.d.ts +0 -2
  72. package/types/components/SidebarLockButton.d.ts +0 -8
  73. package/types/components/SingleLibraryItem.d.ts +0 -10
  74. package/types/components/TopErrorBoundary.d.ts +0 -15
  75. package/types/components/WelcomeScreen.d.ts +0 -8
  76. package/types/components/WelcomeScreenDecor.d.ts +0 -6
  77. package/types/components/context/tunnels.d.ts +0 -16
  78. package/types/components/hoc/withUpstreamOverride.d.ts +0 -10
  79. package/types/components/mainMenu/DefaultItems.d.ts +0 -44
  80. package/types/components/mainMenu/MainMenu.d.ts +0 -63
  81. package/types/element/iframe.d.ts +0 -167
  82. package/types/excalidraw-app/CustomStats.d.ts +0 -9
  83. package/types/excalidraw-app/app_constants.d.ts +0 -32
  84. package/types/excalidraw-app/collab/Collab.d.ts +0 -163
  85. package/types/excalidraw-app/collab/Portal.d.ts +0 -28
  86. package/types/excalidraw-app/collab/RoomDialog.d.ts +0 -13
  87. package/types/excalidraw-app/collab/reconciliation.d.ts +0 -10
  88. package/types/excalidraw-app/components/ExportToExcalidrawPlus.d.ts +0 -9
  89. package/types/excalidraw-app/components/LanguageList.d.ts +0 -4
  90. package/types/excalidraw-app/components/icons.d.ts +0 -1
  91. package/types/excalidraw-app/data/FileManager.d.ts +0 -66
  92. package/types/excalidraw-app/data/LocalData.d.ts +0 -32
  93. package/types/excalidraw-app/data/Locker.d.ts +0 -8
  94. package/types/excalidraw-app/data/firebase.d.ts +0 -25
  95. package/types/excalidraw-app/data/index.d.ts +0 -190
  96. package/types/excalidraw-app/data/localStorage.d.ts +0 -116
  97. package/types/excalidraw-app/data/tabSync.d.ts +0 -9
  98. package/types/excalidraw-app/index.d.ts +0 -26
  99. package/types/packages/common.webpack.dev.config.d.ts +0 -72
  100. package/types/packages/common.webpack.prod.config.d.ts +0 -84
  101. package/types/packages/excalidraw/example/sidebar/Sidebar.d.ts +0 -5
@@ -1,4 +1,4 @@
1
- import { ExcalidrawElement } from "../element/types";
1
+ import { ExcalidrawElement, ExcalidrawFrameElement } from "../element/types";
2
2
  import { AppClassProperties, AppState } from "../types";
3
3
  export declare const actionGroup: {
4
4
  name: "group";
@@ -10,7 +10,151 @@ export declare const actionGroup: {
10
10
  elements: readonly ExcalidrawElement[];
11
11
  commitToHistory: false;
12
12
  } | {
13
- appState: AppState;
13
+ appState: {
14
+ selectedElementIds: Readonly<{
15
+ [id: string]: true;
16
+ }>;
17
+ selectedGroupIds: {
18
+ [groupId: string]: boolean;
19
+ };
20
+ editingGroupId: string | null;
21
+ contextMenu: {
22
+ items: import("../components/ContextMenu").ContextMenuItems;
23
+ top: number;
24
+ left: number;
25
+ } | null;
26
+ showWelcomeScreen: boolean;
27
+ isLoading: boolean;
28
+ errorMessage: import("react").ReactNode;
29
+ activeEmbeddable: {
30
+ element: import("../element/types").NonDeletedExcalidrawElement;
31
+ state: "active" | "hover";
32
+ } | null;
33
+ draggingElement: import("../element/types").NonDeletedExcalidrawElement | null;
34
+ resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
35
+ multiElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawLinearElement> | null;
36
+ selectionElement: import("../element/types").NonDeletedExcalidrawElement | null;
37
+ isBindingEnabled: boolean;
38
+ startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
39
+ suggestedBindings: import("../element/binding").SuggestedBinding[];
40
+ frameToHighlight: import("../element/types").NonDeleted<ExcalidrawFrameElement> | null;
41
+ frameRendering: {
42
+ enabled: boolean;
43
+ name: boolean;
44
+ outline: boolean;
45
+ clip: boolean;
46
+ };
47
+ editingFrame: string | null;
48
+ elementsToHighlight: import("../element/types").NonDeleted<ExcalidrawElement>[] | null;
49
+ editingElement: import("../element/types").NonDeletedExcalidrawElement | null;
50
+ editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
51
+ activeTool: {
52
+ lastActiveTool: import("../types").LastActiveTool;
53
+ locked: boolean;
54
+ } & ({
55
+ type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "embeddable" | "image" | "frame" | "freedraw" | "eraser" | "hand";
56
+ customType: null;
57
+ } | {
58
+ type: "custom";
59
+ customType: string;
60
+ });
61
+ penMode: boolean;
62
+ penDetected: boolean;
63
+ exportBackground: boolean;
64
+ exportEmbedScene: boolean;
65
+ exportWithDarkMode: boolean;
66
+ exportScale: number;
67
+ currentItemStrokeColor: string;
68
+ currentItemBackgroundColor: string;
69
+ currentItemFillStyle: import("../element/types").FillStyle;
70
+ currentItemStrokeWidth: number;
71
+ currentItemStrokeStyle: import("../element/types").StrokeStyle;
72
+ currentItemRoughness: number;
73
+ currentItemOpacity: number;
74
+ currentItemFontFamily: number;
75
+ currentItemFontSize: number;
76
+ currentItemTextAlign: string;
77
+ currentItemStartArrowhead: import("../element/types").Arrowhead | null;
78
+ currentItemEndArrowhead: import("../element/types").Arrowhead | null;
79
+ currentItemRoundness: import("../element/types").StrokeRoundness;
80
+ viewBackgroundColor: string;
81
+ scrollX: number;
82
+ scrollY: number;
83
+ cursorButton: "up" | "down";
84
+ scrolledOutside: boolean;
85
+ name: string;
86
+ isResizing: boolean;
87
+ isRotating: boolean;
88
+ zoom: Readonly<{
89
+ value: import("../types").NormalizedZoomValue;
90
+ }>;
91
+ openMenu: "canvas" | "shape" | null;
92
+ openPopup: "canvasBackground" | "elementBackground" | "elementStroke" | null;
93
+ openSidebar: {
94
+ name: string;
95
+ tab?: string | undefined;
96
+ } | null;
97
+ openDialog: "imageExport" | "help" | "jsonExport" | null;
98
+ defaultSidebarDockedPreference: boolean;
99
+ lastPointerDownWith: import("../element/types").PointerType;
100
+ previousSelectedElementIds: {
101
+ [id: string]: true;
102
+ };
103
+ selectedElementsAreBeingDragged: boolean;
104
+ shouldCacheIgnoreZoom: boolean;
105
+ toast: {
106
+ message: string;
107
+ closable?: boolean | undefined;
108
+ duration?: number | undefined;
109
+ } | null;
110
+ zenModeEnabled: boolean;
111
+ theme: import("../element/types").Theme;
112
+ gridSize: number | null;
113
+ previousGridSize: number | null;
114
+ viewModeEnabled: boolean;
115
+ width: number;
116
+ height: number;
117
+ offsetTop: number;
118
+ offsetLeft: number;
119
+ fileHandle: import("browser-fs-access").FileSystemHandle | null;
120
+ collaborators: Map<string, import("../types").Collaborator>;
121
+ showStats: boolean;
122
+ currentChartType: import("../element/types").ChartType;
123
+ pasteDialog: {
124
+ shown: false;
125
+ data: null;
126
+ } | {
127
+ shown: true;
128
+ data: import("../charts").Spreadsheet;
129
+ };
130
+ pendingImageElementId: string | null;
131
+ showHyperlinkPopup: false | "editor" | "info";
132
+ linkOpacity: number;
133
+ trayModeEnabled: boolean;
134
+ colorPalette?: {
135
+ canvasBackground: import("../colors").ColorPaletteCustom;
136
+ elementBackground: import("../colors").ColorPaletteCustom;
137
+ elementStroke: import("../colors").ColorPaletteCustom;
138
+ topPicks: {
139
+ canvasBackground: [string, string, string, string, string];
140
+ elementStroke: [string, string, string, string, string];
141
+ elementBackground: [string, string, string, string, string];
142
+ };
143
+ } | undefined;
144
+ allowWheelZoom?: boolean | undefined;
145
+ allowPinchZoom?: boolean | undefined;
146
+ pinnedScripts?: string[] | undefined;
147
+ customPens?: any[] | undefined;
148
+ currentStrokeOptions?: any;
149
+ resetCustomPen?: any;
150
+ gridColor: {
151
+ Bold: string;
152
+ Regular: string;
153
+ };
154
+ dynamicStyle: string;
155
+ invertBindingBehaviour: boolean;
156
+ selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
157
+ };
14
158
  elements: ExcalidrawElement[];
15
159
  commitToHistory: true;
16
160
  };
@@ -31,7 +175,151 @@ export declare const actionUngroup: {
31
175
  elements: readonly ExcalidrawElement[];
32
176
  commitToHistory: false;
33
177
  } | {
34
- appState: AppState;
178
+ appState: {
179
+ selectedElementIds: Readonly<{
180
+ [id: string]: true;
181
+ }>;
182
+ selectedGroupIds: {
183
+ [groupId: string]: boolean;
184
+ };
185
+ editingGroupId: string | null;
186
+ contextMenu: {
187
+ items: import("../components/ContextMenu").ContextMenuItems;
188
+ top: number;
189
+ left: number;
190
+ } | null;
191
+ showWelcomeScreen: boolean;
192
+ isLoading: boolean;
193
+ errorMessage: import("react").ReactNode;
194
+ activeEmbeddable: {
195
+ element: import("../element/types").NonDeletedExcalidrawElement;
196
+ state: "active" | "hover";
197
+ } | null;
198
+ draggingElement: import("../element/types").NonDeletedExcalidrawElement | null;
199
+ resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
200
+ multiElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawLinearElement> | null;
201
+ selectionElement: import("../element/types").NonDeletedExcalidrawElement | null;
202
+ isBindingEnabled: boolean;
203
+ startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
204
+ suggestedBindings: import("../element/binding").SuggestedBinding[];
205
+ frameToHighlight: import("../element/types").NonDeleted<ExcalidrawFrameElement> | null;
206
+ frameRendering: {
207
+ enabled: boolean;
208
+ name: boolean;
209
+ outline: boolean;
210
+ clip: boolean;
211
+ };
212
+ editingFrame: string | null;
213
+ elementsToHighlight: import("../element/types").NonDeleted<ExcalidrawElement>[] | null;
214
+ editingElement: import("../element/types").NonDeletedExcalidrawElement | null;
215
+ editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
216
+ activeTool: {
217
+ lastActiveTool: import("../types").LastActiveTool;
218
+ locked: boolean;
219
+ } & ({
220
+ type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "embeddable" | "image" | "frame" | "freedraw" | "eraser" | "hand";
221
+ customType: null;
222
+ } | {
223
+ type: "custom";
224
+ customType: string;
225
+ });
226
+ penMode: boolean;
227
+ penDetected: boolean;
228
+ exportBackground: boolean;
229
+ exportEmbedScene: boolean;
230
+ exportWithDarkMode: boolean;
231
+ exportScale: number;
232
+ currentItemStrokeColor: string;
233
+ currentItemBackgroundColor: string;
234
+ currentItemFillStyle: import("../element/types").FillStyle;
235
+ currentItemStrokeWidth: number;
236
+ currentItemStrokeStyle: import("../element/types").StrokeStyle;
237
+ currentItemRoughness: number;
238
+ currentItemOpacity: number;
239
+ currentItemFontFamily: number;
240
+ currentItemFontSize: number;
241
+ currentItemTextAlign: string;
242
+ currentItemStartArrowhead: import("../element/types").Arrowhead | null;
243
+ currentItemEndArrowhead: import("../element/types").Arrowhead | null;
244
+ currentItemRoundness: import("../element/types").StrokeRoundness;
245
+ viewBackgroundColor: string;
246
+ scrollX: number;
247
+ scrollY: number;
248
+ cursorButton: "up" | "down";
249
+ scrolledOutside: boolean;
250
+ name: string;
251
+ isResizing: boolean;
252
+ isRotating: boolean;
253
+ zoom: Readonly<{
254
+ value: import("../types").NormalizedZoomValue;
255
+ }>;
256
+ openMenu: "canvas" | "shape" | null;
257
+ openPopup: "canvasBackground" | "elementBackground" | "elementStroke" | null;
258
+ openSidebar: {
259
+ name: string;
260
+ tab?: string | undefined;
261
+ } | null;
262
+ openDialog: "imageExport" | "help" | "jsonExport" | null;
263
+ defaultSidebarDockedPreference: boolean;
264
+ lastPointerDownWith: import("../element/types").PointerType;
265
+ previousSelectedElementIds: {
266
+ [id: string]: true;
267
+ };
268
+ selectedElementsAreBeingDragged: boolean;
269
+ shouldCacheIgnoreZoom: boolean;
270
+ toast: {
271
+ message: string;
272
+ closable?: boolean | undefined;
273
+ duration?: number | undefined;
274
+ } | null;
275
+ zenModeEnabled: boolean;
276
+ theme: import("../element/types").Theme;
277
+ gridSize: number | null;
278
+ previousGridSize: number | null;
279
+ viewModeEnabled: boolean;
280
+ width: number;
281
+ height: number;
282
+ offsetTop: number;
283
+ offsetLeft: number;
284
+ fileHandle: import("browser-fs-access").FileSystemHandle | null;
285
+ collaborators: Map<string, import("../types").Collaborator>;
286
+ showStats: boolean;
287
+ currentChartType: import("../element/types").ChartType;
288
+ pasteDialog: {
289
+ shown: false;
290
+ data: null;
291
+ } | {
292
+ shown: true;
293
+ data: import("../charts").Spreadsheet;
294
+ };
295
+ pendingImageElementId: string | null;
296
+ showHyperlinkPopup: false | "editor" | "info";
297
+ linkOpacity: number;
298
+ trayModeEnabled: boolean;
299
+ colorPalette?: {
300
+ canvasBackground: import("../colors").ColorPaletteCustom;
301
+ elementBackground: import("../colors").ColorPaletteCustom;
302
+ elementStroke: import("../colors").ColorPaletteCustom;
303
+ topPicks: {
304
+ canvasBackground: [string, string, string, string, string];
305
+ elementStroke: [string, string, string, string, string];
306
+ elementBackground: [string, string, string, string, string];
307
+ };
308
+ } | undefined;
309
+ allowWheelZoom?: boolean | undefined;
310
+ allowPinchZoom?: boolean | undefined;
311
+ pinnedScripts?: string[] | undefined;
312
+ customPens?: any[] | undefined;
313
+ currentStrokeOptions?: any;
314
+ resetCustomPen?: any;
315
+ gridColor: {
316
+ Bold: string;
317
+ Regular: string;
318
+ };
319
+ dynamicStyle: string;
320
+ invertBindingBehaviour: boolean;
321
+ selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
322
+ };
35
323
  elements: ExcalidrawElement[];
36
324
  commitToHistory: true;
37
325
  };
@@ -144,7 +144,10 @@ export declare const actionToggleLinearEditor: {
144
144
  customPens?: any[] | undefined;
145
145
  currentStrokeOptions?: any;
146
146
  resetCustomPen?: any;
147
- gridColor: string;
147
+ gridColor: {
148
+ Bold: string;
149
+ Regular: string;
150
+ };
148
151
  dynamicStyle: string;
149
152
  invertBindingBehaviour: boolean;
150
153
  selectedLinearElement: LinearElementEditor | null;
@@ -141,7 +141,10 @@ export declare const actionToggleCanvasMenu: {
141
141
  customPens?: any[] | undefined;
142
142
  currentStrokeOptions?: any;
143
143
  resetCustomPen?: any;
144
- gridColor: string;
144
+ gridColor: {
145
+ Bold: string;
146
+ Regular: string;
147
+ };
145
148
  dynamicStyle: string;
146
149
  invertBindingBehaviour: boolean;
147
150
  selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
@@ -295,7 +298,10 @@ export declare const actionToggleEditMenu: {
295
298
  customPens?: any[] | undefined;
296
299
  currentStrokeOptions?: any;
297
300
  resetCustomPen?: any;
298
- gridColor: string;
301
+ gridColor: {
302
+ Bold: string;
303
+ Regular: string;
304
+ };
299
305
  dynamicStyle: string;
300
306
  invertBindingBehaviour: boolean;
301
307
  selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
@@ -465,7 +471,10 @@ export declare const actionShortcuts: {
465
471
  customPens?: any[] | undefined;
466
472
  currentStrokeOptions?: any;
467
473
  resetCustomPen?: any;
468
- gridColor: string;
474
+ gridColor: {
475
+ Bold: string;
476
+ Regular: string;
477
+ };
469
478
  dynamicStyle: string;
470
479
  invertBindingBehaviour: boolean;
471
480
  selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
@@ -158,7 +158,10 @@ export declare const actionChangeFillStyle: {
158
158
  customPens?: any[] | undefined;
159
159
  currentStrokeOptions?: any;
160
160
  resetCustomPen?: any;
161
- gridColor: string;
161
+ gridColor: {
162
+ Bold: string;
163
+ Regular: string;
164
+ };
162
165
  dynamicStyle: string;
163
166
  invertBindingBehaviour: boolean;
164
167
  selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
@@ -311,7 +314,10 @@ export declare const actionChangeStrokeWidth: {
311
314
  customPens?: any[] | undefined;
312
315
  currentStrokeOptions?: any;
313
316
  resetCustomPen?: any;
314
- gridColor: string;
317
+ gridColor: {
318
+ Bold: string;
319
+ Regular: string;
320
+ };
315
321
  dynamicStyle: string;
316
322
  invertBindingBehaviour: boolean;
317
323
  selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
@@ -464,7 +470,10 @@ export declare const actionChangeSloppiness: {
464
470
  customPens?: any[] | undefined;
465
471
  currentStrokeOptions?: any;
466
472
  resetCustomPen?: any;
467
- gridColor: string;
473
+ gridColor: {
474
+ Bold: string;
475
+ Regular: string;
476
+ };
468
477
  dynamicStyle: string;
469
478
  invertBindingBehaviour: boolean;
470
479
  selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
@@ -617,7 +626,10 @@ export declare const actionChangeStrokeStyle: {
617
626
  customPens?: any[] | undefined;
618
627
  currentStrokeOptions?: any;
619
628
  resetCustomPen?: any;
620
- gridColor: string;
629
+ gridColor: {
630
+ Bold: string;
631
+ Regular: string;
632
+ };
621
633
  dynamicStyle: string;
622
634
  invertBindingBehaviour: boolean;
623
635
  selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
@@ -770,7 +782,10 @@ export declare const actionChangeOpacity: {
770
782
  customPens?: any[] | undefined;
771
783
  currentStrokeOptions?: any;
772
784
  resetCustomPen?: any;
773
- gridColor: string;
785
+ gridColor: {
786
+ Bold: string;
787
+ Regular: string;
788
+ };
774
789
  dynamicStyle: string;
775
790
  invertBindingBehaviour: boolean;
776
791
  selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
@@ -923,7 +938,10 @@ export declare const actionChangeFontSize: {
923
938
  customPens?: any[] | undefined;
924
939
  currentStrokeOptions?: any;
925
940
  resetCustomPen?: any;
926
- gridColor: string;
941
+ gridColor: {
942
+ Bold: string;
943
+ Regular: string;
944
+ };
927
945
  dynamicStyle: string;
928
946
  invertBindingBehaviour: boolean;
929
947
  selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
@@ -1076,7 +1094,10 @@ export declare const actionDecreaseFontSize: {
1076
1094
  customPens?: any[] | undefined;
1077
1095
  currentStrokeOptions?: any;
1078
1096
  resetCustomPen?: any;
1079
- gridColor: string;
1097
+ gridColor: {
1098
+ Bold: string;
1099
+ Regular: string;
1100
+ };
1080
1101
  dynamicStyle: string;
1081
1102
  invertBindingBehaviour: boolean;
1082
1103
  selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
@@ -1229,7 +1250,10 @@ export declare const actionIncreaseFontSize: {
1229
1250
  customPens?: any[] | undefined;
1230
1251
  currentStrokeOptions?: any;
1231
1252
  resetCustomPen?: any;
1232
- gridColor: string;
1253
+ gridColor: {
1254
+ Bold: string;
1255
+ Regular: string;
1256
+ };
1233
1257
  dynamicStyle: string;
1234
1258
  invertBindingBehaviour: boolean;
1235
1259
  selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
@@ -1382,7 +1406,10 @@ export declare const actionChangeFontFamily: {
1382
1406
  customPens?: any[] | undefined;
1383
1407
  currentStrokeOptions?: any;
1384
1408
  resetCustomPen?: any;
1385
- gridColor: string;
1409
+ gridColor: {
1410
+ Bold: string;
1411
+ Regular: string;
1412
+ };
1386
1413
  dynamicStyle: string;
1387
1414
  invertBindingBehaviour: boolean;
1388
1415
  selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
@@ -1535,7 +1562,10 @@ export declare const actionChangeTextAlign: {
1535
1562
  customPens?: any[] | undefined;
1536
1563
  currentStrokeOptions?: any;
1537
1564
  resetCustomPen?: any;
1538
- gridColor: string;
1565
+ gridColor: {
1566
+ Bold: string;
1567
+ Regular: string;
1568
+ };
1539
1569
  dynamicStyle: string;
1540
1570
  invertBindingBehaviour: boolean;
1541
1571
  selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
@@ -1690,7 +1720,10 @@ export declare const actionChangeVerticalAlign: {
1690
1720
  customPens?: any[] | undefined;
1691
1721
  currentStrokeOptions?: any;
1692
1722
  resetCustomPen?: any;
1693
- gridColor: string;
1723
+ gridColor: {
1724
+ Bold: string;
1725
+ Regular: string;
1726
+ };
1694
1727
  dynamicStyle: string;
1695
1728
  invertBindingBehaviour: boolean;
1696
1729
  selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
@@ -1843,7 +1876,10 @@ export declare const actionChangeRoundness: {
1843
1876
  customPens?: any[] | undefined;
1844
1877
  currentStrokeOptions?: any;
1845
1878
  resetCustomPen?: any;
1846
- gridColor: string;
1879
+ gridColor: {
1880
+ Bold: string;
1881
+ Regular: string;
1882
+ };
1847
1883
  dynamicStyle: string;
1848
1884
  invertBindingBehaviour: boolean;
1849
1885
  selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
@@ -1999,7 +2035,10 @@ export declare const actionChangeArrowhead: {
1999
2035
  customPens?: any[] | undefined;
2000
2036
  currentStrokeOptions?: any;
2001
2037
  resetCustomPen?: any;
2002
- gridColor: string;
2038
+ gridColor: {
2039
+ Bold: string;
2040
+ Regular: string;
2041
+ };
2003
2042
  dynamicStyle: string;
2004
2043
  invertBindingBehaviour: boolean;
2005
2044
  selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
@@ -1,11 +1,156 @@
1
1
  import { ExcalidrawElement } from "../element/types";
2
+ import { LinearElementEditor } from "../element/linearElementEditor";
2
3
  export declare const actionSelectAll: {
3
4
  name: "selectAll";
4
5
  trackEvent: {
5
6
  category: "canvas";
6
7
  };
7
8
  perform: (elements: readonly ExcalidrawElement[], appState: Readonly<import("../types").AppState>, value: any, app: import("../types").AppClassProperties) => false | {
8
- appState: import("../types").AppState;
9
+ appState: {
10
+ selectedLinearElement: LinearElementEditor | null;
11
+ selectedElementIds: Readonly<{
12
+ [id: string]: true;
13
+ }>;
14
+ selectedGroupIds: {
15
+ [groupId: string]: boolean;
16
+ };
17
+ editingGroupId: string | null;
18
+ contextMenu: {
19
+ items: import("../components/ContextMenu").ContextMenuItems;
20
+ top: number;
21
+ left: number;
22
+ } | null;
23
+ showWelcomeScreen: boolean;
24
+ isLoading: boolean;
25
+ errorMessage: import("react").ReactNode;
26
+ activeEmbeddable: {
27
+ element: import("../element/types").NonDeletedExcalidrawElement;
28
+ state: "active" | "hover";
29
+ } | null;
30
+ draggingElement: import("../element/types").NonDeletedExcalidrawElement | null;
31
+ resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
32
+ multiElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawLinearElement> | null;
33
+ selectionElement: import("../element/types").NonDeletedExcalidrawElement | null;
34
+ isBindingEnabled: boolean;
35
+ startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
36
+ suggestedBindings: import("../element/binding").SuggestedBinding[];
37
+ frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameElement> | null;
38
+ frameRendering: {
39
+ enabled: boolean;
40
+ name: boolean;
41
+ outline: boolean;
42
+ clip: boolean;
43
+ };
44
+ editingFrame: string | null;
45
+ elementsToHighlight: import("../element/types").NonDeleted<ExcalidrawElement>[] | null;
46
+ editingElement: import("../element/types").NonDeletedExcalidrawElement | null;
47
+ editingLinearElement: LinearElementEditor | null;
48
+ activeTool: {
49
+ lastActiveTool: import("../types").LastActiveTool;
50
+ locked: boolean;
51
+ } & ({
52
+ type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "embeddable" | "image" | "frame" | "freedraw" | "eraser" | "hand";
53
+ customType: null;
54
+ } | {
55
+ type: "custom";
56
+ customType: string;
57
+ });
58
+ penMode: boolean;
59
+ penDetected: boolean;
60
+ exportBackground: boolean;
61
+ exportEmbedScene: boolean;
62
+ exportWithDarkMode: boolean;
63
+ exportScale: number;
64
+ currentItemStrokeColor: string;
65
+ currentItemBackgroundColor: string;
66
+ currentItemFillStyle: import("../element/types").FillStyle;
67
+ currentItemStrokeWidth: number;
68
+ currentItemStrokeStyle: import("../element/types").StrokeStyle;
69
+ currentItemRoughness: number;
70
+ currentItemOpacity: number;
71
+ currentItemFontFamily: number;
72
+ currentItemFontSize: number;
73
+ currentItemTextAlign: string;
74
+ currentItemStartArrowhead: import("../element/types").Arrowhead | null;
75
+ currentItemEndArrowhead: import("../element/types").Arrowhead | null;
76
+ currentItemRoundness: import("../element/types").StrokeRoundness;
77
+ viewBackgroundColor: string;
78
+ scrollX: number;
79
+ scrollY: number;
80
+ cursorButton: "up" | "down";
81
+ scrolledOutside: boolean;
82
+ name: string;
83
+ isResizing: boolean;
84
+ isRotating: boolean;
85
+ zoom: Readonly<{
86
+ value: import("../types").NormalizedZoomValue;
87
+ }>;
88
+ openMenu: "canvas" | "shape" | null;
89
+ openPopup: "canvasBackground" | "elementBackground" | "elementStroke" | null;
90
+ openSidebar: {
91
+ name: string;
92
+ tab?: string | undefined;
93
+ } | null;
94
+ openDialog: "imageExport" | "help" | "jsonExport" | null;
95
+ defaultSidebarDockedPreference: boolean;
96
+ lastPointerDownWith: import("../element/types").PointerType;
97
+ previousSelectedElementIds: {
98
+ [id: string]: true;
99
+ };
100
+ selectedElementsAreBeingDragged: boolean;
101
+ shouldCacheIgnoreZoom: boolean;
102
+ toast: {
103
+ message: string;
104
+ closable?: boolean | undefined;
105
+ duration?: number | undefined;
106
+ } | null;
107
+ zenModeEnabled: boolean;
108
+ theme: import("../element/types").Theme;
109
+ gridSize: number | null;
110
+ previousGridSize: number | null;
111
+ viewModeEnabled: boolean;
112
+ width: number;
113
+ height: number;
114
+ offsetTop: number;
115
+ offsetLeft: number;
116
+ fileHandle: import("browser-fs-access").FileSystemHandle | null;
117
+ collaborators: Map<string, import("../types").Collaborator>;
118
+ showStats: boolean;
119
+ currentChartType: import("../element/types").ChartType;
120
+ pasteDialog: {
121
+ shown: false;
122
+ data: null;
123
+ } | {
124
+ shown: true;
125
+ data: import("../charts").Spreadsheet;
126
+ };
127
+ pendingImageElementId: string | null;
128
+ showHyperlinkPopup: false | "editor" | "info";
129
+ linkOpacity: number;
130
+ trayModeEnabled: boolean;
131
+ colorPalette?: {
132
+ canvasBackground: import("../colors").ColorPaletteCustom;
133
+ elementBackground: import("../colors").ColorPaletteCustom;
134
+ elementStroke: import("../colors").ColorPaletteCustom;
135
+ topPicks: {
136
+ canvasBackground: [string, string, string, string, string];
137
+ elementStroke: [string, string, string, string, string];
138
+ elementBackground: [string, string, string, string, string];
139
+ };
140
+ } | undefined;
141
+ allowWheelZoom?: boolean | undefined;
142
+ allowPinchZoom?: boolean | undefined;
143
+ pinnedScripts?: string[] | undefined;
144
+ customPens?: any[] | undefined;
145
+ currentStrokeOptions?: any;
146
+ resetCustomPen?: any;
147
+ gridColor: {
148
+ Bold: string;
149
+ Regular: string;
150
+ };
151
+ dynamicStyle: string;
152
+ invertBindingBehaviour: boolean;
153
+ };
9
154
  commitToHistory: true;
10
155
  };
11
156
  contextItemLabel: string;