(source: _MatSliderRangeThumb)
| 822 | } |
| 823 | |
| 824 | private _updateTrackUIRange(source: _MatSliderRangeThumb): void { |
| 825 | const sibling = source.getSibling(); |
| 826 | if (!sibling || !this._cachedWidth) { |
| 827 | return; |
| 828 | } |
| 829 | |
| 830 | const activePercentage = Math.abs(sibling.translateX - source.translateX) / this._cachedWidth; |
| 831 | |
| 832 | if (source._isLeftThumb && this._cachedWidth) { |
| 833 | this._setTrackActiveStyles({ |
| 834 | left: 'auto', |
| 835 | right: `${this._cachedWidth - sibling.translateX}px`, |
| 836 | transformOrigin: 'right', |
| 837 | transform: `scaleX(${activePercentage})`, |
| 838 | }); |
| 839 | } else { |
| 840 | this._setTrackActiveStyles({ |
| 841 | left: `${sibling.translateX}px`, |
| 842 | right: 'auto', |
| 843 | transformOrigin: 'left', |
| 844 | transform: `scaleX(${activePercentage})`, |
| 845 | }); |
| 846 | } |
| 847 | } |
| 848 | |
| 849 | private _updateTrackUINonRange(source: _MatSliderThumb): void { |
| 850 | this._isRtl() |
no test coverage detected