@excalidraw/excalidraw 0.12.0-e885057 → 0.12.0-f1fd295
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.
- package/CHANGELOG.md +8 -0
- package/README.md +24 -2
- package/dist/excalidraw-assets/vendor-a9598c709179a54ea2cd.js +2 -0
- package/dist/excalidraw-assets/vendor-a9598c709179a54ea2cd.js.LICENSE.txt +14 -0
- package/dist/excalidraw.development.js +21 -21
- package/dist/excalidraw.production.min.js +1 -1
- package/dist/excalidraw.production.min.js.LICENSE.txt +2 -0
- package/package.json +5 -7
- package/types/actions/actionAddToLibrary.d.ts +13 -3
- package/types/actions/actionBoundText.d.ts +5 -1
- package/types/actions/actionCanvas.d.ts +40 -8
- package/types/actions/actionClipboard.d.ts +25 -5
- package/types/actions/actionDeleteSelected.d.ts +15 -3
- package/types/actions/actionExport.d.ts +43 -9
- package/types/actions/actionFinalize.d.ts +10 -2
- package/types/actions/actionMenu.d.ts +15 -3
- package/types/actions/actionProperties.d.ts +65 -13
- package/types/actions/actionSelectAll.d.ts +2 -1
- package/types/actions/actionStyles.d.ts +3 -1
- package/types/actions/actionToggleGridMode.d.ts +5 -1
- package/types/actions/actionToggleStats.d.ts +5 -1
- package/types/actions/actionToggleViewMode.d.ts +5 -1
- package/types/actions/actionToggleZenMode.d.ts +5 -1
- package/types/components/App.d.ts +5 -3
- package/types/components/LayerUI.d.ts +1 -4
- package/types/components/MobileMenu.d.ts +1 -2
- package/types/components/Toast.d.ts +2 -2
- package/types/element/Hyperlink.d.ts +5 -1
- package/types/element/linearElementEditor.d.ts +5 -1
- package/types/packages/excalidraw/dist/excalidraw-assets/{vendor-52b1f3361986b6c6a4fe.d.ts → vendor-a9598c709179a54ea2cd.d.ts} +0 -0
- package/types/renderer/renderScene.d.ts +7 -5
- package/types/types.d.ts +6 -2
- package/dist/excalidraw-assets/vendor-52b1f3361986b6c6a4fe.js +0 -2
- package/dist/excalidraw-assets/vendor-52b1f3361986b6c6a4fe.js.LICENSE.txt +0 -12
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@excalidraw/excalidraw",
|
|
3
|
-
"version": "0.12.0-
|
|
3
|
+
"version": "0.12.0-f1fd295",
|
|
4
4
|
"main": "main.js",
|
|
5
5
|
"types": "types/packages/excalidraw/index.d.ts",
|
|
6
6
|
"files": [
|
|
@@ -44,20 +44,21 @@
|
|
|
44
44
|
"react-dom": "^17.0.2"
|
|
45
45
|
},
|
|
46
46
|
"devDependencies": {
|
|
47
|
-
"@babel/core": "7.
|
|
47
|
+
"@babel/core": "7.18.9",
|
|
48
48
|
"@babel/plugin-transform-arrow-functions": "7.16.7",
|
|
49
49
|
"@babel/plugin-transform-async-to-generator": "7.16.0",
|
|
50
50
|
"@babel/plugin-transform-runtime": "7.17.10",
|
|
51
51
|
"@babel/plugin-transform-typescript": "7.16.1",
|
|
52
52
|
"@babel/preset-env": "7.18.6",
|
|
53
53
|
"@babel/preset-react": "7.16.7",
|
|
54
|
-
"@babel/preset-typescript": "7.
|
|
54
|
+
"@babel/preset-typescript": "7.18.6",
|
|
55
55
|
"autoprefixer": "10.4.7",
|
|
56
56
|
"babel-loader": "8.2.5",
|
|
57
57
|
"babel-plugin-transform-class-properties": "6.24.1",
|
|
58
58
|
"cross-env": "7.0.3",
|
|
59
59
|
"css-loader": "6.7.1",
|
|
60
|
-
"
|
|
60
|
+
"dotenv": "10.0.0",
|
|
61
|
+
"mini-css-extract-plugin": "2.6.1",
|
|
61
62
|
"postcss-loader": "6.2.1",
|
|
62
63
|
"sass-loader": "12.4.0",
|
|
63
64
|
"terser-webpack-plugin": "5.3.1",
|
|
@@ -79,8 +80,5 @@
|
|
|
79
80
|
"start": "webpack serve --config webpack.dev-server.config.js",
|
|
80
81
|
"install:deps": "yarn install --frozen-lockfile && yarn --cwd ../../../",
|
|
81
82
|
"build:example": "EXAMPLE=true webpack --config webpack.dev-server.config.js"
|
|
82
|
-
},
|
|
83
|
-
"dependencies": {
|
|
84
|
-
"dotenv": "10.0.0"
|
|
85
83
|
}
|
|
86
84
|
}
|
|
@@ -6,7 +6,9 @@ export declare const actionAddToLibrary: {
|
|
|
6
6
|
perform: (elements: readonly import("../element/types").ExcalidrawElement[], appState: Readonly<import("../types").AppState>, _: any, app: import("../types").AppClassProperties) => Promise<{
|
|
7
7
|
commitToHistory: boolean;
|
|
8
8
|
appState: {
|
|
9
|
-
|
|
9
|
+
toast: {
|
|
10
|
+
message: string;
|
|
11
|
+
};
|
|
10
12
|
isLoading: boolean;
|
|
11
13
|
errorMessage: string | null;
|
|
12
14
|
draggingElement: import("../element/types").NonDeletedExcalidrawElement | null;
|
|
@@ -166,7 +168,11 @@ export declare const actionAddToLibrary: {
|
|
|
166
168
|
};
|
|
167
169
|
shouldCacheIgnoreZoom: boolean;
|
|
168
170
|
showHelpDialog: boolean;
|
|
169
|
-
|
|
171
|
+
toast: {
|
|
172
|
+
message: string;
|
|
173
|
+
closable?: boolean | undefined;
|
|
174
|
+
duration?: number | undefined;
|
|
175
|
+
} | null;
|
|
170
176
|
zenModeEnabled: boolean;
|
|
171
177
|
theme: string;
|
|
172
178
|
gridSize: number | null;
|
|
@@ -262,7 +268,11 @@ export declare const actionAddToLibrary: {
|
|
|
262
268
|
};
|
|
263
269
|
shouldCacheIgnoreZoom: boolean;
|
|
264
270
|
showHelpDialog: boolean;
|
|
265
|
-
|
|
271
|
+
toast: {
|
|
272
|
+
message: string;
|
|
273
|
+
closable?: boolean | undefined;
|
|
274
|
+
duration?: number | undefined;
|
|
275
|
+
} | null;
|
|
266
276
|
zenModeEnabled: boolean;
|
|
267
277
|
theme: string;
|
|
268
278
|
gridSize: number | null;
|
|
@@ -87,7 +87,11 @@ export declare const actionBindText: {
|
|
|
87
87
|
};
|
|
88
88
|
shouldCacheIgnoreZoom: boolean;
|
|
89
89
|
showHelpDialog: boolean;
|
|
90
|
-
|
|
90
|
+
toast: {
|
|
91
|
+
message: string;
|
|
92
|
+
closable?: boolean | undefined;
|
|
93
|
+
duration?: number | undefined;
|
|
94
|
+
} | null;
|
|
91
95
|
zenModeEnabled: boolean;
|
|
92
96
|
theme: string;
|
|
93
97
|
gridSize: number | null;
|
|
@@ -95,7 +95,11 @@ export declare const actionClearCanvas: {
|
|
|
95
95
|
[id: string]: boolean;
|
|
96
96
|
};
|
|
97
97
|
showHelpDialog: boolean;
|
|
98
|
-
|
|
98
|
+
toast: {
|
|
99
|
+
message: string;
|
|
100
|
+
closable?: boolean | undefined;
|
|
101
|
+
duration?: number | undefined;
|
|
102
|
+
} | null;
|
|
99
103
|
zenModeEnabled: boolean;
|
|
100
104
|
viewModeEnabled: boolean;
|
|
101
105
|
selectedGroupIds: {
|
|
@@ -187,7 +191,11 @@ export declare const actionZoomIn: {
|
|
|
187
191
|
};
|
|
188
192
|
shouldCacheIgnoreZoom: boolean;
|
|
189
193
|
showHelpDialog: boolean;
|
|
190
|
-
|
|
194
|
+
toast: {
|
|
195
|
+
message: string;
|
|
196
|
+
closable?: boolean | undefined;
|
|
197
|
+
duration?: number | undefined;
|
|
198
|
+
} | null;
|
|
191
199
|
zenModeEnabled: boolean;
|
|
192
200
|
theme: string;
|
|
193
201
|
gridSize: number | null;
|
|
@@ -294,7 +302,11 @@ export declare const actionZoomOut: {
|
|
|
294
302
|
};
|
|
295
303
|
shouldCacheIgnoreZoom: boolean;
|
|
296
304
|
showHelpDialog: boolean;
|
|
297
|
-
|
|
305
|
+
toast: {
|
|
306
|
+
message: string;
|
|
307
|
+
closable?: boolean | undefined;
|
|
308
|
+
duration?: number | undefined;
|
|
309
|
+
} | null;
|
|
298
310
|
zenModeEnabled: boolean;
|
|
299
311
|
theme: string;
|
|
300
312
|
gridSize: number | null;
|
|
@@ -401,7 +413,11 @@ export declare const actionResetZoom: {
|
|
|
401
413
|
};
|
|
402
414
|
shouldCacheIgnoreZoom: boolean;
|
|
403
415
|
showHelpDialog: boolean;
|
|
404
|
-
|
|
416
|
+
toast: {
|
|
417
|
+
message: string;
|
|
418
|
+
closable?: boolean | undefined;
|
|
419
|
+
duration?: number | undefined;
|
|
420
|
+
} | null;
|
|
405
421
|
zenModeEnabled: boolean;
|
|
406
422
|
theme: string;
|
|
407
423
|
gridSize: number | null;
|
|
@@ -508,7 +524,11 @@ export declare const actionZoomToSelected: {
|
|
|
508
524
|
};
|
|
509
525
|
shouldCacheIgnoreZoom: boolean;
|
|
510
526
|
showHelpDialog: boolean;
|
|
511
|
-
|
|
527
|
+
toast: {
|
|
528
|
+
message: string;
|
|
529
|
+
closable?: boolean | undefined;
|
|
530
|
+
duration?: number | undefined;
|
|
531
|
+
} | null;
|
|
512
532
|
zenModeEnabled: boolean;
|
|
513
533
|
theme: string;
|
|
514
534
|
gridSize: number | null;
|
|
@@ -614,7 +634,11 @@ export declare const actionZoomToFit: {
|
|
|
614
634
|
};
|
|
615
635
|
shouldCacheIgnoreZoom: boolean;
|
|
616
636
|
showHelpDialog: boolean;
|
|
617
|
-
|
|
637
|
+
toast: {
|
|
638
|
+
message: string;
|
|
639
|
+
closable?: boolean | undefined;
|
|
640
|
+
duration?: number | undefined;
|
|
641
|
+
} | null;
|
|
618
642
|
zenModeEnabled: boolean;
|
|
619
643
|
theme: string;
|
|
620
644
|
gridSize: number | null;
|
|
@@ -721,7 +745,11 @@ export declare const actionToggleTheme: {
|
|
|
721
745
|
};
|
|
722
746
|
shouldCacheIgnoreZoom: boolean;
|
|
723
747
|
showHelpDialog: boolean;
|
|
724
|
-
|
|
748
|
+
toast: {
|
|
749
|
+
message: string;
|
|
750
|
+
closable?: boolean | undefined;
|
|
751
|
+
duration?: number | undefined;
|
|
752
|
+
} | null;
|
|
725
753
|
zenModeEnabled: boolean;
|
|
726
754
|
gridSize: number | null;
|
|
727
755
|
viewModeEnabled: boolean;
|
|
@@ -826,7 +854,11 @@ export declare const actionErase: {
|
|
|
826
854
|
};
|
|
827
855
|
shouldCacheIgnoreZoom: boolean;
|
|
828
856
|
showHelpDialog: boolean;
|
|
829
|
-
|
|
857
|
+
toast: {
|
|
858
|
+
message: string;
|
|
859
|
+
closable?: boolean | undefined;
|
|
860
|
+
duration?: number | undefined;
|
|
861
|
+
} | null;
|
|
830
862
|
zenModeEnabled: boolean;
|
|
831
863
|
theme: string;
|
|
832
864
|
gridSize: number | null;
|
|
@@ -84,7 +84,11 @@ export declare const actionCut: {
|
|
|
84
84
|
};
|
|
85
85
|
shouldCacheIgnoreZoom: boolean;
|
|
86
86
|
showHelpDialog: boolean;
|
|
87
|
-
|
|
87
|
+
toast: {
|
|
88
|
+
message: string;
|
|
89
|
+
closable?: boolean | undefined;
|
|
90
|
+
duration?: number | undefined;
|
|
91
|
+
} | null;
|
|
88
92
|
zenModeEnabled: boolean;
|
|
89
93
|
theme: string;
|
|
90
94
|
gridSize: number | null;
|
|
@@ -198,7 +202,11 @@ export declare const actionCut: {
|
|
|
198
202
|
};
|
|
199
203
|
shouldCacheIgnoreZoom: boolean;
|
|
200
204
|
showHelpDialog: boolean;
|
|
201
|
-
|
|
205
|
+
toast: {
|
|
206
|
+
message: string;
|
|
207
|
+
closable?: boolean | undefined;
|
|
208
|
+
duration?: number | undefined;
|
|
209
|
+
} | null;
|
|
202
210
|
zenModeEnabled: boolean;
|
|
203
211
|
theme: string;
|
|
204
212
|
gridSize: number | null;
|
|
@@ -293,7 +301,11 @@ export declare const actionCut: {
|
|
|
293
301
|
};
|
|
294
302
|
shouldCacheIgnoreZoom: boolean;
|
|
295
303
|
showHelpDialog: boolean;
|
|
296
|
-
|
|
304
|
+
toast: {
|
|
305
|
+
message: string;
|
|
306
|
+
closable?: boolean | undefined;
|
|
307
|
+
duration?: number | undefined;
|
|
308
|
+
} | null;
|
|
297
309
|
zenModeEnabled: boolean;
|
|
298
310
|
theme: string;
|
|
299
311
|
gridSize: number | null;
|
|
@@ -403,7 +415,11 @@ export declare const actionCopyAsSvg: {
|
|
|
403
415
|
};
|
|
404
416
|
shouldCacheIgnoreZoom: boolean;
|
|
405
417
|
showHelpDialog: boolean;
|
|
406
|
-
|
|
418
|
+
toast: {
|
|
419
|
+
message: string;
|
|
420
|
+
closable?: boolean | undefined;
|
|
421
|
+
duration?: number | undefined;
|
|
422
|
+
} | null;
|
|
407
423
|
zenModeEnabled: boolean;
|
|
408
424
|
theme: string;
|
|
409
425
|
gridSize: number | null;
|
|
@@ -512,7 +528,11 @@ export declare const actionCopyAsPng: {
|
|
|
512
528
|
};
|
|
513
529
|
shouldCacheIgnoreZoom: boolean;
|
|
514
530
|
showHelpDialog: boolean;
|
|
515
|
-
|
|
531
|
+
toast: {
|
|
532
|
+
message: string;
|
|
533
|
+
closable?: boolean | undefined;
|
|
534
|
+
duration?: number | undefined;
|
|
535
|
+
} | null;
|
|
516
536
|
zenModeEnabled: boolean;
|
|
517
537
|
theme: string;
|
|
518
538
|
gridSize: number | null;
|
|
@@ -75,7 +75,11 @@ export declare const actionDeleteSelected: {
|
|
|
75
75
|
};
|
|
76
76
|
shouldCacheIgnoreZoom: boolean;
|
|
77
77
|
showHelpDialog: boolean;
|
|
78
|
-
|
|
78
|
+
toast: {
|
|
79
|
+
message: string;
|
|
80
|
+
closable?: boolean | undefined;
|
|
81
|
+
duration?: number | undefined;
|
|
82
|
+
} | null;
|
|
79
83
|
zenModeEnabled: boolean;
|
|
80
84
|
theme: string;
|
|
81
85
|
gridSize: number | null;
|
|
@@ -189,7 +193,11 @@ export declare const actionDeleteSelected: {
|
|
|
189
193
|
};
|
|
190
194
|
shouldCacheIgnoreZoom: boolean;
|
|
191
195
|
showHelpDialog: boolean;
|
|
192
|
-
|
|
196
|
+
toast: {
|
|
197
|
+
message: string;
|
|
198
|
+
closable?: boolean | undefined;
|
|
199
|
+
duration?: number | undefined;
|
|
200
|
+
} | null;
|
|
193
201
|
zenModeEnabled: boolean;
|
|
194
202
|
theme: string;
|
|
195
203
|
gridSize: number | null;
|
|
@@ -284,7 +292,11 @@ export declare const actionDeleteSelected: {
|
|
|
284
292
|
};
|
|
285
293
|
shouldCacheIgnoreZoom: boolean;
|
|
286
294
|
showHelpDialog: boolean;
|
|
287
|
-
|
|
295
|
+
toast: {
|
|
296
|
+
message: string;
|
|
297
|
+
closable?: boolean | undefined;
|
|
298
|
+
duration?: number | undefined;
|
|
299
|
+
} | null;
|
|
288
300
|
zenModeEnabled: boolean;
|
|
289
301
|
theme: string;
|
|
290
302
|
gridSize: number | null;
|
|
@@ -69,7 +69,11 @@ export declare const actionChangeProjectName: {
|
|
|
69
69
|
};
|
|
70
70
|
shouldCacheIgnoreZoom: boolean;
|
|
71
71
|
showHelpDialog: boolean;
|
|
72
|
-
|
|
72
|
+
toast: {
|
|
73
|
+
message: string;
|
|
74
|
+
closable?: boolean | undefined;
|
|
75
|
+
duration?: number | undefined;
|
|
76
|
+
} | null;
|
|
73
77
|
zenModeEnabled: boolean;
|
|
74
78
|
theme: string;
|
|
75
79
|
gridSize: number | null;
|
|
@@ -176,7 +180,11 @@ export declare const actionChangeExportScale: {
|
|
|
176
180
|
};
|
|
177
181
|
shouldCacheIgnoreZoom: boolean;
|
|
178
182
|
showHelpDialog: boolean;
|
|
179
|
-
|
|
183
|
+
toast: {
|
|
184
|
+
message: string;
|
|
185
|
+
closable?: boolean | undefined;
|
|
186
|
+
duration?: number | undefined;
|
|
187
|
+
} | null;
|
|
180
188
|
zenModeEnabled: boolean;
|
|
181
189
|
theme: string;
|
|
182
190
|
gridSize: number | null;
|
|
@@ -283,7 +291,11 @@ export declare const actionChangeExportBackground: {
|
|
|
283
291
|
};
|
|
284
292
|
shouldCacheIgnoreZoom: boolean;
|
|
285
293
|
showHelpDialog: boolean;
|
|
286
|
-
|
|
294
|
+
toast: {
|
|
295
|
+
message: string;
|
|
296
|
+
closable?: boolean | undefined;
|
|
297
|
+
duration?: number | undefined;
|
|
298
|
+
} | null;
|
|
287
299
|
zenModeEnabled: boolean;
|
|
288
300
|
theme: string;
|
|
289
301
|
gridSize: number | null;
|
|
@@ -390,7 +402,11 @@ export declare const actionChangeExportEmbedScene: {
|
|
|
390
402
|
};
|
|
391
403
|
shouldCacheIgnoreZoom: boolean;
|
|
392
404
|
showHelpDialog: boolean;
|
|
393
|
-
|
|
405
|
+
toast: {
|
|
406
|
+
message: string;
|
|
407
|
+
closable?: boolean | undefined;
|
|
408
|
+
duration?: number | undefined;
|
|
409
|
+
} | null;
|
|
394
410
|
zenModeEnabled: boolean;
|
|
395
411
|
theme: string;
|
|
396
412
|
gridSize: number | null;
|
|
@@ -434,7 +450,9 @@ export declare const actionSaveToActiveFile: {
|
|
|
434
450
|
commitToHistory: false;
|
|
435
451
|
appState: {
|
|
436
452
|
fileHandle: import("browser-fs-access").FileSystemHandle | null;
|
|
437
|
-
|
|
453
|
+
toast: {
|
|
454
|
+
message: string;
|
|
455
|
+
} | null;
|
|
438
456
|
isLoading: boolean;
|
|
439
457
|
errorMessage: string | null;
|
|
440
458
|
draggingElement: import("../element/types").NonDeletedExcalidrawElement | null;
|
|
@@ -608,7 +626,11 @@ export declare const actionSaveFileToDisk: {
|
|
|
608
626
|
};
|
|
609
627
|
shouldCacheIgnoreZoom: boolean;
|
|
610
628
|
showHelpDialog: boolean;
|
|
611
|
-
|
|
629
|
+
toast: {
|
|
630
|
+
message: string;
|
|
631
|
+
closable?: boolean | undefined;
|
|
632
|
+
duration?: number | undefined;
|
|
633
|
+
} | null;
|
|
612
634
|
zenModeEnabled: boolean;
|
|
613
635
|
theme: string;
|
|
614
636
|
gridSize: number | null;
|
|
@@ -718,7 +740,11 @@ export declare const actionLoadScene: {
|
|
|
718
740
|
[id: string]: boolean;
|
|
719
741
|
};
|
|
720
742
|
showHelpDialog: boolean;
|
|
721
|
-
|
|
743
|
+
toast: {
|
|
744
|
+
message: string;
|
|
745
|
+
closable?: boolean | undefined;
|
|
746
|
+
duration?: number | undefined;
|
|
747
|
+
} | null;
|
|
722
748
|
zenModeEnabled: boolean;
|
|
723
749
|
gridSize: number | null;
|
|
724
750
|
viewModeEnabled: boolean;
|
|
@@ -811,7 +837,11 @@ export declare const actionLoadScene: {
|
|
|
811
837
|
};
|
|
812
838
|
shouldCacheIgnoreZoom: boolean;
|
|
813
839
|
showHelpDialog: boolean;
|
|
814
|
-
|
|
840
|
+
toast: {
|
|
841
|
+
message: string;
|
|
842
|
+
closable?: boolean | undefined;
|
|
843
|
+
duration?: number | undefined;
|
|
844
|
+
} | null;
|
|
815
845
|
zenModeEnabled: boolean;
|
|
816
846
|
theme: string;
|
|
817
847
|
gridSize: number | null;
|
|
@@ -920,7 +950,11 @@ export declare const actionExportWithDarkMode: {
|
|
|
920
950
|
};
|
|
921
951
|
shouldCacheIgnoreZoom: boolean;
|
|
922
952
|
showHelpDialog: boolean;
|
|
923
|
-
|
|
953
|
+
toast: {
|
|
954
|
+
message: string;
|
|
955
|
+
closable?: boolean | undefined;
|
|
956
|
+
duration?: number | undefined;
|
|
957
|
+
} | null;
|
|
924
958
|
zenModeEnabled: boolean;
|
|
925
959
|
theme: string;
|
|
926
960
|
gridSize: number | null;
|
|
@@ -71,7 +71,11 @@ export declare const actionFinalize: {
|
|
|
71
71
|
};
|
|
72
72
|
shouldCacheIgnoreZoom: boolean;
|
|
73
73
|
showHelpDialog: boolean;
|
|
74
|
-
|
|
74
|
+
toast: {
|
|
75
|
+
message: string;
|
|
76
|
+
closable?: boolean | undefined;
|
|
77
|
+
duration?: number | undefined;
|
|
78
|
+
} | null;
|
|
75
79
|
zenModeEnabled: boolean;
|
|
76
80
|
theme: string;
|
|
77
81
|
gridSize: number | null;
|
|
@@ -169,7 +173,11 @@ export declare const actionFinalize: {
|
|
|
169
173
|
};
|
|
170
174
|
shouldCacheIgnoreZoom: boolean;
|
|
171
175
|
showHelpDialog: boolean;
|
|
172
|
-
|
|
176
|
+
toast: {
|
|
177
|
+
message: string;
|
|
178
|
+
closable?: boolean | undefined;
|
|
179
|
+
duration?: number | undefined;
|
|
180
|
+
} | null;
|
|
173
181
|
zenModeEnabled: boolean;
|
|
174
182
|
theme: string;
|
|
175
183
|
gridSize: number | null;
|
|
@@ -70,7 +70,11 @@ export declare const actionToggleCanvasMenu: {
|
|
|
70
70
|
};
|
|
71
71
|
shouldCacheIgnoreZoom: boolean;
|
|
72
72
|
showHelpDialog: boolean;
|
|
73
|
-
|
|
73
|
+
toast: {
|
|
74
|
+
message: string;
|
|
75
|
+
closable?: boolean | undefined;
|
|
76
|
+
duration?: number | undefined;
|
|
77
|
+
} | null;
|
|
74
78
|
zenModeEnabled: boolean;
|
|
75
79
|
theme: string;
|
|
76
80
|
gridSize: number | null;
|
|
@@ -176,7 +180,11 @@ export declare const actionToggleEditMenu: {
|
|
|
176
180
|
};
|
|
177
181
|
shouldCacheIgnoreZoom: boolean;
|
|
178
182
|
showHelpDialog: boolean;
|
|
179
|
-
|
|
183
|
+
toast: {
|
|
184
|
+
message: string;
|
|
185
|
+
closable?: boolean | undefined;
|
|
186
|
+
duration?: number | undefined;
|
|
187
|
+
} | null;
|
|
180
188
|
zenModeEnabled: boolean;
|
|
181
189
|
theme: string;
|
|
182
190
|
gridSize: number | null;
|
|
@@ -296,7 +304,11 @@ export declare const actionShortcuts: {
|
|
|
296
304
|
[id: string]: boolean;
|
|
297
305
|
};
|
|
298
306
|
shouldCacheIgnoreZoom: boolean;
|
|
299
|
-
|
|
307
|
+
toast: {
|
|
308
|
+
message: string;
|
|
309
|
+
closable?: boolean | undefined;
|
|
310
|
+
duration?: number | undefined;
|
|
311
|
+
} | null;
|
|
300
312
|
zenModeEnabled: boolean;
|
|
301
313
|
theme: string;
|
|
302
314
|
gridSize: number | null;
|
|
@@ -87,7 +87,11 @@ export declare const actionChangeFillStyle: {
|
|
|
87
87
|
};
|
|
88
88
|
shouldCacheIgnoreZoom: boolean;
|
|
89
89
|
showHelpDialog: boolean;
|
|
90
|
-
|
|
90
|
+
toast: {
|
|
91
|
+
message: string;
|
|
92
|
+
closable?: boolean | undefined;
|
|
93
|
+
duration?: number | undefined;
|
|
94
|
+
} | null;
|
|
91
95
|
zenModeEnabled: boolean;
|
|
92
96
|
theme: string;
|
|
93
97
|
gridSize: number | null;
|
|
@@ -192,7 +196,11 @@ export declare const actionChangeStrokeWidth: {
|
|
|
192
196
|
};
|
|
193
197
|
shouldCacheIgnoreZoom: boolean;
|
|
194
198
|
showHelpDialog: boolean;
|
|
195
|
-
|
|
199
|
+
toast: {
|
|
200
|
+
message: string;
|
|
201
|
+
closable?: boolean | undefined;
|
|
202
|
+
duration?: number | undefined;
|
|
203
|
+
} | null;
|
|
196
204
|
zenModeEnabled: boolean;
|
|
197
205
|
theme: string;
|
|
198
206
|
gridSize: number | null;
|
|
@@ -297,7 +305,11 @@ export declare const actionChangeSloppiness: {
|
|
|
297
305
|
};
|
|
298
306
|
shouldCacheIgnoreZoom: boolean;
|
|
299
307
|
showHelpDialog: boolean;
|
|
300
|
-
|
|
308
|
+
toast: {
|
|
309
|
+
message: string;
|
|
310
|
+
closable?: boolean | undefined;
|
|
311
|
+
duration?: number | undefined;
|
|
312
|
+
} | null;
|
|
301
313
|
zenModeEnabled: boolean;
|
|
302
314
|
theme: string;
|
|
303
315
|
gridSize: number | null;
|
|
@@ -402,7 +414,11 @@ export declare const actionChangeStrokeStyle: {
|
|
|
402
414
|
};
|
|
403
415
|
shouldCacheIgnoreZoom: boolean;
|
|
404
416
|
showHelpDialog: boolean;
|
|
405
|
-
|
|
417
|
+
toast: {
|
|
418
|
+
message: string;
|
|
419
|
+
closable?: boolean | undefined;
|
|
420
|
+
duration?: number | undefined;
|
|
421
|
+
} | null;
|
|
406
422
|
zenModeEnabled: boolean;
|
|
407
423
|
theme: string;
|
|
408
424
|
gridSize: number | null;
|
|
@@ -507,7 +523,11 @@ export declare const actionChangeOpacity: {
|
|
|
507
523
|
};
|
|
508
524
|
shouldCacheIgnoreZoom: boolean;
|
|
509
525
|
showHelpDialog: boolean;
|
|
510
|
-
|
|
526
|
+
toast: {
|
|
527
|
+
message: string;
|
|
528
|
+
closable?: boolean | undefined;
|
|
529
|
+
duration?: number | undefined;
|
|
530
|
+
} | null;
|
|
511
531
|
zenModeEnabled: boolean;
|
|
512
532
|
theme: string;
|
|
513
533
|
gridSize: number | null;
|
|
@@ -612,7 +632,11 @@ export declare const actionChangeFontSize: {
|
|
|
612
632
|
};
|
|
613
633
|
shouldCacheIgnoreZoom: boolean;
|
|
614
634
|
showHelpDialog: boolean;
|
|
615
|
-
|
|
635
|
+
toast: {
|
|
636
|
+
message: string;
|
|
637
|
+
closable?: boolean | undefined;
|
|
638
|
+
duration?: number | undefined;
|
|
639
|
+
} | null;
|
|
616
640
|
zenModeEnabled: boolean;
|
|
617
641
|
theme: string;
|
|
618
642
|
gridSize: number | null;
|
|
@@ -717,7 +741,11 @@ export declare const actionDecreaseFontSize: {
|
|
|
717
741
|
};
|
|
718
742
|
shouldCacheIgnoreZoom: boolean;
|
|
719
743
|
showHelpDialog: boolean;
|
|
720
|
-
|
|
744
|
+
toast: {
|
|
745
|
+
message: string;
|
|
746
|
+
closable?: boolean | undefined;
|
|
747
|
+
duration?: number | undefined;
|
|
748
|
+
} | null;
|
|
721
749
|
zenModeEnabled: boolean;
|
|
722
750
|
theme: string;
|
|
723
751
|
gridSize: number | null;
|
|
@@ -822,7 +850,11 @@ export declare const actionIncreaseFontSize: {
|
|
|
822
850
|
};
|
|
823
851
|
shouldCacheIgnoreZoom: boolean;
|
|
824
852
|
showHelpDialog: boolean;
|
|
825
|
-
|
|
853
|
+
toast: {
|
|
854
|
+
message: string;
|
|
855
|
+
closable?: boolean | undefined;
|
|
856
|
+
duration?: number | undefined;
|
|
857
|
+
} | null;
|
|
826
858
|
zenModeEnabled: boolean;
|
|
827
859
|
theme: string;
|
|
828
860
|
gridSize: number | null;
|
|
@@ -927,7 +959,11 @@ export declare const actionChangeFontFamily: {
|
|
|
927
959
|
};
|
|
928
960
|
shouldCacheIgnoreZoom: boolean;
|
|
929
961
|
showHelpDialog: boolean;
|
|
930
|
-
|
|
962
|
+
toast: {
|
|
963
|
+
message: string;
|
|
964
|
+
closable?: boolean | undefined;
|
|
965
|
+
duration?: number | undefined;
|
|
966
|
+
} | null;
|
|
931
967
|
zenModeEnabled: boolean;
|
|
932
968
|
theme: string;
|
|
933
969
|
gridSize: number | null;
|
|
@@ -1032,7 +1068,11 @@ export declare const actionChangeTextAlign: {
|
|
|
1032
1068
|
};
|
|
1033
1069
|
shouldCacheIgnoreZoom: boolean;
|
|
1034
1070
|
showHelpDialog: boolean;
|
|
1035
|
-
|
|
1071
|
+
toast: {
|
|
1072
|
+
message: string;
|
|
1073
|
+
closable?: boolean | undefined;
|
|
1074
|
+
duration?: number | undefined;
|
|
1075
|
+
} | null;
|
|
1036
1076
|
zenModeEnabled: boolean;
|
|
1037
1077
|
theme: string;
|
|
1038
1078
|
gridSize: number | null;
|
|
@@ -1139,7 +1179,11 @@ export declare const actionChangeVerticalAlign: {
|
|
|
1139
1179
|
};
|
|
1140
1180
|
shouldCacheIgnoreZoom: boolean;
|
|
1141
1181
|
showHelpDialog: boolean;
|
|
1142
|
-
|
|
1182
|
+
toast: {
|
|
1183
|
+
message: string;
|
|
1184
|
+
closable?: boolean | undefined;
|
|
1185
|
+
duration?: number | undefined;
|
|
1186
|
+
} | null;
|
|
1143
1187
|
zenModeEnabled: boolean;
|
|
1144
1188
|
theme: string;
|
|
1145
1189
|
gridSize: number | null;
|
|
@@ -1244,7 +1288,11 @@ export declare const actionChangeSharpness: {
|
|
|
1244
1288
|
};
|
|
1245
1289
|
shouldCacheIgnoreZoom: boolean;
|
|
1246
1290
|
showHelpDialog: boolean;
|
|
1247
|
-
|
|
1291
|
+
toast: {
|
|
1292
|
+
message: string;
|
|
1293
|
+
closable?: boolean | undefined;
|
|
1294
|
+
duration?: number | undefined;
|
|
1295
|
+
} | null;
|
|
1248
1296
|
zenModeEnabled: boolean;
|
|
1249
1297
|
theme: string;
|
|
1250
1298
|
gridSize: number | null;
|
|
@@ -1352,7 +1400,11 @@ export declare const actionChangeArrowhead: {
|
|
|
1352
1400
|
};
|
|
1353
1401
|
shouldCacheIgnoreZoom: boolean;
|
|
1354
1402
|
showHelpDialog: boolean;
|
|
1355
|
-
|
|
1403
|
+
toast: {
|
|
1404
|
+
message: string;
|
|
1405
|
+
closable?: boolean | undefined;
|
|
1406
|
+
duration?: number | undefined;
|
|
1407
|
+
} | null;
|
|
1356
1408
|
zenModeEnabled: boolean;
|
|
1357
1409
|
theme: string;
|
|
1358
1410
|
gridSize: number | null;
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
+
import { ExcalidrawElement } from "../element/types";
|
|
2
3
|
export declare const actionSelectAll: {
|
|
3
4
|
name: "selectAll";
|
|
4
5
|
trackEvent: {
|
|
5
6
|
category: "canvas";
|
|
6
7
|
};
|
|
7
|
-
perform: (elements: readonly
|
|
8
|
+
perform: (elements: readonly ExcalidrawElement[], appState: Readonly<import("../types").AppState>) => false | {
|
|
8
9
|
appState: import("../types").AppState;
|
|
9
10
|
commitToHistory: true;
|
|
10
11
|
};
|
|
@@ -7,7 +7,9 @@ export declare const actionCopyStyles: {
|
|
|
7
7
|
};
|
|
8
8
|
perform: (elements: readonly import("../element/types").ExcalidrawElement[], appState: Readonly<import("../types").AppState>) => {
|
|
9
9
|
appState: {
|
|
10
|
-
|
|
10
|
+
toast: {
|
|
11
|
+
message: string;
|
|
12
|
+
};
|
|
11
13
|
isLoading: boolean;
|
|
12
14
|
errorMessage: string | null;
|
|
13
15
|
draggingElement: import("../element/types").NonDeletedExcalidrawElement | null;
|