From 84f2400befe0922f6ad48bc75d12d0de96a372825f058d610c1e53afb5d8dfa2 Mon Sep 17 00:00:00 2001 From: AidarKC Date: Wed, 11 Nov 2026 00:56:37 +0300 Subject: [PATCH] =?UTF-8?q?=D0=A1=D0=BE=D1=85=D1=80=D0=B0=D0=BD=D0=B8?= =?UTF-8?q?=D0=BB=D0=B8=20=D1=86=D0=B2=D0=B5=D1=82=20=D1=81=D0=B8=D1=8F?= =?UTF-8?q?=D1=8E=D1=89=D0=B8=D1=85=20=D1=81=D0=B2=D1=8F=D0=B7=D0=B5=D0=B9?= =?UTF-8?q?=20V3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- VERSION.properties | 2 +- shine-UI/js/pages/network-legacy/force-graph.js | 6 +++--- shine-UI/tests/network-explorer-v3.test.mjs | 10 ++++++++++ 3 files changed, 14 insertions(+), 4 deletions(-) diff --git a/VERSION.properties b/VERSION.properties index 14758c08..fee3757b 100644 --- a/VERSION.properties +++ b/VERSION.properties @@ -1,2 +1,2 @@ -client.version=1.20.29 +client.version=1.20.30 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 ffd8aedd..dc39e30b 100644 --- a/shine-UI/js/pages/network-legacy/force-graph.js +++ b/shine-UI/js/pages/network-legacy/force-graph.js @@ -1042,9 +1042,9 @@ export function createForceGraph({ stage, model, onCenterTap, onNodeTap, onNodeL const c2x = x1 + 2 * (x2 - x1) / 3 + bowX - pnx * amp; const c2y = y1 + 2 * (y2 - y1) / 3 + bowY - pny * amp; const d = `M${x1.toFixed(1)} ${y1.toFixed(1)} C${c1x.toFixed(1)} ${c1y.toFixed(1)} ${c2x.toFixed(1)} ${c2y.toFixed(1)} ${x2.toFixed(1)} ${y2.toFixed(1)}`; - parts.push(``); - parts.push(``); - parts.push(``); + parts.push(``); + parts.push(``); + parts.push(``); } else { const d = `M${x1.toFixed(1)} ${y1.toFixed(1)} Q${cpx.toFixed(1)} ${cpy.toFixed(1)} ${x2.toFixed(1)} ${y2.toFixed(1)}`; const col = edgeStroke; diff --git a/shine-UI/tests/network-explorer-v3.test.mjs b/shine-UI/tests/network-explorer-v3.test.mjs index d594d6a7..b1f83152 100644 --- a/shine-UI/tests/network-explorer-v3.test.mjs +++ b/shine-UI/tests/network-explorer-v3.test.mjs @@ -121,3 +121,13 @@ test('V3: взаимная связь сохраняет оба типа для assert.equal(edge.reverseRelationType, 'close_friend'); assert.equal(edge.mutual, true); }); + +test('V3: сияние не стирает тип связи у красно-синего перехода', () => { + const g = createExplorerGraph(); + g.add(friends('a', ['b'], [], [], [['a', true], ['b', true]])); + g.add(friends('b', [], ['a'], [], [['a', true], ['b', true]])); + const edge = find(g.snapshot('a', { depth: 0 }), 'b').edgeParents[0]; + assert.equal(edge.relationType, 'friend'); + assert.equal(edge.reverseRelationType, 'close_friend'); + assert.equal(find(g.snapshot('a', { depth: 0 }), 'b').shining, true); +});