Merge remote-tracking branch 'origin/master' into danieljgeiger-mathjax

This commit is contained in:
Daniel J. Geiger
2023-01-24 19:27:05 -06:00
93 changed files with 1308 additions and 567 deletions
+13 -9
View File
@@ -88,9 +88,9 @@ export type BinaryFileMetadata = Omit<BinaryFileData, "dataURL">;
export type BinaryFiles = Record<ExcalidrawElement["id"], BinaryFileData>;
export type LastActiveToolBeforeEraser =
export type LastActiveTool =
| {
type: typeof SHAPES[number]["value"] | "eraser";
type: typeof SHAPES[number]["value"] | "eraser" | "hand";
customType: null;
}
| {
@@ -123,19 +123,23 @@ export type AppState = {
customData?: {
[subtype: Subtype]: ExcalidrawElement["customData"];
};
activeTool:
activeTool: {
/**
* indicates a previous tool we should revert back to if we deselect the
* currently active tool. At the moment applies to `eraser` and `hand` tool.
*/
lastActiveTool: LastActiveTool;
locked: boolean;
} & (
| {
type: typeof SHAPES[number]["value"] | "eraser";
lastActiveToolBeforeEraser: LastActiveToolBeforeEraser;
locked: boolean;
type: typeof SHAPES[number]["value"] | "eraser" | "hand";
customType: null;
}
| {
type: "custom";
customType: string;
lastActiveToolBeforeEraser: LastActiveToolBeforeEraser;
locked: boolean;
};
}
);
penMode: boolean;
penDetected: boolean;
exportBackground: boolean;