This commit is contained in:
duanhao 2025-08-11 10:03:55 +08:00
parent d2d42d7636
commit cfeef48105

View File

@ -215,24 +215,10 @@ const clusterAnalyze = () => {
const TC = "2024-06-19T12:58:04Z"; // C
// colorMap
const GROUP_COLOR = { 0: "12,112,144", 1: "180,150,20", 6: "50,141,120" };
const GROUP_ALPHA = 0.30;
const RED = "220,50,60";
// //绿
/* const buckets = new Map();
graphVis.nodes.forEach(n => {
const t = parseInt(n.type); // "0"|"1"|"6" 0/1/6
if (!buckets.has(t)) buckets.set(t, []);
buckets.get(t).push(n);
});
buckets.forEach((nodes, t) => {
const color = GROUP_COLOR[t] || "120,120,120";
const g = graphVis.addNodesInGroup(nodes, { shape: "circle", color, alpha: GROUP_ALPHA });
g.smoothPath = false;
}); */
//
const shouldA = now >= TA;
const shouldB = now >= TB;
@ -281,7 +267,6 @@ const clusterAnalyze = () => {
})
}
graphVis.autoGroupLayout(graphVis.nodes);
graphVis.zoomFit(); // refresh
}
new Map([