无
This commit is contained in:
parent
d2d42d7636
commit
cfeef48105
|
|
@ -215,24 +215,10 @@ const clusterAnalyze = () => {
|
||||||
const TC = "2024-06-19T12:58:04Z"; // C
|
const TC = "2024-06-19T12:58:04Z"; // C
|
||||||
|
|
||||||
// 组色(与你现有 colorMap 一致)
|
// 组色(与你现有 colorMap 一致)
|
||||||
const GROUP_COLOR = { 0: "12,112,144", 1: "180,150,20", 6: "50,141,120" };
|
|
||||||
const GROUP_ALPHA = 0.30;
|
const GROUP_ALPHA = 0.30;
|
||||||
|
|
||||||
const RED = "220,50,60";
|
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 shouldA = now >= TA;
|
||||||
const shouldB = now >= TB;
|
const shouldB = now >= TB;
|
||||||
|
|
@ -281,7 +267,6 @@ const clusterAnalyze = () => {
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
graphVis.autoGroupLayout(graphVis.nodes);
|
graphVis.autoGroupLayout(graphVis.nodes);
|
||||||
graphVis.zoomFit(); // 没有 refresh;这两个就够
|
|
||||||
}
|
}
|
||||||
|
|
||||||
new Map([
|
new Map([
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user