evui 3.4.139 → 3.4.140
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.
- package/dist/evui.common.js +9 -37
- package/dist/evui.common.js.map +1 -1
- package/dist/evui.umd.js +9 -37
- package/dist/evui.umd.js.map +1 -1
- package/dist/evui.umd.min.js +1 -1
- package/dist/evui.umd.min.js.map +1 -1
- package/package.json +1 -1
- package/src/components/chart/scale/scale.linear.js +6 -14
- package/src/components/chart/scale/scale.step.js +0 -10
- package/src/components/chart/scale/scale.time.category.js +0 -9
- package/src/components/chart/scale/scale.time.js +0 -10
package/dist/evui.common.js
CHANGED
|
@@ -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.
|
|
11194
|
+
module.exports = JSON.parse("{\"a\":\"3.4.140\"}");
|
|
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: "
|
|
46306
|
+
key: "getTruthyValue",
|
|
46316
46307
|
|
|
46317
46308
|
/**
|
|
46318
46309
|
* Transforming label by designated format
|
|
@@ -46321,13 +46312,18 @@ 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(
|
|
46324
|
+
var formattedLabel = this.formatter(this.getTruthyValue(value), _objectSpread2(_objectSpread2({}, data), {}, {
|
|
46329
46325
|
prevOriginalValue: data === null || data === void 0 ? void 0 : data.prev,
|
|
46330
|
-
prevDecimalPointValue:
|
|
46326
|
+
prevDecimalPointValue: this.getTruthyValue(data === null || data === void 0 ? void 0 : data.prev),
|
|
46331
46327
|
currentOriginalValue: value,
|
|
46332
46328
|
currentDecimalPointValue: Number(value.toFixed(this.decimalPoint))
|
|
46333
46329
|
}));
|
|
@@ -46337,14 +46333,6 @@ var scale_linear_LinearScale = /*#__PURE__*/function (_Scale) {
|
|
|
46337
46333
|
}
|
|
46338
46334
|
}
|
|
46339
46335
|
|
|
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
46336
|
return helpers_util.labelSignFormat(value, this.decimalPoint);
|
|
46349
46337
|
}
|
|
46350
46338
|
/**
|
|
@@ -47038,14 +47026,6 @@ var scale_step_StepScale = /*#__PURE__*/function (_Scale) {
|
|
|
47038
47026
|
}
|
|
47039
47027
|
}
|
|
47040
47028
|
|
|
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
47029
|
return this.labelStyle.fitWidth ? this.fittingString(value, maxWidth) : value;
|
|
47050
47030
|
}
|
|
47051
47031
|
/**
|
|
@@ -47122,14 +47102,6 @@ var scale_time_category_TimeCategoryScale = /*#__PURE__*/function (_Scale) {
|
|
|
47122
47102
|
}
|
|
47123
47103
|
}
|
|
47124
47104
|
|
|
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
47105
|
return dayjs_min_default()(value).format(this.timeFormat);
|
|
47134
47106
|
}
|
|
47135
47107
|
/**
|