MCPcopy Create free account
hub / github.com/angular/components / getMaxPos

Method getMaxPos

src/material/slider/slider-input.ts:642–648  ·  view source on GitHub ↗

* Returns the maximum translateX position allowed for this slider input's visual thumb. * @docs-private

()

Source from the content-addressed store, hash-verified

640 * @docs-private
641 */
642 getMaxPos(): number {
643 const sibling = this.getSibling();
644 if (this._isLeftThumb && sibling) {
645 return sibling.translateX;
646 }
647 return this._slider._cachedWidth - this._tickMarkOffset;
648 }
649
650 _setIsLeftThumb(): void {
651 this._isLeftThumb =

Callers 1

_clampMethod · 0.95

Calls 1

getSiblingMethod · 0.95

Tested by

no test coverage detected