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

Method getMaxPos

src/material/slider/slider-input.ts:643–649  ·  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

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

Callers 1

_clampMethod · 0.95

Calls 1

getSiblingMethod · 0.95

Tested by

no test coverage detected