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

Method _setTrackActiveStyles

src/material/slider/slider.ts:580–592  ·  view source on GitHub ↗

Sets the styles for the active portion of the track.

(styles: {
    left: string;
    right: string;
    transform: string;
    transformOrigin: string;
  })

Source from the content-addressed store, hash-verified

578
579 /** Sets the styles for the active portion of the track. */
580 _setTrackActiveStyles(styles: {
581 left: string;
582 right: string;
583 transform: string;
584 transformOrigin: string;
585 }): void {
586 const trackStyle = this._trackActive.nativeElement.style;
587
588 trackStyle.left = styles.left;
589 trackStyle.right = styles.right;
590 trackStyle.transformOrigin = styles.transformOrigin;
591 trackStyle.transform = styles.transform;
592 }
593
594 /** Returns the translateX positioning for a tick mark based on it's index. */
595 _calcTickMarkTransform(index: number): string {

Callers 2

_updateTrackUIRangeMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected