viz more touchups (#6685)

* dont print if we're running VIZ

* 242424
This commit is contained in:
qazal
2024-09-23 19:44:28 +08:00
committed by GitHub
parent 2fe3eeed17
commit ee050d31d7
2 changed files with 8 additions and 8 deletions

View File

@@ -168,7 +168,7 @@
<script>
function renderGraph(graph, additions) {
const g = new dagreD3.graphlib.Graph({ compound: true }).setGraph({ rankdir: "LR" }).setDefaultEdgeLabel(function() { return {}; });
g.setNode("addition", {label: "", clusterLabelPos: "top", style: additions.length !== 0 ? "fill: #2ea04326" : "display: none;"});
g.setNode("addition", {label: "", clusterLabelPos: "top", style: additions.length !== 0 ? "fill: #242424" : "display: none;"});
for ([k,u] of Object.entries(graph)) {
g.setNode(k, {label: u[0], style: `fill: ${u[4]}; rx: 8; ry: 8;` });
for (src of u[2]) {