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
+9 -1
View File
@@ -45,7 +45,7 @@ export const getDefaultAppState = (): Omit<
type: "selection",
customType: null,
locked: false,
lastActiveToolBeforeEraser: null,
lastActiveTool: null,
},
penMode: false,
penDetected: false,
@@ -230,3 +230,11 @@ export const isEraserActive = ({
}: {
activeTool: AppState["activeTool"];
}) => activeTool.type === "eraser";
export const isHandToolActive = ({
activeTool,
}: {
activeTool: AppState["activeTool"];
}) => {
return activeTool.type === "hand";
};