tvcharts 0.7.87 → 0.7.89

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.
@@ -49,8 +49,9 @@ var NormalBoxPath = /** @class */function (_super) {
49
49
  var point4 = points[index++];
50
50
  if (isSimpleBox) {
51
51
  var x = point1[0];
52
+ var isSame = point1[1] === point3[1];
52
53
  ctx.moveTo(x, point1[1]);
53
- ctx.lineTo(x, point3[1]);
54
+ ctx.lineTo(x, isSame ? point1[1] + 1 : point3[1]);
54
55
  } else {
55
56
  ctx.moveTo(point1[0], point1[1]);
56
57
  ctx.lineTo(point2[0], point2[1]);
@@ -300,7 +300,7 @@ var LinesPlotView = /** @class */function (_super) {
300
300
  var _b = getFormatColor(stroke),
301
301
  color = _b.color,
302
302
  isDefaultColor = _b.isDefaultColor;
303
- if (stroke === 'transparent') {
303
+ if (stroke === 'transparent' && !visualColor_1) {
304
304
  return;
305
305
  }
306
306
  var el = new LinePlotPath({
@@ -270,7 +270,7 @@ var AlarmView = /** @class */function (_super) {
270
270
  fill: contrastColor(color),
271
271
  backgroundColor: removeTransparency(color)
272
272
  };
273
- var labelText = value.toFixed(precision);
273
+ var labelText = (+value).toFixed(precision);
274
274
  var labelX = isRight ? x : getLeftTextX(x, labelText, labelStyle, this.ecModel);
275
275
  var labelEl = new Text({
276
276
  style: __assign(__assign({}, labelStyle), {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tvcharts",
3
- "version": "0.7.87",
3
+ "version": "0.7.89",
4
4
  "description": "基于echarts5.5.0二次开发",
5
5
  "license": "Apache-2.0",
6
6
  "keywords": [