2020-01-06 20:24:54 +04:00
|
|
|
import { ExcalidrawTextElement } from "../element/types";
|
|
|
|
|
2020-01-06 19:34:22 +04:00
|
|
|
export type SceneState = {
|
|
|
|
scrollX: number;
|
|
|
|
scrollY: number;
|
|
|
|
// null indicates transparent bg
|
|
|
|
viewBackgroundColor: string | null;
|
2020-02-15 21:03:32 +01:00
|
|
|
zoom: number;
|
2020-01-06 19:34:22 +04:00
|
|
|
};
|
2020-01-06 20:24:54 +04:00
|
|
|
|
2020-01-08 23:56:35 -03:00
|
|
|
export type SceneScroll = {
|
|
|
|
scrollX: number;
|
|
|
|
scrollY: number;
|
|
|
|
};
|
|
|
|
|
2020-01-06 20:24:54 +04:00
|
|
|
export interface Scene {
|
|
|
|
elements: ExcalidrawTextElement[];
|
|
|
|
}
|
2020-01-09 17:37:08 +01:00
|
|
|
|
2020-01-28 12:25:13 -08:00
|
|
|
export type ExportType = "png" | "clipboard" | "backend" | "svg";
|