@colijnit/sharedcomponents 1.0.35 → 1.0.37

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -3224,7 +3224,7 @@
3224
3224
  }
3225
3225
  };
3226
3226
  CoCircularGaugeComponent.prototype._setColor = function () {
3227
- if (this.value == 0) {
3227
+ if (this.value <= 0) {
3228
3228
  this._color = GaugeColor.Lowest;
3229
3229
  }
3230
3230
  else if (this.value >= 1 && this.value < 25) {
@@ -3239,7 +3239,7 @@
3239
3239
  else if (this.value >= 75 && this.value < 100) {
3240
3240
  this._color = GaugeColor.High;
3241
3241
  }
3242
- else if (this.value == 100) {
3242
+ else if (this.value >= 100) {
3243
3243
  this._color = GaugeColor.Highest;
3244
3244
  }
3245
3245
  };
@@ -3300,7 +3300,7 @@
3300
3300
  return "linear-gradient(90deg, " + this.color + " 0 " + this.value + "%, white " + this.value + "% 100%";
3301
3301
  };
3302
3302
  CoLinearGaugeComponent.prototype._setColor = function () {
3303
- if (this.value == 0) {
3303
+ if (this.value <= 0) {
3304
3304
  this.color = GaugeColor.Lowest;
3305
3305
  }
3306
3306
  else if (this.value >= 1 && this.value < 25) {
@@ -3315,7 +3315,7 @@
3315
3315
  else if (this.value >= 75 && this.value < 100) {
3316
3316
  this.color = GaugeColor.High;
3317
3317
  }
3318
- else if (this.value == 100) {
3318
+ else if (this.value >= 100) {
3319
3319
  this.color = GaugeColor.Highest;
3320
3320
  }
3321
3321
  };