import { __rest as S } from "../../../../../../tslib/tslib.es6.es.js";
import { buildHTMLStyles as y } from "../../html/utils/build-styles.es.js";
import { calcSVGTransformOrigin as X } from "./transform-origin.es.js";
import { buildSVGPath as Y } from "./path.es.js";
function G(t, i, g, h) {
  var d = i.attrX, a = i.attrY, n = i.originX, f = i.originY, s = i.pathLength, m = i.pathSpacing, l = m === void 0 ? 1 : m, p = i.pathOffset, u = p === void 0 ? 0 : p, c = S(i, ["attrX", "attrY", "originX", "originY", "pathLength", "pathSpacing", "pathOffset"]);
  y(t, c, g, h), t.attrs = t.style, t.style = {};
  var r = t.attrs, e = t.style, o = t.dimensions;
  r.transform && (o && (e.transform = r.transform), delete r.transform), o && (n !== void 0 || f !== void 0 || e.transform) && (e.transformOrigin = X(o, n !== void 0 ? n : 0.5, f !== void 0 ? f : 0.5)), d !== void 0 && (r.x = d), a !== void 0 && (r.y = a), s !== void 0 && Y(r, s, l, u, !1);
}
export {
  G as buildSVGAttrs
};
//# sourceMappingURL=build-attrs.es.js.map
