(val, step, min)
| 8 | return dot === -1 ? 0 : s.length - dot - 1; |
| 9 | }; |
| 10 | const roundToStep = (val, step, min) => { |
| 11 | const raw = Math.round((val - min) / step) * step + min; |
| 12 | const decimals = Math.max(stepDecimals(step), stepDecimals(min)); |
| 13 | return Number(raw.toFixed(decimals)); |
| 14 | }; |
| 15 | |
| 16 | const PreviewSlider = ({ |
| 17 | title = '', |
no test coverage detected