excalidraw/src/scene/types.ts

25 lines
473 B
TypeScript

import { ExcalidrawTextElement } from "../element/types";
export type SceneState = {
scrollX: number;
scrollY: number;
// null indicates transparent bg
viewBackgroundColor: string | null;
};
export type SceneScroll = {
scrollX: number;
scrollY: number;
};
export interface Scene {
elements: ExcalidrawTextElement[];
}
export interface PreviousScene {
id: string;
timestamp: number;
}
export type ExportType = "png" | "clipboard" | "backend" | "svg";