(rawValue, { emit = true } = {})
| 560 | connectionThicknessValue.textContent = formatThickness(value); |
| 561 | }; |
| 562 | const applyConnectionThickness = (rawValue, { emit = true } = {}) => { |
| 563 | let parsed = Number.parseFloat(rawValue); |
| 564 | if (!Number.isFinite(parsed)) { |
| 565 | parsed = neuralScene.options.connectionRadius; |
| 566 | } |
| 567 | const clamped = clamp(parsed, min, max); |
| 568 | syncConnectionThicknessUi(clamped); |
| 569 | if (!emit) return; |
| 570 | const changed = neuralScene.setConnectionRadius(clamped); |
| 571 | if (changed) { |
| 572 | VISUALIZER_CONFIG.connectionRadius = clamped; |
| 573 | } |
| 574 | }; |
| 575 | const initialRadius = Number.isFinite(neuralScene.options.connectionRadius) |
| 576 | ? clamp(neuralScene.options.connectionRadius, min, max) |
| 577 | : clamp(VISUALIZER_CONFIG.connectionRadius, min, max); |
no test coverage detected