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