static/js/display.js
/**
 * Initiate or restore default view given data.
 * @function resetView
 * @param {Object} mo - main object
 */
Initiate or restore default view given data.
@function resetView
@param {Object} mo - main object
Initiate or restore default view given data . @function resetView @param { Object } mo - main object
function resetView(mo) {
  const view = mo.view;
  view.scale = 1.0;
  const rena = mo.rena;
  view.posX = rena.width / 2;
  view.posY = rena.height / 2;
  prepDataForDisplay(mo);
  updateLegends(mo);
  resizeArena(mo);
}
function resetView ( mo ) { const view = mo . view ; view . scale = 1.0 ; const rena = mo . rena ; view . posX = rena . width / 2 ; view . posY = rena . height / 2 ; prepDataForDisplay ( mo ) ; updateLegends ( mo ) ; resizeArena ( mo ) ; }
Initiate or restore default view given data.
Initiate or restore default view given data .
// center view // transforme data for display // render plots