Merge remote-tracking branch 'origin/master' into aakansha-custom-elements

This commit is contained in:
ad1992
2022-03-29 17:26:46 +05:30
14 changed files with 209 additions and 116 deletions

View File

@@ -69,7 +69,7 @@ export type LastActiveToolBeforeEraser =
type: "custom";
customType: string;
}
| undefined;
| null;
export type AppState = {
isLoading: boolean;
@@ -88,14 +88,15 @@ export type AppState = {
activeTool:
| {
type: typeof SHAPES[number]["value"] | "eraser";
lastActiveToolBeforeEraser?: LastActiveToolBeforeEraser;
lastActiveToolBeforeEraser: LastActiveToolBeforeEraser;
locked: boolean;
}
| {
type: "custom";
customType: string;
lastActiveToolBeforeEraser?: LastActiveToolBeforeEraser;
lastActiveToolBeforeEraser: LastActiveToolBeforeEraser;
locked: boolean;
};
elementLocked: boolean;
penMode: boolean;
penDetected: boolean;
exportBackground: boolean;