types.ts 394 B

12345678910111213141516171819
  1. import { ExcalidrawTextElement } from "../element/types";
  2. export type SceneState = {
  3. scrollX: number;
  4. scrollY: number;
  5. // null indicates transparent bg
  6. viewBackgroundColor: string | null;
  7. };
  8. export type SceneScroll = {
  9. scrollX: number;
  10. scrollY: number;
  11. };
  12. export interface Scene {
  13. elements: ExcalidrawTextElement[];
  14. }
  15. export type ExportType = "png" | "clipboard" | "backend";