@hpcc-js/observablehq-compiler
Version:
hpcc-js - ObservableHQ Compiler (unoffical)
28 lines (27 loc) • 1.09 kB
JavaScript
import "./chunk-rwCFCtyI.js";
import { instance as e } from "https://cdn.jsdelivr.net/npm/@viz-js/viz/+esm";
//#region ../../node_modules/@observablehq/notebook-kit/dist/src/runtime/stdlib/dot.js
var t = await e(), dot = (e, ...n) => {
let r = String.raw.call(String, e, ...n), i = t.renderSVGElement(r, {
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 (let e of i.querySelectorAll("[stroke='#000001'][stroke-opacity='0.003922']")) e.setAttribute("stroke", "currentColor"), e.removeAttribute("stroke-opacity");
for (let e of i.querySelectorAll("[fill='#000001'][fill-opacity='0.003922']")) e.setAttribute("fill", "currentColor"), e.removeAttribute("fill-opacity");
return i.remove(), i.style = "max-width: 100%; height: auto;", i;
};
//#endregion
export { dot };
//# sourceMappingURL=dot-BZIs0596.js.map