static/js/interface.js
/**
 * Window resize event.
 * @function resizeWindow
 * @param {Object} mo - main object
 * @description also manually triggered when user resizes main frame
 */
Window resize event.
@function resizeWindow
@param {Object} mo - main object
@description also manually triggered when user resizes main frame
Window resize event . @function resizeWindow @param { Object } mo - main object @description also manually triggered when user resizes main frame
function resizeWindow(mo) {
  const [w, h] = calcArenaDimensions(mo);
  toastMsg(`Plot size: ${w} x ${h}`, mo.stat);
  clearTimeout(mo.stat.resizing);
  mo.stat.resizing = setTimeout(function () {
    resizeArena(mo);
  }, 250); 
}
function resizeWindow ( mo ) { const [ w , h ] = calcArenaDimensions ( mo ) ; toastMsg ( ` ${ w } ${ h } ` , mo . stat ) ; clearTimeout ( mo . stat . resizing ) ; mo . stat . resizing = setTimeout ( function ( ) { resizeArena ( mo ) ; } , 250 ) ; }
Window resize event.
Window resize event .
// redraw canvas after 0.25 sec