@zsviczian/excalidraw 0.15.2-obsidian-7 → 0.15.2-obsidian-9
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 +50 -50
- package/dist/excalidraw.production.min.js +1 -1
- package/package.json +1 -1
- package/types/actions/actionAddToLibrary.d.ts +27 -12
- package/types/actions/actionAlign.d.ts +19 -19
- package/types/actions/actionBoundText.d.ts +24 -14
- package/types/actions/actionCanvas.d.ts +120 -60
- package/types/actions/actionClipboard.d.ts +47 -22
- package/types/actions/actionDeleteSelected.d.ts +27 -12
- package/types/actions/actionDistribute.d.ts +5 -5
- package/types/actions/actionElementLock.d.ts +23 -13
- package/types/actions/actionExport.d.ts +82 -36
- package/types/actions/actionFinalize.d.ts +18 -11
- package/types/actions/actionFlip.d.ts +2 -2
- package/types/actions/actionFrame.d.ts +35 -20
- package/types/actions/actionGroup.d.ts +5 -5
- package/types/actions/actionLinearEditor.d.ts +11 -6
- package/types/actions/actionMenu.d.ts +27 -12
- package/types/actions/actionProperties.d.ts +117 -52
- package/types/actions/actionStyles.d.ts +9 -4
- package/types/actions/actionToggleGridMode.d.ts +9 -4
- package/types/actions/actionToggleStats.d.ts +9 -4
- package/types/actions/actionToggleViewMode.d.ts +9 -4
- package/types/actions/actionToggleZenMode.d.ts +9 -4
- package/types/actions/types.d.ts +4 -3
- package/types/appState.d.ts +2 -2
- package/types/components/App.d.ts +13 -8
- package/types/components/HintViewer.d.ts +3 -4
- package/types/components/LayerUI.d.ts +2 -1
- package/types/components/MobileMenu.d.ts +3 -2
- package/types/constants.d.ts +2 -2
- package/types/data/url.d.ts +5 -0
- package/types/element/Hyperlink.d.ts +9 -4
- package/types/element/collision.d.ts +2 -2
- package/types/element/embeddable.d.ts +176 -0
- package/types/element/linearElementEditor.d.ts +9 -4
- package/types/element/newElement.d.ts +4 -4
- package/types/element/typeChecks.d.ts +4 -4
- package/types/element/types.d.ts +6 -6
- package/types/frame.d.ts +2 -2
- package/types/groups.d.ts +3 -3
- package/types/scene/Scene.d.ts +13 -0
- package/types/types.d.ts +15 -10
- package/types/utility-types.d.ts +2 -0
- package/types/utils.d.ts +1 -1
|
@@ -44,7 +44,7 @@ export declare const actionCut: {
|
|
|
44
44
|
showWelcomeScreen: boolean;
|
|
45
45
|
isLoading: boolean;
|
|
46
46
|
errorMessage: import("react").ReactNode;
|
|
47
|
-
|
|
47
|
+
activeEmbeddable: {
|
|
48
48
|
element: import("../element/types").NonDeletedExcalidrawElement;
|
|
49
49
|
state: "active" | "hover";
|
|
50
50
|
} | null;
|
|
@@ -56,7 +56,12 @@ export declare const actionCut: {
|
|
|
56
56
|
startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
|
|
57
57
|
suggestedBindings: import("../element/binding").SuggestedBinding[];
|
|
58
58
|
frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameElement> | null;
|
|
59
|
-
|
|
59
|
+
frameRendering: {
|
|
60
|
+
enabled: boolean;
|
|
61
|
+
name: boolean;
|
|
62
|
+
outline: boolean;
|
|
63
|
+
clip: boolean;
|
|
64
|
+
};
|
|
60
65
|
editingFrame: string | null;
|
|
61
66
|
elementsToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawElement>[] | null;
|
|
62
67
|
editingElement: import("../element/types").NonDeletedExcalidrawElement | null;
|
|
@@ -64,7 +69,7 @@ export declare const actionCut: {
|
|
|
64
69
|
lastActiveTool: import("../types").LastActiveTool;
|
|
65
70
|
locked: boolean;
|
|
66
71
|
} & ({
|
|
67
|
-
type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "
|
|
72
|
+
type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "embeddable" | "image" | "frame" | "freedraw" | "eraser" | "hand";
|
|
68
73
|
customType: null;
|
|
69
74
|
} | {
|
|
70
75
|
type: "custom";
|
|
@@ -123,7 +128,7 @@ export declare const actionCut: {
|
|
|
123
128
|
duration?: number | undefined;
|
|
124
129
|
} | null;
|
|
125
130
|
zenModeEnabled: boolean;
|
|
126
|
-
theme:
|
|
131
|
+
theme: import("../element/types").Theme;
|
|
127
132
|
gridSize: number | null;
|
|
128
133
|
previousGridSize: number | null;
|
|
129
134
|
viewModeEnabled: boolean;
|
|
@@ -212,7 +217,7 @@ export declare const actionCut: {
|
|
|
212
217
|
showWelcomeScreen: boolean;
|
|
213
218
|
isLoading: boolean;
|
|
214
219
|
errorMessage: import("react").ReactNode;
|
|
215
|
-
|
|
220
|
+
activeEmbeddable: {
|
|
216
221
|
element: import("../element/types").NonDeletedExcalidrawElement;
|
|
217
222
|
state: "active" | "hover";
|
|
218
223
|
} | null;
|
|
@@ -224,7 +229,12 @@ export declare const actionCut: {
|
|
|
224
229
|
startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
|
|
225
230
|
suggestedBindings: import("../element/binding").SuggestedBinding[];
|
|
226
231
|
frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameElement> | null;
|
|
227
|
-
|
|
232
|
+
frameRendering: {
|
|
233
|
+
enabled: boolean;
|
|
234
|
+
name: boolean;
|
|
235
|
+
outline: boolean;
|
|
236
|
+
clip: boolean;
|
|
237
|
+
};
|
|
228
238
|
editingFrame: string | null;
|
|
229
239
|
elementsToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawElement>[] | null;
|
|
230
240
|
editingElement: import("../element/types").NonDeletedExcalidrawElement | null;
|
|
@@ -232,7 +242,7 @@ export declare const actionCut: {
|
|
|
232
242
|
lastActiveTool: import("../types").LastActiveTool;
|
|
233
243
|
locked: boolean;
|
|
234
244
|
} & ({
|
|
235
|
-
type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "
|
|
245
|
+
type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "embeddable" | "image" | "frame" | "freedraw" | "eraser" | "hand";
|
|
236
246
|
customType: null;
|
|
237
247
|
} | {
|
|
238
248
|
type: "custom";
|
|
@@ -291,7 +301,7 @@ export declare const actionCut: {
|
|
|
291
301
|
duration?: number | undefined;
|
|
292
302
|
} | null;
|
|
293
303
|
zenModeEnabled: boolean;
|
|
294
|
-
theme:
|
|
304
|
+
theme: import("../element/types").Theme;
|
|
295
305
|
gridSize: number | null;
|
|
296
306
|
previousGridSize: number | null;
|
|
297
307
|
viewModeEnabled: boolean;
|
|
@@ -347,14 +357,14 @@ export declare const actionCut: {
|
|
|
347
357
|
lastActiveTool: import("../types").LastActiveTool;
|
|
348
358
|
locked: boolean;
|
|
349
359
|
} & ({
|
|
350
|
-
type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "
|
|
360
|
+
type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "embeddable" | "image" | "frame" | "freedraw" | "eraser" | "hand";
|
|
351
361
|
customType: null;
|
|
352
362
|
} | {
|
|
353
363
|
type: "custom";
|
|
354
364
|
customType: string;
|
|
355
365
|
});
|
|
356
366
|
multiElement: null;
|
|
357
|
-
|
|
367
|
+
activeEmbeddable: null;
|
|
358
368
|
selectedElementIds: {};
|
|
359
369
|
contextMenu: {
|
|
360
370
|
items: import("../components/ContextMenu").ContextMenuItems;
|
|
@@ -371,7 +381,12 @@ export declare const actionCut: {
|
|
|
371
381
|
startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
|
|
372
382
|
suggestedBindings: import("../element/binding").SuggestedBinding[];
|
|
373
383
|
frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameElement> | null;
|
|
374
|
-
|
|
384
|
+
frameRendering: {
|
|
385
|
+
enabled: boolean;
|
|
386
|
+
name: boolean;
|
|
387
|
+
outline: boolean;
|
|
388
|
+
clip: boolean;
|
|
389
|
+
};
|
|
375
390
|
editingFrame: string | null;
|
|
376
391
|
elementsToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawElement>[] | null;
|
|
377
392
|
editingElement: import("../element/types").NonDeletedExcalidrawElement | null;
|
|
@@ -426,7 +441,7 @@ export declare const actionCut: {
|
|
|
426
441
|
duration?: number | undefined;
|
|
427
442
|
} | null;
|
|
428
443
|
zenModeEnabled: boolean;
|
|
429
|
-
theme:
|
|
444
|
+
theme: import("../element/types").Theme;
|
|
430
445
|
gridSize: number | null;
|
|
431
446
|
previousGridSize: number | null;
|
|
432
447
|
viewModeEnabled: boolean;
|
|
@@ -500,7 +515,7 @@ export declare const actionCopyAsSvg: {
|
|
|
500
515
|
} | null;
|
|
501
516
|
showWelcomeScreen: boolean;
|
|
502
517
|
isLoading: boolean;
|
|
503
|
-
|
|
518
|
+
activeEmbeddable: {
|
|
504
519
|
element: import("../element/types").NonDeletedExcalidrawElement;
|
|
505
520
|
state: "active" | "hover";
|
|
506
521
|
} | null;
|
|
@@ -512,7 +527,12 @@ export declare const actionCopyAsSvg: {
|
|
|
512
527
|
startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
|
|
513
528
|
suggestedBindings: import("../element/binding").SuggestedBinding[];
|
|
514
529
|
frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameElement> | null;
|
|
515
|
-
|
|
530
|
+
frameRendering: {
|
|
531
|
+
enabled: boolean;
|
|
532
|
+
name: boolean;
|
|
533
|
+
outline: boolean;
|
|
534
|
+
clip: boolean;
|
|
535
|
+
};
|
|
516
536
|
editingFrame: string | null;
|
|
517
537
|
elementsToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawElement>[] | null;
|
|
518
538
|
editingElement: import("../element/types").NonDeletedExcalidrawElement | null;
|
|
@@ -521,7 +541,7 @@ export declare const actionCopyAsSvg: {
|
|
|
521
541
|
lastActiveTool: import("../types").LastActiveTool;
|
|
522
542
|
locked: boolean;
|
|
523
543
|
} & ({
|
|
524
|
-
type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "
|
|
544
|
+
type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "embeddable" | "image" | "frame" | "freedraw" | "eraser" | "hand";
|
|
525
545
|
customType: null;
|
|
526
546
|
} | {
|
|
527
547
|
type: "custom";
|
|
@@ -580,7 +600,7 @@ export declare const actionCopyAsSvg: {
|
|
|
580
600
|
duration?: number | undefined;
|
|
581
601
|
} | null;
|
|
582
602
|
zenModeEnabled: boolean;
|
|
583
|
-
theme:
|
|
603
|
+
theme: import("../element/types").Theme;
|
|
584
604
|
gridSize: number | null;
|
|
585
605
|
previousGridSize: number | null;
|
|
586
606
|
viewModeEnabled: boolean;
|
|
@@ -653,7 +673,7 @@ export declare const actionCopyAsPng: {
|
|
|
653
673
|
} | null;
|
|
654
674
|
showWelcomeScreen: boolean;
|
|
655
675
|
isLoading: boolean;
|
|
656
|
-
|
|
676
|
+
activeEmbeddable: {
|
|
657
677
|
element: import("../element/types").NonDeletedExcalidrawElement;
|
|
658
678
|
state: "active" | "hover";
|
|
659
679
|
} | null;
|
|
@@ -665,7 +685,12 @@ export declare const actionCopyAsPng: {
|
|
|
665
685
|
startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
|
|
666
686
|
suggestedBindings: import("../element/binding").SuggestedBinding[];
|
|
667
687
|
frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameElement> | null;
|
|
668
|
-
|
|
688
|
+
frameRendering: {
|
|
689
|
+
enabled: boolean;
|
|
690
|
+
name: boolean;
|
|
691
|
+
outline: boolean;
|
|
692
|
+
clip: boolean;
|
|
693
|
+
};
|
|
669
694
|
editingFrame: string | null;
|
|
670
695
|
elementsToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawElement>[] | null;
|
|
671
696
|
editingElement: import("../element/types").NonDeletedExcalidrawElement | null;
|
|
@@ -674,7 +699,7 @@ export declare const actionCopyAsPng: {
|
|
|
674
699
|
lastActiveTool: import("../types").LastActiveTool;
|
|
675
700
|
locked: boolean;
|
|
676
701
|
} & ({
|
|
677
|
-
type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "
|
|
702
|
+
type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "embeddable" | "image" | "frame" | "freedraw" | "eraser" | "hand";
|
|
678
703
|
customType: null;
|
|
679
704
|
} | {
|
|
680
705
|
type: "custom";
|
|
@@ -733,7 +758,7 @@ export declare const actionCopyAsPng: {
|
|
|
733
758
|
duration?: number | undefined;
|
|
734
759
|
} | null;
|
|
735
760
|
zenModeEnabled: boolean;
|
|
736
|
-
theme:
|
|
761
|
+
theme: import("../element/types").Theme;
|
|
737
762
|
gridSize: number | null;
|
|
738
763
|
previousGridSize: number | null;
|
|
739
764
|
viewModeEnabled: boolean;
|
|
@@ -794,10 +819,10 @@ export declare const copyText: {
|
|
|
794
819
|
trackEvent: {
|
|
795
820
|
category: "element";
|
|
796
821
|
};
|
|
797
|
-
perform: (elements: readonly import("../element/types").ExcalidrawElement[], appState: Readonly<import("../types").AppState
|
|
822
|
+
perform: (elements: readonly import("../element/types").ExcalidrawElement[], appState: Readonly<import("../types").AppState>, _: any, app: import("../types").AppClassProperties) => {
|
|
798
823
|
commitToHistory: false;
|
|
799
824
|
};
|
|
800
|
-
predicate: (elements: readonly import("../element/types").ExcalidrawElement[], appState: import("../types").AppState) => boolean;
|
|
825
|
+
predicate: (elements: readonly import("../element/types").ExcalidrawElement[], appState: import("../types").AppState, _: import("../types").ExcalidrawProps, app: import("../types").AppClassProperties) => boolean;
|
|
801
826
|
contextItemLabel: string;
|
|
802
827
|
} & {
|
|
803
828
|
keyTest?: undefined;
|
|
@@ -20,7 +20,7 @@ export declare const actionDeleteSelected: {
|
|
|
20
20
|
showWelcomeScreen: boolean;
|
|
21
21
|
isLoading: boolean;
|
|
22
22
|
errorMessage: import("react").ReactNode;
|
|
23
|
-
|
|
23
|
+
activeEmbeddable: {
|
|
24
24
|
element: import("../element/types").NonDeletedExcalidrawElement;
|
|
25
25
|
state: "active" | "hover";
|
|
26
26
|
} | null;
|
|
@@ -32,7 +32,12 @@ export declare const actionDeleteSelected: {
|
|
|
32
32
|
startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
|
|
33
33
|
suggestedBindings: import("../element/binding").SuggestedBinding[];
|
|
34
34
|
frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameElement> | null;
|
|
35
|
-
|
|
35
|
+
frameRendering: {
|
|
36
|
+
enabled: boolean;
|
|
37
|
+
name: boolean;
|
|
38
|
+
outline: boolean;
|
|
39
|
+
clip: boolean;
|
|
40
|
+
};
|
|
36
41
|
editingFrame: string | null;
|
|
37
42
|
elementsToHighlight: import("../element/types").NonDeleted<ExcalidrawElement>[] | null;
|
|
38
43
|
editingElement: import("../element/types").NonDeletedExcalidrawElement | null;
|
|
@@ -40,7 +45,7 @@ export declare const actionDeleteSelected: {
|
|
|
40
45
|
lastActiveTool: import("../types").LastActiveTool;
|
|
41
46
|
locked: boolean;
|
|
42
47
|
} & ({
|
|
43
|
-
type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "
|
|
48
|
+
type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "embeddable" | "image" | "frame" | "freedraw" | "eraser" | "hand";
|
|
44
49
|
customType: null;
|
|
45
50
|
} | {
|
|
46
51
|
type: "custom";
|
|
@@ -99,7 +104,7 @@ export declare const actionDeleteSelected: {
|
|
|
99
104
|
duration?: number | undefined;
|
|
100
105
|
} | null;
|
|
101
106
|
zenModeEnabled: boolean;
|
|
102
|
-
theme:
|
|
107
|
+
theme: import("../element/types").Theme;
|
|
103
108
|
gridSize: number | null;
|
|
104
109
|
previousGridSize: number | null;
|
|
105
110
|
viewModeEnabled: boolean;
|
|
@@ -188,7 +193,7 @@ export declare const actionDeleteSelected: {
|
|
|
188
193
|
showWelcomeScreen: boolean;
|
|
189
194
|
isLoading: boolean;
|
|
190
195
|
errorMessage: import("react").ReactNode;
|
|
191
|
-
|
|
196
|
+
activeEmbeddable: {
|
|
192
197
|
element: import("../element/types").NonDeletedExcalidrawElement;
|
|
193
198
|
state: "active" | "hover";
|
|
194
199
|
} | null;
|
|
@@ -200,7 +205,12 @@ export declare const actionDeleteSelected: {
|
|
|
200
205
|
startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
|
|
201
206
|
suggestedBindings: import("../element/binding").SuggestedBinding[];
|
|
202
207
|
frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameElement> | null;
|
|
203
|
-
|
|
208
|
+
frameRendering: {
|
|
209
|
+
enabled: boolean;
|
|
210
|
+
name: boolean;
|
|
211
|
+
outline: boolean;
|
|
212
|
+
clip: boolean;
|
|
213
|
+
};
|
|
204
214
|
editingFrame: string | null;
|
|
205
215
|
elementsToHighlight: import("../element/types").NonDeleted<ExcalidrawElement>[] | null;
|
|
206
216
|
editingElement: import("../element/types").NonDeletedExcalidrawElement | null;
|
|
@@ -208,7 +218,7 @@ export declare const actionDeleteSelected: {
|
|
|
208
218
|
lastActiveTool: import("../types").LastActiveTool;
|
|
209
219
|
locked: boolean;
|
|
210
220
|
} & ({
|
|
211
|
-
type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "
|
|
221
|
+
type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "embeddable" | "image" | "frame" | "freedraw" | "eraser" | "hand";
|
|
212
222
|
customType: null;
|
|
213
223
|
} | {
|
|
214
224
|
type: "custom";
|
|
@@ -267,7 +277,7 @@ export declare const actionDeleteSelected: {
|
|
|
267
277
|
duration?: number | undefined;
|
|
268
278
|
} | null;
|
|
269
279
|
zenModeEnabled: boolean;
|
|
270
|
-
theme:
|
|
280
|
+
theme: import("../element/types").Theme;
|
|
271
281
|
gridSize: number | null;
|
|
272
282
|
previousGridSize: number | null;
|
|
273
283
|
viewModeEnabled: boolean;
|
|
@@ -323,14 +333,14 @@ export declare const actionDeleteSelected: {
|
|
|
323
333
|
lastActiveTool: import("../types").LastActiveTool;
|
|
324
334
|
locked: boolean;
|
|
325
335
|
} & ({
|
|
326
|
-
type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "
|
|
336
|
+
type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "embeddable" | "image" | "frame" | "freedraw" | "eraser" | "hand";
|
|
327
337
|
customType: null;
|
|
328
338
|
} | {
|
|
329
339
|
type: "custom";
|
|
330
340
|
customType: string;
|
|
331
341
|
});
|
|
332
342
|
multiElement: null;
|
|
333
|
-
|
|
343
|
+
activeEmbeddable: null;
|
|
334
344
|
selectedElementIds: {};
|
|
335
345
|
contextMenu: {
|
|
336
346
|
items: import("../components/ContextMenu").ContextMenuItems;
|
|
@@ -347,7 +357,12 @@ export declare const actionDeleteSelected: {
|
|
|
347
357
|
startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
|
|
348
358
|
suggestedBindings: import("../element/binding").SuggestedBinding[];
|
|
349
359
|
frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameElement> | null;
|
|
350
|
-
|
|
360
|
+
frameRendering: {
|
|
361
|
+
enabled: boolean;
|
|
362
|
+
name: boolean;
|
|
363
|
+
outline: boolean;
|
|
364
|
+
clip: boolean;
|
|
365
|
+
};
|
|
351
366
|
editingFrame: string | null;
|
|
352
367
|
elementsToHighlight: import("../element/types").NonDeleted<ExcalidrawElement>[] | null;
|
|
353
368
|
editingElement: import("../element/types").NonDeletedExcalidrawElement | null;
|
|
@@ -402,7 +417,7 @@ export declare const actionDeleteSelected: {
|
|
|
402
417
|
duration?: number | undefined;
|
|
403
418
|
} | null;
|
|
404
419
|
zenModeEnabled: boolean;
|
|
405
|
-
theme:
|
|
420
|
+
theme: import("../element/types").Theme;
|
|
406
421
|
gridSize: number | null;
|
|
407
422
|
previousGridSize: number | null;
|
|
408
423
|
viewModeEnabled: boolean;
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { ExcalidrawElement } from "../element/types";
|
|
3
|
-
import { AppState } from "../types";
|
|
3
|
+
import { AppClassProperties, AppState } from "../types";
|
|
4
4
|
export declare const distributeHorizontally: {
|
|
5
5
|
name: "distributeHorizontally";
|
|
6
6
|
trackEvent: {
|
|
7
7
|
category: "element";
|
|
8
8
|
};
|
|
9
|
-
perform: (elements: readonly ExcalidrawElement[], appState: Readonly<AppState
|
|
9
|
+
perform: (elements: readonly ExcalidrawElement[], appState: Readonly<AppState>, _: any, app: AppClassProperties) => {
|
|
10
10
|
appState: Readonly<AppState>;
|
|
11
11
|
elements: import("../scene/Scene").ExcalidrawElementsIncludingDeleted;
|
|
12
12
|
commitToHistory: true;
|
|
13
13
|
};
|
|
14
14
|
keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
|
|
15
|
-
PanelComponent: ({ elements, appState, updateData }: import("./types").PanelComponentProps) => JSX.Element;
|
|
15
|
+
PanelComponent: ({ elements, appState, updateData, app }: import("./types").PanelComponentProps) => JSX.Element;
|
|
16
16
|
} & {
|
|
17
17
|
keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
|
|
18
18
|
};
|
|
@@ -21,13 +21,13 @@ export declare const distributeVertically: {
|
|
|
21
21
|
trackEvent: {
|
|
22
22
|
category: "element";
|
|
23
23
|
};
|
|
24
|
-
perform: (elements: readonly ExcalidrawElement[], appState: Readonly<AppState
|
|
24
|
+
perform: (elements: readonly ExcalidrawElement[], appState: Readonly<AppState>, _: any, app: AppClassProperties) => {
|
|
25
25
|
appState: Readonly<AppState>;
|
|
26
26
|
elements: import("../scene/Scene").ExcalidrawElementsIncludingDeleted;
|
|
27
27
|
commitToHistory: true;
|
|
28
28
|
};
|
|
29
29
|
keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
|
|
30
|
-
PanelComponent: ({ elements, appState, updateData }: import("./types").PanelComponentProps) => JSX.Element;
|
|
30
|
+
PanelComponent: ({ elements, appState, updateData, app }: import("./types").PanelComponentProps) => JSX.Element;
|
|
31
31
|
} & {
|
|
32
32
|
keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
|
|
33
33
|
};
|
|
@@ -5,8 +5,8 @@ export declare const actionToggleElementLock: {
|
|
|
5
5
|
trackEvent: {
|
|
6
6
|
category: "element";
|
|
7
7
|
};
|
|
8
|
-
predicate: (elements: readonly ExcalidrawElement[], appState: import("../types").AppState) => boolean;
|
|
9
|
-
perform: (elements: readonly ExcalidrawElement[], appState: Readonly<import("../types").AppState
|
|
8
|
+
predicate: (elements: readonly ExcalidrawElement[], appState: import("../types").AppState, _: import("../types").ExcalidrawProps, app: import("../types").AppClassProperties) => boolean;
|
|
9
|
+
perform: (elements: readonly ExcalidrawElement[], appState: Readonly<import("../types").AppState>, _: any, app: import("../types").AppClassProperties) => false | {
|
|
10
10
|
elements: ExcalidrawElement[];
|
|
11
11
|
appState: {
|
|
12
12
|
selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
|
|
@@ -18,7 +18,7 @@ export declare const actionToggleElementLock: {
|
|
|
18
18
|
showWelcomeScreen: boolean;
|
|
19
19
|
isLoading: boolean;
|
|
20
20
|
errorMessage: import("react").ReactNode;
|
|
21
|
-
|
|
21
|
+
activeEmbeddable: {
|
|
22
22
|
element: import("../element/types").NonDeletedExcalidrawElement;
|
|
23
23
|
state: "active" | "hover";
|
|
24
24
|
} | null;
|
|
@@ -30,7 +30,12 @@ export declare const actionToggleElementLock: {
|
|
|
30
30
|
startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
|
|
31
31
|
suggestedBindings: import("../element/binding").SuggestedBinding[];
|
|
32
32
|
frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameElement> | null;
|
|
33
|
-
|
|
33
|
+
frameRendering: {
|
|
34
|
+
enabled: boolean;
|
|
35
|
+
name: boolean;
|
|
36
|
+
outline: boolean;
|
|
37
|
+
clip: boolean;
|
|
38
|
+
};
|
|
34
39
|
editingFrame: string | null;
|
|
35
40
|
elementsToHighlight: import("../element/types").NonDeleted<ExcalidrawElement>[] | null;
|
|
36
41
|
editingElement: import("../element/types").NonDeletedExcalidrawElement | null;
|
|
@@ -39,7 +44,7 @@ export declare const actionToggleElementLock: {
|
|
|
39
44
|
lastActiveTool: import("../types").LastActiveTool;
|
|
40
45
|
locked: boolean;
|
|
41
46
|
} & ({
|
|
42
|
-
type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "
|
|
47
|
+
type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "embeddable" | "image" | "frame" | "freedraw" | "eraser" | "hand";
|
|
43
48
|
customType: null;
|
|
44
49
|
} | {
|
|
45
50
|
type: "custom";
|
|
@@ -98,7 +103,7 @@ export declare const actionToggleElementLock: {
|
|
|
98
103
|
duration?: number | undefined;
|
|
99
104
|
} | null;
|
|
100
105
|
zenModeEnabled: boolean;
|
|
101
|
-
theme:
|
|
106
|
+
theme: import("../element/types").Theme;
|
|
102
107
|
gridSize: number | null;
|
|
103
108
|
previousGridSize: number | null;
|
|
104
109
|
viewModeEnabled: boolean;
|
|
@@ -147,10 +152,10 @@ export declare const actionToggleElementLock: {
|
|
|
147
152
|
};
|
|
148
153
|
commitToHistory: true;
|
|
149
154
|
};
|
|
150
|
-
contextItemLabel: (elements: readonly ExcalidrawElement[], appState: Readonly<import("../types").AppState
|
|
151
|
-
keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>, appState: import("../types").AppState, elements: readonly ExcalidrawElement[]) => boolean;
|
|
155
|
+
contextItemLabel: (elements: readonly ExcalidrawElement[], appState: Readonly<import("../types").AppState>, app: import("../types").AppClassProperties) => "labels.elementLock.unlock" | "labels.elementLock.lock" | "labels.elementLock.lockAll" | "labels.elementLock.unlockAll";
|
|
156
|
+
keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>, appState: import("../types").AppState, elements: readonly ExcalidrawElement[], app: import("../types").AppClassProperties) => boolean;
|
|
152
157
|
} & {
|
|
153
|
-
keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>, appState: import("../types").AppState, elements: readonly ExcalidrawElement[]) => boolean) | undefined;
|
|
158
|
+
keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>, appState: import("../types").AppState, elements: readonly ExcalidrawElement[], app: import("../types").AppClassProperties) => boolean) | undefined;
|
|
154
159
|
};
|
|
155
160
|
export declare const actionUnlockAllElements: {
|
|
156
161
|
name: "unlockAllElements";
|
|
@@ -173,7 +178,7 @@ export declare const actionUnlockAllElements: {
|
|
|
173
178
|
showWelcomeScreen: boolean;
|
|
174
179
|
isLoading: boolean;
|
|
175
180
|
errorMessage: import("react").ReactNode;
|
|
176
|
-
|
|
181
|
+
activeEmbeddable: {
|
|
177
182
|
element: import("../element/types").NonDeletedExcalidrawElement;
|
|
178
183
|
state: "active" | "hover";
|
|
179
184
|
} | null;
|
|
@@ -185,7 +190,12 @@ export declare const actionUnlockAllElements: {
|
|
|
185
190
|
startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
|
|
186
191
|
suggestedBindings: import("../element/binding").SuggestedBinding[];
|
|
187
192
|
frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameElement> | null;
|
|
188
|
-
|
|
193
|
+
frameRendering: {
|
|
194
|
+
enabled: boolean;
|
|
195
|
+
name: boolean;
|
|
196
|
+
outline: boolean;
|
|
197
|
+
clip: boolean;
|
|
198
|
+
};
|
|
189
199
|
editingFrame: string | null;
|
|
190
200
|
elementsToHighlight: import("../element/types").NonDeleted<ExcalidrawElement>[] | null;
|
|
191
201
|
editingElement: import("../element/types").NonDeletedExcalidrawElement | null;
|
|
@@ -194,7 +204,7 @@ export declare const actionUnlockAllElements: {
|
|
|
194
204
|
lastActiveTool: import("../types").LastActiveTool;
|
|
195
205
|
locked: boolean;
|
|
196
206
|
} & ({
|
|
197
|
-
type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "
|
|
207
|
+
type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "embeddable" | "image" | "frame" | "freedraw" | "eraser" | "hand";
|
|
198
208
|
customType: null;
|
|
199
209
|
} | {
|
|
200
210
|
type: "custom";
|
|
@@ -250,7 +260,7 @@ export declare const actionUnlockAllElements: {
|
|
|
250
260
|
duration?: number | undefined;
|
|
251
261
|
} | null;
|
|
252
262
|
zenModeEnabled: boolean;
|
|
253
|
-
theme:
|
|
263
|
+
theme: import("../element/types").Theme;
|
|
254
264
|
gridSize: number | null;
|
|
255
265
|
previousGridSize: number | null;
|
|
256
266
|
viewModeEnabled: boolean;
|