evui 3.4.96 → 3.4.97
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
CHANGED
|
@@ -11245,7 +11245,7 @@ $({ target: 'Number', stat: true }, {
|
|
|
11245
11245
|
/***/ "9224":
|
|
11246
11246
|
/***/ (function(module) {
|
|
11247
11247
|
|
|
11248
|
-
module.exports = JSON.parse("{\"a\":\"3.4.
|
|
11248
|
+
module.exports = JSON.parse("{\"a\":\"3.4.97\"}");
|
|
11249
11249
|
|
|
11250
11250
|
/***/ }),
|
|
11251
11251
|
|
|
@@ -46195,28 +46195,25 @@ var scale_step_StepScale = /*#__PURE__*/function (_Scale) {
|
|
|
46195
46195
|
|
|
46196
46196
|
if (alignToGridLine && index >= this.labels.length) {
|
|
46197
46197
|
var cellInterval = bnMinus(+labels[1], +labels[0]);
|
|
46198
|
-
var
|
|
46198
|
+
var lastLabelValue = bnPlus(+labels[labels.length - 1], cellInterval);
|
|
46199
46199
|
|
|
46200
|
-
if (indexInterval !== 1 && bnMinus(
|
|
46200
|
+
if (isNaN(lastLabelValue) || indexInterval !== 1 && bnMinus(lastLabelValue, drawnLabels[drawnLabels.length - 1]) <= cellInterval) {
|
|
46201
46201
|
return;
|
|
46202
46202
|
}
|
|
46203
46203
|
|
|
46204
|
-
if (isNaN(labelLastText)) {
|
|
46205
|
-
labelLastText = 'Max';
|
|
46206
|
-
}
|
|
46207
|
-
|
|
46208
46204
|
labelCenter = Math.round(startPoint + labelGap * labels.length);
|
|
46209
46205
|
linePosition = labelCenter + aliasPixel;
|
|
46206
|
+
var lastLabelText = this.getLabelFormat("".concat(lastLabelValue), maxWidth);
|
|
46210
46207
|
|
|
46211
46208
|
if (this.type === 'x') {
|
|
46212
|
-
ctx.fillText(
|
|
46209
|
+
ctx.fillText(lastLabelText, labelCenter, labelPoint);
|
|
46213
46210
|
|
|
46214
46211
|
if (this.showGrid) {
|
|
46215
46212
|
ctx.moveTo(linePosition, offsetPoint);
|
|
46216
46213
|
ctx.lineTo(linePosition, offsetCounterPoint);
|
|
46217
46214
|
}
|
|
46218
46215
|
} else {
|
|
46219
|
-
ctx.fillText(
|
|
46216
|
+
ctx.fillText(lastLabelText, labelPoint, labelCenter);
|
|
46220
46217
|
|
|
46221
46218
|
if (this.showGrid) {
|
|
46222
46219
|
ctx.moveTo(offsetPoint, linePosition);
|