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

Method _updateMinMax

src/material/slider/slider-input.ts:724–736  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

722 }
723
724 _updateMinMax(): void {
725 const sibling = this.getSibling();
726 if (!sibling) {
727 return;
728 }
729 if (this._isEndThumb) {
730 this.min = Math.max(this._slider.min, sibling.value);
731 this.max = this._slider.max;
732 } else {
733 this.min = this._slider.min;
734 this.max = Math.min(this._slider.max, sibling.value);
735 }
736 }
737
738 override _updateWidthActive(): void {
739 const minWidth = this._slider._rippleRadius * 2 - this._slider._inputPadding * 2;

Callers 5

_fixValueMethod · 0.80
_updateSiblingMethod · 0.80
_initUIRangeMethod · 0.80
_onResizeMethod · 0.80

Calls 3

getSiblingMethod · 0.95
maxMethod · 0.45
minMethod · 0.45

Tested by

no test coverage detected