src/viewer.js
function(enable) {
    if (enable === undefined) {
      return this._rockAndRoll !== null;
    }
    if (!!enable) {
      if (this._rockAndRoll === null) {
        this._rockAndRoll = anim.rockAndRoll();
        this._animControl.add(this._rockAndRoll);
        this.requestRedraw();
      }
      return true;
    } 
    this._animControl.remove(this._rockAndRoll);
    this._rockAndRoll = null;
    this.requestRedraw();
    return false;
  }
function(enable) {
    if (enable === undefined) {
      return this._rockAndRoll !== null;
    }
    if (!!enable) {
      if (this._rockAndRoll === null) {
        this._rockAndRoll = anim.rockAndRoll();
        this._animControl.add(this._rockAndRoll);
        this.requestRedraw();
      }
      return true;
    } 
    this._animControl.remove(this._rockAndRoll);
    this._rockAndRoll = null;
    this.requestRedraw();
    return false;
  }
function ( enable ) { if ( enable === undefined ) { return this . _rockAndRoll !== null ; } if ( ! ! enable ) { if ( this . _rockAndRoll === null ) { this . _rockAndRoll = anim . rockAndRoll ( ) ; this . _animControl . add ( this . _rockAndRoll ) ; this . requestRedraw ( ) ; } return true ; } this . _animControl . remove ( this . _rockAndRoll ) ; this . _rockAndRoll = null ; this . requestRedraw ( ) ; return false ; }
enable disable rock and rolling of camera
enable disable rock and rolling of camera