"use strict";
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
const Math$1 = require("../../util/Math.js");
function getStepSize(range, steps) {
  var minLinearRange = Math$1.log10(range.min), maxLinearRange = Math$1.log10(range.max);
  var absoluteLinearRange = Math.abs(minLinearRange) + Math.abs(maxLinearRange);
  return absoluteLinearRange / steps;
}
function cap(range, scale) {
  return Math.max(range.min, Math.min(range.max, scale));
}
exports.cap = cap;
exports.getStepSize = getStepSize;
