import { buildHTMLStyles as a } from "../../html/utils/build-styles.es.js";
import { buildSVGPath as B } from "./path.es.js";
function g(f, {
  attrX: o,
  attrY: e,
  attrScale: m,
  pathLength: s,
  pathSpacing: d = 1,
  pathOffset: l = 0,
  // This is object creation, which we try to avoid per-frame.
  ...t
}, u, x, n) {
  if (a(f, t, x), u) {
    f.style.viewBox && (f.attrs.viewBox = f.style.viewBox);
    return;
  }
  f.attrs = f.style, f.style = {};
  const { attrs: r, style: i } = f;
  r.transform && (i.transform = r.transform, delete r.transform), (i.transform || r.transformOrigin) && (i.transformOrigin = r.transformOrigin ?? "50% 50%", delete r.transformOrigin), i.transform && (i.transformBox = (n == null ? void 0 : n.transformBox) ?? "fill-box", delete r.transformBox), o !== void 0 && (r.x = o), e !== void 0 && (r.y = e), m !== void 0 && (r.scale = m), s !== void 0 && B(r, s, d, l, !1);
}
export {
  g as buildSVGAttrs
};
//# sourceMappingURL=build-attrs.es.js.map
