updateViewportSize_() {
    const view = this.getView();
    if (view) {
      let size = undefined;
      const computedStyle = getComputedStyle(this.viewport_);
      if (computedStyle.width && computedStyle.height) {
        size = [
          parseInt(computedStyle.width, 10),
          parseInt(computedStyle.height, 10),
        ];
      }
      view.setViewportSize(size);
    }
  }
/**
   * Recomputes the viewport size and save it on the view object (if any)
   * @private
   */
Recomputes the viewport size and save it on the view object (if any)
@private
Recomputes the viewport size and save it on the view object ( if any ) @private
updateViewportSize_() {
    const view = this.getView();
    if (view) {
      let size = undefined;
      const computedStyle = getComputedStyle(this.viewport_);
      if (computedStyle.width && computedStyle.height) {
        size = [
          parseInt(computedStyle.width, 10),
          parseInt(computedStyle.height, 10),
        ];
      }
      view.setViewportSize(size);
    }
  }
updateViewportSize_ ( ) { const view = this . getView ( ) ; if ( view ) { let size = undefined ; const computedStyle = getComputedStyle ( this . viewport_ ) ; if ( computedStyle . width && computedStyle . height ) { size = [ parseInt ( computedStyle . width , 10 ) , parseInt ( computedStyle . height , 10 ) , ] ; } view . setViewportSize ( size ) ; } }
Recomputes the viewport size and save it on the view object (if any)
 @private
Recomputes the viewport size and save it on the view object ( if any ) @private