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