import { ExcalidrawTextElement } from "../element/types"; import { FlooredNumber } from "../types"; export type SceneState = { scrollX: FlooredNumber; scrollY: FlooredNumber; // null indicates transparent bg viewBackgroundColor: string | null; zoom: number; shouldCacheIgnoreZoom: boolean; remotePointerViewportCoords: { [id: string]: { x: number; y: number } }; remotePointerButton?: { [id: string]: string | undefined }; remoteSelectedElementIds: { [elementId: string]: string[] }; remotePointerUsernames: { [id: string]: string }; }; export type SceneScroll = { scrollX: FlooredNumber; scrollY: FlooredNumber; }; export interface Scene { elements: ExcalidrawTextElement[]; } export type ExportType = | "png" | "clipboard" | "clipboard-svg" | "backend" | "svg"; export type ScrollBars = { horizontal: { x: number; y: number; width: number; height: number; } | null; vertical: { x: number; y: number; width: number; height: number; } | null; };