"use strict";
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
const units = require("./dist-es-value-types-numbers-units.cjs");
function calcOrigin(origin, offset, size) {
  return typeof origin === "string" ? origin : units.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}`;
}
exports.calcSVGTransformOrigin = calcSVGTransformOrigin;
//# sourceMappingURL=dist-es-render-svg-utils-transform-origin.cjs.map
