UNPKG

threepipe

Version:

A 3D viewer framework built on top of three.js in TypeScript with a focus on quality rendering, modularity and extensibility.

18 lines (15 loc) 523 B
import {Camera} from 'three' import {IUiConfigContainer} from 'uiconfig.js' import {AHelperWidget} from './AHelperWidget' export abstract class ACameraHelperWidget extends AHelperWidget { camera: (Camera & IUiConfigContainer) | undefined protected constructor(object: Camera & IUiConfigContainer) { super(object) this.camera = object this.traverse(o => { o.userData.__keepShadowDef = true o.castShadow = false o.receiveShadow = false }) } }