app/scripts/PixiTrack.js
function formatResolutionText(resolution, maxResolutionSize) {
  const pp = precisionPrefix(maxResolutionSize, resolution);
  const f = formatPrefix(`.${pp}`, resolution);
  const formattedResolution = f(resolution);

  return formattedResolution;
}
function formatResolutionText(resolution, maxResolutionSize) {
  const pp = precisionPrefix(maxResolutionSize, resolution);
  const f = formatPrefix(`.${pp}`, resolution);
  const formattedResolution = f(resolution);

  return formattedResolution;
}
function formatResolutionText ( resolution , maxResolutionSize ) { const pp = precisionPrefix ( maxResolutionSize , resolution ) ; const f = formatPrefix ( ` ${ pp } ` , resolution ) ; const formattedResolution = f ( resolution ) ; return formattedResolution ; }
Format a resolution relative to the highest possible resolution.

The highest possible resolution determines the granularity of the
formatting (e.g. 20K vs 20000)
@param {int} resolution The resolution to format (e.g. 30000)
@param {int} maxResolutionSize The maximum possible resolution (e.g. 1000)

@returns {string} A formatted resolution string (e.g. "30K")
Format a resolution relative to the highest possible resolution .