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

Method _onDirChangeRange

src/material/slider/slider.ts:509–527  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

507 }
508
509 private _onDirChangeRange(): void {
510 const endInput = this._getInput(_MatThumb.END) as _MatSliderRangeThumb;
511 const startInput = this._getInput(_MatThumb.START) as _MatSliderRangeThumb;
512
513 endInput._setIsLeftThumb();
514 startInput._setIsLeftThumb();
515
516 endInput.translateX = endInput._calcTranslateXByValue();
517 startInput.translateX = startInput._calcTranslateXByValue();
518
519 endInput._updateStaticStyles();
520 startInput._updateStaticStyles();
521
522 endInput._updateWidthInactive();
523 startInput._updateWidthInactive();
524
525 endInput._updateThumbUIByValue();
526 startInput._updateThumbUIByValue();
527 }
528
529 private _onDirChangeNonRange(): void {
530 const input = this._getInput(_MatThumb.END)!;

Callers 1

constructorMethod · 0.95

Calls 6

_getInputMethod · 0.95
_setIsLeftThumbMethod · 0.80
_updateStaticStylesMethod · 0.80
_updateThumbUIByValueMethod · 0.80
_updateWidthInactiveMethod · 0.45

Tested by

no test coverage detected