src/components/camera.js
function (oldData) {
    var data = this.data;
    var camera = this.camera;

    // Update properties.
    camera.aspect = data.aspect || (window.innerWidth / window.innerHeight);
    camera.far = data.far;
    camera.fov = data.fov;
    camera.near = data.near;
    camera.zoom = data.zoom;
    camera.updateProjectionMatrix();

    this.updateActiveCamera(oldData);
    this.updateSpectatorCamera(oldData);
  }
function (oldData) {
    var data = this.data;
    var camera = this.camera;

    // Update properties.
    camera.aspect = data.aspect || (window.innerWidth / window.innerHeight);
    camera.far = data.far;
    camera.fov = data.fov;
    camera.near = data.near;
    camera.zoom = data.zoom;
    camera.updateProjectionMatrix();

    this.updateActiveCamera(oldData);
    this.updateSpectatorCamera(oldData);
  }
function ( oldData ) { var data = this . data ; var camera = this . camera ; // Update properties. camera . aspect = data . aspect || ( window . innerWidth / window . innerHeight ) ; camera . far = data . far ; camera . fov = data . fov ; camera . near = data . near ; camera . zoom = data . zoom ; camera . updateProjectionMatrix ( ) ; this . updateActiveCamera ( oldData ) ; this . updateSpectatorCamera ( oldData ) ; }
Update three.js camera.
Update three . js camera .