update topology

This commit is contained in:
Qiuxia Fan 2022-03-28 10:03:18 +08:00
parent 2167b4afd5
commit c110ee7cc5

View File

@ -153,7 +153,7 @@ async function init() {
graph.value = svg.value graph.value = svg.value
.append("g") .append("g")
.attr("class", "topo-svg-graph") .attr("class", "topo-svg-graph")
.attr("transform", `translate(0, -100)`); .attr("transform", `translate(-100, -100)`);
graph.value.call(tip.value); graph.value.call(tip.value);
simulation.value = simulationInit( simulation.value = simulationInit(
d3, d3,
@ -532,7 +532,7 @@ watch(
() => appStore.durationTime, () => appStore.durationTime,
() => { () => {
if (dashboardStore.entity === EntityType[1].value) { if (dashboardStore.entity === EntityType[1].value) {
init(); freshNodes();
} }
} }
); );