code: 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);
    }
docs: Update three.js camera.