UNPKG

552 BTypeScriptView Raw
1export interface IViewPortSize {
2 width: number;
3 height: number;
4}
5export type Axis = 'x' | 'y';
6export declare class ViewPort {
7 static DEFAULT_VIEWPORT_WIDTH: number;
8 static DEFAULT_VIEWPORT_HEIGHT: number;
9 viewPorts: IViewPortSize[];
10 clear(): void;
11 setCurrent(width: number, height: number): void;
12 removeCurrent(): void;
13 getRoot(): IViewPortSize;
14 getCurrent(): IViewPortSize;
15 get width(): number;
16 get height(): number;
17 computeSize(d?: number | Axis): number;
18}
19//# sourceMappingURL=ViewPort.d.ts.map
\No newline at end of file