UNPKG

@spearwolf/twopoint5d

Version:

a library to create 2.5d realtime graphics and pixelart with three.js

21 lines 1.05 kB
import { OrthographicCamera } from 'three'; 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