evui 3.4.139 → 3.4.141

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.
@@ -11191,7 +11191,7 @@ $({ target: 'Number', stat: true }, {
11191
11191
  /***/ "9224":
11192
11192
  /***/ (function(module) {
11193
11193
 
11194
- module.exports = JSON.parse("{\"a\":\"3.4.139\"}");
11194
+ module.exports = JSON.parse("{\"a\":\"3.4.141\"}");
11195
11195
 
11196
11196
  /***/ }),
11197
11197
 
@@ -46213,7 +46213,6 @@ var scale_Scale = /*#__PURE__*/function () {
46213
46213
 
46214
46214
 
46215
46215
 
46216
-
46217
46216
  var scale_time_TimeScale = /*#__PURE__*/function (_Scale) {
46218
46217
  _inherits(TimeScale, _Scale);
46219
46218
 
@@ -46246,14 +46245,6 @@ var scale_time_TimeScale = /*#__PURE__*/function (_Scale) {
46246
46245
  }
46247
46246
  }
46248
46247
 
46249
- var _this$labelStyle = this.labelStyle,
46250
- fixWidth = _this$labelStyle.fixWidth,
46251
- fitDir = _this$labelStyle.fitDir;
46252
-
46253
- if (fixWidth > 0) {
46254
- return helpers_util.truncateLabelWithEllipsis(dayjs_min_default()(value).format(this.timeFormat), fixWidth, this.ctx, fitDir);
46255
- }
46256
-
46257
46248
  return dayjs_min_default()(value).format(this.timeFormat);
46258
46249
  }
46259
46250
  /**
@@ -46312,7 +46303,7 @@ var scale_linear_LinearScale = /*#__PURE__*/function (_Scale) {
46312
46303
  }
46313
46304
 
46314
46305
  _createClass(LinearScale, [{
46315
- key: "getLabelFormat",
46306
+ key: "getTruthyValue",
46316
46307
 
46317
46308
  /**
46318
46309
  * Transforming label by designated format
@@ -46321,15 +46312,21 @@ var scale_linear_LinearScale = /*#__PURE__*/function (_Scale) {
46321
46312
  *
46322
46313
  * @returns {string} formatted label
46323
46314
  */
46315
+ value: function getTruthyValue(value) {
46316
+ return truthyNumber(value) ? Number(value.toFixed(this.decimalPoint)) : value;
46317
+ }
46318
+ }, {
46319
+ key: "getLabelFormat",
46324
46320
  value: function getLabelFormat(value) {
46325
46321
  var data = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
46326
46322
 
46327
46323
  if (this.formatter) {
46328
- var formattedLabel = this.formatter(Number(value.toFixed(this.decimalPoint)), _objectSpread2(_objectSpread2({}, data), {}, {
46324
+ var currentDecimalPointValue = this.getTruthyValue(value);
46325
+ var formattedLabel = this.formatter(currentDecimalPointValue, _objectSpread2(_objectSpread2({}, data), {}, {
46329
46326
  prevOriginalValue: data === null || data === void 0 ? void 0 : data.prev,
46330
- prevDecimalPointValue: truthyNumber(data === null || data === void 0 ? void 0 : data.prev) ? Number(data === null || data === void 0 ? void 0 : data.prev.toFixed(this.decimalPoint)) : null,
46327
+ prevDecimalPointValue: this.getTruthyValue(data === null || data === void 0 ? void 0 : data.prev),
46331
46328
  currentOriginalValue: value,
46332
- currentDecimalPointValue: Number(value.toFixed(this.decimalPoint))
46329
+ currentDecimalPointValue: currentDecimalPointValue
46333
46330
  }));
46334
46331
 
46335
46332
  if (typeof formattedLabel === 'string') {
@@ -46337,14 +46334,6 @@ var scale_linear_LinearScale = /*#__PURE__*/function (_Scale) {
46337
46334
  }
46338
46335
  }
46339
46336
 
46340
- var _this$labelStyle = this.labelStyle,
46341
- fixWidth = _this$labelStyle.fixWidth,
46342
- fitDir = _this$labelStyle.fitDir;
46343
-
46344
- if (fixWidth > 0) {
46345
- return helpers_util.truncateLabelWithEllipsis(helpers_util.labelSignFormat(value, this.decimalPoint), fixWidth, this.ctx, fitDir);
46346
- }
46347
-
46348
46337
  return helpers_util.labelSignFormat(value, this.decimalPoint);
46349
46338
  }
46350
46339
  /**
@@ -47038,14 +47027,6 @@ var scale_step_StepScale = /*#__PURE__*/function (_Scale) {
47038
47027
  }
47039
47028
  }
47040
47029
 
47041
- var _this$labelStyle5 = this.labelStyle,
47042
- fixWidth = _this$labelStyle5.fixWidth,
47043
- fitDir = _this$labelStyle5.fitDir;
47044
-
47045
- if (fixWidth > 0) {
47046
- return helpers_util.truncateLabelWithEllipsis(helpers_util.labelSignFormat(value, this.decimalPoint), fixWidth, this.ctx, fitDir);
47047
- }
47048
-
47049
47030
  return this.labelStyle.fitWidth ? this.fittingString(value, maxWidth) : value;
47050
47031
  }
47051
47032
  /**
@@ -47122,14 +47103,6 @@ var scale_time_category_TimeCategoryScale = /*#__PURE__*/function (_Scale) {
47122
47103
  }
47123
47104
  }
47124
47105
 
47125
- var _this$labelStyle = this.labelStyle,
47126
- fixWidth = _this$labelStyle.fixWidth,
47127
- fitDir = _this$labelStyle.fitDir;
47128
-
47129
- if (fixWidth > 0) {
47130
- return helpers_util.truncateLabelWithEllipsis(dayjs_min_default()(value).format(this.timeFormat), fixWidth, this.ctx, fitDir);
47131
- }
47132
-
47133
47106
  return dayjs_min_default()(value).format(this.timeFormat);
47134
47107
  }
47135
47108
  /**