import { px } from "./dist-es-value-types-numbers-units.js";
function calcOrigin(origin, offset, size) {
  return typeof origin === "string" ? origin : px.transform(offset + size * origin);
}
function calcSVGTransformOrigin(dimensions, originX, originY) {
  const pxOriginX = calcOrigin(originX, dimensions.x, dimensions.width);
  const pxOriginY = calcOrigin(originY, dimensions.y, dimensions.height);
  return `${pxOriginX} ${pxOriginY}`;
}
export {
  calcSVGTransformOrigin
};
//# sourceMappingURL=dist-es-render-svg-utils-transform-origin.js.map
