@zsviczian/excalidraw 0.10.0-obsidian-36 → 0.10.0-obsidian-40
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/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 +45 -53
- 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 +2 -2
- package/types/appState.d.ts +0 -4
- package/types/components/App.d.ts +14 -0
- package/types/components/ContextMenu.d.ts +3 -0
- 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 +116 -0
- package/types/element/collision.d.ts +1 -0
- package/types/element/linearElementEditor.d.ts +3 -4
- 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/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 +9 -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
|
};
|
|
@@ -390,13 +386,9 @@ export declare const actionResetZoom: {
|
|
|
390
386
|
};
|
|
391
387
|
export declare const zoomToFitElements: (elements: readonly ExcalidrawElement[], appState: Readonly<AppState>, zoomToSelection: boolean, maxZoom?: number, margin?: number) => {
|
|
392
388
|
appState: {
|
|
393
|
-
zoom:
|
|
389
|
+
zoom: {
|
|
394
390
|
value: NormalizedZoomValue;
|
|
395
|
-
|
|
396
|
-
x: number;
|
|
397
|
-
y: number;
|
|
398
|
-
}>;
|
|
399
|
-
}>;
|
|
391
|
+
};
|
|
400
392
|
scrollX: number;
|
|
401
393
|
scrollY: number;
|
|
402
394
|
isLoading: boolean;
|
|
@@ -412,6 +404,8 @@ export declare const zoomToFitElements: (elements: readonly ExcalidrawElement[],
|
|
|
412
404
|
editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
|
|
413
405
|
elementType: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "image" | "freedraw";
|
|
414
406
|
elementLocked: boolean;
|
|
407
|
+
penMode: boolean;
|
|
408
|
+
penDetected: boolean;
|
|
415
409
|
exportBackground: boolean;
|
|
416
410
|
exportEmbedScene: boolean;
|
|
417
411
|
exportWithDarkMode: boolean;
|
|
@@ -473,6 +467,7 @@ export declare const zoomToFitElements: (elements: readonly ExcalidrawElement[],
|
|
|
473
467
|
data: import("../charts").Spreadsheet;
|
|
474
468
|
};
|
|
475
469
|
pendingImageElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawImageElement> | null;
|
|
470
|
+
showHyperlinkPopup: false | "info" | "editor";
|
|
476
471
|
};
|
|
477
472
|
commitToHistory: boolean;
|
|
478
473
|
};
|
|
@@ -480,13 +475,9 @@ export declare const actionZoomToSelected: {
|
|
|
480
475
|
name: "zoomToSelection";
|
|
481
476
|
perform: (elements: readonly ExcalidrawElement[], appState: Readonly<AppState>) => {
|
|
482
477
|
appState: {
|
|
483
|
-
zoom:
|
|
478
|
+
zoom: {
|
|
484
479
|
value: NormalizedZoomValue;
|
|
485
|
-
|
|
486
|
-
x: number;
|
|
487
|
-
y: number;
|
|
488
|
-
}>;
|
|
489
|
-
}>;
|
|
480
|
+
};
|
|
490
481
|
scrollX: number;
|
|
491
482
|
scrollY: number;
|
|
492
483
|
isLoading: boolean;
|
|
@@ -502,6 +493,8 @@ export declare const actionZoomToSelected: {
|
|
|
502
493
|
editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
|
|
503
494
|
elementType: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "image" | "freedraw";
|
|
504
495
|
elementLocked: boolean;
|
|
496
|
+
penMode: boolean;
|
|
497
|
+
penDetected: boolean;
|
|
505
498
|
exportBackground: boolean;
|
|
506
499
|
exportEmbedScene: boolean;
|
|
507
500
|
exportWithDarkMode: boolean;
|
|
@@ -563,6 +556,7 @@ export declare const actionZoomToSelected: {
|
|
|
563
556
|
data: import("../charts").Spreadsheet;
|
|
564
557
|
};
|
|
565
558
|
pendingImageElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawImageElement> | null;
|
|
559
|
+
showHyperlinkPopup: false | "info" | "editor";
|
|
566
560
|
};
|
|
567
561
|
commitToHistory: boolean;
|
|
568
562
|
};
|
|
@@ -574,13 +568,9 @@ export declare const actionZoomToFit: {
|
|
|
574
568
|
name: "zoomToFit";
|
|
575
569
|
perform: (elements: readonly ExcalidrawElement[], appState: Readonly<AppState>) => {
|
|
576
570
|
appState: {
|
|
577
|
-
zoom:
|
|
571
|
+
zoom: {
|
|
578
572
|
value: NormalizedZoomValue;
|
|
579
|
-
|
|
580
|
-
x: number;
|
|
581
|
-
y: number;
|
|
582
|
-
}>;
|
|
583
|
-
}>;
|
|
573
|
+
};
|
|
584
574
|
scrollX: number;
|
|
585
575
|
scrollY: number;
|
|
586
576
|
isLoading: boolean;
|
|
@@ -596,6 +586,8 @@ export declare const actionZoomToFit: {
|
|
|
596
586
|
editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
|
|
597
587
|
elementType: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "image" | "freedraw";
|
|
598
588
|
elementLocked: boolean;
|
|
589
|
+
penMode: boolean;
|
|
590
|
+
penDetected: boolean;
|
|
599
591
|
exportBackground: boolean;
|
|
600
592
|
exportEmbedScene: boolean;
|
|
601
593
|
exportWithDarkMode: boolean;
|
|
@@ -657,6 +649,7 @@ export declare const actionZoomToFit: {
|
|
|
657
649
|
data: import("../charts").Spreadsheet;
|
|
658
650
|
};
|
|
659
651
|
pendingImageElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawImageElement> | null;
|
|
652
|
+
showHyperlinkPopup: false | "info" | "editor";
|
|
660
653
|
};
|
|
661
654
|
commitToHistory: boolean;
|
|
662
655
|
};
|
|
@@ -682,6 +675,8 @@ export declare const actionToggleTheme: {
|
|
|
682
675
|
editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
|
|
683
676
|
elementType: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "image" | "freedraw";
|
|
684
677
|
elementLocked: boolean;
|
|
678
|
+
penMode: boolean;
|
|
679
|
+
penDetected: boolean;
|
|
685
680
|
exportBackground: boolean;
|
|
686
681
|
exportEmbedScene: boolean;
|
|
687
682
|
exportWithDarkMode: boolean;
|
|
@@ -710,10 +705,6 @@ export declare const actionToggleTheme: {
|
|
|
710
705
|
isRotating: boolean;
|
|
711
706
|
zoom: Readonly<{
|
|
712
707
|
value: NormalizedZoomValue;
|
|
713
|
-
translation: Readonly<{
|
|
714
|
-
x: number;
|
|
715
|
-
y: number;
|
|
716
|
-
}>;
|
|
717
708
|
}>;
|
|
718
709
|
openMenu: "canvas" | "shape" | null;
|
|
719
710
|
openPopup: "canvasColorPicker" | "backgroundColorPicker" | "strokeColorPicker" | null;
|
|
@@ -751,6 +742,7 @@ export declare const actionToggleTheme: {
|
|
|
751
742
|
data: import("../charts").Spreadsheet;
|
|
752
743
|
};
|
|
753
744
|
pendingImageElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawImageElement> | null;
|
|
745
|
+
showHyperlinkPopup: false | "info" | "editor";
|
|
754
746
|
};
|
|
755
747
|
commitToHistory: false;
|
|
756
748
|
};
|
|
@@ -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
|
};
|