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

Update customType
This commit is contained in:
ad1992
2022-03-25 22:32:28 +05:30
25 changed files with 381 additions and 229 deletions

View File

@@ -77,7 +77,9 @@ export type AppState = {
// (e.g. text element when typing into the input)
editingElement: NonDeletedExcalidrawElement | null;
editingLinearElement: LinearElementEditor | null;
elementType: typeof SHAPES[number]["value"] | "eraser" | "custom";
activeTool:
| { type: typeof SHAPES[number]["value"] | "eraser" }
| { type: "custom"; customType: string };
elementLocked: boolean;
penMode: boolean;
penDetected: boolean;