(rawValue)
| 601 | thicknessValue.textContent = formatThickness(value); |
| 602 | }; |
| 603 | const applyThickness = (rawValue) => { |
| 604 | let parsed = Number.parseFloat(rawValue); |
| 605 | if (!Number.isFinite(parsed)) { |
| 606 | parsed = brush.drawRadius; |
| 607 | } |
| 608 | const clamped = clamp(parsed, min, max); |
| 609 | syncThicknessUi(clamped); |
| 610 | digitCanvas.updateBrushSettings({ drawRadius: clamped }); |
| 611 | VISUALIZER_CONFIG.brush.drawRadius = clamped; |
| 612 | brush.drawRadius = clamped; |
| 613 | }; |
| 614 | applyThickness(brush.drawRadius); |
| 615 | thicknessSlider.addEventListener("input", (event) => { |
| 616 | applyThickness(event.target.value); |
no test coverage detected