@spearwolf/twopoint5d
Version:
Create 2.5D realtime graphics and pixelart with WebGL and three.js
21 lines • 1.06 kB
TypeScript
import { OrthographicCamera } from 'three/webgpu';
import type { IProjection } from './IProjection.js';
import { ProjectionPlane, type ProjectionPlaneDescription } from './ProjectionPlane.js';
import { type FitIntoRectangleSpecs } from './fitIntoRectangle.js';
export type OrthographicProjectionSpecs = FitIntoRectangleSpecs & {
distanceToProjectionPlane?: number;
near?: number;
far?: number;
};
export declare class OrthographicProjection implements IProjection {
#private;
viewSpecs: OrthographicProjectionSpecs;
projectionPlane: ProjectionPlane;
constructor(projectionPlane?: ProjectionPlane | ProjectionPlaneDescription, specs?: OrthographicProjectionSpecs);
updateViewRect(width: number, height: number): void;
getViewRect(): [width: number, height: number, pixelRatioHorizontal: number, pixelRatioVertical: number];
createCamera(): OrthographicCamera;
updateCamera(camera: OrthographicCamera): void;
getZoom(_distanceToProjectionPlane: number): number;
}
//# sourceMappingURL=OrthographicProjection.d.ts.map