From cfeef4810596f58aeae1d25ee553f4d6d57a9bb0 Mon Sep 17 00:00:00 2001 From: duanhao Date: Mon, 11 Aug 2025 10:03:55 +0800 Subject: [PATCH] =?UTF-8?q?=E6=97=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/GroupEvolution/component/groupGraph.vue | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/src/views/GroupEvolution/component/groupGraph.vue b/src/views/GroupEvolution/component/groupGraph.vue index 1d003db..134ee99 100644 --- a/src/views/GroupEvolution/component/groupGraph.vue +++ b/src/views/GroupEvolution/component/groupGraph.vue @@ -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([