import{n as o,r as s}from"./src-BRLtyMKi.js";import{c as w}from"./chunk-ABZYJK2D-B4uBM2QW.js";var x=o((t,i,e,a)=>{t.attr("class",e);let{width:h,height:r,x:n,y:g}=c(t,i);w(t,r,h,a);let d=l(n,g,h,r,i);t.attr("viewBox",d),s.debug(`viewBox configured: ${d} with padding: ${i}`)},"setupViewPortForSVG"),c=o((t,i)=>{var a;let e=((a=t.node())==null?void 0:a.getBBox())||{width:0,height:0,x:0,y:0};return{width:e.width+i*2,height:e.height+i*2,x:e.x,y:e.y}},"calculateDimensionsWithPadding"),l=o((t,i,e,a,h)=>`${t-h} ${i-h} ${e} ${a}`,"createViewBox");export{x as t};
