@zsviczian/excalidraw 0.11.0-obsidian-16 → 0.11.0-obsidian-19

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zsviczian/excalidraw",
3
- "version": "0.11.0-obsidian-16",
3
+ "version": "0.11.0-obsidian-19",
4
4
  "main": "main.js",
5
5
  "types": "types/packages/excalidraw/index.d.ts",
6
6
  "files": [
@@ -47,13 +47,13 @@
47
47
  "@babel/core": "7.17.0",
48
48
  "@babel/plugin-transform-arrow-functions": "7.16.7",
49
49
  "@babel/plugin-transform-async-to-generator": "7.16.0",
50
- "@babel/plugin-transform-runtime": "7.16.8",
50
+ "@babel/plugin-transform-runtime": "7.17.10",
51
51
  "@babel/plugin-transform-typescript": "7.16.1",
52
- "@babel/preset-env": "7.16.7",
52
+ "@babel/preset-env": "7.17.10",
53
53
  "@babel/preset-react": "7.16.7",
54
54
  "@babel/preset-typescript": "7.16.7",
55
- "autoprefixer": "10.4.5",
56
- "babel-loader": "8.2.3",
55
+ "autoprefixer": "10.4.7",
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",
@@ -61,12 +61,12 @@
61
61
  "postcss-loader": "6.2.1",
62
62
  "sass-loader": "12.4.0",
63
63
  "terser-webpack-plugin": "5.3.1",
64
- "ts-loader": "9.2.8",
65
- "typescript": "4.5.4",
64
+ "ts-loader": "9.3.0",
65
+ "typescript": "4.6.4",
66
66
  "webpack": "5.72.0",
67
67
  "webpack-bundle-analyzer": "4.5.0",
68
68
  "webpack-cli": "4.9.2",
69
- "webpack-dev-server": "4.7.4",
69
+ "webpack-dev-server": "4.9.0",
70
70
  "webpack-merge": "5.8.0"
71
71
  },
72
72
  "bugs": "https://github.com/excalidraw/excalidraw/issues",
@@ -20,7 +20,13 @@ export declare const actionAddToLibrary: {
20
20
  editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
21
21
  activeTool: {
22
22
  type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "image" | "freedraw" | "eraser";
23
- lastActiveToolBeforeEraser: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "image" | "freedraw" | null;
23
+ lastActiveToolBeforeEraser: import("../types").LastActiveToolBeforeEraser;
24
+ locked: boolean;
25
+ customType: null;
26
+ } | {
27
+ type: "custom";
28
+ customType: string;
29
+ lastActiveToolBeforeEraser: import("../types").LastActiveToolBeforeEraser;
24
30
  locked: boolean;
25
31
  };
26
32
  penMode: boolean;
@@ -115,7 +121,13 @@ export declare const actionAddToLibrary: {
115
121
  editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
116
122
  activeTool: {
117
123
  type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "image" | "freedraw" | "eraser";
118
- lastActiveToolBeforeEraser: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "image" | "freedraw" | null;
124
+ lastActiveToolBeforeEraser: import("../types").LastActiveToolBeforeEraser;
125
+ locked: boolean;
126
+ customType: null;
127
+ } | {
128
+ type: "custom";
129
+ customType: string;
130
+ lastActiveToolBeforeEraser: import("../types").LastActiveToolBeforeEraser;
119
131
  locked: boolean;
120
132
  };
121
133
  penMode: boolean;
@@ -211,7 +223,13 @@ export declare const actionAddToLibrary: {
211
223
  editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
212
224
  activeTool: {
213
225
  type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "image" | "freedraw" | "eraser";
214
- lastActiveToolBeforeEraser: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "image" | "freedraw" | null;
226
+ lastActiveToolBeforeEraser: import("../types").LastActiveToolBeforeEraser;
227
+ locked: boolean;
228
+ customType: null;
229
+ } | {
230
+ type: "custom";
231
+ customType: string;
232
+ lastActiveToolBeforeEraser: import("../types").LastActiveToolBeforeEraser;
215
233
  locked: boolean;
216
234
  };
217
235
  penMode: boolean;
@@ -39,7 +39,13 @@ export declare const actionBindText: {
39
39
  editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
40
40
  activeTool: {
41
41
  type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "image" | "freedraw" | "eraser";
42
- lastActiveToolBeforeEraser: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "image" | "freedraw" | null;
42
+ lastActiveToolBeforeEraser: import("../types").LastActiveToolBeforeEraser;
43
+ locked: boolean;
44
+ customType: null;
45
+ } | {
46
+ type: "custom";
47
+ customType: string;
48
+ lastActiveToolBeforeEraser: import("../types").LastActiveToolBeforeEraser;
43
49
  locked: boolean;
44
50
  };
45
51
  penMode: boolean;
@@ -37,7 +37,13 @@ export declare const actionClearCanvas: {
37
37
  };
38
38
  activeTool: {
39
39
  type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "image" | "freedraw" | "eraser";
40
- lastActiveToolBeforeEraser: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "image" | "freedraw" | null;
40
+ lastActiveToolBeforeEraser: import("../types").LastActiveToolBeforeEraser;
41
+ locked: boolean;
42
+ customType: null;
43
+ } | {
44
+ type: "custom";
45
+ customType: string;
46
+ lastActiveToolBeforeEraser: import("../types").LastActiveToolBeforeEraser;
41
47
  locked: boolean;
42
48
  };
43
49
  scrollX: number;
@@ -47,7 +53,6 @@ export declare const actionClearCanvas: {
47
53
  value: NormalizedZoomValue;
48
54
  }>;
49
55
  shouldCacheIgnoreZoom: boolean;
50
- name: string;
51
56
  isLoading: boolean;
52
57
  errorMessage: string | null;
53
58
  draggingElement: import("../element/types").NonDeletedExcalidrawElement | null;
@@ -77,6 +82,7 @@ export declare const actionClearCanvas: {
77
82
  currentItemLinearStrokeSharpness: import("../element/types").StrokeSharpness;
78
83
  cursorButton: "up" | "down";
79
84
  scrolledOutside: boolean;
85
+ name: string;
80
86
  isResizing: boolean;
81
87
  isRotating: boolean;
82
88
  openMenu: "canvas" | "shape" | null;
@@ -141,7 +147,13 @@ export declare const actionZoomIn: {
141
147
  editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
142
148
  activeTool: {
143
149
  type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "image" | "freedraw" | "eraser";
144
- lastActiveToolBeforeEraser: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "image" | "freedraw" | null;
150
+ lastActiveToolBeforeEraser: import("../types").LastActiveToolBeforeEraser;
151
+ locked: boolean;
152
+ customType: null;
153
+ } | {
154
+ type: "custom";
155
+ customType: string;
156
+ lastActiveToolBeforeEraser: import("../types").LastActiveToolBeforeEraser;
145
157
  locked: boolean;
146
158
  };
147
159
  penMode: boolean;
@@ -248,7 +260,13 @@ export declare const actionZoomOut: {
248
260
  editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
249
261
  activeTool: {
250
262
  type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "image" | "freedraw" | "eraser";
251
- lastActiveToolBeforeEraser: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "image" | "freedraw" | null;
263
+ lastActiveToolBeforeEraser: import("../types").LastActiveToolBeforeEraser;
264
+ locked: boolean;
265
+ customType: null;
266
+ } | {
267
+ type: "custom";
268
+ customType: string;
269
+ lastActiveToolBeforeEraser: import("../types").LastActiveToolBeforeEraser;
252
270
  locked: boolean;
253
271
  };
254
272
  penMode: boolean;
@@ -355,7 +373,13 @@ export declare const actionResetZoom: {
355
373
  editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
356
374
  activeTool: {
357
375
  type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "image" | "freedraw" | "eraser";
358
- lastActiveToolBeforeEraser: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "image" | "freedraw" | null;
376
+ lastActiveToolBeforeEraser: import("../types").LastActiveToolBeforeEraser;
377
+ locked: boolean;
378
+ customType: null;
379
+ } | {
380
+ type: "custom";
381
+ customType: string;
382
+ lastActiveToolBeforeEraser: import("../types").LastActiveToolBeforeEraser;
359
383
  locked: boolean;
360
384
  };
361
385
  penMode: boolean;
@@ -457,7 +481,13 @@ export declare const zoomToFitElements: (elements: readonly ExcalidrawElement[],
457
481
  editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
458
482
  activeTool: {
459
483
  type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "image" | "freedraw" | "eraser";
460
- lastActiveToolBeforeEraser: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "image" | "freedraw" | null;
484
+ lastActiveToolBeforeEraser: import("../types").LastActiveToolBeforeEraser;
485
+ locked: boolean;
486
+ customType: null;
487
+ } | {
488
+ type: "custom";
489
+ customType: string;
490
+ lastActiveToolBeforeEraser: import("../types").LastActiveToolBeforeEraser;
461
491
  locked: boolean;
462
492
  };
463
493
  penMode: boolean;
@@ -559,7 +589,13 @@ export declare const actionZoomToSelected: {
559
589
  editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
560
590
  activeTool: {
561
591
  type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "image" | "freedraw" | "eraser";
562
- lastActiveToolBeforeEraser: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "image" | "freedraw" | null;
592
+ lastActiveToolBeforeEraser: import("../types").LastActiveToolBeforeEraser;
593
+ locked: boolean;
594
+ customType: null;
595
+ } | {
596
+ type: "custom";
597
+ customType: string;
598
+ lastActiveToolBeforeEraser: import("../types").LastActiveToolBeforeEraser;
563
599
  locked: boolean;
564
600
  };
565
601
  penMode: boolean;
@@ -665,7 +701,13 @@ export declare const actionZoomToFit: {
665
701
  editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
666
702
  activeTool: {
667
703
  type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "image" | "freedraw" | "eraser";
668
- lastActiveToolBeforeEraser: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "image" | "freedraw" | null;
704
+ lastActiveToolBeforeEraser: import("../types").LastActiveToolBeforeEraser;
705
+ locked: boolean;
706
+ customType: null;
707
+ } | {
708
+ type: "custom";
709
+ customType: string;
710
+ lastActiveToolBeforeEraser: import("../types").LastActiveToolBeforeEraser;
669
711
  locked: boolean;
670
712
  };
671
713
  penMode: boolean;
@@ -767,7 +809,13 @@ export declare const actionToggleTheme: {
767
809
  editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
768
810
  activeTool: {
769
811
  type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "image" | "freedraw" | "eraser";
770
- lastActiveToolBeforeEraser: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "image" | "freedraw" | null;
812
+ lastActiveToolBeforeEraser: import("../types").LastActiveToolBeforeEraser;
813
+ locked: boolean;
814
+ customType: null;
815
+ } | {
816
+ type: "custom";
817
+ customType: string;
818
+ lastActiveToolBeforeEraser: import("../types").LastActiveToolBeforeEraser;
771
819
  locked: boolean;
772
820
  };
773
821
  penMode: boolean;
@@ -864,7 +912,13 @@ export declare const actionErase: {
864
912
  selectedGroupIds: {};
865
913
  activeTool: {
866
914
  type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "image" | "freedraw" | "eraser";
867
- lastActiveToolBeforeEraser: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "image" | "freedraw" | null;
915
+ lastActiveToolBeforeEraser: import("../types").LastActiveToolBeforeEraser;
916
+ locked: boolean;
917
+ customType: null;
918
+ } | {
919
+ type: "custom";
920
+ customType: string;
921
+ lastActiveToolBeforeEraser: import("../types").LastActiveToolBeforeEraser;
868
922
  locked: boolean;
869
923
  };
870
924
  isLoading: boolean;
@@ -33,7 +33,13 @@ export declare const actionCut: {
33
33
  editingElement: import("../element/types").NonDeletedExcalidrawElement | null;
34
34
  activeTool: {
35
35
  type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "image" | "freedraw" | "eraser";
36
- lastActiveToolBeforeEraser: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "image" | "freedraw" | null;
36
+ lastActiveToolBeforeEraser: import("../types").LastActiveToolBeforeEraser;
37
+ locked: boolean;
38
+ customType: null;
39
+ } | {
40
+ type: "custom";
41
+ customType: string;
42
+ lastActiveToolBeforeEraser: import("../types").LastActiveToolBeforeEraser;
37
43
  locked: boolean;
38
44
  };
39
45
  penMode: boolean;
@@ -147,7 +153,13 @@ export declare const actionCut: {
147
153
  editingElement: import("../element/types").NonDeletedExcalidrawElement | null;
148
154
  activeTool: {
149
155
  type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "image" | "freedraw" | "eraser";
150
- lastActiveToolBeforeEraser: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "image" | "freedraw" | null;
156
+ lastActiveToolBeforeEraser: import("../types").LastActiveToolBeforeEraser;
157
+ locked: boolean;
158
+ customType: null;
159
+ } | {
160
+ type: "custom";
161
+ customType: string;
162
+ lastActiveToolBeforeEraser: import("../types").LastActiveToolBeforeEraser;
151
163
  locked: boolean;
152
164
  };
153
165
  penMode: boolean;
@@ -232,8 +244,14 @@ export declare const actionCut: {
232
244
  elements: import("../element/types").ExcalidrawElement[];
233
245
  appState: {
234
246
  activeTool: {
235
- type: "selection";
236
- lastActiveToolBeforeEraser: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "image" | "freedraw" | null;
247
+ type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "image" | "freedraw" | "eraser";
248
+ lastActiveToolBeforeEraser: import("../types").LastActiveToolBeforeEraser;
249
+ locked: boolean;
250
+ customType: null;
251
+ } | {
252
+ type: "custom";
253
+ customType: string;
254
+ lastActiveToolBeforeEraser: import("../types").LastActiveToolBeforeEraser;
237
255
  locked: boolean;
238
256
  };
239
257
  multiElement: null;
@@ -352,7 +370,13 @@ export declare const actionCopyAsSvg: {
352
370
  editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
353
371
  activeTool: {
354
372
  type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "image" | "freedraw" | "eraser";
355
- lastActiveToolBeforeEraser: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "image" | "freedraw" | null;
373
+ lastActiveToolBeforeEraser: import("../types").LastActiveToolBeforeEraser;
374
+ locked: boolean;
375
+ customType: null;
376
+ } | {
377
+ type: "custom";
378
+ customType: string;
379
+ lastActiveToolBeforeEraser: import("../types").LastActiveToolBeforeEraser;
356
380
  locked: boolean;
357
381
  };
358
382
  penMode: boolean;
@@ -461,7 +485,13 @@ export declare const actionCopyAsPng: {
461
485
  editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
462
486
  activeTool: {
463
487
  type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "image" | "freedraw" | "eraser";
464
- lastActiveToolBeforeEraser: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "image" | "freedraw" | null;
488
+ lastActiveToolBeforeEraser: import("../types").LastActiveToolBeforeEraser;
489
+ locked: boolean;
490
+ customType: null;
491
+ } | {
492
+ type: "custom";
493
+ customType: string;
494
+ lastActiveToolBeforeEraser: import("../types").LastActiveToolBeforeEraser;
465
495
  locked: boolean;
466
496
  };
467
497
  penMode: boolean;
@@ -24,7 +24,13 @@ export declare const actionDeleteSelected: {
24
24
  editingElement: import("../element/types").NonDeletedExcalidrawElement | null;
25
25
  activeTool: {
26
26
  type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "image" | "freedraw" | "eraser";
27
- lastActiveToolBeforeEraser: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "image" | "freedraw" | null;
27
+ lastActiveToolBeforeEraser: import("../types").LastActiveToolBeforeEraser;
28
+ locked: boolean;
29
+ customType: null;
30
+ } | {
31
+ type: "custom";
32
+ customType: string;
33
+ lastActiveToolBeforeEraser: import("../types").LastActiveToolBeforeEraser;
28
34
  locked: boolean;
29
35
  };
30
36
  penMode: boolean;
@@ -138,7 +144,13 @@ export declare const actionDeleteSelected: {
138
144
  editingElement: import("../element/types").NonDeletedExcalidrawElement | null;
139
145
  activeTool: {
140
146
  type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "image" | "freedraw" | "eraser";
141
- lastActiveToolBeforeEraser: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "image" | "freedraw" | null;
147
+ lastActiveToolBeforeEraser: import("../types").LastActiveToolBeforeEraser;
148
+ locked: boolean;
149
+ customType: null;
150
+ } | {
151
+ type: "custom";
152
+ customType: string;
153
+ lastActiveToolBeforeEraser: import("../types").LastActiveToolBeforeEraser;
142
154
  locked: boolean;
143
155
  };
144
156
  penMode: boolean;
@@ -223,8 +235,14 @@ export declare const actionDeleteSelected: {
223
235
  elements: ExcalidrawElement[];
224
236
  appState: {
225
237
  activeTool: {
226
- type: "selection";
227
- lastActiveToolBeforeEraser: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "image" | "freedraw" | null;
238
+ type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "image" | "freedraw" | "eraser";
239
+ lastActiveToolBeforeEraser: import("../types").LastActiveToolBeforeEraser;
240
+ locked: boolean;
241
+ customType: null;
242
+ } | {
243
+ type: "custom";
244
+ customType: string;
245
+ lastActiveToolBeforeEraser: import("../types").LastActiveToolBeforeEraser;
228
246
  locked: boolean;
229
247
  };
230
248
  multiElement: null;
@@ -9,7 +9,7 @@ export declare const actionDuplicateSelection: {
9
9
  perform: (elements: readonly ExcalidrawElement[], appState: Readonly<AppState>) => false | {
10
10
  commitToHistory: true;
11
11
  elements?: readonly ExcalidrawElement[] | null | undefined;
12
- appState?: MarkOptional<AppState, "width" | "height" | "offsetLeft" | "offsetTop"> | null | undefined;
12
+ appState?: MarkOptional<AppState, "width" | "height" | "offsetTop" | "offsetLeft"> | null | undefined;
13
13
  files?: import("../types").BinaryFiles | null | undefined;
14
14
  syncHistory?: boolean | undefined;
15
15
  replaceFiles?: boolean | undefined;
@@ -19,7 +19,13 @@ export declare const actionChangeProjectName: {
19
19
  editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
20
20
  activeTool: {
21
21
  type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "image" | "freedraw" | "eraser";
22
- lastActiveToolBeforeEraser: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "image" | "freedraw" | null;
22
+ lastActiveToolBeforeEraser: import("../types").LastActiveToolBeforeEraser;
23
+ locked: boolean;
24
+ customType: null;
25
+ } | {
26
+ type: "custom";
27
+ customType: string;
28
+ lastActiveToolBeforeEraser: import("../types").LastActiveToolBeforeEraser;
23
29
  locked: boolean;
24
30
  };
25
31
  penMode: boolean;
@@ -126,7 +132,13 @@ export declare const actionChangeExportScale: {
126
132
  editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
127
133
  activeTool: {
128
134
  type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "image" | "freedraw" | "eraser";
129
- lastActiveToolBeforeEraser: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "image" | "freedraw" | null;
135
+ lastActiveToolBeforeEraser: import("../types").LastActiveToolBeforeEraser;
136
+ locked: boolean;
137
+ customType: null;
138
+ } | {
139
+ type: "custom";
140
+ customType: string;
141
+ lastActiveToolBeforeEraser: import("../types").LastActiveToolBeforeEraser;
130
142
  locked: boolean;
131
143
  };
132
144
  penMode: boolean;
@@ -233,7 +245,13 @@ export declare const actionChangeExportBackground: {
233
245
  editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
234
246
  activeTool: {
235
247
  type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "image" | "freedraw" | "eraser";
236
- lastActiveToolBeforeEraser: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "image" | "freedraw" | null;
248
+ lastActiveToolBeforeEraser: import("../types").LastActiveToolBeforeEraser;
249
+ locked: boolean;
250
+ customType: null;
251
+ } | {
252
+ type: "custom";
253
+ customType: string;
254
+ lastActiveToolBeforeEraser: import("../types").LastActiveToolBeforeEraser;
237
255
  locked: boolean;
238
256
  };
239
257
  penMode: boolean;
@@ -340,7 +358,13 @@ export declare const actionChangeExportEmbedScene: {
340
358
  editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
341
359
  activeTool: {
342
360
  type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "image" | "freedraw" | "eraser";
343
- lastActiveToolBeforeEraser: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "image" | "freedraw" | null;
361
+ lastActiveToolBeforeEraser: import("../types").LastActiveToolBeforeEraser;
362
+ locked: boolean;
363
+ customType: null;
364
+ } | {
365
+ type: "custom";
366
+ customType: string;
367
+ lastActiveToolBeforeEraser: import("../types").LastActiveToolBeforeEraser;
344
368
  locked: boolean;
345
369
  };
346
370
  penMode: boolean;
@@ -448,7 +472,13 @@ export declare const actionSaveToActiveFile: {
448
472
  editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
449
473
  activeTool: {
450
474
  type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "image" | "freedraw" | "eraser";
451
- lastActiveToolBeforeEraser: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "image" | "freedraw" | null;
475
+ lastActiveToolBeforeEraser: import("../types").LastActiveToolBeforeEraser;
476
+ locked: boolean;
477
+ customType: null;
478
+ } | {
479
+ type: "custom";
480
+ customType: string;
481
+ lastActiveToolBeforeEraser: import("../types").LastActiveToolBeforeEraser;
452
482
  locked: boolean;
453
483
  };
454
484
  penMode: boolean;
@@ -557,7 +587,13 @@ export declare const actionSaveFileToDisk: {
557
587
  editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
558
588
  activeTool: {
559
589
  type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "image" | "freedraw" | "eraser";
560
- lastActiveToolBeforeEraser: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "image" | "freedraw" | null;
590
+ lastActiveToolBeforeEraser: import("../types").LastActiveToolBeforeEraser;
591
+ locked: boolean;
592
+ customType: null;
593
+ } | {
594
+ type: "custom";
595
+ customType: string;
596
+ lastActiveToolBeforeEraser: import("../types").LastActiveToolBeforeEraser;
561
597
  locked: boolean;
562
598
  };
563
599
  penMode: boolean;
@@ -655,7 +691,13 @@ export declare const actionLoadScene: {
655
691
  appState: {
656
692
  activeTool: {
657
693
  type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "image" | "freedraw" | "eraser";
658
- lastActiveToolBeforeEraser: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "image" | "freedraw" | null;
694
+ lastActiveToolBeforeEraser: import("../types").LastActiveToolBeforeEraser;
695
+ locked: boolean;
696
+ customType: null;
697
+ } | {
698
+ type: "custom";
699
+ customType: string;
700
+ lastActiveToolBeforeEraser: import("../types").LastActiveToolBeforeEraser;
659
701
  locked: boolean;
660
702
  };
661
703
  scrollX: number;
@@ -666,7 +708,6 @@ export declare const actionLoadScene: {
666
708
  }>;
667
709
  shouldCacheIgnoreZoom: boolean;
668
710
  theme: string;
669
- name: string;
670
711
  isLoading: boolean;
671
712
  errorMessage: string | null;
672
713
  draggingElement: import("../element/types").NonDeletedExcalidrawElement | null;
@@ -700,6 +741,7 @@ export declare const actionLoadScene: {
700
741
  currentItemLinearStrokeSharpness: import("../element/types").StrokeSharpness;
701
742
  cursorButton: "up" | "down";
702
743
  scrolledOutside: boolean;
744
+ name: string;
703
745
  isResizing: boolean;
704
746
  isRotating: boolean;
705
747
  openMenu: "canvas" | "shape" | null;
@@ -760,7 +802,13 @@ export declare const actionLoadScene: {
760
802
  editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
761
803
  activeTool: {
762
804
  type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "image" | "freedraw" | "eraser";
763
- lastActiveToolBeforeEraser: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "image" | "freedraw" | null;
805
+ lastActiveToolBeforeEraser: import("../types").LastActiveToolBeforeEraser;
806
+ locked: boolean;
807
+ customType: null;
808
+ } | {
809
+ type: "custom";
810
+ customType: string;
811
+ lastActiveToolBeforeEraser: import("../types").LastActiveToolBeforeEraser;
764
812
  locked: boolean;
765
813
  };
766
814
  penMode: boolean;
@@ -870,7 +918,13 @@ export declare const actionExportWithDarkMode: {
870
918
  editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
871
919
  activeTool: {
872
920
  type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "image" | "freedraw" | "eraser";
873
- lastActiveToolBeforeEraser: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "image" | "freedraw" | null;
921
+ lastActiveToolBeforeEraser: import("../types").LastActiveToolBeforeEraser;
922
+ locked: boolean;
923
+ customType: null;
924
+ } | {
925
+ type: "custom";
926
+ customType: string;
927
+ lastActiveToolBeforeEraser: import("../types").LastActiveToolBeforeEraser;
874
928
  locked: boolean;
875
929
  };
876
930
  penMode: boolean;
@@ -1,9 +1,10 @@
1
1
  /// <reference types="react" />
2
2
  import { LinearElementEditor } from "../element/linearElementEditor";
3
+ import { AppState } from "../types";
3
4
  export declare const actionFinalize: {
4
5
  name: "finalize";
5
6
  trackEvent: false;
6
- perform: (elements: readonly import("../element/types").ExcalidrawElement[], appState: Readonly<import("../types").AppState>, _: any, { canvas, focusContainer }: import("../types").AppClassProperties) => {
7
+ perform: (elements: readonly import("../element/types").ExcalidrawElement[], appState: Readonly<AppState>, _: any, { canvas, focusContainer }: import("../types").AppClassProperties) => {
7
8
  elements: import("../element/types").ExcalidrawElement[] | undefined;
8
9
  appState: {
9
10
  cursorButton: "up";
@@ -20,7 +21,13 @@ export declare const actionFinalize: {
20
21
  editingElement: import("../element/types").NonDeletedExcalidrawElement | null;
21
22
  activeTool: {
22
23
  type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "image" | "freedraw" | "eraser";
23
- lastActiveToolBeforeEraser: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "image" | "freedraw" | null;
24
+ lastActiveToolBeforeEraser: import("../types").LastActiveToolBeforeEraser;
25
+ locked: boolean;
26
+ customType: null;
27
+ } | {
28
+ type: "custom";
29
+ customType: string;
30
+ lastActiveToolBeforeEraser: import("../types").LastActiveToolBeforeEraser;
24
31
  locked: boolean;
25
32
  };
26
33
  penMode: boolean;
@@ -106,7 +113,13 @@ export declare const actionFinalize: {
106
113
  cursorButton: "up";
107
114
  activeTool: {
108
115
  type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "image" | "freedraw" | "eraser";
109
- lastActiveToolBeforeEraser: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "image" | "freedraw" | null;
116
+ lastActiveToolBeforeEraser: import("../types").LastActiveToolBeforeEraser;
117
+ locked: boolean;
118
+ customType: null;
119
+ } | {
120
+ type: "custom";
121
+ customType: string;
122
+ lastActiveToolBeforeEraser: import("../types").LastActiveToolBeforeEraser;
110
123
  locked: boolean;
111
124
  };
112
125
  draggingElement: null;
@@ -198,8 +211,8 @@ export declare const actionFinalize: {
198
211
  };
199
212
  commitToHistory: boolean;
200
213
  };
201
- keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>, appState: import("../types").AppState) => boolean;
214
+ keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>, appState: AppState) => boolean;
202
215
  PanelComponent: ({ appState, updateData, data }: import("react").PropsWithChildren<import("./types").PanelComponentProps>) => JSX.Element;
203
216
  } & {
204
- keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>, appState: import("../types").AppState) => boolean) | undefined;
217
+ keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>, appState: AppState) => boolean) | undefined;
205
218
  };