UNPKG

@inweb/viewer-visualize

Version:

JavaScript library for rendering CAD and BIM files in a browser using VisualizeJS

30 lines (29 loc) 1.09 kB
import { Matrix3d, OdTvPlane, Point3d, Vector3d } from "./Geometry"; export type ViewParams = { position: number[]; target: number[]; upVector: number[]; viewFieldWidth: number; viewFieldHeight: number; perspective: boolean; }; export declare class OdaGeAction { protected m_module: any; constructor(module: any); protected getViewer(): any; protected getModel(): any; protected copyPoint(point: Point3d): Point3d; protected createVector3d(): Vector3d; protected createPoint3d(): Point3d; protected createMatrix3d(): Matrix3d; protected createPlane(): OdTvPlane; protected toVector(geVector: any): Vector3d; protected toGeVector(v: Vector3d): number[]; protected toGePoint(point: Point3d): number[]; protected toPoint(gePoint: number[]): Point3d; protected screenToWorld(x: number, y: number): Point3d; protected toDoubleArray(points: Point3d[]): number[]; protected correctCameraTarget(): void; protected setViewParams: (params: ViewParams) => void; protected getViewParams: () => ViewParams; }