import{n as l}from"./src-C042FyXq.js";import{k as n}from"./chunk-ABZYJK2D-M8yn2N69.js";import{t as d}from"./dist-ut5UbaRH.js";var x=d(),o=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"),h=l((s,t)=>{o(s,{x:t.startx,y:t.starty,width:t.stopx-t.startx,height:t.stopy-t.starty,fill:t.fill,stroke:t.stroke,class:"rect"}).lower()},"drawBackgroundRect"),c=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"),p=l((s,t,a,r)=>{let e=s.append("image");e.attr("x",t),e.attr("y",a);let i=(0,x.sanitizeUrl)(r);e.attr("xlink:href",i)},"drawImage"),y=l((s,t,a,r)=>{let e=s.append("use");e.attr("x",t),e.attr("y",a);let i=(0,x.sanitizeUrl)(r);e.attr("xlink:href",`#${i}`)},"drawEmbeddedImage"),g=l(()=>({x:0,y:0,width:100,height:100,fill:"#EDF2AE",stroke:"#666",anchor:"start",rx:0,ry:0}),"getNoteRect"),m=l(()=>({x:0,y:0,width:100,height:100,"text-anchor":"start",style:"#666",textMargin:0,rx:0,ry:0,tspan:!0}),"getTextObj");export{c as a,o as i,y as n,g as o,p as r,m as s,h as t};
