From afece72444987e4b7dd41143602d404b0138d2ef2fcd23a8a93c499d2b8ce6ec Mon Sep 17 00:00:00 2001 From: AidarKC Date: Wed, 11 Nov 2026 01:07:37 +0300 Subject: [PATCH] =?UTF-8?q?=D0=94=D0=BE=D0=B1=D0=B0=D0=B2=D0=B8=D0=BB?= =?UTF-8?q?=D0=B8=20=D1=81=D0=B2=D0=B5=D1=87=D0=B5=D0=BD=D0=B8=D0=B5=20?= =?UTF-8?q?=D0=BE=D0=B4=D0=BD=D0=BE=D1=81=D1=82=D0=BE=D1=80=D0=BE=D0=BD?= =?UTF-8?q?=D0=BD=D0=B8=D1=85=20=D1=81=D0=B2=D1=8F=D0=B7=D0=B5=D0=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- VERSION.properties | 2 +- .../js/pages/network-legacy/force-graph.js | 18 +++++++++++++----- 2 files changed, 14 insertions(+), 6 deletions(-) diff --git a/VERSION.properties b/VERSION.properties index a62dd3a9..08f229b8 100644 --- a/VERSION.properties +++ b/VERSION.properties @@ -1,2 +1,2 @@ -client.version=1.20.31 +client.version=1.20.32 server.version=1.16.19 diff --git a/shine-UI/js/pages/network-legacy/force-graph.js b/shine-UI/js/pages/network-legacy/force-graph.js index 9de8472a..829cee38 100644 --- a/shine-UI/js/pages/network-legacy/force-graph.js +++ b/shine-UI/js/pages/network-legacy/force-graph.js @@ -1020,17 +1020,25 @@ export function createForceGraph({ stage, model, onCenterTap, onNodeTap, onNodeL const strength = Math.max(0, Math.min(1, Number(ref?.strength) || Number(n.strength) || 0.5)); const opacity = Math.min(childOpacity, parentOpacity); const shine = Boolean(parent.shining && n.shining) && !n.hidden; - - if (ref?.mutual === false) { - parts.push(...directedFriendEdgePaths(x1, y1, cpx, cpy, x2, y2, relationColor(relationType), opacity * 0.82)); - continue; - } let edgeStroke = relationColor(relationType); if (reverseRelationType && reverseRelationType !== relationType) { const gradientId = `fg-relation-gradient-${gradientIndex++}`; defs.push(``); edgeStroke = `url(#${gradientId})`; } + if (ref?.mutual === false) { + if (shine) { + const gradientId = `fg-directed-shine-${gradientIndex++}`; + defs.push(``); + const d = `M${x1.toFixed(1)} ${y1.toFixed(1)} Q${cpx.toFixed(1)} ${cpy.toFixed(1)} ${x2.toFixed(1)} ${y2.toFixed(1)}`; + parts.push(``); + parts.push(``); + parts.push(``); + } else { + parts.push(...directedFriendEdgePaths(x1, y1, cpx, cpy, x2, y2, edgeStroke, opacity * 0.82)); + } + continue; + } if (shine) { const pnx = -uy; const pny = ux;