var l = function(e, o, n) {
  var r = n.getBoundingClientRect(), i = r.width, g = r.height, u = typeof e.pageX == "number" ? e.pageX : e.touches[0].pageX, f = typeof e.pageY == "number" ? e.pageY : e.touches[0].pageY, t = u - (n.getBoundingClientRect().left + window.pageXOffset), a = f - (n.getBoundingClientRect().top + window.pageYOffset);
  t < 0 ? t = 0 : t > i && (t = i), a < 0 ? a = 0 : a > g && (a = g);
  var p = t / i, c = 1 - a / g;
  return {
    h: o.h,
    s: p,
    v: c,
    a: o.a,
    source: "hsv"
  };
};
export {
  l as calculateChange
};
//# sourceMappingURL=saturation.js.map
