import { px as t } from "../../../../../style-value-types/dist/es/numbers/units.es.js";
function c(r, n) {
  return n.max === n.min ? 0 : r / (n.max - n.min) * 100;
}
var f = {
  correct: function(r, n) {
    if (!n.target)
      return r;
    if (typeof r == "string")
      if (t.test(r))
        r = parseFloat(r);
      else
        return r;
    var e = c(r, n.target.x), o = c(r, n.target.y);
    return "".concat(e, "% ").concat(o, "%");
  }
};
export {
  f as correctBorderRadius,
  c as pixelsToPercent
};
//# sourceMappingURL=scale-border-radius.es.js.map
