cancelAnimations() {
    this.setHint(ViewHint.ANIMATING, -this.hints_[ViewHint.ANIMATING]);
    let anchor;
    for (let i = 0, ii = this.animations_.length; i < ii; ++i) {
      const series = this.animations_[i];
      if (series[0].callback) {
        animationCallback(series[0].callback, false);
      }
      if (!anchor) {
        for (let j = 0, jj = series.length; j < jj; ++j) {
          const animation = series[j];
          if (!animation.complete) {
            anchor = animation.anchor;
            break;
          }
        }
      }
    }
    this.animations_.length = 0;
    this.cancelAnchor_ = anchor;
    this.nextCenter_ = null;
    this.nextResolution_ = NaN;
    this.nextRotation_ = NaN;
  }
/**
   * Cancel any ongoing animations.
   * @api
   */
Cancel any ongoing animations.
@api
Cancel any ongoing animations . @api
cancelAnimations() {
    this.setHint(ViewHint.ANIMATING, -this.hints_[ViewHint.ANIMATING]);
    let anchor;
    for (let i = 0, ii = this.animations_.length; i < ii; ++i) {
      const series = this.animations_[i];
      if (series[0].callback) {
        animationCallback(series[0].callback, false);
      }
      if (!anchor) {
        for (let j = 0, jj = series.length; j < jj; ++j) {
          const animation = series[j];
          if (!animation.complete) {
            anchor = animation.anchor;
            break;
          }
        }
      }
    }
    this.animations_.length = 0;
    this.cancelAnchor_ = anchor;
    this.nextCenter_ = null;
    this.nextResolution_ = NaN;
    this.nextRotation_ = NaN;
  }
cancelAnimations ( ) { this . setHint ( ViewHint . ANIMATING , - this . hints_ [ ViewHint . ANIMATING ] ) ; let anchor ; for ( let i = 0 , ii = this . animations_ . length ; i < ii ; ++ i ) { const series = this . animations_ [ i ] ; if ( series [ 0 ] . callback ) { animationCallback ( series [ 0 ] . callback , false ) ; } if ( ! anchor ) { for ( let j = 0 , jj = series . length ; j < jj ; ++ j ) { const animation = series [ j ] ; if ( ! animation . complete ) { anchor = animation . anchor ; break ; } } } } this . animations_ . length = 0 ; this . cancelAnchor_ = anchor ; this . nextCenter_ = null ; this . nextResolution_ = NaN ; this . nextRotation_ = NaN ; }
Cancel any ongoing animations.
Cancel any ongoing animations .