Исправили цвет сияющих связей

This commit is contained in:
AidarKC
2026-11-11 01:05:15 +03:00
parent 84f2400bef
commit 6031d95fe8
2 changed files with 4 additions and 4 deletions
@@ -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(`<path class="fg-plasma-flare" d="${d}" stroke="${edgeStroke}" opacity="${(0.42 * opacity).toFixed(3)}" />`);
parts.push(`<path class="fg-plasma-tube" d="${d}" stroke="${edgeStroke}" opacity="${(0.85 * opacity).toFixed(3)}" />`);
parts.push(`<path class="fg-plasma-core" d="${d}" stroke="${edgeStroke}" opacity="${opacity.toFixed(3)}" />`);
parts.push(`<path class="fg-plasma-flare" d="${d}" style="stroke:${edgeStroke}" opacity="${(0.42 * opacity).toFixed(3)}" />`);
parts.push(`<path class="fg-plasma-tube" d="${d}" style="stroke:${edgeStroke}" opacity="${(0.85 * opacity).toFixed(3)}" />`);
parts.push(`<path class="fg-plasma-core" d="${d}" style="stroke:${edgeStroke}" opacity="${opacity.toFixed(3)}" />`);
} 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;