()
| 414 | private _platform = inject(Platform); |
| 415 | |
| 416 | constructor() { |
| 417 | inject(_CdkPrivateStyleLoader).load(_StructuralStylesLoader); |
| 418 | |
| 419 | let prevIsRtl = this._isRtl(); |
| 420 | |
| 421 | afterRenderEffect(() => { |
| 422 | const isRtl = this._isRtl(); |
| 423 | |
| 424 | // The diffing is normally handled by the signal, but we don't want to |
| 425 | // fire on the first run, because it'll trigger unnecessary measurements. |
| 426 | if (isRtl !== prevIsRtl) { |
| 427 | prevIsRtl = isRtl; |
| 428 | this._isRange ? this._onDirChangeRange() : this._onDirChangeNonRange(); |
| 429 | this._updateTickMarkUI(); |
| 430 | } |
| 431 | }); |
| 432 | } |
| 433 | |
| 434 | /** The radius of the native slider's knob. AFAIK there is no way to avoid hardcoding this. */ |
| 435 | _knobRadius: number = 8; |
nothing calls this directly
no test coverage detected