epic-designer-gold
Version:
基于vue3的设计器,可视化开发页面表单
2 lines (1 loc) • 2.08 kB
JavaScript
;const s=require("./mermaid.core-amipJqhv.cjs");var l=s.__name((r,t)=>{const e=r.append("rect");if(e.attr("x",t.x),e.attr("y",t.y),e.attr("fill",t.fill),e.attr("stroke",t.stroke),e.attr("width",t.width),e.attr("height",t.height),t.name&&e.attr("name",t.name),t.rx&&e.attr("rx",t.rx),t.ry&&e.attr("ry",t.ry),t.attrs!==void 0)for(const a in t.attrs)e.attr(a,t.attrs[a]);return t.class&&e.attr("class",t.class),e},"drawRect"),o=s.__name((r,t)=>{const e={x:t.startx,y:t.starty,width:t.stopx-t.startx,height:t.stopy-t.starty,fill:t.fill,stroke:t.stroke,class:"rect"};l(r,e).lower()},"drawBackgroundRect"),d=s.__name((r,t)=>{const e=t.text.replace(s.lineBreakRegex," "),a=r.append("text");a.attr("x",t.x),a.attr("y",t.y),a.attr("class","legend"),a.style("text-anchor",t.anchor),t.class&&a.attr("class",t.class);const n=a.append("tspan");return n.attr("x",t.x+t.textMargin*2),n.text(e),a},"drawText"),c=s.__name((r,t,e,a)=>{const n=r.append("image");n.attr("x",t),n.attr("y",e);const i=s.sanitizeUrl_1(a);n.attr("xlink:href",i)},"drawImage"),m=s.__name((r,t,e,a)=>{const n=r.append("use");n.attr("x",t),n.attr("y",e);const i=s.sanitizeUrl_1(a);n.attr("xlink:href",`#${i}`)},"drawEmbeddedImage"),x=s.__name(()=>({x:0,y:0,width:100,height:100,fill:"#EDF2AE",stroke:"#666",anchor:"start",rx:0,ry:0}),"getNoteRect"),p=s.__name(()=>({x:0,y:0,width:100,height:100,"text-anchor":"start",style:"#666",textMargin:0,rx:0,ry:0,tspan:!0}),"getTextObj"),y=s.__name(()=>{let r=s.select(".mermaidTooltip");return r.empty()&&(r=s.select("body").append("div").attr("class","mermaidTooltip").style("opacity",0).style("position","absolute").style("text-align","center").style("max-width","200px").style("padding","2px").style("font-size","12px").style("background","#ffffde").style("border","1px solid #333").style("border-radius","2px").style("pointer-events","none").style("z-index","100")),r},"createTooltip");exports.createTooltip=y;exports.drawBackgroundRect=o;exports.drawEmbeddedImage=m;exports.drawImage=c;exports.drawRect=l;exports.drawText=d;exports.getNoteRect=x;exports.getTextObj=p;