import{_ as t,U as e,j as s}from"./App-DjDfFse6.js";var a=t((t,e)=>{const s=t.append("rect");if(s.attr("x",e.x),s.attr("y",e.y),s.attr("fill",e.fill),s.attr("stroke",e.stroke),s.attr("width",e.width),s.attr("height",e.height),e.name&&s.attr("name",e.name),e.rx&&s.attr("rx",e.rx),e.ry&&s.attr("ry",e.ry),void 0!==e.attrs)for(const a in e.attrs)s.attr(a,e.attrs[a]);return e.class&&s.attr("class",e.class),s},"drawRect"),r=t((t,e)=>{const s={x:e.startx,y:e.starty,width:e.stopx-e.startx,height:e.stopy-e.starty,fill:e.fill,stroke:e.stroke,class:"rect"};a(t,s).lower()},"drawBackgroundRect"),c=t((t,s)=>{const a=s.text.replace(e," "),r=t.append("text");r.attr("x",s.x),r.attr("y",s.y),r.attr("class","legend"),r.style("text-anchor",s.anchor),s.class&&r.attr("class",s.class);const c=r.append("tspan");return c.attr("x",s.x+2*s.textMargin),c.text(a),r},"drawText"),n=t((t,e,a,r)=>{const c=t.append("image");c.attr("x",e),c.attr("y",a);const n=s.sanitizeUrl(r);c.attr("xlink:href",n)},"drawImage"),o=t((t,e,a,r)=>{const c=t.append("use");c.attr("x",e),c.attr("y",a);const n=s.sanitizeUrl(r);c.attr("xlink:href",`#${n}`)},"drawEmbeddedImage"),x=t(()=>({x:0,y:0,width:100,height:100,fill:"#EDF2AE",stroke:"#666",anchor:"start",rx:0,ry:0}),"getNoteRect"),i=t(()=>({x:0,y:0,width:100,height:100,"text-anchor":"start",style:"#666",textMargin:0,rx:0,ry:0,tspan:!0}),"getTextObj");export{r as a,i as b,o as c,a as d,n as e,c as f,x as g};
