Updates the dots along the slider track.
()
| 872 | |
| 873 | /** Updates the dots along the slider track. */ |
| 874 | _updateTickMarkUI(): void { |
| 875 | if ( |
| 876 | !this.showTickMarks || |
| 877 | // Tick marks aren't rendered until the slider has a width (e.g. they never are on the |
| 878 | // server) so skip computing them until then since it can be expensive for large ranges. |
| 879 | !this._cachedWidth || |
| 880 | this.step === undefined || |
| 881 | this.min === undefined || |
| 882 | this.max === undefined |
| 883 | ) { |
| 884 | return; |
| 885 | } |
| 886 | const step = this.step > 0 ? this.step : 1; |
| 887 | this._isRange ? this._updateTickMarkUIRange(step) : this._updateTickMarkUINonRange(step); |
| 888 | } |
| 889 | |
| 890 | private _updateTickMarkUINonRange(step: number): void { |
| 891 | const value = this._getValue(); |
no test coverage detected