@dwelle/excalidraw 0.3.37 → 0.3.41
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 +1 -0
- package/dist/excalidraw-assets-dev/{image-8825d180ee32659f8996.js → image-89cddf27ef982ca154dc.js} +0 -0
- package/dist/excalidraw.development.js +85 -31
- package/dist/excalidraw.production.min.js +1 -1
- package/package.json +1 -1
- package/types/actions/actionAddToLibrary.d.ts +9 -12
- package/types/actions/actionCanvas.d.ts +40 -47
- package/types/actions/actionClipboard.d.ts +15 -20
- package/types/actions/actionDeleteSelected.d.ts +9 -12
- package/types/actions/actionExport.d.ts +27 -36
- package/types/actions/actionFinalize.d.ts +6 -8
- package/types/actions/actionMenu.d.ts +9 -12
- package/types/actions/actionProperties.d.ts +36 -48
- package/types/actions/actionStyles.d.ts +3 -4
- package/types/actions/actionToggleGridMode.d.ts +3 -4
- package/types/actions/actionToggleStats.d.ts +3 -4
- package/types/actions/actionToggleViewMode.d.ts +3 -4
- package/types/actions/actionToggleZenMode.d.ts +3 -4
- package/types/actions/actionUnbindText.d.ts +11 -0
- package/types/actions/index.d.ts +2 -0
- package/types/actions/shortcuts.d.ts +1 -1
- package/types/actions/types.d.ts +1 -1
- package/types/appState.d.ts +0 -4
- package/types/components/App.d.ts +11 -2
- package/types/components/LayerUI.d.ts +2 -1
- package/types/components/MobileMenu.d.ts +2 -1
- package/types/components/PenModeButton.d.ts +13 -0
- package/types/components/Tooltip.d.ts +7 -0
- package/types/components/icons.d.ts +1 -0
- package/types/constants.d.ts +1 -0
- package/types/element/Hyperlink.d.ts +117 -0
- package/types/element/collision.d.ts +1 -0
- package/types/element/linearElementEditor.d.ts +4 -6
- package/types/element/newElement.d.ts +1 -1
- package/types/element/textWysiwyg.d.ts +1 -3
- package/types/element/types.d.ts +1 -0
- package/types/keys.d.ts +1 -0
- package/types/packages/excalidraw/dist/excalidraw-assets-dev/image-89cddf27ef982ca154dc.d.ts +0 -0
- package/types/renderer/renderElement.d.ts +1 -0
- package/types/scene/index.d.ts +1 -1
- package/types/scene/zoom.d.ts +12 -5
- package/types/types.d.ts +4 -4
package/package.json
CHANGED
|
@@ -17,6 +17,8 @@ export declare const actionAddToLibrary: {
|
|
|
17
17
|
editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
|
|
18
18
|
elementType: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "image" | "freedraw";
|
|
19
19
|
elementLocked: boolean;
|
|
20
|
+
penMode: boolean;
|
|
21
|
+
penDetected: boolean;
|
|
20
22
|
exportBackground: boolean;
|
|
21
23
|
exportEmbedScene: boolean;
|
|
22
24
|
exportWithDarkMode: boolean;
|
|
@@ -45,10 +47,6 @@ export declare const actionAddToLibrary: {
|
|
|
45
47
|
isRotating: boolean;
|
|
46
48
|
zoom: Readonly<{
|
|
47
49
|
value: import("../types").NormalizedZoomValue;
|
|
48
|
-
translation: Readonly<{
|
|
49
|
-
x: number;
|
|
50
|
-
y: number;
|
|
51
|
-
}>;
|
|
52
50
|
}>;
|
|
53
51
|
openMenu: "canvas" | "shape" | null;
|
|
54
52
|
openPopup: "canvasColorPicker" | "backgroundColorPicker" | "strokeColorPicker" | null;
|
|
@@ -86,6 +84,7 @@ export declare const actionAddToLibrary: {
|
|
|
86
84
|
data: import("../charts").Spreadsheet;
|
|
87
85
|
};
|
|
88
86
|
pendingImageElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawImageElement> | null;
|
|
87
|
+
showHyperlinkPopup: false | "info" | "editor";
|
|
89
88
|
};
|
|
90
89
|
} | {
|
|
91
90
|
commitToHistory: false;
|
|
@@ -103,6 +102,8 @@ export declare const actionAddToLibrary: {
|
|
|
103
102
|
editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
|
|
104
103
|
elementType: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "image" | "freedraw";
|
|
105
104
|
elementLocked: boolean;
|
|
105
|
+
penMode: boolean;
|
|
106
|
+
penDetected: boolean;
|
|
106
107
|
exportBackground: boolean;
|
|
107
108
|
exportEmbedScene: boolean;
|
|
108
109
|
exportWithDarkMode: boolean;
|
|
@@ -131,10 +132,6 @@ export declare const actionAddToLibrary: {
|
|
|
131
132
|
isRotating: boolean;
|
|
132
133
|
zoom: Readonly<{
|
|
133
134
|
value: import("../types").NormalizedZoomValue;
|
|
134
|
-
translation: Readonly<{
|
|
135
|
-
x: number;
|
|
136
|
-
y: number;
|
|
137
|
-
}>;
|
|
138
135
|
}>;
|
|
139
136
|
openMenu: "canvas" | "shape" | null;
|
|
140
137
|
openPopup: "canvasColorPicker" | "backgroundColorPicker" | "strokeColorPicker" | null;
|
|
@@ -173,6 +170,7 @@ export declare const actionAddToLibrary: {
|
|
|
173
170
|
data: import("../charts").Spreadsheet;
|
|
174
171
|
};
|
|
175
172
|
pendingImageElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawImageElement> | null;
|
|
173
|
+
showHyperlinkPopup: false | "info" | "editor";
|
|
176
174
|
};
|
|
177
175
|
}> | {
|
|
178
176
|
commitToHistory: false;
|
|
@@ -190,6 +188,8 @@ export declare const actionAddToLibrary: {
|
|
|
190
188
|
editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
|
|
191
189
|
elementType: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "image" | "freedraw";
|
|
192
190
|
elementLocked: boolean;
|
|
191
|
+
penMode: boolean;
|
|
192
|
+
penDetected: boolean;
|
|
193
193
|
exportBackground: boolean;
|
|
194
194
|
exportEmbedScene: boolean;
|
|
195
195
|
exportWithDarkMode: boolean;
|
|
@@ -218,10 +218,6 @@ export declare const actionAddToLibrary: {
|
|
|
218
218
|
isRotating: boolean;
|
|
219
219
|
zoom: Readonly<{
|
|
220
220
|
value: import("../types").NormalizedZoomValue;
|
|
221
|
-
translation: Readonly<{
|
|
222
|
-
x: number;
|
|
223
|
-
y: number;
|
|
224
|
-
}>;
|
|
225
221
|
}>;
|
|
226
222
|
openMenu: "canvas" | "shape" | null;
|
|
227
223
|
openPopup: "canvasColorPicker" | "backgroundColorPicker" | "strokeColorPicker" | null;
|
|
@@ -260,6 +256,7 @@ export declare const actionAddToLibrary: {
|
|
|
260
256
|
data: import("../charts").Spreadsheet;
|
|
261
257
|
};
|
|
262
258
|
pendingImageElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawImageElement> | null;
|
|
259
|
+
showHyperlinkPopup: false | "info" | "editor";
|
|
263
260
|
};
|
|
264
261
|
};
|
|
265
262
|
contextItemLabel: string;
|
|
@@ -19,6 +19,8 @@ export declare const actionClearCanvas: {
|
|
|
19
19
|
files: {};
|
|
20
20
|
theme: string;
|
|
21
21
|
elementLocked: boolean;
|
|
22
|
+
penMode: boolean;
|
|
23
|
+
penDetected: boolean;
|
|
22
24
|
exportBackground: boolean;
|
|
23
25
|
exportEmbedScene: boolean;
|
|
24
26
|
gridSize: number | null;
|
|
@@ -35,10 +37,6 @@ export declare const actionClearCanvas: {
|
|
|
35
37
|
viewBackgroundColor: string;
|
|
36
38
|
zoom: Readonly<{
|
|
37
39
|
value: NormalizedZoomValue;
|
|
38
|
-
translation: Readonly<{
|
|
39
|
-
x: number;
|
|
40
|
-
y: number;
|
|
41
|
-
}>;
|
|
42
40
|
}>;
|
|
43
41
|
shouldCacheIgnoreZoom: boolean;
|
|
44
42
|
name: string;
|
|
@@ -96,6 +94,7 @@ export declare const actionClearCanvas: {
|
|
|
96
94
|
collaborators: Map<string, import("../types").Collaborator>;
|
|
97
95
|
currentChartType: import("../element/types").ChartType;
|
|
98
96
|
pendingImageElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawImageElement> | null;
|
|
97
|
+
showHyperlinkPopup: false | "info" | "editor";
|
|
99
98
|
};
|
|
100
99
|
commitToHistory: true;
|
|
101
100
|
};
|
|
@@ -105,15 +104,13 @@ export declare const actionClearCanvas: {
|
|
|
105
104
|
};
|
|
106
105
|
export declare const actionZoomIn: {
|
|
107
106
|
name: "zoomIn";
|
|
108
|
-
perform: (_elements: readonly ExcalidrawElement[], appState: Readonly<AppState
|
|
107
|
+
perform: (_elements: readonly ExcalidrawElement[], appState: Readonly<AppState>, _: any, app: import("../types").AppClassProperties) => {
|
|
109
108
|
appState: {
|
|
110
|
-
|
|
109
|
+
scrollX: number;
|
|
110
|
+
scrollY: number;
|
|
111
|
+
zoom: {
|
|
111
112
|
value: NormalizedZoomValue;
|
|
112
|
-
|
|
113
|
-
x: number;
|
|
114
|
-
y: number;
|
|
115
|
-
}>;
|
|
116
|
-
}>;
|
|
113
|
+
};
|
|
117
114
|
isLoading: boolean;
|
|
118
115
|
errorMessage: string | null;
|
|
119
116
|
draggingElement: import("../element/types").NonDeletedExcalidrawElement | null;
|
|
@@ -127,6 +124,8 @@ export declare const actionZoomIn: {
|
|
|
127
124
|
editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
|
|
128
125
|
elementType: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "image" | "freedraw";
|
|
129
126
|
elementLocked: boolean;
|
|
127
|
+
penMode: boolean;
|
|
128
|
+
penDetected: boolean;
|
|
130
129
|
exportBackground: boolean;
|
|
131
130
|
exportEmbedScene: boolean;
|
|
132
131
|
exportWithDarkMode: boolean;
|
|
@@ -146,8 +145,6 @@ export declare const actionZoomIn: {
|
|
|
146
145
|
currentItemEndArrowhead: import("../element/types").Arrowhead | null;
|
|
147
146
|
currentItemLinearStrokeSharpness: import("../element/types").StrokeSharpness;
|
|
148
147
|
viewBackgroundColor: string;
|
|
149
|
-
scrollX: number;
|
|
150
|
-
scrollY: number;
|
|
151
148
|
cursorButton: "up" | "down";
|
|
152
149
|
scrolledOutside: boolean;
|
|
153
150
|
name: string;
|
|
@@ -190,6 +187,7 @@ export declare const actionZoomIn: {
|
|
|
190
187
|
data: import("../charts").Spreadsheet;
|
|
191
188
|
};
|
|
192
189
|
pendingImageElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawImageElement> | null;
|
|
190
|
+
showHyperlinkPopup: false | "info" | "editor";
|
|
193
191
|
};
|
|
194
192
|
commitToHistory: false;
|
|
195
193
|
};
|
|
@@ -200,15 +198,13 @@ export declare const actionZoomIn: {
|
|
|
200
198
|
};
|
|
201
199
|
export declare const actionZoomOut: {
|
|
202
200
|
name: "zoomOut";
|
|
203
|
-
perform: (_elements: readonly ExcalidrawElement[], appState: Readonly<AppState
|
|
201
|
+
perform: (_elements: readonly ExcalidrawElement[], appState: Readonly<AppState>, _: any, app: import("../types").AppClassProperties) => {
|
|
204
202
|
appState: {
|
|
205
|
-
|
|
203
|
+
scrollX: number;
|
|
204
|
+
scrollY: number;
|
|
205
|
+
zoom: {
|
|
206
206
|
value: NormalizedZoomValue;
|
|
207
|
-
|
|
208
|
-
x: number;
|
|
209
|
-
y: number;
|
|
210
|
-
}>;
|
|
211
|
-
}>;
|
|
207
|
+
};
|
|
212
208
|
isLoading: boolean;
|
|
213
209
|
errorMessage: string | null;
|
|
214
210
|
draggingElement: import("../element/types").NonDeletedExcalidrawElement | null;
|
|
@@ -222,6 +218,8 @@ export declare const actionZoomOut: {
|
|
|
222
218
|
editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
|
|
223
219
|
elementType: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "image" | "freedraw";
|
|
224
220
|
elementLocked: boolean;
|
|
221
|
+
penMode: boolean;
|
|
222
|
+
penDetected: boolean;
|
|
225
223
|
exportBackground: boolean;
|
|
226
224
|
exportEmbedScene: boolean;
|
|
227
225
|
exportWithDarkMode: boolean;
|
|
@@ -241,8 +239,6 @@ export declare const actionZoomOut: {
|
|
|
241
239
|
currentItemEndArrowhead: import("../element/types").Arrowhead | null;
|
|
242
240
|
currentItemLinearStrokeSharpness: import("../element/types").StrokeSharpness;
|
|
243
241
|
viewBackgroundColor: string;
|
|
244
|
-
scrollX: number;
|
|
245
|
-
scrollY: number;
|
|
246
242
|
cursorButton: "up" | "down";
|
|
247
243
|
scrolledOutside: boolean;
|
|
248
244
|
name: string;
|
|
@@ -285,6 +281,7 @@ export declare const actionZoomOut: {
|
|
|
285
281
|
data: import("../charts").Spreadsheet;
|
|
286
282
|
};
|
|
287
283
|
pendingImageElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawImageElement> | null;
|
|
284
|
+
showHyperlinkPopup: false | "info" | "editor";
|
|
288
285
|
};
|
|
289
286
|
commitToHistory: false;
|
|
290
287
|
};
|
|
@@ -295,15 +292,13 @@ export declare const actionZoomOut: {
|
|
|
295
292
|
};
|
|
296
293
|
export declare const actionResetZoom: {
|
|
297
294
|
name: "resetZoom";
|
|
298
|
-
perform: (_elements: readonly ExcalidrawElement[], appState: Readonly<AppState
|
|
295
|
+
perform: (_elements: readonly ExcalidrawElement[], appState: Readonly<AppState>, _: any, app: import("../types").AppClassProperties) => {
|
|
299
296
|
appState: {
|
|
300
|
-
|
|
297
|
+
scrollX: number;
|
|
298
|
+
scrollY: number;
|
|
299
|
+
zoom: {
|
|
301
300
|
value: NormalizedZoomValue;
|
|
302
|
-
|
|
303
|
-
x: number;
|
|
304
|
-
y: number;
|
|
305
|
-
}>;
|
|
306
|
-
}>;
|
|
301
|
+
};
|
|
307
302
|
isLoading: boolean;
|
|
308
303
|
errorMessage: string | null;
|
|
309
304
|
draggingElement: import("../element/types").NonDeletedExcalidrawElement | null;
|
|
@@ -317,6 +312,8 @@ export declare const actionResetZoom: {
|
|
|
317
312
|
editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
|
|
318
313
|
elementType: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "image" | "freedraw";
|
|
319
314
|
elementLocked: boolean;
|
|
315
|
+
penMode: boolean;
|
|
316
|
+
penDetected: boolean;
|
|
320
317
|
exportBackground: boolean;
|
|
321
318
|
exportEmbedScene: boolean;
|
|
322
319
|
exportWithDarkMode: boolean;
|
|
@@ -336,8 +333,6 @@ export declare const actionResetZoom: {
|
|
|
336
333
|
currentItemEndArrowhead: import("../element/types").Arrowhead | null;
|
|
337
334
|
currentItemLinearStrokeSharpness: import("../element/types").StrokeSharpness;
|
|
338
335
|
viewBackgroundColor: string;
|
|
339
|
-
scrollX: number;
|
|
340
|
-
scrollY: number;
|
|
341
336
|
cursorButton: "up" | "down";
|
|
342
337
|
scrolledOutside: boolean;
|
|
343
338
|
name: string;
|
|
@@ -380,6 +375,7 @@ export declare const actionResetZoom: {
|
|
|
380
375
|
data: import("../charts").Spreadsheet;
|
|
381
376
|
};
|
|
382
377
|
pendingImageElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawImageElement> | null;
|
|
378
|
+
showHyperlinkPopup: false | "info" | "editor";
|
|
383
379
|
};
|
|
384
380
|
commitToHistory: false;
|
|
385
381
|
};
|
|
@@ -392,13 +388,9 @@ export declare const actionZoomToSelected: {
|
|
|
392
388
|
name: "zoomToSelection";
|
|
393
389
|
perform: (elements: readonly ExcalidrawElement[], appState: Readonly<AppState>) => {
|
|
394
390
|
appState: {
|
|
395
|
-
zoom:
|
|
391
|
+
zoom: {
|
|
396
392
|
value: NormalizedZoomValue;
|
|
397
|
-
|
|
398
|
-
x: number;
|
|
399
|
-
y: number;
|
|
400
|
-
}>;
|
|
401
|
-
}>;
|
|
393
|
+
};
|
|
402
394
|
scrollX: number;
|
|
403
395
|
scrollY: number;
|
|
404
396
|
isLoading: boolean;
|
|
@@ -414,6 +406,8 @@ export declare const actionZoomToSelected: {
|
|
|
414
406
|
editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
|
|
415
407
|
elementType: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "image" | "freedraw";
|
|
416
408
|
elementLocked: boolean;
|
|
409
|
+
penMode: boolean;
|
|
410
|
+
penDetected: boolean;
|
|
417
411
|
exportBackground: boolean;
|
|
418
412
|
exportEmbedScene: boolean;
|
|
419
413
|
exportWithDarkMode: boolean;
|
|
@@ -475,6 +469,7 @@ export declare const actionZoomToSelected: {
|
|
|
475
469
|
data: import("../charts").Spreadsheet;
|
|
476
470
|
};
|
|
477
471
|
pendingImageElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawImageElement> | null;
|
|
472
|
+
showHyperlinkPopup: false | "info" | "editor";
|
|
478
473
|
};
|
|
479
474
|
commitToHistory: boolean;
|
|
480
475
|
};
|
|
@@ -486,13 +481,9 @@ export declare const actionZoomToFit: {
|
|
|
486
481
|
name: "zoomToFit";
|
|
487
482
|
perform: (elements: readonly ExcalidrawElement[], appState: Readonly<AppState>) => {
|
|
488
483
|
appState: {
|
|
489
|
-
zoom:
|
|
484
|
+
zoom: {
|
|
490
485
|
value: NormalizedZoomValue;
|
|
491
|
-
|
|
492
|
-
x: number;
|
|
493
|
-
y: number;
|
|
494
|
-
}>;
|
|
495
|
-
}>;
|
|
486
|
+
};
|
|
496
487
|
scrollX: number;
|
|
497
488
|
scrollY: number;
|
|
498
489
|
isLoading: boolean;
|
|
@@ -508,6 +499,8 @@ export declare const actionZoomToFit: {
|
|
|
508
499
|
editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
|
|
509
500
|
elementType: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "image" | "freedraw";
|
|
510
501
|
elementLocked: boolean;
|
|
502
|
+
penMode: boolean;
|
|
503
|
+
penDetected: boolean;
|
|
511
504
|
exportBackground: boolean;
|
|
512
505
|
exportEmbedScene: boolean;
|
|
513
506
|
exportWithDarkMode: boolean;
|
|
@@ -569,6 +562,7 @@ export declare const actionZoomToFit: {
|
|
|
569
562
|
data: import("../charts").Spreadsheet;
|
|
570
563
|
};
|
|
571
564
|
pendingImageElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawImageElement> | null;
|
|
565
|
+
showHyperlinkPopup: false | "info" | "editor";
|
|
572
566
|
};
|
|
573
567
|
commitToHistory: boolean;
|
|
574
568
|
};
|
|
@@ -594,6 +588,8 @@ export declare const actionToggleTheme: {
|
|
|
594
588
|
editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
|
|
595
589
|
elementType: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "image" | "freedraw";
|
|
596
590
|
elementLocked: boolean;
|
|
591
|
+
penMode: boolean;
|
|
592
|
+
penDetected: boolean;
|
|
597
593
|
exportBackground: boolean;
|
|
598
594
|
exportEmbedScene: boolean;
|
|
599
595
|
exportWithDarkMode: boolean;
|
|
@@ -622,10 +618,6 @@ export declare const actionToggleTheme: {
|
|
|
622
618
|
isRotating: boolean;
|
|
623
619
|
zoom: Readonly<{
|
|
624
620
|
value: NormalizedZoomValue;
|
|
625
|
-
translation: Readonly<{
|
|
626
|
-
x: number;
|
|
627
|
-
y: number;
|
|
628
|
-
}>;
|
|
629
621
|
}>;
|
|
630
622
|
openMenu: "canvas" | "shape" | null;
|
|
631
623
|
openPopup: "canvasColorPicker" | "backgroundColorPicker" | "strokeColorPicker" | null;
|
|
@@ -663,6 +655,7 @@ export declare const actionToggleTheme: {
|
|
|
663
655
|
data: import("../charts").Spreadsheet;
|
|
664
656
|
};
|
|
665
657
|
pendingImageElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawImageElement> | null;
|
|
658
|
+
showHyperlinkPopup: false | "info" | "editor";
|
|
666
659
|
};
|
|
667
660
|
commitToHistory: false;
|
|
668
661
|
};
|
|
@@ -27,6 +27,8 @@ export declare const actionCut: {
|
|
|
27
27
|
editingElement: import("../element/types").NonDeletedExcalidrawElement | null;
|
|
28
28
|
elementType: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "image" | "freedraw";
|
|
29
29
|
elementLocked: boolean;
|
|
30
|
+
penMode: boolean;
|
|
31
|
+
penDetected: boolean;
|
|
30
32
|
exportBackground: boolean;
|
|
31
33
|
exportEmbedScene: boolean;
|
|
32
34
|
exportWithDarkMode: boolean;
|
|
@@ -55,10 +57,6 @@ export declare const actionCut: {
|
|
|
55
57
|
isRotating: boolean;
|
|
56
58
|
zoom: Readonly<{
|
|
57
59
|
value: import("../types").NormalizedZoomValue;
|
|
58
|
-
translation: Readonly<{
|
|
59
|
-
x: number;
|
|
60
|
-
y: number;
|
|
61
|
-
}>;
|
|
62
60
|
}>;
|
|
63
61
|
openMenu: "canvas" | "shape" | null;
|
|
64
62
|
openPopup: "canvasColorPicker" | "backgroundColorPicker" | "strokeColorPicker" | null;
|
|
@@ -97,6 +95,7 @@ export declare const actionCut: {
|
|
|
97
95
|
data: import("../charts").Spreadsheet;
|
|
98
96
|
};
|
|
99
97
|
pendingImageElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawImageElement> | null;
|
|
98
|
+
showHyperlinkPopup: false | "info" | "editor";
|
|
100
99
|
};
|
|
101
100
|
commitToHistory: false;
|
|
102
101
|
} | {
|
|
@@ -132,6 +131,8 @@ export declare const actionCut: {
|
|
|
132
131
|
editingElement: import("../element/types").NonDeletedExcalidrawElement | null;
|
|
133
132
|
elementType: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "image" | "freedraw";
|
|
134
133
|
elementLocked: boolean;
|
|
134
|
+
penMode: boolean;
|
|
135
|
+
penDetected: boolean;
|
|
135
136
|
exportBackground: boolean;
|
|
136
137
|
exportEmbedScene: boolean;
|
|
137
138
|
exportWithDarkMode: boolean;
|
|
@@ -160,10 +161,6 @@ export declare const actionCut: {
|
|
|
160
161
|
isRotating: boolean;
|
|
161
162
|
zoom: Readonly<{
|
|
162
163
|
value: import("../types").NormalizedZoomValue;
|
|
163
|
-
translation: Readonly<{
|
|
164
|
-
x: number;
|
|
165
|
-
y: number;
|
|
166
|
-
}>;
|
|
167
164
|
}>;
|
|
168
165
|
openMenu: "canvas" | "shape" | null;
|
|
169
166
|
openPopup: "canvasColorPicker" | "backgroundColorPicker" | "strokeColorPicker" | null;
|
|
@@ -202,6 +199,7 @@ export declare const actionCut: {
|
|
|
202
199
|
data: import("../charts").Spreadsheet;
|
|
203
200
|
};
|
|
204
201
|
pendingImageElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawImageElement> | null;
|
|
202
|
+
showHyperlinkPopup: false | "info" | "editor";
|
|
205
203
|
};
|
|
206
204
|
commitToHistory: true;
|
|
207
205
|
} | {
|
|
@@ -221,6 +219,8 @@ export declare const actionCut: {
|
|
|
221
219
|
editingElement: import("../element/types").NonDeletedExcalidrawElement | null;
|
|
222
220
|
editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
|
|
223
221
|
elementLocked: boolean;
|
|
222
|
+
penMode: boolean;
|
|
223
|
+
penDetected: boolean;
|
|
224
224
|
exportBackground: boolean;
|
|
225
225
|
exportEmbedScene: boolean;
|
|
226
226
|
exportWithDarkMode: boolean;
|
|
@@ -249,10 +249,6 @@ export declare const actionCut: {
|
|
|
249
249
|
isRotating: boolean;
|
|
250
250
|
zoom: Readonly<{
|
|
251
251
|
value: import("../types").NormalizedZoomValue;
|
|
252
|
-
translation: Readonly<{
|
|
253
|
-
x: number;
|
|
254
|
-
y: number;
|
|
255
|
-
}>;
|
|
256
252
|
}>;
|
|
257
253
|
openMenu: "canvas" | "shape" | null;
|
|
258
254
|
openPopup: "canvasColorPicker" | "backgroundColorPicker" | "strokeColorPicker" | null;
|
|
@@ -288,6 +284,7 @@ export declare const actionCut: {
|
|
|
288
284
|
data: import("../charts").Spreadsheet;
|
|
289
285
|
};
|
|
290
286
|
pendingImageElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawImageElement> | null;
|
|
287
|
+
showHyperlinkPopup: false | "info" | "editor";
|
|
291
288
|
};
|
|
292
289
|
commitToHistory: boolean;
|
|
293
290
|
};
|
|
@@ -316,6 +313,8 @@ export declare const actionCopyAsSvg: {
|
|
|
316
313
|
editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
|
|
317
314
|
elementType: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "image" | "freedraw";
|
|
318
315
|
elementLocked: boolean;
|
|
316
|
+
penMode: boolean;
|
|
317
|
+
penDetected: boolean;
|
|
319
318
|
exportBackground: boolean;
|
|
320
319
|
exportEmbedScene: boolean;
|
|
321
320
|
exportWithDarkMode: boolean;
|
|
@@ -344,10 +343,6 @@ export declare const actionCopyAsSvg: {
|
|
|
344
343
|
isRotating: boolean;
|
|
345
344
|
zoom: Readonly<{
|
|
346
345
|
value: import("../types").NormalizedZoomValue;
|
|
347
|
-
translation: Readonly<{
|
|
348
|
-
x: number;
|
|
349
|
-
y: number;
|
|
350
|
-
}>;
|
|
351
346
|
}>;
|
|
352
347
|
openMenu: "canvas" | "shape" | null;
|
|
353
348
|
openPopup: "canvasColorPicker" | "backgroundColorPicker" | "strokeColorPicker" | null;
|
|
@@ -386,6 +381,7 @@ export declare const actionCopyAsSvg: {
|
|
|
386
381
|
data: import("../charts").Spreadsheet;
|
|
387
382
|
};
|
|
388
383
|
pendingImageElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawImageElement> | null;
|
|
384
|
+
showHyperlinkPopup: false | "info" | "editor";
|
|
389
385
|
};
|
|
390
386
|
commitToHistory: false;
|
|
391
387
|
}>;
|
|
@@ -413,6 +409,8 @@ export declare const actionCopyAsPng: {
|
|
|
413
409
|
editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
|
|
414
410
|
elementType: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "image" | "freedraw";
|
|
415
411
|
elementLocked: boolean;
|
|
412
|
+
penMode: boolean;
|
|
413
|
+
penDetected: boolean;
|
|
416
414
|
exportBackground: boolean;
|
|
417
415
|
exportEmbedScene: boolean;
|
|
418
416
|
exportWithDarkMode: boolean;
|
|
@@ -441,10 +439,6 @@ export declare const actionCopyAsPng: {
|
|
|
441
439
|
isRotating: boolean;
|
|
442
440
|
zoom: Readonly<{
|
|
443
441
|
value: import("../types").NormalizedZoomValue;
|
|
444
|
-
translation: Readonly<{
|
|
445
|
-
x: number;
|
|
446
|
-
y: number;
|
|
447
|
-
}>;
|
|
448
442
|
}>;
|
|
449
443
|
openMenu: "canvas" | "shape" | null;
|
|
450
444
|
openPopup: "canvasColorPicker" | "backgroundColorPicker" | "strokeColorPicker" | null;
|
|
@@ -483,6 +477,7 @@ export declare const actionCopyAsPng: {
|
|
|
483
477
|
data: import("../charts").Spreadsheet;
|
|
484
478
|
};
|
|
485
479
|
pendingImageElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawImageElement> | null;
|
|
480
|
+
showHyperlinkPopup: false | "info" | "editor";
|
|
486
481
|
};
|
|
487
482
|
commitToHistory: false;
|
|
488
483
|
}>;
|
|
@@ -20,6 +20,8 @@ export declare const actionDeleteSelected: {
|
|
|
20
20
|
editingElement: import("../element/types").NonDeletedExcalidrawElement | null;
|
|
21
21
|
elementType: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "image" | "freedraw";
|
|
22
22
|
elementLocked: boolean;
|
|
23
|
+
penMode: boolean;
|
|
24
|
+
penDetected: boolean;
|
|
23
25
|
exportBackground: boolean;
|
|
24
26
|
exportEmbedScene: boolean;
|
|
25
27
|
exportWithDarkMode: boolean;
|
|
@@ -48,10 +50,6 @@ export declare const actionDeleteSelected: {
|
|
|
48
50
|
isRotating: boolean;
|
|
49
51
|
zoom: Readonly<{
|
|
50
52
|
value: import("../types").NormalizedZoomValue;
|
|
51
|
-
translation: Readonly<{
|
|
52
|
-
x: number;
|
|
53
|
-
y: number;
|
|
54
|
-
}>;
|
|
55
53
|
}>;
|
|
56
54
|
openMenu: "canvas" | "shape" | null;
|
|
57
55
|
openPopup: "canvasColorPicker" | "backgroundColorPicker" | "strokeColorPicker" | null;
|
|
@@ -90,6 +88,7 @@ export declare const actionDeleteSelected: {
|
|
|
90
88
|
data: import("../charts").Spreadsheet;
|
|
91
89
|
};
|
|
92
90
|
pendingImageElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawImageElement> | null;
|
|
91
|
+
showHyperlinkPopup: false | "info" | "editor";
|
|
93
92
|
};
|
|
94
93
|
commitToHistory: false;
|
|
95
94
|
} | {
|
|
@@ -125,6 +124,8 @@ export declare const actionDeleteSelected: {
|
|
|
125
124
|
editingElement: import("../element/types").NonDeletedExcalidrawElement | null;
|
|
126
125
|
elementType: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "image" | "freedraw";
|
|
127
126
|
elementLocked: boolean;
|
|
127
|
+
penMode: boolean;
|
|
128
|
+
penDetected: boolean;
|
|
128
129
|
exportBackground: boolean;
|
|
129
130
|
exportEmbedScene: boolean;
|
|
130
131
|
exportWithDarkMode: boolean;
|
|
@@ -153,10 +154,6 @@ export declare const actionDeleteSelected: {
|
|
|
153
154
|
isRotating: boolean;
|
|
154
155
|
zoom: Readonly<{
|
|
155
156
|
value: import("../types").NormalizedZoomValue;
|
|
156
|
-
translation: Readonly<{
|
|
157
|
-
x: number;
|
|
158
|
-
y: number;
|
|
159
|
-
}>;
|
|
160
157
|
}>;
|
|
161
158
|
openMenu: "canvas" | "shape" | null;
|
|
162
159
|
openPopup: "canvasColorPicker" | "backgroundColorPicker" | "strokeColorPicker" | null;
|
|
@@ -195,6 +192,7 @@ export declare const actionDeleteSelected: {
|
|
|
195
192
|
data: import("../charts").Spreadsheet;
|
|
196
193
|
};
|
|
197
194
|
pendingImageElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawImageElement> | null;
|
|
195
|
+
showHyperlinkPopup: false | "info" | "editor";
|
|
198
196
|
};
|
|
199
197
|
commitToHistory: true;
|
|
200
198
|
} | {
|
|
@@ -214,6 +212,8 @@ export declare const actionDeleteSelected: {
|
|
|
214
212
|
editingElement: import("../element/types").NonDeletedExcalidrawElement | null;
|
|
215
213
|
editingLinearElement: LinearElementEditor | null;
|
|
216
214
|
elementLocked: boolean;
|
|
215
|
+
penMode: boolean;
|
|
216
|
+
penDetected: boolean;
|
|
217
217
|
exportBackground: boolean;
|
|
218
218
|
exportEmbedScene: boolean;
|
|
219
219
|
exportWithDarkMode: boolean;
|
|
@@ -242,10 +242,6 @@ export declare const actionDeleteSelected: {
|
|
|
242
242
|
isRotating: boolean;
|
|
243
243
|
zoom: Readonly<{
|
|
244
244
|
value: import("../types").NormalizedZoomValue;
|
|
245
|
-
translation: Readonly<{
|
|
246
|
-
x: number;
|
|
247
|
-
y: number;
|
|
248
|
-
}>;
|
|
249
245
|
}>;
|
|
250
246
|
openMenu: "canvas" | "shape" | null;
|
|
251
247
|
openPopup: "canvasColorPicker" | "backgroundColorPicker" | "strokeColorPicker" | null;
|
|
@@ -281,6 +277,7 @@ export declare const actionDeleteSelected: {
|
|
|
281
277
|
data: import("../charts").Spreadsheet;
|
|
282
278
|
};
|
|
283
279
|
pendingImageElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawImageElement> | null;
|
|
280
|
+
showHyperlinkPopup: false | "info" | "editor";
|
|
284
281
|
};
|
|
285
282
|
commitToHistory: boolean;
|
|
286
283
|
};
|