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