(value: string | null)
| 76 | }; |
| 77 | |
| 78 | const normalizeThreshold = (value: string | null): number => { |
| 79 | const n = Number(value); |
| 80 | if (!Number.isFinite(n)) return 2000; |
| 81 | return Math.max(2, Math.floor(n)); |
| 82 | }; |
| 83 | |
| 84 | type SamplingControls = Readonly<{ |
| 85 | mode: SeriesSampling; |