@nova-ui/dashboards 12.0.10-3652 → 12.0.10-3654

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.
@@ -457,10 +457,11 @@
457
457
  *
458
458
  * @returns The string representation of the converted value
459
459
  */
460
- this.transform = function (value, units) {
460
+ this.transform = function (value, units, defaultThreshold) {
461
461
  if (units === void 0) { units = "generic"; }
462
+ if (defaultThreshold === void 0) { defaultThreshold = DEFAULT_UNIT_CONVERSION_THRESHOLD; }
462
463
  var valueAsNumber = typeof value === "string" ? parseFloat(value) : value;
463
- if (valueAsNumber === undefined || isNaN(valueAsNumber) || valueAsNumber < DEFAULT_UNIT_CONVERSION_THRESHOLD) {
464
+ if (valueAsNumber === undefined || isNaN(valueAsNumber) || valueAsNumber < defaultThreshold) {
464
465
  return (value === null || value === void 0 ? void 0 : value.toString()) || "";
465
466
  }
466
467
  var conversion = _this.unitConversionService.convert(valueAsNumber, (units === "bytes") ? i2.UnitBase.Bytes : i2.UnitBase.Standard, 1);
@@ -6584,7 +6585,7 @@
6584
6585
  }
6585
6586
  case exports.TimeseriesScaleType.Linear: {
6586
6587
  scale = new i2$1.LinearScale();
6587
- scale.formatters.tick = function (value) { return _this.unitConversionPipe.transform(value, units); };
6588
+ scale.formatters.tick = function (value) { return _this.unitConversionPipe.transform(value, units, i2.UnitBase.Standard); };
6588
6589
  break;
6589
6590
  }
6590
6591
  case exports.TimeseriesScaleType.TimeInterval: {