evui 3.4.133 → 3.4.134

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.
@@ -11216,7 +11216,7 @@ $({ target: 'Number', stat: true }, {
11216
11216
  /***/ "9224":
11217
11217
  /***/ (function(module) {
11218
11218
 
11219
- module.exports = JSON.parse("{\"a\":\"3.4.133\"}");
11219
+ module.exports = JSON.parse("{\"a\":\"3.4.134\"}");
11220
11220
 
11221
11221
  /***/ }),
11222
11222
 
@@ -42108,7 +42108,11 @@ var element_line_Line = /*#__PURE__*/function () {
42108
42108
  });
42109
42109
 
42110
42110
  if (validData.length === 0) {
42111
- return item;
42111
+ gdata.forEach(function (point, idx) {
42112
+ validData.push(_objectSpread2(_objectSpread2({}, point), {}, {
42113
+ originalIndex: idx
42114
+ }));
42115
+ });
42112
42116
  } // 이진 탐색으로 가장 가까운 포인트 찾기
42113
42117
 
42114
42118
 
@@ -51966,10 +51970,7 @@ var plugins_interaction_modules = {
51966
51970
  */
51967
51971
  findClosestDataIndex: function findClosestDataIndex(offset, sIds) {
51968
51972
  var _this5 = this,
51969
- _this$seriesList$refe,
51970
- _this$seriesList,
51971
- _this$seriesList$refe2,
51972
- _this$seriesList$refe3;
51973
+ _this$seriesList$refe;
51973
51974
 
51974
51975
  var _offset = _slicedToArray(offset, 2),
51975
51976
  xp = _offset[0],
@@ -52024,7 +52025,7 @@ var plugins_interaction_modules = {
52024
52025
  }
52025
52026
  }
52026
52027
 
52027
- var closestDistance = (_this$seriesList = this.seriesList) !== null && _this$seriesList !== void 0 && (_this$seriesList$refe2 = _this$seriesList[referenceSeries]) !== null && _this$seriesList$refe2 !== void 0 && (_this$seriesList$refe3 = _this$seriesList$refe2.useLinearInterpolation) !== null && _this$seriesList$refe3 !== void 0 && _this$seriesList$refe3.call(_this$seriesList$refe2) ? Infinity : avgInterval;
52028
+ var closestDistance = Infinity;
52028
52029
  var closestIndex = -1; // 각 라벨에서 가장 가까운 것 찾기
52029
52030
 
52030
52031
  var _loop = function _loop(_i) {
@@ -52065,6 +52066,22 @@ var plugins_interaction_modules = {
52065
52066
  _loop(_i);
52066
52067
  }
52067
52068
 
52069
+ if (closestDistance >= avgInterval) {
52070
+ var useLinearInterpolation = sIds.some(function (sId) {
52071
+ var series = _this5.seriesList[sId];
52072
+
52073
+ if (series !== null && series !== void 0 && series.show) {
52074
+ var passingValue = series.passingValue;
52075
+ var interpolation = series.interpolation;
52076
+ var hasPassingValueInData = series.hasPassingValueInData;
52077
+ return interpolation === 'linear' || interpolation === 'none' && !!passingValue && hasPassingValueInData;
52078
+ }
52079
+
52080
+ return false;
52081
+ });
52082
+ return useLinearInterpolation ? closestIndex : -1;
52083
+ }
52084
+
52068
52085
  return closestIndex;
52069
52086
  },
52070
52087