feat: add view mode in Excalidraw (#2840)

Co-authored-by: Lipis <lipiridis@gmail.com>
This commit is contained in:
Aakansha Doshi
2021-02-02 02:26:42 +05:30
committed by GitHub
parent 2b1b62d8f2
commit 675da16ca4
21 changed files with 546 additions and 232 deletions

View File

@ -85,6 +85,7 @@ export type AppState = {
zenModeEnabled: boolean;
appearance: "light" | "dark";
gridSize: number | null;
viewModeEnabled: boolean;
/** top-most selected groups (i.e. does not include nested groups) */
selectedGroupIds: { [groupId: string]: boolean };
@ -181,6 +182,7 @@ export interface ExcalidrawProps {
) => void;
renderFooter?: (isMobile: boolean) => JSX.Element;
langCode?: Language["code"];
viewModeEnabled?: boolean;
}
export type SceneData = {