src/element.js
/**
  * Resize handler for the HTML element.
  *
  * @return none
  */
Resize handler for the HTML element.
@return none
Resize handler for the HTML element . @return none
resize() {
    let tsz = this.renderer.getTargetSize();
    this.viewBox[2]=tsz.w;
    this.viewBox[3]=tsz.h;
    this.renderer.setRendererSize(this.container.clientWidth, this.container.clientHeight);
    if (this.popup) 
      this.popup.events = this.events;
    if (this.cfg.renderer.name != 'three')
      this.h.frames(); 
  }
resize ( ) { let tsz = this . renderer . getTargetSize ( ) ; this . viewBox [ 2 ] = tsz . w ; this . viewBox [ 3 ] = tsz . h ; this . renderer . setRendererSize ( this . container . clientWidth , this . container . clientHeight ) ; if ( this . popup ) this . popup . events = this . events ; if ( this . cfg . renderer . name != 'three' ) this . h . frames ( ) ; }
Resize handler for the HTML element.
Resize handler for the HTML element .
// Some plugins need event refreshes bc the number of elements changes. Eg: binhex // dom resize and svg redraw are orthogonal when renderer == three // rerun frames & draw