evui 3.4.96 → 3.4.98
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 +6 -12
- package/dist/evui.common.js.map +1 -1
- package/dist/evui.umd.js +6 -12
- 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/plugins/plugins.tooltip.js +3 -3
- package/src/components/chart/scale/scale.step.js +7 -8
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.98\"}");
|
|
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);
|
|
@@ -51836,7 +51833,6 @@ var plugins_tooltip_modules = {
|
|
|
51836
51833
|
}); // 2. Draw series name
|
|
51837
51834
|
|
|
51838
51835
|
ctx.fillStyle = typeof opt.fontColor.label === 'function' ? opt.fontColor.label(curTooltipInfo) : (_opt$fontColor$label = opt.fontColor.label) !== null && _opt$fontColor$label !== void 0 ? _opt$fontColor$label : opt.fontColor;
|
|
51839
|
-
ctx.textBaseline = 'Bottom';
|
|
51840
51836
|
var seriesNameSpaceWidth = opt.maxWidth - Math.round(ctx.measureText(maxValue).width) - boxPadding.l - boxPadding.r - seriesColorMarginRight - VALUE_MARGIN;
|
|
51841
51837
|
var xPos = itemX + seriesColorMarginRight;
|
|
51842
51838
|
var yPos = itemY;
|
|
@@ -51982,7 +51978,6 @@ var plugins_tooltip_modules = {
|
|
|
51982
51978
|
}); // 2. Draw value y names
|
|
51983
51979
|
|
|
51984
51980
|
ctx.fillStyle = typeof opt.fontColor.label === 'function' ? opt.fontColor.label(curTooltipInfo) : (_opt$fontColor$label2 = opt.fontColor.label) !== null && _opt$fontColor$label2 !== void 0 ? _opt$fontColor$label2 : opt.fontColor;
|
|
51985
|
-
ctx.textBaseline = 'Bottom';
|
|
51986
51981
|
|
|
51987
51982
|
if (this.axesY.length) {
|
|
51988
51983
|
ctx.fillText(this.axesY[hitAxis.y].getLabelFormat(hitItem.y), itemX + seriesColorMarginRight, itemY);
|
|
@@ -52099,7 +52094,6 @@ var plugins_tooltip_modules = {
|
|
|
52099
52094
|
}); // 2. Draw series name
|
|
52100
52095
|
|
|
52101
52096
|
ctx.fillStyle = typeof opt.fontColor.label === 'function' ? opt.fontColor.label(curTooltipInfo) : (_opt$fontColor$label3 = opt.fontColor.label) !== null && _opt$fontColor$label3 !== void 0 ? _opt$fontColor$label3 : opt.fontColor;
|
|
52102
|
-
ctx.textBaseline = 'Bottom';
|
|
52103
52097
|
var seriesNameSpaceWidth = opt.maxWidth - Math.round(ctx.measureText(maxValue).width) - boxPadding.l - boxPadding.r - seriesColorMarginRight - VALUE_MARGIN;
|
|
52104
52098
|
var xPos = itemX + seriesColorMarginRight;
|
|
52105
52099
|
var yPos = itemY;
|