@mlightcad/three-viewcube
Version:
A highly customizable standalone view cube addon for three.js
37 lines • 1.35 kB
TypeScript
import * as THREE from 'three';
import { FaceNames } from './faceNames';
/**
* View cube 3d object
*/
export declare class ViewCube extends THREE.Object3D {
private _cubeSize;
private _borderSize;
private _isShowOutline;
private _faceColor;
private _outlineColor;
private _fontSize;
/**
* Construct one instance of view cube 3d object
* @param cubeSize Size of area ocupied by view cube
* @param borderSize Border size of view cube
* @param isShowOutline Flag to decide whether to show edge of view cube
* @param faceColor Face color of view cube
* @param outlineColor Edge color of view cube
* @param faceNames Texts in each face of view cube
* @param fontSize Font size of the faceNames
*/
constructor(cubeSize?: number, borderSize?: number, isShowOutline?: boolean, faceColor?: number, outlineColor?: number, faceNames?: FaceNames, fontSize?: number);
/**
* Free the GPU-related resources allocated by this instance. Call this method whenever this instance
* is no longer used in your app.
*/
dispose(): void;
private build;
private createFace;
private createCubeFaces;
private createCornerFaces;
private createHorzEdgeFaces;
private createVertEdgeFaces;
private createCubeOutline;
}
//# sourceMappingURL=viewCube.d.ts.map