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); +});