(radius)
| 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; |
no test coverage detected