@zsviczian/excalidraw 0.11.0-obsidian-2 → 0.11.0-obsidian-5
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/README.md +2 -2
- package/dist/excalidraw.development.js +98 -87
- package/dist/excalidraw.production.min.js +1 -1
- package/package.json +1 -1
- package/types/actions/actionAddToLibrary.d.ts +3 -3
- package/types/actions/actionCanvas.d.ts +105 -9
- package/types/actions/actionClipboard.d.ts +4 -4
- package/types/actions/actionDeleteSelected.d.ts +2 -2
- package/types/actions/actionExport.d.ts +9 -9
- package/types/actions/actionFinalize.d.ts +2 -2
- package/types/actions/actionMenu.d.ts +3 -3
- package/types/actions/actionProperties.d.ts +113 -12
- package/types/actions/actionStyles.d.ts +1 -1
- package/types/actions/actionToggleGridMode.d.ts +1 -1
- package/types/actions/actionToggleStats.d.ts +1 -1
- package/types/actions/actionToggleViewMode.d.ts +2 -2
- package/types/actions/actionToggleZenMode.d.ts +1 -1
- package/types/actions/index.d.ts +1 -1
- package/types/actions/types.d.ts +1 -1
- package/types/appState.d.ts +4 -1
- package/types/clipboard.d.ts +1 -1
- package/types/components/Actions.d.ts +2 -2
- package/types/components/App.d.ts +9 -0
- package/types/components/ColorPicker.d.ts +6 -1
- package/types/components/icons.d.ts +10 -0
- package/types/constants.d.ts +7 -0
- package/types/data/restore.d.ts +1 -1
- package/types/element/Hyperlink.d.ts +1 -1
- package/types/element/dragElements.d.ts +1 -2
- package/types/element/linearElementEditor.d.ts +2 -2
- package/types/element/textElement.d.ts +1 -1
- package/types/element/typeChecks.d.ts +5 -4
- package/types/element/types.d.ts +5 -3
- package/types/galines.d.ts +1 -1
- package/types/scene/comparisons.d.ts +2 -2
- package/types/scene/index.d.ts +1 -1
- package/types/types.d.ts +5 -1
package/package.json
CHANGED
|
@@ -15,7 +15,7 @@ export declare const actionAddToLibrary: {
|
|
|
15
15
|
suggestedBindings: import("../element/binding").SuggestedBinding[];
|
|
16
16
|
editingElement: import("../element/types").NonDeletedExcalidrawElement | null;
|
|
17
17
|
editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
|
|
18
|
-
elementType: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "image" | "freedraw";
|
|
18
|
+
elementType: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "image" | "freedraw" | "eraser";
|
|
19
19
|
elementLocked: boolean;
|
|
20
20
|
penMode: boolean;
|
|
21
21
|
penDetected: boolean;
|
|
@@ -107,7 +107,7 @@ export declare const actionAddToLibrary: {
|
|
|
107
107
|
suggestedBindings: import("../element/binding").SuggestedBinding[];
|
|
108
108
|
editingElement: import("../element/types").NonDeletedExcalidrawElement | null;
|
|
109
109
|
editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
|
|
110
|
-
elementType: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "image" | "freedraw";
|
|
110
|
+
elementType: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "image" | "freedraw" | "eraser";
|
|
111
111
|
elementLocked: boolean;
|
|
112
112
|
penMode: boolean;
|
|
113
113
|
penDetected: boolean;
|
|
@@ -200,7 +200,7 @@ export declare const actionAddToLibrary: {
|
|
|
200
200
|
suggestedBindings: import("../element/binding").SuggestedBinding[];
|
|
201
201
|
editingElement: import("../element/types").NonDeletedExcalidrawElement | null;
|
|
202
202
|
editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
|
|
203
|
-
elementType: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "image" | "freedraw";
|
|
203
|
+
elementType: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "image" | "freedraw" | "eraser";
|
|
204
204
|
elementLocked: boolean;
|
|
205
205
|
penMode: boolean;
|
|
206
206
|
penDetected: boolean;
|
|
@@ -7,7 +7,7 @@ export declare const actionChangeViewBackgroundColor: {
|
|
|
7
7
|
appState: any;
|
|
8
8
|
commitToHistory: boolean;
|
|
9
9
|
};
|
|
10
|
-
PanelComponent: ({ appState, updateData }: import("react").PropsWithChildren<import("./types").PanelComponentProps>) => JSX.Element;
|
|
10
|
+
PanelComponent: ({ elements, appState, updateData }: import("react").PropsWithChildren<import("./types").PanelComponentProps>) => JSX.Element;
|
|
11
11
|
} & {
|
|
12
12
|
keyTest?: undefined;
|
|
13
13
|
};
|
|
@@ -32,7 +32,7 @@ export declare const actionClearCanvas: {
|
|
|
32
32
|
shown: true;
|
|
33
33
|
data: import("../charts").Spreadsheet;
|
|
34
34
|
};
|
|
35
|
-
elementType: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "freedraw";
|
|
35
|
+
elementType: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "freedraw" | "eraser";
|
|
36
36
|
scrollX: number;
|
|
37
37
|
scrollY: number;
|
|
38
38
|
viewBackgroundColor: string;
|
|
@@ -129,7 +129,7 @@ export declare const actionZoomIn: {
|
|
|
129
129
|
suggestedBindings: import("../element/binding").SuggestedBinding[];
|
|
130
130
|
editingElement: import("../element/types").NonDeletedExcalidrawElement | null;
|
|
131
131
|
editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
|
|
132
|
-
elementType: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "image" | "freedraw";
|
|
132
|
+
elementType: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "image" | "freedraw" | "eraser";
|
|
133
133
|
elementLocked: boolean;
|
|
134
134
|
penMode: boolean;
|
|
135
135
|
penDetected: boolean;
|
|
@@ -230,7 +230,7 @@ export declare const actionZoomOut: {
|
|
|
230
230
|
suggestedBindings: import("../element/binding").SuggestedBinding[];
|
|
231
231
|
editingElement: import("../element/types").NonDeletedExcalidrawElement | null;
|
|
232
232
|
editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
|
|
233
|
-
elementType: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "image" | "freedraw";
|
|
233
|
+
elementType: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "image" | "freedraw" | "eraser";
|
|
234
234
|
elementLocked: boolean;
|
|
235
235
|
penMode: boolean;
|
|
236
236
|
penDetected: boolean;
|
|
@@ -331,7 +331,7 @@ export declare const actionResetZoom: {
|
|
|
331
331
|
suggestedBindings: import("../element/binding").SuggestedBinding[];
|
|
332
332
|
editingElement: import("../element/types").NonDeletedExcalidrawElement | null;
|
|
333
333
|
editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
|
|
334
|
-
elementType: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "image" | "freedraw";
|
|
334
|
+
elementType: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "image" | "freedraw" | "eraser";
|
|
335
335
|
elementLocked: boolean;
|
|
336
336
|
penMode: boolean;
|
|
337
337
|
penDetected: boolean;
|
|
@@ -430,7 +430,7 @@ export declare const zoomToFitElements: (elements: readonly ExcalidrawElement[],
|
|
|
430
430
|
suggestedBindings: import("../element/binding").SuggestedBinding[];
|
|
431
431
|
editingElement: import("../element/types").NonDeletedExcalidrawElement | null;
|
|
432
432
|
editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
|
|
433
|
-
elementType: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "image" | "freedraw";
|
|
433
|
+
elementType: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "image" | "freedraw" | "eraser";
|
|
434
434
|
elementLocked: boolean;
|
|
435
435
|
penMode: boolean;
|
|
436
436
|
penDetected: boolean;
|
|
@@ -526,7 +526,7 @@ export declare const actionZoomToSelected: {
|
|
|
526
526
|
suggestedBindings: import("../element/binding").SuggestedBinding[];
|
|
527
527
|
editingElement: import("../element/types").NonDeletedExcalidrawElement | null;
|
|
528
528
|
editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
|
|
529
|
-
elementType: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "image" | "freedraw";
|
|
529
|
+
elementType: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "image" | "freedraw" | "eraser";
|
|
530
530
|
elementLocked: boolean;
|
|
531
531
|
penMode: boolean;
|
|
532
532
|
penDetected: boolean;
|
|
@@ -626,7 +626,7 @@ export declare const actionZoomToFit: {
|
|
|
626
626
|
suggestedBindings: import("../element/binding").SuggestedBinding[];
|
|
627
627
|
editingElement: import("../element/types").NonDeletedExcalidrawElement | null;
|
|
628
628
|
editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
|
|
629
|
-
elementType: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "image" | "freedraw";
|
|
629
|
+
elementType: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "image" | "freedraw" | "eraser";
|
|
630
630
|
elementLocked: boolean;
|
|
631
631
|
penMode: boolean;
|
|
632
632
|
penDetected: boolean;
|
|
@@ -722,7 +722,7 @@ export declare const actionToggleTheme: {
|
|
|
722
722
|
suggestedBindings: import("../element/binding").SuggestedBinding[];
|
|
723
723
|
editingElement: import("../element/types").NonDeletedExcalidrawElement | null;
|
|
724
724
|
editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
|
|
725
|
-
elementType: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "image" | "freedraw";
|
|
725
|
+
elementType: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "image" | "freedraw" | "eraser";
|
|
726
726
|
elementLocked: boolean;
|
|
727
727
|
penMode: boolean;
|
|
728
728
|
penDetected: boolean;
|
|
@@ -807,3 +807,99 @@ export declare const actionToggleTheme: {
|
|
|
807
807
|
} & {
|
|
808
808
|
keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
|
|
809
809
|
};
|
|
810
|
+
export declare const actionErase: {
|
|
811
|
+
name: "eraser";
|
|
812
|
+
perform: (elements: readonly ExcalidrawElement[], appState: Readonly<AppState>) => {
|
|
813
|
+
appState: {
|
|
814
|
+
selectedElementIds: {};
|
|
815
|
+
selectedGroupIds: {};
|
|
816
|
+
elementType: "selection" | "eraser";
|
|
817
|
+
isLoading: boolean;
|
|
818
|
+
errorMessage: string | null;
|
|
819
|
+
draggingElement: import("../element/types").NonDeletedExcalidrawElement | null;
|
|
820
|
+
resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
|
|
821
|
+
multiElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawLinearElement> | null;
|
|
822
|
+
selectionElement: import("../element/types").NonDeletedExcalidrawElement | null;
|
|
823
|
+
isBindingEnabled: boolean;
|
|
824
|
+
startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
|
|
825
|
+
suggestedBindings: import("../element/binding").SuggestedBinding[];
|
|
826
|
+
editingElement: import("../element/types").NonDeletedExcalidrawElement | null;
|
|
827
|
+
editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
|
|
828
|
+
elementLocked: boolean;
|
|
829
|
+
penMode: boolean;
|
|
830
|
+
penDetected: boolean;
|
|
831
|
+
exportBackground: boolean;
|
|
832
|
+
exportEmbedScene: boolean;
|
|
833
|
+
exportWithDarkMode: boolean;
|
|
834
|
+
exportScale: number;
|
|
835
|
+
currentItemStrokeColor: string;
|
|
836
|
+
currentItemBackgroundColor: string;
|
|
837
|
+
currentItemFillStyle: import("../element/types").FillStyle;
|
|
838
|
+
currentItemStrokeWidth: number;
|
|
839
|
+
currentItemStrokeStyle: import("../element/types").StrokeStyle;
|
|
840
|
+
currentItemRoughness: number;
|
|
841
|
+
currentItemOpacity: number;
|
|
842
|
+
currentItemFontFamily: number;
|
|
843
|
+
currentItemFontSize: number;
|
|
844
|
+
currentItemTextAlign: import("../element/types").TextAlign;
|
|
845
|
+
currentItemStrokeSharpness: import("../element/types").StrokeSharpness;
|
|
846
|
+
currentItemStartArrowhead: import("../element/types").Arrowhead | null;
|
|
847
|
+
currentItemEndArrowhead: import("../element/types").Arrowhead | null;
|
|
848
|
+
currentItemLinearStrokeSharpness: import("../element/types").StrokeSharpness;
|
|
849
|
+
viewBackgroundColor: string;
|
|
850
|
+
scrollX: number;
|
|
851
|
+
scrollY: number;
|
|
852
|
+
cursorButton: "up" | "down";
|
|
853
|
+
scrolledOutside: boolean;
|
|
854
|
+
name: string;
|
|
855
|
+
isResizing: boolean;
|
|
856
|
+
isRotating: boolean;
|
|
857
|
+
zoom: Readonly<{
|
|
858
|
+
value: NormalizedZoomValue;
|
|
859
|
+
}>;
|
|
860
|
+
openMenu: "canvas" | "shape" | null;
|
|
861
|
+
openPopup: "canvasColorPicker" | "backgroundColorPicker" | "strokeColorPicker" | null;
|
|
862
|
+
lastPointerDownWith: import("../element/types").PointerType;
|
|
863
|
+
previousSelectedElementIds: {
|
|
864
|
+
[id: string]: boolean;
|
|
865
|
+
};
|
|
866
|
+
shouldCacheIgnoreZoom: boolean;
|
|
867
|
+
showHelpDialog: boolean;
|
|
868
|
+
toastMessage: string | null;
|
|
869
|
+
zenModeEnabled: boolean;
|
|
870
|
+
theme: string;
|
|
871
|
+
gridSize: number | null;
|
|
872
|
+
viewModeEnabled: boolean;
|
|
873
|
+
editingGroupId: string | null;
|
|
874
|
+
width: number;
|
|
875
|
+
height: number;
|
|
876
|
+
offsetTop: number;
|
|
877
|
+
offsetLeft: number;
|
|
878
|
+
isLibraryOpen: boolean;
|
|
879
|
+
fileHandle: import("browser-fs-access").FileSystemHandle | null;
|
|
880
|
+
collaborators: Map<string, import("../types").Collaborator>;
|
|
881
|
+
showStats: boolean;
|
|
882
|
+
currentChartType: import("../element/types").ChartType;
|
|
883
|
+
pasteDialog: {
|
|
884
|
+
shown: false;
|
|
885
|
+
data: null;
|
|
886
|
+
} | {
|
|
887
|
+
shown: true;
|
|
888
|
+
data: import("../charts").Spreadsheet;
|
|
889
|
+
};
|
|
890
|
+
pendingImageElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawImageElement> | null;
|
|
891
|
+
showHyperlinkPopup: false | "info" | "editor";
|
|
892
|
+
linkOpacity: number;
|
|
893
|
+
trayModeEnabled: boolean;
|
|
894
|
+
colorPalette: {
|
|
895
|
+
canvasBackground?: string[] | undefined;
|
|
896
|
+
elementBackground?: string[] | undefined;
|
|
897
|
+
elementStroke?: string[] | undefined;
|
|
898
|
+
};
|
|
899
|
+
};
|
|
900
|
+
commitToHistory: true;
|
|
901
|
+
};
|
|
902
|
+
PanelComponent: ({ elements, appState, updateData, data }: import("react").PropsWithChildren<import("./types").PanelComponentProps>) => JSX.Element;
|
|
903
|
+
} & {
|
|
904
|
+
keyTest?: undefined;
|
|
905
|
+
};
|
|
@@ -25,7 +25,7 @@ export declare const actionCut: {
|
|
|
25
25
|
startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
|
|
26
26
|
suggestedBindings: import("../element/binding").SuggestedBinding[];
|
|
27
27
|
editingElement: import("../element/types").NonDeletedExcalidrawElement | null;
|
|
28
|
-
elementType: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "image" | "freedraw";
|
|
28
|
+
elementType: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "image" | "freedraw" | "eraser";
|
|
29
29
|
elementLocked: boolean;
|
|
30
30
|
penMode: boolean;
|
|
31
31
|
penDetected: boolean;
|
|
@@ -136,7 +136,7 @@ export declare const actionCut: {
|
|
|
136
136
|
startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
|
|
137
137
|
suggestedBindings: import("../element/binding").SuggestedBinding[];
|
|
138
138
|
editingElement: import("../element/types").NonDeletedExcalidrawElement | null;
|
|
139
|
-
elementType: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "image" | "freedraw";
|
|
139
|
+
elementType: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "image" | "freedraw" | "eraser";
|
|
140
140
|
elementLocked: boolean;
|
|
141
141
|
penMode: boolean;
|
|
142
142
|
penDetected: boolean;
|
|
@@ -332,7 +332,7 @@ export declare const actionCopyAsSvg: {
|
|
|
332
332
|
suggestedBindings: import("../element/binding").SuggestedBinding[];
|
|
333
333
|
editingElement: import("../element/types").NonDeletedExcalidrawElement | null;
|
|
334
334
|
editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
|
|
335
|
-
elementType: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "image" | "freedraw";
|
|
335
|
+
elementType: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "image" | "freedraw" | "eraser";
|
|
336
336
|
elementLocked: boolean;
|
|
337
337
|
penMode: boolean;
|
|
338
338
|
penDetected: boolean;
|
|
@@ -435,7 +435,7 @@ export declare const actionCopyAsPng: {
|
|
|
435
435
|
suggestedBindings: import("../element/binding").SuggestedBinding[];
|
|
436
436
|
editingElement: import("../element/types").NonDeletedExcalidrawElement | null;
|
|
437
437
|
editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
|
|
438
|
-
elementType: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "image" | "freedraw";
|
|
438
|
+
elementType: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "image" | "freedraw" | "eraser";
|
|
439
439
|
elementLocked: boolean;
|
|
440
440
|
penMode: boolean;
|
|
441
441
|
penDetected: boolean;
|
|
@@ -18,7 +18,7 @@ export declare const actionDeleteSelected: {
|
|
|
18
18
|
startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
|
|
19
19
|
suggestedBindings: import("../element/binding").SuggestedBinding[];
|
|
20
20
|
editingElement: import("../element/types").NonDeletedExcalidrawElement | null;
|
|
21
|
-
elementType: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "image" | "freedraw";
|
|
21
|
+
elementType: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "image" | "freedraw" | "eraser";
|
|
22
22
|
elementLocked: boolean;
|
|
23
23
|
penMode: boolean;
|
|
24
24
|
penDetected: boolean;
|
|
@@ -129,7 +129,7 @@ export declare const actionDeleteSelected: {
|
|
|
129
129
|
startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
|
|
130
130
|
suggestedBindings: import("../element/binding").SuggestedBinding[];
|
|
131
131
|
editingElement: import("../element/types").NonDeletedExcalidrawElement | null;
|
|
132
|
-
elementType: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "image" | "freedraw";
|
|
132
|
+
elementType: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "image" | "freedraw" | "eraser";
|
|
133
133
|
elementLocked: boolean;
|
|
134
134
|
penMode: boolean;
|
|
135
135
|
penDetected: boolean;
|
|
@@ -16,7 +16,7 @@ export declare const actionChangeProjectName: {
|
|
|
16
16
|
suggestedBindings: import("../element/binding").SuggestedBinding[];
|
|
17
17
|
editingElement: import("../element/types").NonDeletedExcalidrawElement | null;
|
|
18
18
|
editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
|
|
19
|
-
elementType: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "image" | "freedraw";
|
|
19
|
+
elementType: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "image" | "freedraw" | "eraser";
|
|
20
20
|
elementLocked: boolean;
|
|
21
21
|
penMode: boolean;
|
|
22
22
|
penDetected: boolean;
|
|
@@ -116,7 +116,7 @@ export declare const actionChangeExportScale: {
|
|
|
116
116
|
suggestedBindings: import("../element/binding").SuggestedBinding[];
|
|
117
117
|
editingElement: import("../element/types").NonDeletedExcalidrawElement | null;
|
|
118
118
|
editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
|
|
119
|
-
elementType: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "image" | "freedraw";
|
|
119
|
+
elementType: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "image" | "freedraw" | "eraser";
|
|
120
120
|
elementLocked: boolean;
|
|
121
121
|
penMode: boolean;
|
|
122
122
|
penDetected: boolean;
|
|
@@ -216,7 +216,7 @@ export declare const actionChangeExportBackground: {
|
|
|
216
216
|
suggestedBindings: import("../element/binding").SuggestedBinding[];
|
|
217
217
|
editingElement: import("../element/types").NonDeletedExcalidrawElement | null;
|
|
218
218
|
editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
|
|
219
|
-
elementType: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "image" | "freedraw";
|
|
219
|
+
elementType: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "image" | "freedraw" | "eraser";
|
|
220
220
|
elementLocked: boolean;
|
|
221
221
|
penMode: boolean;
|
|
222
222
|
penDetected: boolean;
|
|
@@ -316,7 +316,7 @@ export declare const actionChangeExportEmbedScene: {
|
|
|
316
316
|
suggestedBindings: import("../element/binding").SuggestedBinding[];
|
|
317
317
|
editingElement: import("../element/types").NonDeletedExcalidrawElement | null;
|
|
318
318
|
editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
|
|
319
|
-
elementType: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "image" | "freedraw";
|
|
319
|
+
elementType: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "image" | "freedraw" | "eraser";
|
|
320
320
|
elementLocked: boolean;
|
|
321
321
|
penMode: boolean;
|
|
322
322
|
penDetected: boolean;
|
|
@@ -418,7 +418,7 @@ export declare const actionSaveToActiveFile: {
|
|
|
418
418
|
suggestedBindings: import("../element/binding").SuggestedBinding[];
|
|
419
419
|
editingElement: import("../element/types").NonDeletedExcalidrawElement | null;
|
|
420
420
|
editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
|
|
421
|
-
elementType: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "image" | "freedraw";
|
|
421
|
+
elementType: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "image" | "freedraw" | "eraser";
|
|
422
422
|
elementLocked: boolean;
|
|
423
423
|
penMode: boolean;
|
|
424
424
|
penDetected: boolean;
|
|
@@ -521,7 +521,7 @@ export declare const actionSaveFileToDisk: {
|
|
|
521
521
|
suggestedBindings: import("../element/binding").SuggestedBinding[];
|
|
522
522
|
editingElement: import("../element/types").NonDeletedExcalidrawElement | null;
|
|
523
523
|
editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
|
|
524
|
-
elementType: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "image" | "freedraw";
|
|
524
|
+
elementType: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "image" | "freedraw" | "eraser";
|
|
525
525
|
elementLocked: boolean;
|
|
526
526
|
penMode: boolean;
|
|
527
527
|
penDetected: boolean;
|
|
@@ -613,6 +613,7 @@ export declare const actionLoadScene: {
|
|
|
613
613
|
perform: (elements: readonly import("../element/types").ExcalidrawElement[], appState: Readonly<import("../types").AppState>, _: any, app: import("../types").AppClassProperties) => Promise<false | {
|
|
614
614
|
elements: import("../element/types").ExcalidrawElement[];
|
|
615
615
|
appState: {
|
|
616
|
+
elementType: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "image" | "freedraw" | "eraser";
|
|
616
617
|
scrollX: number;
|
|
617
618
|
scrollY: number;
|
|
618
619
|
viewBackgroundColor: string;
|
|
@@ -633,7 +634,6 @@ export declare const actionLoadScene: {
|
|
|
633
634
|
suggestedBindings: import("../element/binding").SuggestedBinding[];
|
|
634
635
|
editingElement: import("../element/types").NonDeletedExcalidrawElement | null;
|
|
635
636
|
editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
|
|
636
|
-
elementType: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "image" | "freedraw";
|
|
637
637
|
elementLocked: boolean;
|
|
638
638
|
penMode: boolean;
|
|
639
639
|
penDetected: boolean;
|
|
@@ -715,7 +715,7 @@ export declare const actionLoadScene: {
|
|
|
715
715
|
suggestedBindings: import("../element/binding").SuggestedBinding[];
|
|
716
716
|
editingElement: import("../element/types").NonDeletedExcalidrawElement | null;
|
|
717
717
|
editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
|
|
718
|
-
elementType: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "image" | "freedraw";
|
|
718
|
+
elementType: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "image" | "freedraw" | "eraser";
|
|
719
719
|
elementLocked: boolean;
|
|
720
720
|
penMode: boolean;
|
|
721
721
|
penDetected: boolean;
|
|
@@ -818,7 +818,7 @@ export declare const actionExportWithDarkMode: {
|
|
|
818
818
|
suggestedBindings: import("../element/binding").SuggestedBinding[];
|
|
819
819
|
editingElement: import("../element/types").NonDeletedExcalidrawElement | null;
|
|
820
820
|
editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
|
|
821
|
-
elementType: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "image" | "freedraw";
|
|
821
|
+
elementType: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "image" | "freedraw" | "eraser";
|
|
822
822
|
elementLocked: boolean;
|
|
823
823
|
penMode: boolean;
|
|
824
824
|
penDetected: boolean;
|
|
@@ -16,7 +16,7 @@ export declare const actionFinalize: {
|
|
|
16
16
|
startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
|
|
17
17
|
suggestedBindings: import("../element/binding").SuggestedBinding[];
|
|
18
18
|
editingElement: import("../element/types").NonDeletedExcalidrawElement | null;
|
|
19
|
-
elementType: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "image" | "freedraw";
|
|
19
|
+
elementType: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "image" | "freedraw" | "eraser";
|
|
20
20
|
elementLocked: boolean;
|
|
21
21
|
penMode: boolean;
|
|
22
22
|
penDetected: boolean;
|
|
@@ -99,7 +99,7 @@ export declare const actionFinalize: {
|
|
|
99
99
|
} | {
|
|
100
100
|
elements: readonly import("../element/types").ExcalidrawElement[];
|
|
101
101
|
appState: {
|
|
102
|
-
elementType: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "image" | "freedraw";
|
|
102
|
+
elementType: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "image" | "freedraw" | "eraser";
|
|
103
103
|
draggingElement: null;
|
|
104
104
|
multiElement: null;
|
|
105
105
|
editingElement: null;
|
|
@@ -15,7 +15,7 @@ export declare const actionToggleCanvasMenu: {
|
|
|
15
15
|
suggestedBindings: import("../element/binding").SuggestedBinding[];
|
|
16
16
|
editingElement: import("../element/types").NonDeletedExcalidrawElement | null;
|
|
17
17
|
editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
|
|
18
|
-
elementType: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "image" | "freedraw";
|
|
18
|
+
elementType: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "image" | "freedraw" | "eraser";
|
|
19
19
|
elementLocked: boolean;
|
|
20
20
|
penMode: boolean;
|
|
21
21
|
penDetected: boolean;
|
|
@@ -115,7 +115,7 @@ export declare const actionToggleEditMenu: {
|
|
|
115
115
|
suggestedBindings: import("../element/binding").SuggestedBinding[];
|
|
116
116
|
editingElement: import("../element/types").NonDeletedExcalidrawElement | null;
|
|
117
117
|
editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
|
|
118
|
-
elementType: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "image" | "freedraw";
|
|
118
|
+
elementType: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "image" | "freedraw" | "eraser";
|
|
119
119
|
elementLocked: boolean;
|
|
120
120
|
penMode: boolean;
|
|
121
121
|
penDetected: boolean;
|
|
@@ -224,7 +224,7 @@ export declare const actionShortcuts: {
|
|
|
224
224
|
suggestedBindings: import("../element/binding").SuggestedBinding[];
|
|
225
225
|
editingElement: import("../element/types").NonDeletedExcalidrawElement | null;
|
|
226
226
|
editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
|
|
227
|
-
elementType: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "image" | "freedraw";
|
|
227
|
+
elementType: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "image" | "freedraw" | "eraser";
|
|
228
228
|
elementLocked: boolean;
|
|
229
229
|
penMode: boolean;
|
|
230
230
|
penDetected: boolean;
|
|
@@ -32,7 +32,7 @@ export declare const actionChangeFillStyle: {
|
|
|
32
32
|
suggestedBindings: import("../element/binding").SuggestedBinding[];
|
|
33
33
|
editingElement: import("../element/types").NonDeletedExcalidrawElement | null;
|
|
34
34
|
editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
|
|
35
|
-
elementType: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "image" | "freedraw";
|
|
35
|
+
elementType: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "image" | "freedraw" | "eraser";
|
|
36
36
|
elementLocked: boolean;
|
|
37
37
|
penMode: boolean;
|
|
38
38
|
penDetected: boolean;
|
|
@@ -133,7 +133,7 @@ export declare const actionChangeStrokeWidth: {
|
|
|
133
133
|
suggestedBindings: import("../element/binding").SuggestedBinding[];
|
|
134
134
|
editingElement: import("../element/types").NonDeletedExcalidrawElement | null;
|
|
135
135
|
editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
|
|
136
|
-
elementType: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "image" | "freedraw";
|
|
136
|
+
elementType: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "image" | "freedraw" | "eraser";
|
|
137
137
|
elementLocked: boolean;
|
|
138
138
|
penMode: boolean;
|
|
139
139
|
penDetected: boolean;
|
|
@@ -234,7 +234,7 @@ export declare const actionChangeSloppiness: {
|
|
|
234
234
|
suggestedBindings: import("../element/binding").SuggestedBinding[];
|
|
235
235
|
editingElement: import("../element/types").NonDeletedExcalidrawElement | null;
|
|
236
236
|
editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
|
|
237
|
-
elementType: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "image" | "freedraw";
|
|
237
|
+
elementType: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "image" | "freedraw" | "eraser";
|
|
238
238
|
elementLocked: boolean;
|
|
239
239
|
penMode: boolean;
|
|
240
240
|
penDetected: boolean;
|
|
@@ -335,7 +335,7 @@ export declare const actionChangeStrokeStyle: {
|
|
|
335
335
|
suggestedBindings: import("../element/binding").SuggestedBinding[];
|
|
336
336
|
editingElement: import("../element/types").NonDeletedExcalidrawElement | null;
|
|
337
337
|
editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
|
|
338
|
-
elementType: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "image" | "freedraw";
|
|
338
|
+
elementType: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "image" | "freedraw" | "eraser";
|
|
339
339
|
elementLocked: boolean;
|
|
340
340
|
penMode: boolean;
|
|
341
341
|
penDetected: boolean;
|
|
@@ -436,7 +436,7 @@ export declare const actionChangeOpacity: {
|
|
|
436
436
|
suggestedBindings: import("../element/binding").SuggestedBinding[];
|
|
437
437
|
editingElement: import("../element/types").NonDeletedExcalidrawElement | null;
|
|
438
438
|
editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
|
|
439
|
-
elementType: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "image" | "freedraw";
|
|
439
|
+
elementType: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "image" | "freedraw" | "eraser";
|
|
440
440
|
elementLocked: boolean;
|
|
441
441
|
penMode: boolean;
|
|
442
442
|
penDetected: boolean;
|
|
@@ -537,7 +537,7 @@ export declare const actionChangeFontSize: {
|
|
|
537
537
|
suggestedBindings: import("../element/binding").SuggestedBinding[];
|
|
538
538
|
editingElement: import("../element/types").NonDeletedExcalidrawElement | null;
|
|
539
539
|
editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
|
|
540
|
-
elementType: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "image" | "freedraw";
|
|
540
|
+
elementType: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "image" | "freedraw" | "eraser";
|
|
541
541
|
elementLocked: boolean;
|
|
542
542
|
penMode: boolean;
|
|
543
543
|
penDetected: boolean;
|
|
@@ -638,7 +638,7 @@ export declare const actionDecreaseFontSize: {
|
|
|
638
638
|
suggestedBindings: import("../element/binding").SuggestedBinding[];
|
|
639
639
|
editingElement: import("../element/types").NonDeletedExcalidrawElement | null;
|
|
640
640
|
editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
|
|
641
|
-
elementType: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "image" | "freedraw";
|
|
641
|
+
elementType: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "image" | "freedraw" | "eraser";
|
|
642
642
|
elementLocked: boolean;
|
|
643
643
|
penMode: boolean;
|
|
644
644
|
penDetected: boolean;
|
|
@@ -739,7 +739,7 @@ export declare const actionIncreaseFontSize: {
|
|
|
739
739
|
suggestedBindings: import("../element/binding").SuggestedBinding[];
|
|
740
740
|
editingElement: import("../element/types").NonDeletedExcalidrawElement | null;
|
|
741
741
|
editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
|
|
742
|
-
elementType: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "image" | "freedraw";
|
|
742
|
+
elementType: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "image" | "freedraw" | "eraser";
|
|
743
743
|
elementLocked: boolean;
|
|
744
744
|
penMode: boolean;
|
|
745
745
|
penDetected: boolean;
|
|
@@ -840,7 +840,7 @@ export declare const actionChangeFontFamily: {
|
|
|
840
840
|
suggestedBindings: import("../element/binding").SuggestedBinding[];
|
|
841
841
|
editingElement: import("../element/types").NonDeletedExcalidrawElement | null;
|
|
842
842
|
editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
|
|
843
|
-
elementType: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "image" | "freedraw";
|
|
843
|
+
elementType: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "image" | "freedraw" | "eraser";
|
|
844
844
|
elementLocked: boolean;
|
|
845
845
|
penMode: boolean;
|
|
846
846
|
penDetected: boolean;
|
|
@@ -941,7 +941,7 @@ export declare const actionChangeTextAlign: {
|
|
|
941
941
|
suggestedBindings: import("../element/binding").SuggestedBinding[];
|
|
942
942
|
editingElement: import("../element/types").NonDeletedExcalidrawElement | null;
|
|
943
943
|
editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
|
|
944
|
-
elementType: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "image" | "freedraw";
|
|
944
|
+
elementType: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "image" | "freedraw" | "eraser";
|
|
945
945
|
elementLocked: boolean;
|
|
946
946
|
penMode: boolean;
|
|
947
947
|
penDetected: boolean;
|
|
@@ -1025,6 +1025,107 @@ export declare const actionChangeTextAlign: {
|
|
|
1025
1025
|
} & {
|
|
1026
1026
|
keyTest?: undefined;
|
|
1027
1027
|
};
|
|
1028
|
+
export declare const actionChangeVerticalAlign: {
|
|
1029
|
+
name: "changeVerticalAlign";
|
|
1030
|
+
perform: (elements: readonly ExcalidrawElement[], appState: Readonly<AppState>, value: any) => {
|
|
1031
|
+
elements: ExcalidrawElement[];
|
|
1032
|
+
appState: {
|
|
1033
|
+
isLoading: boolean;
|
|
1034
|
+
errorMessage: string | null;
|
|
1035
|
+
draggingElement: import("../element/types").NonDeletedExcalidrawElement | null;
|
|
1036
|
+
resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
|
|
1037
|
+
multiElement: import("../element/types").NonDeleted<ExcalidrawLinearElement> | null;
|
|
1038
|
+
selectionElement: import("../element/types").NonDeletedExcalidrawElement | null;
|
|
1039
|
+
isBindingEnabled: boolean;
|
|
1040
|
+
startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
|
|
1041
|
+
suggestedBindings: import("../element/binding").SuggestedBinding[];
|
|
1042
|
+
editingElement: import("../element/types").NonDeletedExcalidrawElement | null;
|
|
1043
|
+
editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
|
|
1044
|
+
elementType: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "image" | "freedraw" | "eraser";
|
|
1045
|
+
elementLocked: boolean;
|
|
1046
|
+
penMode: boolean;
|
|
1047
|
+
penDetected: boolean;
|
|
1048
|
+
exportBackground: boolean;
|
|
1049
|
+
exportEmbedScene: boolean;
|
|
1050
|
+
exportWithDarkMode: boolean;
|
|
1051
|
+
exportScale: number;
|
|
1052
|
+
currentItemStrokeColor: string;
|
|
1053
|
+
currentItemBackgroundColor: string;
|
|
1054
|
+
currentItemFillStyle: import("../element/types").FillStyle;
|
|
1055
|
+
currentItemStrokeWidth: number;
|
|
1056
|
+
currentItemStrokeStyle: import("../element/types").StrokeStyle;
|
|
1057
|
+
currentItemRoughness: number;
|
|
1058
|
+
currentItemOpacity: number;
|
|
1059
|
+
currentItemFontFamily: number;
|
|
1060
|
+
currentItemFontSize: number;
|
|
1061
|
+
currentItemTextAlign: TextAlign;
|
|
1062
|
+
currentItemStrokeSharpness: import("../element/types").StrokeSharpness;
|
|
1063
|
+
currentItemStartArrowhead: Arrowhead | null;
|
|
1064
|
+
currentItemEndArrowhead: Arrowhead | null;
|
|
1065
|
+
currentItemLinearStrokeSharpness: import("../element/types").StrokeSharpness;
|
|
1066
|
+
viewBackgroundColor: string;
|
|
1067
|
+
scrollX: number;
|
|
1068
|
+
scrollY: number;
|
|
1069
|
+
cursorButton: "up" | "down";
|
|
1070
|
+
scrolledOutside: boolean;
|
|
1071
|
+
name: string;
|
|
1072
|
+
isResizing: boolean;
|
|
1073
|
+
isRotating: boolean;
|
|
1074
|
+
zoom: Readonly<{
|
|
1075
|
+
value: import("../../src/types").NormalizedZoomValue;
|
|
1076
|
+
}>;
|
|
1077
|
+
openMenu: "canvas" | "shape" | null;
|
|
1078
|
+
openPopup: "canvasColorPicker" | "backgroundColorPicker" | "strokeColorPicker" | null;
|
|
1079
|
+
lastPointerDownWith: import("../element/types").PointerType;
|
|
1080
|
+
selectedElementIds: {
|
|
1081
|
+
[id: string]: boolean;
|
|
1082
|
+
};
|
|
1083
|
+
previousSelectedElementIds: {
|
|
1084
|
+
[id: string]: boolean;
|
|
1085
|
+
};
|
|
1086
|
+
shouldCacheIgnoreZoom: boolean;
|
|
1087
|
+
showHelpDialog: boolean;
|
|
1088
|
+
toastMessage: string | null;
|
|
1089
|
+
zenModeEnabled: boolean;
|
|
1090
|
+
theme: string;
|
|
1091
|
+
gridSize: number | null;
|
|
1092
|
+
viewModeEnabled: boolean;
|
|
1093
|
+
selectedGroupIds: {
|
|
1094
|
+
[groupId: string]: boolean;
|
|
1095
|
+
};
|
|
1096
|
+
editingGroupId: string | null;
|
|
1097
|
+
width: number;
|
|
1098
|
+
height: number;
|
|
1099
|
+
offsetTop: number;
|
|
1100
|
+
offsetLeft: number;
|
|
1101
|
+
isLibraryOpen: boolean;
|
|
1102
|
+
fileHandle: import("browser-fs-access").FileSystemHandle | null;
|
|
1103
|
+
collaborators: Map<string, import("../../src/types").Collaborator>;
|
|
1104
|
+
showStats: boolean;
|
|
1105
|
+
currentChartType: import("../element/types").ChartType;
|
|
1106
|
+
pasteDialog: {
|
|
1107
|
+
shown: false;
|
|
1108
|
+
data: null;
|
|
1109
|
+
} | {
|
|
1110
|
+
shown: true;
|
|
1111
|
+
data: import("../charts").Spreadsheet;
|
|
1112
|
+
};
|
|
1113
|
+
pendingImageElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawImageElement> | null;
|
|
1114
|
+
showHyperlinkPopup: false | "info" | "editor";
|
|
1115
|
+
linkOpacity: number;
|
|
1116
|
+
trayModeEnabled: boolean;
|
|
1117
|
+
colorPalette: {
|
|
1118
|
+
canvasBackground?: string[] | undefined;
|
|
1119
|
+
elementBackground?: string[] | undefined;
|
|
1120
|
+
elementStroke?: string[] | undefined;
|
|
1121
|
+
};
|
|
1122
|
+
};
|
|
1123
|
+
commitToHistory: true;
|
|
1124
|
+
};
|
|
1125
|
+
PanelComponent: ({ elements, appState, updateData }: import("react").PropsWithChildren<import("./types").PanelComponentProps>) => JSX.Element;
|
|
1126
|
+
} & {
|
|
1127
|
+
keyTest?: undefined;
|
|
1128
|
+
};
|
|
1028
1129
|
export declare const actionChangeSharpness: {
|
|
1029
1130
|
name: "changeSharpness";
|
|
1030
1131
|
perform: (elements: readonly ExcalidrawElement[], appState: Readonly<AppState>, value: any) => {
|
|
@@ -1043,7 +1144,7 @@ export declare const actionChangeSharpness: {
|
|
|
1043
1144
|
suggestedBindings: import("../element/binding").SuggestedBinding[];
|
|
1044
1145
|
editingElement: import("../element/types").NonDeletedExcalidrawElement | null;
|
|
1045
1146
|
editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
|
|
1046
|
-
elementType: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "image" | "freedraw";
|
|
1147
|
+
elementType: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "image" | "freedraw" | "eraser";
|
|
1047
1148
|
elementLocked: boolean;
|
|
1048
1149
|
penMode: boolean;
|
|
1049
1150
|
penDetected: boolean;
|
|
@@ -1145,7 +1246,7 @@ export declare const actionChangeArrowhead: {
|
|
|
1145
1246
|
suggestedBindings: import("../element/binding").SuggestedBinding[];
|
|
1146
1247
|
editingElement: import("../element/types").NonDeletedExcalidrawElement | null;
|
|
1147
1248
|
editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
|
|
1148
|
-
elementType: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "image" | "freedraw";
|
|
1249
|
+
elementType: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "image" | "freedraw" | "eraser";
|
|
1149
1250
|
elementLocked: boolean;
|
|
1150
1251
|
penMode: boolean;
|
|
1151
1252
|
penDetected: boolean;
|