|
@@ -9,6 +9,7 @@ import { Measure } from '../../measure';
|
|
export class Slider extends BaseSlider {
|
|
export class Slider extends BaseSlider {
|
|
private _background = "black";
|
|
private _background = "black";
|
|
private _borderColor = "white";
|
|
private _borderColor = "white";
|
|
|
|
+ private _thumbColor = "";
|
|
private _isThumbCircle = false;
|
|
private _isThumbCircle = false;
|
|
protected _displayValueBar = true;
|
|
protected _displayValueBar = true;
|
|
|
|
|
|
@@ -54,6 +55,20 @@ export class Slider extends BaseSlider {
|
|
this._markAsDirty();
|
|
this._markAsDirty();
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ /** Gets or sets thumb's color */
|
|
|
|
+ public get thumbColor(): string {
|
|
|
|
+ return this._thumbColor;
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ public set thumbColor(value: string) {
|
|
|
|
+ if (this._thumbColor === value) {
|
|
|
|
+ return;
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ this._thumbColor = value;
|
|
|
|
+ this._markAsDirty();
|
|
|
|
+ }
|
|
|
|
+
|
|
/** Gets or sets a boolean indicating if the thumb should be round or square */
|
|
/** Gets or sets a boolean indicating if the thumb should be round or square */
|
|
public get isThumbCircle(): boolean {
|
|
public get isThumbCircle(): boolean {
|
|
return this._isThumbCircle;
|
|
return this._isThumbCircle;
|
|
@@ -193,6 +208,7 @@ export class Slider extends BaseSlider {
|
|
}
|
|
}
|
|
|
|
|
|
// Thumb
|
|
// Thumb
|
|
|
|
+ context.fillStyle = this._thumbColor || this.color;
|
|
if (this.displayThumb) {
|
|
if (this.displayThumb) {
|
|
if (this.shadowBlur || this.shadowOffsetX || this.shadowOffsetY) {
|
|
if (this.shadowBlur || this.shadowOffsetX || this.shadowOffsetY) {
|
|
context.shadowColor = this.shadowColor;
|
|
context.shadowColor = this.shadowColor;
|