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