MCPcopy Create free account
hub / github.com/DFin/Neural-Network-Visualisation / setConnectionRadius

Method setConnectionRadius

assets/main.js:2718–2729  ·  view source on GitHub ↗
(radius)

Source from the content-addressed store, hash-verified

2716 }
2717
2718 setConnectionRadius(radius) {
2719 if (!Number.isFinite(radius)) return false;
2720 const clamped = Math.max(0.0005, radius);
2721 if (Math.abs(clamped - this.options.connectionRadius) < 1e-6) return false;
2722 this.options.connectionRadius = clamped;
2723 if (this.selectionCylinderGeometry && typeof this.selectionCylinderGeometry.dispose === "function") {
2724 this.selectionCylinderGeometry.dispose();
2725 }
2726 this.selectionCylinderGeometry = null;
2727 this.updateNetworkWeights();
2728 return true;
2729 }
2730
2731 setConnectionWeightThreshold(threshold) {
2732 if (!Number.isFinite(threshold)) return false;

Callers 1

applyConnectionThicknessFunction · 0.80

Calls 1

updateNetworkWeightsMethod · 0.95

Tested by

no test coverage detected