@@ -103,6 +103,7 @@ export class MatSliderThumb implements _MatSliderThumb, OnDestroy, ControlValueA
103
103
this . _slider . _onValueChange ( this ) ;
104
104
this . _cdr . detectChanges ( ) ;
105
105
}
106
+ /** Event emitted when the `value` is changed. */
106
107
@Output ( ) readonly valueChange : EventEmitter < number > = new EventEmitter < number > ( ) ;
107
108
108
109
/** Event emitted when the slider thumb starts being dragged. */
@@ -113,7 +114,10 @@ export class MatSliderThumb implements _MatSliderThumb, OnDestroy, ControlValueA
113
114
@Output ( ) readonly dragEnd : EventEmitter < MatSliderDragEvent > =
114
115
new EventEmitter < MatSliderDragEvent > ( ) ;
115
116
116
- /** The current translateX in px of the slider visual thumb. */
117
+ /**
118
+ * The current translateX in px of the slider visual thumb.
119
+ * @docs -private
120
+ */
117
121
get translateX ( ) : number {
118
122
if ( this . _slider . min >= this . _slider . max ) {
119
123
this . _translateX = 0 ;
@@ -129,9 +133,13 @@ export class MatSliderThumb implements _MatSliderThumb, OnDestroy, ControlValueA
129
133
}
130
134
private _translateX : number | undefined ;
131
135
132
- /** Indicates whether this thumb is the start or end thumb. */
136
+ /**
137
+ * Indicates whether this thumb is the start or end thumb.
138
+ * @docs -private
139
+ */
133
140
thumbPosition : _MatThumb = _MatThumb . END ;
134
141
142
+ /** @docs -private */
135
143
get min ( ) : number {
136
144
return coerceNumberProperty ( this . _hostElement . min ) ;
137
145
}
@@ -140,6 +148,7 @@ export class MatSliderThumb implements _MatSliderThumb, OnDestroy, ControlValueA
140
148
this . _cdr . detectChanges ( ) ;
141
149
}
142
150
151
+ /** @docs -private */
143
152
get max ( ) : number {
144
153
return coerceNumberProperty ( this . _hostElement . max ) ;
145
154
}
@@ -156,6 +165,7 @@ export class MatSliderThumb implements _MatSliderThumb, OnDestroy, ControlValueA
156
165
this . _cdr . detectChanges ( ) ;
157
166
}
158
167
168
+ /** @docs -private */
159
169
get disabled ( ) : boolean {
160
170
return coerceBooleanProperty ( this . _hostElement . disabled ) ;
161
171
}
@@ -168,13 +178,15 @@ export class MatSliderThumb implements _MatSliderThumb, OnDestroy, ControlValueA
168
178
}
169
179
}
170
180
181
+ /** The percentage of the slider that coincides with the value. */
171
182
get percentage ( ) : number {
172
183
if ( this . _slider . min >= this . _slider . max ) {
173
184
return this . _slider . _isRtl ? 1 : 0 ;
174
185
}
175
186
return ( this . value - this . _slider . min ) / ( this . _slider . max - this . _slider . min ) ;
176
187
}
177
188
189
+ /** @docs -private */
178
190
get fillPercentage ( ) : number {
179
191
if ( ! this . _slider . _cachedWidth ) {
180
192
return this . _slider . _isRtl ? 1 : 0 ;
@@ -260,6 +272,7 @@ export class MatSliderThumb implements _MatSliderThumb, OnDestroy, ControlValueA
260
272
this . dragEnd . complete ( ) ;
261
273
}
262
274
275
+ /** @docs -private */
263
276
initProps ( ) : void {
264
277
this . _updateWidthInactive ( ) ;
265
278
this . disabled = this . _slider . disabled ;
@@ -269,6 +282,7 @@ export class MatSliderThumb implements _MatSliderThumb, OnDestroy, ControlValueA
269
282
this . _initValue ( ) ;
270
283
}
271
284
285
+ /** @docs -private */
272
286
initUI ( ) : void {
273
287
this . _updateThumbUIByValue ( ) ;
274
288
}
@@ -530,6 +544,7 @@ export class MatSliderThumb implements _MatSliderThumb, OnDestroy, ControlValueA
530
544
] ,
531
545
} )
532
546
export class MatSliderRangeThumb extends MatSliderThumb implements _MatSliderRangeThumb {
547
+ /** @docs -private */
533
548
getSibling ( ) : _MatSliderRangeThumb | undefined {
534
549
if ( ! this . _sibling ) {
535
550
this . _sibling = this . _slider . _getInput ( this . _isEndThumb ? _MatThumb . START : _MatThumb . END ) as
@@ -540,7 +555,10 @@ export class MatSliderRangeThumb extends MatSliderThumb implements _MatSliderRan
540
555
}
541
556
private _sibling : MatSliderRangeThumb | undefined ;
542
557
543
- /** Returns the minimum translateX position allowed for this slider input's visual thumb. */
558
+ /**
559
+ * Returns the minimum translateX position allowed for this slider input's visual thumb.
560
+ * @docs -private
561
+ */
544
562
getMinPos ( ) : number {
545
563
const sibling = this . getSibling ( ) ;
546
564
if ( ! this . _isLeftThumb && sibling ) {
@@ -549,7 +567,10 @@ export class MatSliderRangeThumb extends MatSliderThumb implements _MatSliderRan
549
567
return 0 ;
550
568
}
551
569
552
- /** Returns the maximum translateX position allowed for this slider input's visual thumb. */
570
+ /**
571
+ * Returns the maximum translateX position allowed for this slider input's visual thumb.
572
+ * @docs -private
573
+ */
553
574
getMaxPos ( ) : number {
554
575
const sibling = this . getSibling ( ) ;
555
576
if ( this . _isLeftThumb && sibling ) {
0 commit comments