src/SceneHelper.js
/**
     * changes the mode of the camera
     * @param {number} mode either JSPLO3D.TOPCAMERA or JSPLOT3D.DEFAULTCAMERA
     */
changes the mode of the camera
@param {number} mode either JSPLO3D.TOPCAMERA or JSPLOT3D.DEFAULTCAMERA
changes the mode of the camera @param { number } mode either JSPLO3D . TOPCAMERA or JSPLOT3D . DEFAULTCAMERA
changeCameraMode(mode)
    {
        if(this.cameraMode == mode)
            return
        this.cameraControls.dispose()
        if(mode === TOPCAMERA)
        {
            this.createSideViewCamera("y")
            this.createAxes(this.axesColor, this.dimensions, this.normalization)
        }
        else if(mode === LEFTCAMERA)
        {
            this.createSideViewCamera("x")
            this.createAxes(this.axesColor, this.dimensions, this.normalization)
        }
        else if(mode === FRONTCAMERA)
        {
            this.createSideViewCamera("z")
            this.createAxes(this.axesColor, this.dimensions, this.normalization)
        }
        else
        {
            this.createArcCamera()
        }
        this.cameraMode = mode
        this.render()
    }
changeCameraMode ( mode ) { if ( this . cameraMode == mode ) return this . cameraControls . dispose ( ) if ( mode === TOPCAMERA ) { this . createSideViewCamera ( "y" ) this . createAxes ( this . axesColor , this . dimensions , this . normalization ) } else if ( mode === LEFTCAMERA ) { this . createSideViewCamera ( "x" ) this . createAxes ( this . axesColor , this . dimensions , this . normalization ) } else if ( mode === FRONTCAMERA ) { this . createSideViewCamera ( "z" ) this . createAxes ( this . axesColor , this . dimensions , this . normalization ) } else { this . createArcCamera ( ) } this . cameraMode = mode this . render ( ) }
changes the mode of the camera
 @param {number} mode either JSPLO3D.TOPCAMERA or JSPLOT3D.DEFAULTCAMERA
changes the mode of the camera @param { number } mode either JSPLO3D . TOPCAMERA or JSPLOT3D . DEFAULTCAMERA
// already using that mode? Then just return and do nothing // TODO will this cause a memory leak because of cameras not being removed? // Can't dispose camera. workaround would be to keep the cameras in the storage and switch them // orthographic camera looking from the top // orthographic camera looking from the top // orthographic camera looking from the top // unkown or 0: default