dist/indoor.esm.js
/**
 * Get step out of the set
 *
 * @module mumath/step
 */
Get step out of the set
@module mumath/step
Get step out of the set @module mumath / step
function scale (minStep, srcSteps) {
  var power = Math.floor(lg(minStep));
  var order = Math.pow(10, power);
  var steps = srcSteps.map(function (v) {
    return v * order;
  });
  order = Math.pow(10, power + 1);
  steps = steps.concat(srcSteps.map(function (v) {
    return v * order;
  })); 
  var step = 0;
  for (var i = 0; i < steps.length; i++) {
    step = steps[i];
    if (step >= minStep) break;
  }
  return step;
}
function scale ( minStep , srcSteps ) { var power = Math . floor ( lg ( minStep ) ) ; var order = Math . pow ( 10 , power ) ; var steps = srcSteps . map ( function ( v ) { return v * order ; } ) ; order = Math . pow ( 10 , power + 1 ) ; steps = steps . concat ( srcSteps . map ( function ( v ) { return v * order ; } ) ) ; var step = 0 ; for ( var i = 0 ; i < steps . length ; i ++ ) { step = steps [ i ] ; if ( step >= minStep ) break ; } return step ; }
Get step out of the set
 @module mumath/step
Get step out of the set @module mumath / step
//find closest scale