UNPKG

mlightcad

Version:

A highly customizable standalone view cube addon for three.js

11 lines (9 loc) 305 B
import { BaseViewer } from './baseView' export class SingleViewer extends BaseViewer { protected onWindowResize() { super.onWindowResize() this.renderer.setSize(window.innerWidth, window.innerHeight) this.camera.aspect = this.aspect this.camera.updateProjectionMatrix() } }