import { convertBoundingBoxToBox as x, transformBoxPoints as a } from "../geometry/conversion.es.js";
import { translateAxis as n } from "../geometry/delta-apply.es.js";
function s(o, r) {
  return x(a(o.getBoundingClientRect(), r));
}
function m(o, r, i) {
  var t = s(o, i), e = r.scroll;
  return e && (n(t.x, e.x), n(t.y, e.y)), t;
}
export {
  m as measurePageBox,
  s as measureViewportBox
};
//# sourceMappingURL=measure.es.js.map
