@zsviczian/excalidraw 0.13.0-obsidian-1 → 0.13.0-obsidian-2

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 (45) hide show
  1. package/README.md +1 -1
  2. package/dist/excalidraw.development.js +76 -54
  3. package/dist/excalidraw.production.min.js +1 -1
  4. package/package.json +1 -1
  5. package/types/actions/actionAddToLibrary.d.ts +3 -6
  6. package/types/actions/actionBoundText.d.ts +1 -2
  7. package/types/actions/actionCanvas.d.ts +21 -25
  8. package/types/actions/actionClipboard.d.ts +14 -10
  9. package/types/actions/actionDeleteSelected.d.ts +12 -6
  10. package/types/actions/actionExport.d.ts +17 -25
  11. package/types/actions/actionFinalize.d.ts +2 -4
  12. package/types/actions/actionLinearEditor.d.ts +1 -2
  13. package/types/actions/actionMenu.d.ts +5 -6
  14. package/types/actions/actionNavigate.d.ts +1 -0
  15. package/types/actions/actionProperties.d.ts +15 -28
  16. package/types/actions/actionStyles.d.ts +1 -2
  17. package/types/actions/actionToggleGridMode.d.ts +2 -2
  18. package/types/actions/actionToggleLock.d.ts +1 -2
  19. package/types/actions/actionToggleStats.d.ts +2 -2
  20. package/types/actions/actionToggleViewMode.d.ts +2 -2
  21. package/types/actions/actionToggleZenMode.d.ts +2 -2
  22. package/types/actions/types.d.ts +4 -1
  23. package/types/appState.d.ts +8 -9
  24. package/types/clipboard.d.ts +6 -1
  25. package/types/components/App.d.ts +1 -1
  26. package/types/components/ContextMenu.d.ts +9 -10
  27. package/types/constants.d.ts +7 -5
  28. package/types/element/Hyperlink.d.ts +1 -2
  29. package/types/element/bounds.d.ts +3 -2
  30. package/types/element/linearElementEditor.d.ts +32 -5
  31. package/types/element/newElement.d.ts +2 -2
  32. package/types/element/resizeElements.d.ts +0 -1
  33. package/types/element/textElement.d.ts +17 -2
  34. package/types/element/transformHandles.d.ts +2 -3
  35. package/types/element/typeChecks.d.ts +10 -1
  36. package/types/element/types.d.ts +11 -4
  37. package/types/excalidraw-app/data/index.d.ts +8 -9
  38. package/types/excalidraw-app/data/localStorage.d.ts +8 -9
  39. package/types/math.d.ts +2 -1
  40. package/types/renderer/renderElement.d.ts +4 -3
  41. package/types/scene/Fonts.d.ts +21 -0
  42. package/types/scene/Scene.d.ts +15 -0
  43. package/types/scene/comparisons.d.ts +2 -3
  44. package/types/scene/index.d.ts +1 -1
  45. package/types/types.d.ts +2 -3
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zsviczian/excalidraw",
3
- "version": "0.13.0-obsidian-1",
3
+ "version": "0.13.0-obsidian-2",
4
4
  "main": "main.js",
5
5
  "types": "types/packages/excalidraw/index.d.ts",
6
6
  "files": [
@@ -48,10 +48,9 @@ export declare const actionAddToLibrary: {
48
48
  currentItemFontFamily: number;
49
49
  currentItemFontSize: number;
50
50
  currentItemTextAlign: string;
51
- currentItemStrokeSharpness: import("../element/types").StrokeSharpness;
52
51
  currentItemStartArrowhead: import("../element/types").Arrowhead | null;
53
52
  currentItemEndArrowhead: import("../element/types").Arrowhead | null;
54
- currentItemLinearStrokeSharpness: import("../element/types").StrokeSharpness;
53
+ currentItemRoundness: import("../element/types").StrokeRoundness;
55
54
  viewBackgroundColor: string;
56
55
  scrollX: number;
57
56
  scrollY: number;
@@ -152,10 +151,9 @@ export declare const actionAddToLibrary: {
152
151
  currentItemFontFamily: number;
153
152
  currentItemFontSize: number;
154
153
  currentItemTextAlign: string;
155
- currentItemStrokeSharpness: import("../element/types").StrokeSharpness;
156
154
  currentItemStartArrowhead: import("../element/types").Arrowhead | null;
157
155
  currentItemEndArrowhead: import("../element/types").Arrowhead | null;
158
- currentItemLinearStrokeSharpness: import("../element/types").StrokeSharpness;
156
+ currentItemRoundness: import("../element/types").StrokeRoundness;
159
157
  viewBackgroundColor: string;
160
158
  scrollX: number;
161
159
  scrollY: number;
@@ -261,10 +259,9 @@ export declare const actionAddToLibrary: {
261
259
  currentItemFontFamily: number;
262
260
  currentItemFontSize: number;
263
261
  currentItemTextAlign: string;
264
- currentItemStrokeSharpness: import("../element/types").StrokeSharpness;
265
262
  currentItemStartArrowhead: import("../element/types").Arrowhead | null;
266
263
  currentItemEndArrowhead: import("../element/types").Arrowhead | null;
267
- currentItemLinearStrokeSharpness: import("../element/types").StrokeSharpness;
264
+ currentItemRoundness: import("../element/types").StrokeRoundness;
268
265
  viewBackgroundColor: string;
269
266
  scrollX: number;
270
267
  scrollY: number;
@@ -65,10 +65,9 @@ export declare const actionBindText: {
65
65
  currentItemFontFamily: number;
66
66
  currentItemFontSize: number;
67
67
  currentItemTextAlign: string;
68
- currentItemStrokeSharpness: import("../element/types").StrokeSharpness;
69
68
  currentItemStartArrowhead: import("../element/types").Arrowhead | null;
70
69
  currentItemEndArrowhead: import("../element/types").Arrowhead | null;
71
- currentItemLinearStrokeSharpness: import("../element/types").StrokeSharpness;
70
+ currentItemRoundness: import("../element/types").StrokeRoundness;
72
71
  viewBackgroundColor: string;
73
72
  scrollX: number;
74
73
  scrollY: number;
@@ -55,13 +55,6 @@ export declare const actionClearCanvas: {
55
55
  };
56
56
  trayModeEnabled: boolean;
57
57
  name: string;
58
- scrollX: number;
59
- scrollY: number;
60
- viewBackgroundColor: string;
61
- zoom: Readonly<{
62
- value: NormalizedZoomValue;
63
- }>;
64
- shouldCacheIgnoreZoom: boolean;
65
58
  showWelcomeScreen: boolean;
66
59
  isLoading: boolean;
67
60
  errorMessage: string | null;
@@ -86,14 +79,19 @@ export declare const actionClearCanvas: {
86
79
  currentItemFontFamily: number;
87
80
  currentItemFontSize: number;
88
81
  currentItemTextAlign: string;
89
- currentItemStrokeSharpness: import("../element/types").StrokeSharpness;
90
82
  currentItemStartArrowhead: import("../element/types").Arrowhead | null;
91
83
  currentItemEndArrowhead: import("../element/types").Arrowhead | null;
92
- currentItemLinearStrokeSharpness: import("../element/types").StrokeSharpness;
84
+ currentItemRoundness: import("../element/types").StrokeRoundness;
85
+ viewBackgroundColor: string;
86
+ scrollX: number;
87
+ scrollY: number;
93
88
  cursorButton: "up" | "down";
94
89
  scrolledOutside: boolean;
95
90
  isResizing: boolean;
96
91
  isRotating: boolean;
92
+ zoom: Readonly<{
93
+ value: NormalizedZoomValue;
94
+ }>;
97
95
  openMenu: "canvas" | "shape" | null;
98
96
  openPopup: "canvasColorPicker" | "backgroundColorPicker" | "strokeColorPicker" | null;
99
97
  openSidebar: "library" | "customSidebar" | null;
@@ -106,6 +104,7 @@ export declare const actionClearCanvas: {
106
104
  previousSelectedElementIds: {
107
105
  [id: string]: boolean;
108
106
  };
107
+ shouldCacheIgnoreZoom: boolean;
109
108
  toast: {
110
109
  message: string;
111
110
  closable?: boolean | undefined;
@@ -135,6 +134,7 @@ export declare const actionClearCanvas: {
135
134
  };
136
135
  export declare const actionZoomIn: {
137
136
  name: "zoomIn";
137
+ viewMode: true;
138
138
  trackEvent: {
139
139
  category: "canvas";
140
140
  };
@@ -184,10 +184,9 @@ export declare const actionZoomIn: {
184
184
  currentItemFontFamily: number;
185
185
  currentItemFontSize: number;
186
186
  currentItemTextAlign: string;
187
- currentItemStrokeSharpness: import("../element/types").StrokeSharpness;
188
187
  currentItemStartArrowhead: import("../element/types").Arrowhead | null;
189
188
  currentItemEndArrowhead: import("../element/types").Arrowhead | null;
190
- currentItemLinearStrokeSharpness: import("../element/types").StrokeSharpness;
189
+ currentItemRoundness: import("../element/types").StrokeRoundness;
191
190
  viewBackgroundColor: string;
192
191
  cursorButton: "up" | "down";
193
192
  scrolledOutside: boolean;
@@ -257,6 +256,7 @@ export declare const actionZoomIn: {
257
256
  };
258
257
  export declare const actionZoomOut: {
259
258
  name: "zoomOut";
259
+ viewMode: true;
260
260
  trackEvent: {
261
261
  category: "canvas";
262
262
  };
@@ -306,10 +306,9 @@ export declare const actionZoomOut: {
306
306
  currentItemFontFamily: number;
307
307
  currentItemFontSize: number;
308
308
  currentItemTextAlign: string;
309
- currentItemStrokeSharpness: import("../element/types").StrokeSharpness;
310
309
  currentItemStartArrowhead: import("../element/types").Arrowhead | null;
311
310
  currentItemEndArrowhead: import("../element/types").Arrowhead | null;
312
- currentItemLinearStrokeSharpness: import("../element/types").StrokeSharpness;
311
+ currentItemRoundness: import("../element/types").StrokeRoundness;
313
312
  viewBackgroundColor: string;
314
313
  cursorButton: "up" | "down";
315
314
  scrolledOutside: boolean;
@@ -379,6 +378,7 @@ export declare const actionZoomOut: {
379
378
  };
380
379
  export declare const actionResetZoom: {
381
380
  name: "resetZoom";
381
+ viewMode: true;
382
382
  trackEvent: {
383
383
  category: "canvas";
384
384
  };
@@ -428,10 +428,9 @@ export declare const actionResetZoom: {
428
428
  currentItemFontFamily: number;
429
429
  currentItemFontSize: number;
430
430
  currentItemTextAlign: string;
431
- currentItemStrokeSharpness: import("../element/types").StrokeSharpness;
432
431
  currentItemStartArrowhead: import("../element/types").Arrowhead | null;
433
432
  currentItemEndArrowhead: import("../element/types").Arrowhead | null;
434
- currentItemLinearStrokeSharpness: import("../element/types").StrokeSharpness;
433
+ currentItemRoundness: import("../element/types").StrokeRoundness;
435
434
  viewBackgroundColor: string;
436
435
  cursorButton: "up" | "down";
437
436
  scrolledOutside: boolean;
@@ -545,10 +544,9 @@ export declare const zoomToFitElements: (elements: readonly ExcalidrawElement[],
545
544
  currentItemFontFamily: number;
546
545
  currentItemFontSize: number;
547
546
  currentItemTextAlign: string;
548
- currentItemStrokeSharpness: import("../element/types").StrokeSharpness;
549
547
  currentItemStartArrowhead: import("../element/types").Arrowhead | null;
550
548
  currentItemEndArrowhead: import("../element/types").Arrowhead | null;
551
- currentItemLinearStrokeSharpness: import("../element/types").StrokeSharpness;
549
+ currentItemRoundness: import("../element/types").StrokeRoundness;
552
550
  viewBackgroundColor: string;
553
551
  cursorButton: "up" | "down";
554
552
  scrolledOutside: boolean;
@@ -660,10 +658,9 @@ export declare const actionZoomToSelected: {
660
658
  currentItemFontFamily: number;
661
659
  currentItemFontSize: number;
662
660
  currentItemTextAlign: string;
663
- currentItemStrokeSharpness: import("../element/types").StrokeSharpness;
664
661
  currentItemStartArrowhead: import("../element/types").Arrowhead | null;
665
662
  currentItemEndArrowhead: import("../element/types").Arrowhead | null;
666
- currentItemLinearStrokeSharpness: import("../element/types").StrokeSharpness;
663
+ currentItemRoundness: import("../element/types").StrokeRoundness;
667
664
  viewBackgroundColor: string;
668
665
  cursorButton: "up" | "down";
669
666
  scrolledOutside: boolean;
@@ -730,6 +727,7 @@ export declare const actionZoomToSelected: {
730
727
  };
731
728
  export declare const actionZoomToFit: {
732
729
  name: "zoomToFit";
730
+ viewMode: true;
733
731
  trackEvent: {
734
732
  category: "canvas";
735
733
  };
@@ -779,10 +777,9 @@ export declare const actionZoomToFit: {
779
777
  currentItemFontFamily: number;
780
778
  currentItemFontSize: number;
781
779
  currentItemTextAlign: string;
782
- currentItemStrokeSharpness: import("../element/types").StrokeSharpness;
783
780
  currentItemStartArrowhead: import("../element/types").Arrowhead | null;
784
781
  currentItemEndArrowhead: import("../element/types").Arrowhead | null;
785
- currentItemLinearStrokeSharpness: import("../element/types").StrokeSharpness;
782
+ currentItemRoundness: import("../element/types").StrokeRoundness;
786
783
  viewBackgroundColor: string;
787
784
  cursorButton: "up" | "down";
788
785
  scrolledOutside: boolean;
@@ -849,6 +846,7 @@ export declare const actionZoomToFit: {
849
846
  };
850
847
  export declare const actionToggleTheme: {
851
848
  name: "toggleTheme";
849
+ viewMode: true;
852
850
  trackEvent: {
853
851
  category: "canvas";
854
852
  };
@@ -894,10 +892,9 @@ export declare const actionToggleTheme: {
894
892
  currentItemFontFamily: number;
895
893
  currentItemFontSize: number;
896
894
  currentItemTextAlign: string;
897
- currentItemStrokeSharpness: import("../element/types").StrokeSharpness;
898
895
  currentItemStartArrowhead: import("../element/types").Arrowhead | null;
899
896
  currentItemEndArrowhead: import("../element/types").Arrowhead | null;
900
- currentItemLinearStrokeSharpness: import("../element/types").StrokeSharpness;
897
+ currentItemRoundness: import("../element/types").StrokeRoundness;
901
898
  viewBackgroundColor: string;
902
899
  scrollX: number;
903
900
  scrollY: number;
@@ -1017,10 +1014,9 @@ export declare const actionErase: {
1017
1014
  currentItemFontFamily: number;
1018
1015
  currentItemFontSize: number;
1019
1016
  currentItemTextAlign: string;
1020
- currentItemStrokeSharpness: import("../element/types").StrokeSharpness;
1021
1017
  currentItemStartArrowhead: import("../element/types").Arrowhead | null;
1022
1018
  currentItemEndArrowhead: import("../element/types").Arrowhead | null;
1023
- currentItemLinearStrokeSharpness: import("../element/types").StrokeSharpness;
1019
+ currentItemRoundness: import("../element/types").StrokeRoundness;
1024
1020
  viewBackgroundColor: string;
1025
1021
  scrollX: number;
1026
1022
  scrollY: number;
@@ -59,10 +59,9 @@ export declare const actionCut: {
59
59
  currentItemFontFamily: number;
60
60
  currentItemFontSize: number;
61
61
  currentItemTextAlign: string;
62
- currentItemStrokeSharpness: import("../element/types").StrokeSharpness;
63
62
  currentItemStartArrowhead: import("../element/types").Arrowhead | null;
64
63
  currentItemEndArrowhead: import("../element/types").Arrowhead | null;
65
- currentItemLinearStrokeSharpness: import("../element/types").StrokeSharpness;
64
+ currentItemRoundness: import("../element/types").StrokeRoundness;
66
65
  viewBackgroundColor: string;
67
66
  scrollX: number;
68
67
  scrollY: number;
@@ -140,6 +139,15 @@ export declare const actionCut: {
140
139
  pointerDownState: Readonly<{
141
140
  prevSelectedPointsIndices: readonly number[] | null;
142
141
  lastClickedPoint: number;
142
+ origin: Readonly<{
143
+ x: number;
144
+ y: number;
145
+ }> | null;
146
+ segmentMidpoint: {
147
+ value: readonly [number, number] | null;
148
+ index: number | null;
149
+ added: boolean;
150
+ };
143
151
  }>;
144
152
  isDragging: boolean;
145
153
  lastUncommittedPoint: readonly [number, number] | null;
@@ -188,10 +196,9 @@ export declare const actionCut: {
188
196
  currentItemFontFamily: number;
189
197
  currentItemFontSize: number;
190
198
  currentItemTextAlign: string;
191
- currentItemStrokeSharpness: import("../element/types").StrokeSharpness;
192
199
  currentItemStartArrowhead: import("../element/types").Arrowhead | null;
193
200
  currentItemEndArrowhead: import("../element/types").Arrowhead | null;
194
- currentItemLinearStrokeSharpness: import("../element/types").StrokeSharpness;
201
+ currentItemRoundness: import("../element/types").StrokeRoundness;
195
202
  viewBackgroundColor: string;
196
203
  scrollX: number;
197
204
  scrollY: number;
@@ -299,10 +306,9 @@ export declare const actionCut: {
299
306
  currentItemFontFamily: number;
300
307
  currentItemFontSize: number;
301
308
  currentItemTextAlign: string;
302
- currentItemStrokeSharpness: import("../element/types").StrokeSharpness;
303
309
  currentItemStartArrowhead: import("../element/types").Arrowhead | null;
304
310
  currentItemEndArrowhead: import("../element/types").Arrowhead | null;
305
- currentItemLinearStrokeSharpness: import("../element/types").StrokeSharpness;
311
+ currentItemRoundness: import("../element/types").StrokeRoundness;
306
312
  viewBackgroundColor: string;
307
313
  scrollX: number;
308
314
  scrollY: number;
@@ -419,10 +425,9 @@ export declare const actionCopyAsSvg: {
419
425
  currentItemFontFamily: number;
420
426
  currentItemFontSize: number;
421
427
  currentItemTextAlign: string;
422
- currentItemStrokeSharpness: import("../element/types").StrokeSharpness;
423
428
  currentItemStartArrowhead: import("../element/types").Arrowhead | null;
424
429
  currentItemEndArrowhead: import("../element/types").Arrowhead | null;
425
- currentItemLinearStrokeSharpness: import("../element/types").StrokeSharpness;
430
+ currentItemRoundness: import("../element/types").StrokeRoundness;
426
431
  viewBackgroundColor: string;
427
432
  scrollX: number;
428
433
  scrollY: number;
@@ -541,10 +546,9 @@ export declare const actionCopyAsPng: {
541
546
  currentItemFontFamily: number;
542
547
  currentItemFontSize: number;
543
548
  currentItemTextAlign: string;
544
- currentItemStrokeSharpness: import("../element/types").StrokeSharpness;
545
549
  currentItemStartArrowhead: import("../element/types").Arrowhead | null;
546
550
  currentItemEndArrowhead: import("../element/types").Arrowhead | null;
547
- currentItemLinearStrokeSharpness: import("../element/types").StrokeSharpness;
551
+ currentItemRoundness: import("../element/types").StrokeRoundness;
548
552
  viewBackgroundColor: string;
549
553
  scrollX: number;
550
554
  scrollY: number;
@@ -50,10 +50,9 @@ export declare const actionDeleteSelected: {
50
50
  currentItemFontFamily: number;
51
51
  currentItemFontSize: number;
52
52
  currentItemTextAlign: string;
53
- currentItemStrokeSharpness: import("../element/types").StrokeSharpness;
54
53
  currentItemStartArrowhead: import("../element/types").Arrowhead | null;
55
54
  currentItemEndArrowhead: import("../element/types").Arrowhead | null;
56
- currentItemLinearStrokeSharpness: import("../element/types").StrokeSharpness;
55
+ currentItemRoundness: import("../element/types").StrokeRoundness;
57
56
  viewBackgroundColor: string;
58
57
  scrollX: number;
59
58
  scrollY: number;
@@ -131,6 +130,15 @@ export declare const actionDeleteSelected: {
131
130
  pointerDownState: Readonly<{
132
131
  prevSelectedPointsIndices: readonly number[] | null;
133
132
  lastClickedPoint: number;
133
+ origin: Readonly<{
134
+ x: number;
135
+ y: number;
136
+ }> | null;
137
+ segmentMidpoint: {
138
+ value: readonly [number, number] | null;
139
+ index: number | null;
140
+ added: boolean;
141
+ };
134
142
  }>;
135
143
  isDragging: boolean;
136
144
  lastUncommittedPoint: readonly [number, number] | null;
@@ -179,10 +187,9 @@ export declare const actionDeleteSelected: {
179
187
  currentItemFontFamily: number;
180
188
  currentItemFontSize: number;
181
189
  currentItemTextAlign: string;
182
- currentItemStrokeSharpness: import("../element/types").StrokeSharpness;
183
190
  currentItemStartArrowhead: import("../element/types").Arrowhead | null;
184
191
  currentItemEndArrowhead: import("../element/types").Arrowhead | null;
185
- currentItemLinearStrokeSharpness: import("../element/types").StrokeSharpness;
192
+ currentItemRoundness: import("../element/types").StrokeRoundness;
186
193
  viewBackgroundColor: string;
187
194
  scrollX: number;
188
195
  scrollY: number;
@@ -290,10 +297,9 @@ export declare const actionDeleteSelected: {
290
297
  currentItemFontFamily: number;
291
298
  currentItemFontSize: number;
292
299
  currentItemTextAlign: string;
293
- currentItemStrokeSharpness: import("../element/types").StrokeSharpness;
294
300
  currentItemStartArrowhead: import("../element/types").Arrowhead | null;
295
301
  currentItemEndArrowhead: import("../element/types").Arrowhead | null;
296
- currentItemLinearStrokeSharpness: import("../element/types").StrokeSharpness;
302
+ currentItemRoundness: import("../element/types").StrokeRoundness;
297
303
  viewBackgroundColor: string;
298
304
  scrollX: number;
299
305
  scrollY: number;
@@ -45,10 +45,9 @@ export declare const actionChangeProjectName: {
45
45
  currentItemFontFamily: number;
46
46
  currentItemFontSize: number;
47
47
  currentItemTextAlign: string;
48
- currentItemStrokeSharpness: import("../element/types").StrokeSharpness;
49
48
  currentItemStartArrowhead: import("../element/types").Arrowhead | null;
50
49
  currentItemEndArrowhead: import("../element/types").Arrowhead | null;
51
- currentItemLinearStrokeSharpness: import("../element/types").StrokeSharpness;
50
+ currentItemRoundness: import("../element/types").StrokeRoundness;
52
51
  viewBackgroundColor: string;
53
52
  scrollX: number;
54
53
  scrollY: number;
@@ -166,10 +165,9 @@ export declare const actionChangeExportScale: {
166
165
  currentItemFontFamily: number;
167
166
  currentItemFontSize: number;
168
167
  currentItemTextAlign: string;
169
- currentItemStrokeSharpness: import("../element/types").StrokeSharpness;
170
168
  currentItemStartArrowhead: import("../element/types").Arrowhead | null;
171
169
  currentItemEndArrowhead: import("../element/types").Arrowhead | null;
172
- currentItemLinearStrokeSharpness: import("../element/types").StrokeSharpness;
170
+ currentItemRoundness: import("../element/types").StrokeRoundness;
173
171
  viewBackgroundColor: string;
174
172
  scrollX: number;
175
173
  scrollY: number;
@@ -288,10 +286,9 @@ export declare const actionChangeExportBackground: {
288
286
  currentItemFontFamily: number;
289
287
  currentItemFontSize: number;
290
288
  currentItemTextAlign: string;
291
- currentItemStrokeSharpness: import("../element/types").StrokeSharpness;
292
289
  currentItemStartArrowhead: import("../element/types").Arrowhead | null;
293
290
  currentItemEndArrowhead: import("../element/types").Arrowhead | null;
294
- currentItemLinearStrokeSharpness: import("../element/types").StrokeSharpness;
291
+ currentItemRoundness: import("../element/types").StrokeRoundness;
295
292
  viewBackgroundColor: string;
296
293
  scrollX: number;
297
294
  scrollY: number;
@@ -410,10 +407,9 @@ export declare const actionChangeExportEmbedScene: {
410
407
  currentItemFontFamily: number;
411
408
  currentItemFontSize: number;
412
409
  currentItemTextAlign: string;
413
- currentItemStrokeSharpness: import("../element/types").StrokeSharpness;
414
410
  currentItemStartArrowhead: import("../element/types").Arrowhead | null;
415
411
  currentItemEndArrowhead: import("../element/types").Arrowhead | null;
416
- currentItemLinearStrokeSharpness: import("../element/types").StrokeSharpness;
412
+ currentItemRoundness: import("../element/types").StrokeRoundness;
417
413
  viewBackgroundColor: string;
418
414
  scrollX: number;
419
415
  scrollY: number;
@@ -536,10 +532,9 @@ export declare const actionSaveToActiveFile: {
536
532
  currentItemFontFamily: number;
537
533
  currentItemFontSize: number;
538
534
  currentItemTextAlign: string;
539
- currentItemStrokeSharpness: import("../element/types").StrokeSharpness;
540
535
  currentItemStartArrowhead: import("../element/types").Arrowhead | null;
541
536
  currentItemEndArrowhead: import("../element/types").Arrowhead | null;
542
- currentItemLinearStrokeSharpness: import("../element/types").StrokeSharpness;
537
+ currentItemRoundness: import("../element/types").StrokeRoundness;
543
538
  viewBackgroundColor: string;
544
539
  scrollX: number;
545
540
  scrollY: number;
@@ -610,6 +605,7 @@ export declare const actionSaveToActiveFile: {
610
605
  };
611
606
  export declare const actionSaveFileToDisk: {
612
607
  name: "saveFileToDisk";
608
+ viewMode: true;
613
609
  trackEvent: {
614
610
  category: "export";
615
611
  };
@@ -656,10 +652,9 @@ export declare const actionSaveFileToDisk: {
656
652
  currentItemFontFamily: number;
657
653
  currentItemFontSize: number;
658
654
  currentItemTextAlign: string;
659
- currentItemStrokeSharpness: import("../element/types").StrokeSharpness;
660
655
  currentItemStartArrowhead: import("../element/types").Arrowhead | null;
661
656
  currentItemEndArrowhead: import("../element/types").Arrowhead | null;
662
- currentItemLinearStrokeSharpness: import("../element/types").StrokeSharpness;
657
+ currentItemRoundness: import("../element/types").StrokeRoundness;
663
658
  viewBackgroundColor: string;
664
659
  scrollX: number;
665
660
  scrollY: number;
@@ -754,13 +749,6 @@ export declare const actionLoadScene: {
754
749
  lastActiveToolBeforeEraser: import("../types").LastActiveToolBeforeEraser;
755
750
  locked: boolean;
756
751
  };
757
- scrollX: number;
758
- scrollY: number;
759
- viewBackgroundColor: string;
760
- zoom: Readonly<{
761
- value: import("../types").NormalizedZoomValue;
762
- }>;
763
- shouldCacheIgnoreZoom: boolean;
764
752
  showWelcomeScreen: boolean;
765
753
  isLoading: boolean;
766
754
  errorMessage: string | null;
@@ -789,14 +777,19 @@ export declare const actionLoadScene: {
789
777
  currentItemFontFamily: number;
790
778
  currentItemFontSize: number;
791
779
  currentItemTextAlign: string;
792
- currentItemStrokeSharpness: import("../element/types").StrokeSharpness;
793
780
  currentItemStartArrowhead: import("../element/types").Arrowhead | null;
794
781
  currentItemEndArrowhead: import("../element/types").Arrowhead | null;
795
- currentItemLinearStrokeSharpness: import("../element/types").StrokeSharpness;
782
+ currentItemRoundness: import("../element/types").StrokeRoundness;
783
+ viewBackgroundColor: string;
784
+ scrollX: number;
785
+ scrollY: number;
796
786
  cursorButton: "up" | "down";
797
787
  scrolledOutside: boolean;
798
788
  isResizing: boolean;
799
789
  isRotating: boolean;
790
+ zoom: Readonly<{
791
+ value: import("../types").NormalizedZoomValue;
792
+ }>;
800
793
  openMenu: "canvas" | "shape" | null;
801
794
  openPopup: "canvasColorPicker" | "backgroundColorPicker" | "strokeColorPicker" | null;
802
795
  openSidebar: "library" | "customSidebar" | null;
@@ -809,6 +802,7 @@ export declare const actionLoadScene: {
809
802
  previousSelectedElementIds: {
810
803
  [id: string]: boolean;
811
804
  };
805
+ shouldCacheIgnoreZoom: boolean;
812
806
  toast: {
813
807
  message: string;
814
808
  closable?: boolean | undefined;
@@ -887,10 +881,9 @@ export declare const actionLoadScene: {
887
881
  currentItemFontFamily: number;
888
882
  currentItemFontSize: number;
889
883
  currentItemTextAlign: string;
890
- currentItemStrokeSharpness: import("../element/types").StrokeSharpness;
891
884
  currentItemStartArrowhead: import("../element/types").Arrowhead | null;
892
885
  currentItemEndArrowhead: import("../element/types").Arrowhead | null;
893
- currentItemLinearStrokeSharpness: import("../element/types").StrokeSharpness;
886
+ currentItemRoundness: import("../element/types").StrokeRoundness;
894
887
  viewBackgroundColor: string;
895
888
  scrollX: number;
896
889
  scrollY: number;
@@ -1011,10 +1004,9 @@ export declare const actionExportWithDarkMode: {
1011
1004
  currentItemFontFamily: number;
1012
1005
  currentItemFontSize: number;
1013
1006
  currentItemTextAlign: string;
1014
- currentItemStrokeSharpness: import("../element/types").StrokeSharpness;
1015
1007
  currentItemStartArrowhead: import("../element/types").Arrowhead | null;
1016
1008
  currentItemEndArrowhead: import("../element/types").Arrowhead | null;
1017
- currentItemLinearStrokeSharpness: import("../element/types").StrokeSharpness;
1009
+ currentItemRoundness: import("../element/types").StrokeRoundness;
1018
1010
  viewBackgroundColor: string;
1019
1011
  scrollX: number;
1020
1012
  scrollY: number;
@@ -47,10 +47,9 @@ export declare const actionFinalize: {
47
47
  currentItemFontFamily: number;
48
48
  currentItemFontSize: number;
49
49
  currentItemTextAlign: string;
50
- currentItemStrokeSharpness: import("../element/types").StrokeSharpness;
51
50
  currentItemStartArrowhead: import("../element/types").Arrowhead | null;
52
51
  currentItemEndArrowhead: import("../element/types").Arrowhead | null;
53
- currentItemLinearStrokeSharpness: import("../element/types").StrokeSharpness;
52
+ currentItemRoundness: import("../element/types").StrokeRoundness;
54
53
  viewBackgroundColor: string;
55
54
  scrollX: number;
56
55
  scrollY: number;
@@ -162,10 +161,9 @@ export declare const actionFinalize: {
162
161
  currentItemFontFamily: number;
163
162
  currentItemFontSize: number;
164
163
  currentItemTextAlign: string;
165
- currentItemStrokeSharpness: import("../element/types").StrokeSharpness;
166
164
  currentItemStartArrowhead: import("../element/types").Arrowhead | null;
167
165
  currentItemEndArrowhead: import("../element/types").Arrowhead | null;
168
- currentItemLinearStrokeSharpness: import("../element/types").StrokeSharpness;
166
+ currentItemRoundness: import("../element/types").StrokeRoundness;
169
167
  viewBackgroundColor: string;
170
168
  scrollX: number;
171
169
  scrollY: number;
@@ -47,10 +47,9 @@ export declare const actionToggleLinearEditor: {
47
47
  currentItemFontFamily: number;
48
48
  currentItemFontSize: number;
49
49
  currentItemTextAlign: string;
50
- currentItemStrokeSharpness: import("../element/types").StrokeSharpness;
51
50
  currentItemStartArrowhead: import("../element/types").Arrowhead | null;
52
51
  currentItemEndArrowhead: import("../element/types").Arrowhead | null;
53
- currentItemLinearStrokeSharpness: import("../element/types").StrokeSharpness;
52
+ currentItemRoundness: import("../element/types").StrokeRoundness;
54
53
  viewBackgroundColor: string;
55
54
  scrollX: number;
56
55
  scrollY: number;
@@ -46,10 +46,9 @@ export declare const actionToggleCanvasMenu: {
46
46
  currentItemFontFamily: number;
47
47
  currentItemFontSize: number;
48
48
  currentItemTextAlign: string;
49
- currentItemStrokeSharpness: import("../element/types").StrokeSharpness;
50
49
  currentItemStartArrowhead: import("../element/types").Arrowhead | null;
51
50
  currentItemEndArrowhead: import("../element/types").Arrowhead | null;
52
- currentItemLinearStrokeSharpness: import("../element/types").StrokeSharpness;
51
+ currentItemRoundness: import("../element/types").StrokeRoundness;
53
52
  viewBackgroundColor: string;
54
53
  scrollX: number;
55
54
  scrollY: number;
@@ -167,10 +166,9 @@ export declare const actionToggleEditMenu: {
167
166
  currentItemFontFamily: number;
168
167
  currentItemFontSize: number;
169
168
  currentItemTextAlign: string;
170
- currentItemStrokeSharpness: import("../element/types").StrokeSharpness;
171
169
  currentItemStartArrowhead: import("../element/types").Arrowhead | null;
172
170
  currentItemEndArrowhead: import("../element/types").Arrowhead | null;
173
- currentItemLinearStrokeSharpness: import("../element/types").StrokeSharpness;
171
+ currentItemRoundness: import("../element/types").StrokeRoundness;
174
172
  viewBackgroundColor: string;
175
173
  scrollX: number;
176
174
  scrollY: number;
@@ -243,6 +241,7 @@ export declare const actionToggleEditMenu: {
243
241
  };
244
242
  export declare const actionFullScreen: {
245
243
  name: "toggleFullScreen";
244
+ viewMode: true;
246
245
  trackEvent: {
247
246
  category: "canvas";
248
247
  predicate: (appState: Readonly<import("../types").AppState>) => boolean;
@@ -256,6 +255,7 @@ export declare const actionFullScreen: {
256
255
  };
257
256
  export declare const actionShortcuts: {
258
257
  name: "toggleShortcuts";
258
+ viewMode: true;
259
259
  trackEvent: {
260
260
  category: "menu";
261
261
  action: string;
@@ -302,10 +302,9 @@ export declare const actionShortcuts: {
302
302
  currentItemFontFamily: number;
303
303
  currentItemFontSize: number;
304
304
  currentItemTextAlign: string;
305
- currentItemStrokeSharpness: import("../element/types").StrokeSharpness;
306
305
  currentItemStartArrowhead: import("../element/types").Arrowhead | null;
307
306
  currentItemEndArrowhead: import("../element/types").Arrowhead | null;
308
- currentItemLinearStrokeSharpness: import("../element/types").StrokeSharpness;
307
+ currentItemRoundness: import("../element/types").StrokeRoundness;
309
308
  viewBackgroundColor: string;
310
309
  scrollX: number;
311
310
  scrollY: number;
@@ -1,5 +1,6 @@
1
1
  export declare const actionGoToCollaborator: {
2
2
  name: "goToCollaborator";
3
+ viewMode: true;
3
4
  trackEvent: {
4
5
  category: "collab";
5
6
  };