"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var t=require("../../html/utils/build-styles.mjs.js"),r=require("./path.mjs.js");const e=["offsetDistance","offsetPath","offsetRotate","offsetAnchor"];exports.buildSVGAttrs=function(s,o,a,i,f){let{attrX:n,attrY:l,attrScale:d,pathLength:m,pathSpacing:u=1,pathOffset:c=0,...v}=o;if(t.buildHTMLStyles(s,v,i),a)return void(s.style.viewBox&&(s.attrs.viewBox=s.style.viewBox));s.attrs=s.style,s.style={};const{attrs:x,style:h}=s;x.transform&&(h.transform=x.transform,delete x.transform),(h.transform||x.transformOrigin)&&(h.transformOrigin=x.transformOrigin??"50% 50%",delete x.transformOrigin),h.transform&&(h.transformBox=f?.transformBox??"fill-box",delete x.transformBox);for(const t of e)void 0!==x[t]&&(h[t]=x[t],delete x[t]);void 0!==n&&(x.x=n),void 0!==l&&(x.y=l),void 0!==d&&(x.scale=d),void 0!==m&&r.buildSVGPath(x,m,u,c,!1)};
//# sourceMappingURL=build-attrs.mjs.js.map
