SHA256
Сохранили цвет сияющих связей V3
This commit is contained in:
@@ -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}" opacity="${(0.42 * opacity).toFixed(3)}" />`);
|
||||
parts.push(`<path class="fg-plasma-tube" d="${d}" opacity="${(0.85 * opacity).toFixed(3)}" />`);
|
||||
parts.push(`<path class="fg-plasma-core" d="${d}" opacity="${opacity.toFixed(3)}" />`);
|
||||
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)}" />`);
|
||||
} 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;
|
||||
|
||||
Reference in New Issue
Block a user