/** * An object with all viewport state parameters * * @public */ export interface IViewPortState { x: number; y: number; width: number; height: number; zMin: number; zMax: number; } /** * Represents a sub set of {@link IViewPortState} * * @public */ export declare type ViewportStateParams = Partial; /** * @public */ export declare class ViewportState implements IViewPortState { protected xField: number; protected yField: number; protected widthField: number; protected heightField: number; protected zMinField: number; protected zMaxField: number; protected hasChanged: boolean; protected changes: ViewportStateParams; get isDirty(): boolean; /** * Gets and sets the viewport x parameter */ get x(): number; set x(value: number); /** * Gets and sets the viewport y parameter */ get y(): number; set y(value: number); /** * Gets and sets the viewport width parameter */ get width(): number; set width(value: number); /** * Gets and sets the viewport height parameter */ get height(): number; set height(value: number); /** * Gets and sets the viewport zMin parameter */ get zMin(): number; set zMin(value: number); /** * Gets and sets the viewport zMax parameter */ get zMax(): number; set zMax(value: number); /** * Assigns multiple parameters to the current state */ assign(state?: ViewportStateParams): this; /** * Uploads all changes to the GPU * * @param state - State changes to be assigned before committing */ commit(state?: ViewportStateParams): this; /** * Creates a copy of this state state */ copy(): IViewPortState; /** * Creates a copy of this state and writes it into the target object * * @param target - Where the state should be written to */ copy(target: T): T & IViewPortState; protected commitChanges(changes: Partial): void; protected clearChanges(): void; } //# sourceMappingURL=ViewportState.d.ts.map