4e421e6e9e
Co-authored-by: Lipis <lipiridis@gmail.com> Co-authored-by: dwelle <luzar.david@gmail.com>
49 lines
1.0 KiB
TypeScript
49 lines
1.0 KiB
TypeScript
import { ExcalidrawTextElement } from "../element/types";
|
|
import { Zoom } from "../types";
|
|
|
|
export type SceneState = {
|
|
scrollX: number;
|
|
scrollY: number;
|
|
// null indicates transparent bg
|
|
viewBackgroundColor: string | null;
|
|
exportWithDarkMode?: boolean;
|
|
zoom: Zoom;
|
|
shouldCacheIgnoreZoom: boolean;
|
|
remotePointerViewportCoords: { [id: string]: { x: number; y: number } };
|
|
remotePointerButton?: { [id: string]: string | undefined };
|
|
remoteSelectedElementIds: { [elementId: string]: string[] };
|
|
remotePointerUsernames: { [id: string]: string };
|
|
remotePointerUserStates: { [id: string]: string };
|
|
};
|
|
|
|
export type SceneScroll = {
|
|
scrollX: number;
|
|
scrollY: number;
|
|
};
|
|
|
|
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;
|
|
};
|