evui 3.3.57 → 3.3.58

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.umd.js CHANGED
@@ -8054,7 +8054,7 @@ $({ target: 'Number', stat: true }, {
8054
8054
  /***/ "9224":
8055
8055
  /***/ (function(module) {
8056
8056
 
8057
- module.exports = JSON.parse("{\"a\":\"3.3.57\"}");
8057
+ module.exports = JSON.parse("{\"a\":\"3.3.58\"}");
8058
8058
 
8059
8059
  /***/ }),
8060
8060
 
@@ -35708,18 +35708,21 @@ var element_line_Line = /*#__PURE__*/function () {
35708
35708
  } // Draw points
35709
35709
 
35710
35710
 
35711
- if (!isBrush && (this.point || useSelectLabel)) {
35711
+ if (!isBrush) {
35712
35712
  ctx.strokeStyle = helpers_util.colorStringToRgba(mainColor, mainColorOpacity);
35713
35713
  var focusStyle = helpers_util.colorStringToRgba(pointFillColor, 1);
35714
35714
  var blurStyle = helpers_util.colorStringToRgba(pointFillColor, pointFillColorOpacity);
35715
35715
  this.data.forEach(function (curr, ix) {
35716
- var isSelectedLabel = selectedLabelIndexList.includes(ix);
35716
+ var _this2$data, _this2$data2;
35717
35717
 
35718
35718
  if (curr.xp === null || curr.yp === null) {
35719
35719
  return;
35720
35720
  }
35721
35721
 
35722
- if (_this2.point || isSelectedLabel) {
35722
+ var isSingle = ((_this2$data = _this2.data[ix - 1]) === null || _this2$data === void 0 ? void 0 : _this2$data.o) === null && ((_this2$data2 = _this2.data[ix + 1]) === null || _this2$data2 === void 0 ? void 0 : _this2$data2.o) === null;
35723
+ var isSelectedLabel = selectedLabelIndexList.includes(ix);
35724
+
35725
+ if (_this2.point || isSingle || isSelectedLabel) {
35723
35726
  ctx.fillStyle = isSelectedLabel && !legendHitInfo ? focusStyle : blurStyle;
35724
35727
  helpers_canvas.drawPoint(ctx, _this2.pointStyle, _this2.pointSize, curr.xp, curr.yp);
35725
35728
  }