julien-c's picture
julien-c HF staff
npm run build
2dfc950 verified
raw
history blame
860 Bytes
import{instance as s}from"https://cdn.jsdelivr.net/npm/@viz-js/viz@3.2.4/+esm";const i=await s();function c(r){let n=r[0]+"",o=0,l=arguments.length;for(;++o<l;)n+=arguments[o]+""+r[o];const t=i.renderSVGElement(n,{graphAttributes:{bgcolor:"none",color:"#00000101",fontcolor:"#00000101",fontname:"var(--sans-serif)",fontsize:"12"},nodeAttributes:{color:"#00000101",fontcolor:"#00000101",fontname:"var(--sans-serif)",fontsize:"12"},edgeAttributes:{color:"#00000101"}});for(const e of t.querySelectorAll("[stroke='#000001'][stroke-opacity='0.003922']"))e.setAttribute("stroke","currentColor"),e.removeAttribute("stroke-opacity");for(const e of t.querySelectorAll("[fill='#000001'][fill-opacity='0.003922']"))e.setAttribute("fill","currentColor"),e.removeAttribute("fill-opacity");return t.remove(),t.style="max-width: 100%; height: auto;",t}export{c as default};