@zsviczian/excalidraw 0.15.2-obsidian-6 → 0.15.2-obsidian-8
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 +37 -37
- package/dist/excalidraw.production.min.js +1 -1
- package/package.json +1 -1
- package/types/actions/actionAddToLibrary.d.ts +36 -21
- package/types/actions/actionBoundText.d.ts +22 -11
- package/types/actions/actionCanvas.d.ts +138 -78
- package/types/actions/actionClipboard.d.ts +57 -32
- package/types/actions/actionDeleteSelected.d.ts +33 -18
- package/types/actions/actionElementLock.d.ts +21 -11
- package/types/actions/actionExport.d.ts +108 -63
- package/types/actions/actionFinalize.d.ts +24 -14
- package/types/actions/actionFrame.d.ts +35 -20
- package/types/actions/actionLinearEditor.d.ts +12 -7
- package/types/actions/actionMenu.d.ts +36 -21
- package/types/actions/actionProperties.d.ts +156 -91
- package/types/actions/actionStyles.d.ts +12 -7
- package/types/actions/actionToggleGridMode.d.ts +12 -7
- package/types/actions/actionToggleStats.d.ts +12 -7
- package/types/actions/actionToggleViewMode.d.ts +12 -7
- package/types/actions/actionToggleZenMode.d.ts +12 -7
- package/types/actions/types.d.ts +1 -1
- package/types/appState.d.ts +5 -5
- package/types/components/App.d.ts +13 -8
- package/types/element/Hyperlink.d.ts +12 -7
- package/types/element/collision.d.ts +2 -2
- package/types/element/embeddable.d.ts +171 -0
- package/types/element/iframe.d.ts +4 -4
- package/types/element/linearElementEditor.d.ts +12 -7
- 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/groups.d.ts +1 -1
- package/types/history.d.ts +3 -3
- package/types/scene/selection.d.ts +11 -1
- package/types/types.d.ts +19 -14
- package/types/utils.d.ts +1 -1
|
@@ -41,7 +41,7 @@ export declare const actionClearCanvas: {
|
|
|
41
41
|
lastActiveTool: import("../types").LastActiveTool;
|
|
42
42
|
locked: boolean;
|
|
43
43
|
} & ({
|
|
44
|
-
type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "
|
|
44
|
+
type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "embeddable" | "image" | "frame" | "freedraw" | "eraser" | "hand";
|
|
45
45
|
customType: null;
|
|
46
46
|
} | {
|
|
47
47
|
type: "custom";
|
|
@@ -71,7 +71,7 @@ export declare const actionClearCanvas: {
|
|
|
71
71
|
showWelcomeScreen: boolean;
|
|
72
72
|
isLoading: boolean;
|
|
73
73
|
errorMessage: import("react").ReactNode;
|
|
74
|
-
|
|
74
|
+
activeEmbeddable: {
|
|
75
75
|
element: import("../element/types").NonDeletedExcalidrawElement;
|
|
76
76
|
state: "active" | "hover";
|
|
77
77
|
} | null;
|
|
@@ -83,7 +83,12 @@ export declare const actionClearCanvas: {
|
|
|
83
83
|
startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
|
|
84
84
|
suggestedBindings: import("../element/binding").SuggestedBinding[];
|
|
85
85
|
frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameElement> | null;
|
|
86
|
-
|
|
86
|
+
frameRendering: {
|
|
87
|
+
enabled: boolean;
|
|
88
|
+
name: boolean;
|
|
89
|
+
outline: boolean;
|
|
90
|
+
clip: boolean;
|
|
91
|
+
};
|
|
87
92
|
editingFrame: string | null;
|
|
88
93
|
elementsToHighlight: import("../element/types").NonDeleted<ExcalidrawElement>[] | null;
|
|
89
94
|
editingElement: import("../element/types").NonDeletedExcalidrawElement | null;
|
|
@@ -122,11 +127,11 @@ export declare const actionClearCanvas: {
|
|
|
122
127
|
openDialog: "imageExport" | "help" | "jsonExport" | null;
|
|
123
128
|
defaultSidebarDockedPreference: boolean;
|
|
124
129
|
lastPointerDownWith: import("../element/types").PointerType;
|
|
125
|
-
selectedElementIds: {
|
|
126
|
-
[id: string]:
|
|
127
|
-
}
|
|
130
|
+
selectedElementIds: Readonly<{
|
|
131
|
+
[id: string]: true;
|
|
132
|
+
}>;
|
|
128
133
|
previousSelectedElementIds: {
|
|
129
|
-
[id: string]:
|
|
134
|
+
[id: string]: true;
|
|
130
135
|
};
|
|
131
136
|
selectedElementsAreBeingDragged: boolean;
|
|
132
137
|
shouldCacheIgnoreZoom: boolean;
|
|
@@ -181,7 +186,7 @@ export declare const actionZoomIn: {
|
|
|
181
186
|
showWelcomeScreen: boolean;
|
|
182
187
|
isLoading: boolean;
|
|
183
188
|
errorMessage: import("react").ReactNode;
|
|
184
|
-
|
|
189
|
+
activeEmbeddable: {
|
|
185
190
|
element: import("../element/types").NonDeletedExcalidrawElement;
|
|
186
191
|
state: "active" | "hover";
|
|
187
192
|
} | null;
|
|
@@ -193,7 +198,12 @@ export declare const actionZoomIn: {
|
|
|
193
198
|
startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
|
|
194
199
|
suggestedBindings: import("../element/binding").SuggestedBinding[];
|
|
195
200
|
frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameElement> | null;
|
|
196
|
-
|
|
201
|
+
frameRendering: {
|
|
202
|
+
enabled: boolean;
|
|
203
|
+
name: boolean;
|
|
204
|
+
outline: boolean;
|
|
205
|
+
clip: boolean;
|
|
206
|
+
};
|
|
197
207
|
editingFrame: string | null;
|
|
198
208
|
elementsToHighlight: import("../element/types").NonDeleted<ExcalidrawElement>[] | null;
|
|
199
209
|
editingElement: import("../element/types").NonDeletedExcalidrawElement | null;
|
|
@@ -202,7 +212,7 @@ export declare const actionZoomIn: {
|
|
|
202
212
|
lastActiveTool: import("../types").LastActiveTool;
|
|
203
213
|
locked: boolean;
|
|
204
214
|
} & ({
|
|
205
|
-
type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "
|
|
215
|
+
type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "embeddable" | "image" | "frame" | "freedraw" | "eraser" | "hand";
|
|
206
216
|
customType: null;
|
|
207
217
|
} | {
|
|
208
218
|
type: "custom";
|
|
@@ -242,11 +252,11 @@ export declare const actionZoomIn: {
|
|
|
242
252
|
openDialog: "imageExport" | "help" | "jsonExport" | null;
|
|
243
253
|
defaultSidebarDockedPreference: boolean;
|
|
244
254
|
lastPointerDownWith: import("../element/types").PointerType;
|
|
245
|
-
selectedElementIds: {
|
|
246
|
-
[id: string]:
|
|
247
|
-
}
|
|
255
|
+
selectedElementIds: Readonly<{
|
|
256
|
+
[id: string]: true;
|
|
257
|
+
}>;
|
|
248
258
|
previousSelectedElementIds: {
|
|
249
|
-
[id: string]:
|
|
259
|
+
[id: string]: true;
|
|
250
260
|
};
|
|
251
261
|
selectedElementsAreBeingDragged: boolean;
|
|
252
262
|
shouldCacheIgnoreZoom: boolean;
|
|
@@ -332,7 +342,7 @@ export declare const actionZoomOut: {
|
|
|
332
342
|
showWelcomeScreen: boolean;
|
|
333
343
|
isLoading: boolean;
|
|
334
344
|
errorMessage: import("react").ReactNode;
|
|
335
|
-
|
|
345
|
+
activeEmbeddable: {
|
|
336
346
|
element: import("../element/types").NonDeletedExcalidrawElement;
|
|
337
347
|
state: "active" | "hover";
|
|
338
348
|
} | null;
|
|
@@ -344,7 +354,12 @@ export declare const actionZoomOut: {
|
|
|
344
354
|
startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
|
|
345
355
|
suggestedBindings: import("../element/binding").SuggestedBinding[];
|
|
346
356
|
frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameElement> | null;
|
|
347
|
-
|
|
357
|
+
frameRendering: {
|
|
358
|
+
enabled: boolean;
|
|
359
|
+
name: boolean;
|
|
360
|
+
outline: boolean;
|
|
361
|
+
clip: boolean;
|
|
362
|
+
};
|
|
348
363
|
editingFrame: string | null;
|
|
349
364
|
elementsToHighlight: import("../element/types").NonDeleted<ExcalidrawElement>[] | null;
|
|
350
365
|
editingElement: import("../element/types").NonDeletedExcalidrawElement | null;
|
|
@@ -353,7 +368,7 @@ export declare const actionZoomOut: {
|
|
|
353
368
|
lastActiveTool: import("../types").LastActiveTool;
|
|
354
369
|
locked: boolean;
|
|
355
370
|
} & ({
|
|
356
|
-
type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "
|
|
371
|
+
type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "embeddable" | "image" | "frame" | "freedraw" | "eraser" | "hand";
|
|
357
372
|
customType: null;
|
|
358
373
|
} | {
|
|
359
374
|
type: "custom";
|
|
@@ -393,11 +408,11 @@ export declare const actionZoomOut: {
|
|
|
393
408
|
openDialog: "imageExport" | "help" | "jsonExport" | null;
|
|
394
409
|
defaultSidebarDockedPreference: boolean;
|
|
395
410
|
lastPointerDownWith: import("../element/types").PointerType;
|
|
396
|
-
selectedElementIds: {
|
|
397
|
-
[id: string]:
|
|
398
|
-
}
|
|
411
|
+
selectedElementIds: Readonly<{
|
|
412
|
+
[id: string]: true;
|
|
413
|
+
}>;
|
|
399
414
|
previousSelectedElementIds: {
|
|
400
|
-
[id: string]:
|
|
415
|
+
[id: string]: true;
|
|
401
416
|
};
|
|
402
417
|
selectedElementsAreBeingDragged: boolean;
|
|
403
418
|
shouldCacheIgnoreZoom: boolean;
|
|
@@ -483,7 +498,7 @@ export declare const actionResetZoom: {
|
|
|
483
498
|
showWelcomeScreen: boolean;
|
|
484
499
|
isLoading: boolean;
|
|
485
500
|
errorMessage: import("react").ReactNode;
|
|
486
|
-
|
|
501
|
+
activeEmbeddable: {
|
|
487
502
|
element: import("../element/types").NonDeletedExcalidrawElement;
|
|
488
503
|
state: "active" | "hover";
|
|
489
504
|
} | null;
|
|
@@ -495,7 +510,12 @@ export declare const actionResetZoom: {
|
|
|
495
510
|
startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
|
|
496
511
|
suggestedBindings: import("../element/binding").SuggestedBinding[];
|
|
497
512
|
frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameElement> | null;
|
|
498
|
-
|
|
513
|
+
frameRendering: {
|
|
514
|
+
enabled: boolean;
|
|
515
|
+
name: boolean;
|
|
516
|
+
outline: boolean;
|
|
517
|
+
clip: boolean;
|
|
518
|
+
};
|
|
499
519
|
editingFrame: string | null;
|
|
500
520
|
elementsToHighlight: import("../element/types").NonDeleted<ExcalidrawElement>[] | null;
|
|
501
521
|
editingElement: import("../element/types").NonDeletedExcalidrawElement | null;
|
|
@@ -504,7 +524,7 @@ export declare const actionResetZoom: {
|
|
|
504
524
|
lastActiveTool: import("../types").LastActiveTool;
|
|
505
525
|
locked: boolean;
|
|
506
526
|
} & ({
|
|
507
|
-
type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "
|
|
527
|
+
type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "embeddable" | "image" | "frame" | "freedraw" | "eraser" | "hand";
|
|
508
528
|
customType: null;
|
|
509
529
|
} | {
|
|
510
530
|
type: "custom";
|
|
@@ -544,11 +564,11 @@ export declare const actionResetZoom: {
|
|
|
544
564
|
openDialog: "imageExport" | "help" | "jsonExport" | null;
|
|
545
565
|
defaultSidebarDockedPreference: boolean;
|
|
546
566
|
lastPointerDownWith: import("../element/types").PointerType;
|
|
547
|
-
selectedElementIds: {
|
|
548
|
-
[id: string]:
|
|
549
|
-
}
|
|
567
|
+
selectedElementIds: Readonly<{
|
|
568
|
+
[id: string]: true;
|
|
569
|
+
}>;
|
|
550
570
|
previousSelectedElementIds: {
|
|
551
|
-
[id: string]:
|
|
571
|
+
[id: string]: true;
|
|
552
572
|
};
|
|
553
573
|
selectedElementsAreBeingDragged: boolean;
|
|
554
574
|
shouldCacheIgnoreZoom: boolean;
|
|
@@ -635,7 +655,7 @@ export declare const zoomToFit: ({ targetElements, appState, fitToViewport, view
|
|
|
635
655
|
showWelcomeScreen: boolean;
|
|
636
656
|
isLoading: boolean;
|
|
637
657
|
errorMessage: import("react").ReactNode;
|
|
638
|
-
|
|
658
|
+
activeEmbeddable: {
|
|
639
659
|
element: import("../element/types").NonDeletedExcalidrawElement;
|
|
640
660
|
state: "active" | "hover";
|
|
641
661
|
} | null;
|
|
@@ -647,7 +667,12 @@ export declare const zoomToFit: ({ targetElements, appState, fitToViewport, view
|
|
|
647
667
|
startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
|
|
648
668
|
suggestedBindings: import("../element/binding").SuggestedBinding[];
|
|
649
669
|
frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameElement> | null;
|
|
650
|
-
|
|
670
|
+
frameRendering: {
|
|
671
|
+
enabled: boolean;
|
|
672
|
+
name: boolean;
|
|
673
|
+
outline: boolean;
|
|
674
|
+
clip: boolean;
|
|
675
|
+
};
|
|
651
676
|
editingFrame: string | null;
|
|
652
677
|
elementsToHighlight: import("../element/types").NonDeleted<ExcalidrawElement>[] | null;
|
|
653
678
|
editingElement: import("../element/types").NonDeletedExcalidrawElement | null;
|
|
@@ -656,7 +681,7 @@ export declare const zoomToFit: ({ targetElements, appState, fitToViewport, view
|
|
|
656
681
|
lastActiveTool: import("../types").LastActiveTool;
|
|
657
682
|
locked: boolean;
|
|
658
683
|
} & ({
|
|
659
|
-
type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "
|
|
684
|
+
type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "embeddable" | "image" | "frame" | "freedraw" | "eraser" | "hand";
|
|
660
685
|
customType: null;
|
|
661
686
|
} | {
|
|
662
687
|
type: "custom";
|
|
@@ -696,11 +721,11 @@ export declare const zoomToFit: ({ targetElements, appState, fitToViewport, view
|
|
|
696
721
|
openDialog: "imageExport" | "help" | "jsonExport" | null;
|
|
697
722
|
defaultSidebarDockedPreference: boolean;
|
|
698
723
|
lastPointerDownWith: import("../element/types").PointerType;
|
|
699
|
-
selectedElementIds: {
|
|
700
|
-
[id: string]:
|
|
701
|
-
}
|
|
724
|
+
selectedElementIds: Readonly<{
|
|
725
|
+
[id: string]: true;
|
|
726
|
+
}>;
|
|
702
727
|
previousSelectedElementIds: {
|
|
703
|
-
[id: string]:
|
|
728
|
+
[id: string]: true;
|
|
704
729
|
};
|
|
705
730
|
selectedElementsAreBeingDragged: boolean;
|
|
706
731
|
shouldCacheIgnoreZoom: boolean;
|
|
@@ -780,7 +805,7 @@ export declare const actionZoomToFitSelectionInViewport: {
|
|
|
780
805
|
showWelcomeScreen: boolean;
|
|
781
806
|
isLoading: boolean;
|
|
782
807
|
errorMessage: import("react").ReactNode;
|
|
783
|
-
|
|
808
|
+
activeEmbeddable: {
|
|
784
809
|
element: import("../element/types").NonDeletedExcalidrawElement;
|
|
785
810
|
state: "active" | "hover";
|
|
786
811
|
} | null;
|
|
@@ -792,7 +817,12 @@ export declare const actionZoomToFitSelectionInViewport: {
|
|
|
792
817
|
startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
|
|
793
818
|
suggestedBindings: import("../element/binding").SuggestedBinding[];
|
|
794
819
|
frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameElement> | null;
|
|
795
|
-
|
|
820
|
+
frameRendering: {
|
|
821
|
+
enabled: boolean;
|
|
822
|
+
name: boolean;
|
|
823
|
+
outline: boolean;
|
|
824
|
+
clip: boolean;
|
|
825
|
+
};
|
|
796
826
|
editingFrame: string | null;
|
|
797
827
|
elementsToHighlight: import("../element/types").NonDeleted<ExcalidrawElement>[] | null;
|
|
798
828
|
editingElement: import("../element/types").NonDeletedExcalidrawElement | null;
|
|
@@ -801,7 +831,7 @@ export declare const actionZoomToFitSelectionInViewport: {
|
|
|
801
831
|
lastActiveTool: import("../types").LastActiveTool;
|
|
802
832
|
locked: boolean;
|
|
803
833
|
} & ({
|
|
804
|
-
type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "
|
|
834
|
+
type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "embeddable" | "image" | "frame" | "freedraw" | "eraser" | "hand";
|
|
805
835
|
customType: null;
|
|
806
836
|
} | {
|
|
807
837
|
type: "custom";
|
|
@@ -841,11 +871,11 @@ export declare const actionZoomToFitSelectionInViewport: {
|
|
|
841
871
|
openDialog: "imageExport" | "help" | "jsonExport" | null;
|
|
842
872
|
defaultSidebarDockedPreference: boolean;
|
|
843
873
|
lastPointerDownWith: import("../element/types").PointerType;
|
|
844
|
-
selectedElementIds: {
|
|
845
|
-
[id: string]:
|
|
846
|
-
}
|
|
874
|
+
selectedElementIds: Readonly<{
|
|
875
|
+
[id: string]: true;
|
|
876
|
+
}>;
|
|
847
877
|
previousSelectedElementIds: {
|
|
848
|
-
[id: string]:
|
|
878
|
+
[id: string]: true;
|
|
849
879
|
};
|
|
850
880
|
selectedElementsAreBeingDragged: boolean;
|
|
851
881
|
shouldCacheIgnoreZoom: boolean;
|
|
@@ -929,7 +959,7 @@ export declare const actionZoomToFitSelection: {
|
|
|
929
959
|
showWelcomeScreen: boolean;
|
|
930
960
|
isLoading: boolean;
|
|
931
961
|
errorMessage: import("react").ReactNode;
|
|
932
|
-
|
|
962
|
+
activeEmbeddable: {
|
|
933
963
|
element: import("../element/types").NonDeletedExcalidrawElement;
|
|
934
964
|
state: "active" | "hover";
|
|
935
965
|
} | null;
|
|
@@ -941,7 +971,12 @@ export declare const actionZoomToFitSelection: {
|
|
|
941
971
|
startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
|
|
942
972
|
suggestedBindings: import("../element/binding").SuggestedBinding[];
|
|
943
973
|
frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameElement> | null;
|
|
944
|
-
|
|
974
|
+
frameRendering: {
|
|
975
|
+
enabled: boolean;
|
|
976
|
+
name: boolean;
|
|
977
|
+
outline: boolean;
|
|
978
|
+
clip: boolean;
|
|
979
|
+
};
|
|
945
980
|
editingFrame: string | null;
|
|
946
981
|
elementsToHighlight: import("../element/types").NonDeleted<ExcalidrawElement>[] | null;
|
|
947
982
|
editingElement: import("../element/types").NonDeletedExcalidrawElement | null;
|
|
@@ -950,7 +985,7 @@ export declare const actionZoomToFitSelection: {
|
|
|
950
985
|
lastActiveTool: import("../types").LastActiveTool;
|
|
951
986
|
locked: boolean;
|
|
952
987
|
} & ({
|
|
953
|
-
type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "
|
|
988
|
+
type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "embeddable" | "image" | "frame" | "freedraw" | "eraser" | "hand";
|
|
954
989
|
customType: null;
|
|
955
990
|
} | {
|
|
956
991
|
type: "custom";
|
|
@@ -990,11 +1025,11 @@ export declare const actionZoomToFitSelection: {
|
|
|
990
1025
|
openDialog: "imageExport" | "help" | "jsonExport" | null;
|
|
991
1026
|
defaultSidebarDockedPreference: boolean;
|
|
992
1027
|
lastPointerDownWith: import("../element/types").PointerType;
|
|
993
|
-
selectedElementIds: {
|
|
994
|
-
[id: string]:
|
|
995
|
-
}
|
|
1028
|
+
selectedElementIds: Readonly<{
|
|
1029
|
+
[id: string]: true;
|
|
1030
|
+
}>;
|
|
996
1031
|
previousSelectedElementIds: {
|
|
997
|
-
[id: string]:
|
|
1032
|
+
[id: string]: true;
|
|
998
1033
|
};
|
|
999
1034
|
selectedElementsAreBeingDragged: boolean;
|
|
1000
1035
|
shouldCacheIgnoreZoom: boolean;
|
|
@@ -1079,7 +1114,7 @@ export declare const actionZoomToFit: {
|
|
|
1079
1114
|
showWelcomeScreen: boolean;
|
|
1080
1115
|
isLoading: boolean;
|
|
1081
1116
|
errorMessage: import("react").ReactNode;
|
|
1082
|
-
|
|
1117
|
+
activeEmbeddable: {
|
|
1083
1118
|
element: import("../element/types").NonDeletedExcalidrawElement;
|
|
1084
1119
|
state: "active" | "hover";
|
|
1085
1120
|
} | null;
|
|
@@ -1091,7 +1126,12 @@ export declare const actionZoomToFit: {
|
|
|
1091
1126
|
startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
|
|
1092
1127
|
suggestedBindings: import("../element/binding").SuggestedBinding[];
|
|
1093
1128
|
frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameElement> | null;
|
|
1094
|
-
|
|
1129
|
+
frameRendering: {
|
|
1130
|
+
enabled: boolean;
|
|
1131
|
+
name: boolean;
|
|
1132
|
+
outline: boolean;
|
|
1133
|
+
clip: boolean;
|
|
1134
|
+
};
|
|
1095
1135
|
editingFrame: string | null;
|
|
1096
1136
|
elementsToHighlight: import("../element/types").NonDeleted<ExcalidrawElement>[] | null;
|
|
1097
1137
|
editingElement: import("../element/types").NonDeletedExcalidrawElement | null;
|
|
@@ -1100,7 +1140,7 @@ export declare const actionZoomToFit: {
|
|
|
1100
1140
|
lastActiveTool: import("../types").LastActiveTool;
|
|
1101
1141
|
locked: boolean;
|
|
1102
1142
|
} & ({
|
|
1103
|
-
type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "
|
|
1143
|
+
type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "embeddable" | "image" | "frame" | "freedraw" | "eraser" | "hand";
|
|
1104
1144
|
customType: null;
|
|
1105
1145
|
} | {
|
|
1106
1146
|
type: "custom";
|
|
@@ -1140,11 +1180,11 @@ export declare const actionZoomToFit: {
|
|
|
1140
1180
|
openDialog: "imageExport" | "help" | "jsonExport" | null;
|
|
1141
1181
|
defaultSidebarDockedPreference: boolean;
|
|
1142
1182
|
lastPointerDownWith: import("../element/types").PointerType;
|
|
1143
|
-
selectedElementIds: {
|
|
1144
|
-
[id: string]:
|
|
1145
|
-
}
|
|
1183
|
+
selectedElementIds: Readonly<{
|
|
1184
|
+
[id: string]: true;
|
|
1185
|
+
}>;
|
|
1146
1186
|
previousSelectedElementIds: {
|
|
1147
|
-
[id: string]:
|
|
1187
|
+
[id: string]: true;
|
|
1148
1188
|
};
|
|
1149
1189
|
selectedElementsAreBeingDragged: boolean;
|
|
1150
1190
|
shouldCacheIgnoreZoom: boolean;
|
|
@@ -1225,7 +1265,7 @@ export declare const actionToggleTheme: {
|
|
|
1225
1265
|
showWelcomeScreen: boolean;
|
|
1226
1266
|
isLoading: boolean;
|
|
1227
1267
|
errorMessage: import("react").ReactNode;
|
|
1228
|
-
|
|
1268
|
+
activeEmbeddable: {
|
|
1229
1269
|
element: import("../element/types").NonDeletedExcalidrawElement;
|
|
1230
1270
|
state: "active" | "hover";
|
|
1231
1271
|
} | null;
|
|
@@ -1237,7 +1277,12 @@ export declare const actionToggleTheme: {
|
|
|
1237
1277
|
startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
|
|
1238
1278
|
suggestedBindings: import("../element/binding").SuggestedBinding[];
|
|
1239
1279
|
frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameElement> | null;
|
|
1240
|
-
|
|
1280
|
+
frameRendering: {
|
|
1281
|
+
enabled: boolean;
|
|
1282
|
+
name: boolean;
|
|
1283
|
+
outline: boolean;
|
|
1284
|
+
clip: boolean;
|
|
1285
|
+
};
|
|
1241
1286
|
editingFrame: string | null;
|
|
1242
1287
|
elementsToHighlight: import("../element/types").NonDeleted<ExcalidrawElement>[] | null;
|
|
1243
1288
|
editingElement: import("../element/types").NonDeletedExcalidrawElement | null;
|
|
@@ -1246,7 +1291,7 @@ export declare const actionToggleTheme: {
|
|
|
1246
1291
|
lastActiveTool: import("../types").LastActiveTool;
|
|
1247
1292
|
locked: boolean;
|
|
1248
1293
|
} & ({
|
|
1249
|
-
type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "
|
|
1294
|
+
type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "embeddable" | "image" | "frame" | "freedraw" | "eraser" | "hand";
|
|
1250
1295
|
customType: null;
|
|
1251
1296
|
} | {
|
|
1252
1297
|
type: "custom";
|
|
@@ -1291,11 +1336,11 @@ export declare const actionToggleTheme: {
|
|
|
1291
1336
|
openDialog: "imageExport" | "help" | "jsonExport" | null;
|
|
1292
1337
|
defaultSidebarDockedPreference: boolean;
|
|
1293
1338
|
lastPointerDownWith: import("../element/types").PointerType;
|
|
1294
|
-
selectedElementIds: {
|
|
1295
|
-
[id: string]:
|
|
1296
|
-
}
|
|
1339
|
+
selectedElementIds: Readonly<{
|
|
1340
|
+
[id: string]: true;
|
|
1341
|
+
}>;
|
|
1297
1342
|
previousSelectedElementIds: {
|
|
1298
|
-
[id: string]:
|
|
1343
|
+
[id: string]: true;
|
|
1299
1344
|
};
|
|
1300
1345
|
selectedElementsAreBeingDragged: boolean;
|
|
1301
1346
|
shouldCacheIgnoreZoom: boolean;
|
|
@@ -1368,12 +1413,12 @@ export declare const actionToggleEraserTool: {
|
|
|
1368
1413
|
appState: {
|
|
1369
1414
|
selectedElementIds: {};
|
|
1370
1415
|
selectedGroupIds: {};
|
|
1371
|
-
|
|
1416
|
+
activeEmbeddable: null;
|
|
1372
1417
|
activeTool: {
|
|
1373
1418
|
lastActiveTool: import("../types").LastActiveTool;
|
|
1374
1419
|
locked: boolean;
|
|
1375
1420
|
} & ({
|
|
1376
|
-
type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "
|
|
1421
|
+
type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "embeddable" | "image" | "frame" | "freedraw" | "eraser" | "hand";
|
|
1377
1422
|
customType: null;
|
|
1378
1423
|
} | {
|
|
1379
1424
|
type: "custom";
|
|
@@ -1395,7 +1440,12 @@ export declare const actionToggleEraserTool: {
|
|
|
1395
1440
|
startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
|
|
1396
1441
|
suggestedBindings: import("../element/binding").SuggestedBinding[];
|
|
1397
1442
|
frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameElement> | null;
|
|
1398
|
-
|
|
1443
|
+
frameRendering: {
|
|
1444
|
+
enabled: boolean;
|
|
1445
|
+
name: boolean;
|
|
1446
|
+
outline: boolean;
|
|
1447
|
+
clip: boolean;
|
|
1448
|
+
};
|
|
1399
1449
|
editingFrame: string | null;
|
|
1400
1450
|
elementsToHighlight: import("../element/types").NonDeleted<ExcalidrawElement>[] | null;
|
|
1401
1451
|
editingElement: import("../element/types").NonDeletedExcalidrawElement | null;
|
|
@@ -1440,7 +1490,7 @@ export declare const actionToggleEraserTool: {
|
|
|
1440
1490
|
defaultSidebarDockedPreference: boolean;
|
|
1441
1491
|
lastPointerDownWith: import("../element/types").PointerType;
|
|
1442
1492
|
previousSelectedElementIds: {
|
|
1443
|
-
[id: string]:
|
|
1493
|
+
[id: string]: true;
|
|
1444
1494
|
};
|
|
1445
1495
|
selectedElementsAreBeingDragged: boolean;
|
|
1446
1496
|
shouldCacheIgnoreZoom: boolean;
|
|
@@ -1510,12 +1560,12 @@ export declare const actionToggleHandTool: {
|
|
|
1510
1560
|
appState: {
|
|
1511
1561
|
selectedElementIds: {};
|
|
1512
1562
|
selectedGroupIds: {};
|
|
1513
|
-
|
|
1563
|
+
activeEmbeddable: null;
|
|
1514
1564
|
activeTool: {
|
|
1515
1565
|
lastActiveTool: import("../types").LastActiveTool;
|
|
1516
1566
|
locked: boolean;
|
|
1517
1567
|
} & ({
|
|
1518
|
-
type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "
|
|
1568
|
+
type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "embeddable" | "image" | "frame" | "freedraw" | "eraser" | "hand";
|
|
1519
1569
|
customType: null;
|
|
1520
1570
|
} | {
|
|
1521
1571
|
type: "custom";
|
|
@@ -1537,7 +1587,12 @@ export declare const actionToggleHandTool: {
|
|
|
1537
1587
|
startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
|
|
1538
1588
|
suggestedBindings: import("../element/binding").SuggestedBinding[];
|
|
1539
1589
|
frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameElement> | null;
|
|
1540
|
-
|
|
1590
|
+
frameRendering: {
|
|
1591
|
+
enabled: boolean;
|
|
1592
|
+
name: boolean;
|
|
1593
|
+
outline: boolean;
|
|
1594
|
+
clip: boolean;
|
|
1595
|
+
};
|
|
1541
1596
|
editingFrame: string | null;
|
|
1542
1597
|
elementsToHighlight: import("../element/types").NonDeleted<ExcalidrawElement>[] | null;
|
|
1543
1598
|
editingElement: import("../element/types").NonDeletedExcalidrawElement | null;
|
|
@@ -1582,7 +1637,7 @@ export declare const actionToggleHandTool: {
|
|
|
1582
1637
|
defaultSidebarDockedPreference: boolean;
|
|
1583
1638
|
lastPointerDownWith: import("../element/types").PointerType;
|
|
1584
1639
|
previousSelectedElementIds: {
|
|
1585
|
-
[id: string]:
|
|
1640
|
+
[id: string]: true;
|
|
1586
1641
|
};
|
|
1587
1642
|
selectedElementsAreBeingDragged: boolean;
|
|
1588
1643
|
shouldCacheIgnoreZoom: boolean;
|
|
@@ -1658,7 +1713,7 @@ export declare const zoomToFitElements: (elements: readonly ExcalidrawElement[],
|
|
|
1658
1713
|
showWelcomeScreen: boolean;
|
|
1659
1714
|
isLoading: boolean;
|
|
1660
1715
|
errorMessage: import("react").ReactNode;
|
|
1661
|
-
|
|
1716
|
+
activeEmbeddable: {
|
|
1662
1717
|
element: import("../element/types").NonDeletedExcalidrawElement;
|
|
1663
1718
|
state: "active" | "hover";
|
|
1664
1719
|
} | null;
|
|
@@ -1670,7 +1725,12 @@ export declare const zoomToFitElements: (elements: readonly ExcalidrawElement[],
|
|
|
1670
1725
|
startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
|
|
1671
1726
|
suggestedBindings: import("../element/binding").SuggestedBinding[];
|
|
1672
1727
|
frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameElement> | null;
|
|
1673
|
-
|
|
1728
|
+
frameRendering: {
|
|
1729
|
+
enabled: boolean;
|
|
1730
|
+
name: boolean;
|
|
1731
|
+
outline: boolean;
|
|
1732
|
+
clip: boolean;
|
|
1733
|
+
};
|
|
1674
1734
|
editingFrame: string | null;
|
|
1675
1735
|
elementsToHighlight: import("../element/types").NonDeleted<ExcalidrawElement>[] | null;
|
|
1676
1736
|
editingElement: import("../element/types").NonDeletedExcalidrawElement | null;
|
|
@@ -1679,7 +1739,7 @@ export declare const zoomToFitElements: (elements: readonly ExcalidrawElement[],
|
|
|
1679
1739
|
lastActiveTool: import("../types").LastActiveTool;
|
|
1680
1740
|
locked: boolean;
|
|
1681
1741
|
} & ({
|
|
1682
|
-
type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "
|
|
1742
|
+
type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "embeddable" | "image" | "frame" | "freedraw" | "eraser" | "hand";
|
|
1683
1743
|
customType: null;
|
|
1684
1744
|
} | {
|
|
1685
1745
|
type: "custom";
|
|
@@ -1719,11 +1779,11 @@ export declare const zoomToFitElements: (elements: readonly ExcalidrawElement[],
|
|
|
1719
1779
|
openDialog: "imageExport" | "help" | "jsonExport" | null;
|
|
1720
1780
|
defaultSidebarDockedPreference: boolean;
|
|
1721
1781
|
lastPointerDownWith: import("../element/types").PointerType;
|
|
1722
|
-
selectedElementIds: {
|
|
1723
|
-
[id: string]:
|
|
1724
|
-
}
|
|
1782
|
+
selectedElementIds: Readonly<{
|
|
1783
|
+
[id: string]: true;
|
|
1784
|
+
}>;
|
|
1725
1785
|
previousSelectedElementIds: {
|
|
1726
|
-
[id: string]:
|
|
1786
|
+
[id: string]: true;
|
|
1727
1787
|
};
|
|
1728
1788
|
selectedElementsAreBeingDragged: boolean;
|
|
1729
1789
|
shouldCacheIgnoreZoom: boolean;
|