evui 3.4.147 → 3.4.149

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.
@@ -11227,7 +11227,7 @@ var update = add("9519e5b6", content, true, {"sourceMap":false,"shadowMode":fals
11227
11227
  /***/ "9224":
11228
11228
  /***/ (function(module) {
11229
11229
 
11230
- module.exports = JSON.parse("{\"a\":\"3.4.147\"}");
11230
+ module.exports = JSON.parse("{\"a\":\"3.4.149\"}");
11231
11231
 
11232
11232
  /***/ }),
11233
11233
 
@@ -14958,6 +14958,22 @@ addToUnscopables('values');
14958
14958
  addToUnscopables('entries');
14959
14959
 
14960
14960
 
14961
+ /***/ }),
14962
+
14963
+ /***/ "e285":
14964
+ /***/ (function(module, exports, __webpack_require__) {
14965
+
14966
+ var global = __webpack_require__("da84");
14967
+
14968
+ var globalIsFinite = global.isFinite;
14969
+
14970
+ // `Number.isFinite` method
14971
+ // https://tc39.github.io/ecma262/#sec-number.isfinite
14972
+ module.exports = Number.isFinite || function isFinite(it) {
14973
+ return typeof it == 'number' && globalIsFinite(it);
14974
+ };
14975
+
14976
+
14961
14977
  /***/ }),
14962
14978
 
14963
14979
  /***/ "e2cc":
@@ -15764,6 +15780,19 @@ module.exports = exports;
15764
15780
  /* unused harmony reexport * */
15765
15781
 
15766
15782
 
15783
+ /***/ }),
15784
+
15785
+ /***/ "f00c":
15786
+ /***/ (function(module, exports, __webpack_require__) {
15787
+
15788
+ var $ = __webpack_require__("23e7");
15789
+ var numberIsFinite = __webpack_require__("e285");
15790
+
15791
+ // `Number.isFinite` method
15792
+ // https://tc39.github.io/ecma262/#sec-number.isfinite
15793
+ $({ target: 'Number', stat: true }, { isFinite: numberIsFinite });
15794
+
15795
+
15767
15796
  /***/ }),
15768
15797
 
15769
15798
  /***/ "f069":
@@ -38357,6 +38386,9 @@ function _createClass(Constructor, protoProps, staticProps) {
38357
38386
  if (staticProps) _defineProperties(Constructor, staticProps);
38358
38387
  return Constructor;
38359
38388
  }
38389
+ // EXTERNAL MODULE: ./node_modules/core-js/modules/es.number.is-finite.js
38390
+ var es_number_is_finite = __webpack_require__("f00c");
38391
+
38360
38392
  // EXTERNAL MODULE: ./node_modules/core-js/modules/es.object.entries.js
38361
38393
  var es_object_entries = __webpack_require__("4fad");
38362
38394
 
@@ -38910,6 +38942,8 @@ var textMeasureCtx = textMeasureCanvas.getContext('2d');
38910
38942
 
38911
38943
 
38912
38944
 
38945
+
38946
+
38913
38947
 
38914
38948
 
38915
38949
 
@@ -39128,21 +39162,42 @@ var modules = {
39128
39162
  this.dataSet[key].dataGroup[index].max = Math.max(this.dataSet[key].dataGroup[index].max, _item.y);
39129
39163
  this.dataSet[key].dataGroup[index].min = Math.min(this.dataSet[key].dataGroup[index].min, _item.y);
39130
39164
  }
39131
- }
39165
+ } // 실제 차트에 그려지는 데이터(fromTime ~ toTime 범위)에서만 min/max 계산
39166
+
39132
39167
 
39133
39168
  var tempMinMax = {
39134
- maxY: 0,
39169
+ maxY: -Infinity,
39135
39170
  minY: Infinity
39136
39171
  };
39172
+ var _this$dataSet$key = this.dataSet[key],
39173
+ fromTime = _this$dataSet$key.fromTime,
39174
+ toTime = _this$dataSet$key.toTime;
39137
39175
 
39138
39176
  for (var _i4 = 0; _i4 < this.dataSet[key].length; _i4++) {
39139
- if (this.dataSet[key].dataGroup[_i4].max > tempMinMax.maxY) {
39140
- tempMinMax.maxY = this.dataSet[key].dataGroup[_i4].max;
39141
- }
39177
+ var groupData = this.dataSet[key].dataGroup[_i4].data;
39178
+
39179
+ for (var j = 0; j < groupData.length; j++) {
39180
+ var _item2 = groupData[j]; // 현재 시간 범위 내의 데이터만 minMax 계산에 포함
39142
39181
 
39143
- if (this.dataSet[key].dataGroup[_i4].min < tempMinMax.minY) {
39144
- tempMinMax.minY = this.dataSet[key].dataGroup[_i4].min;
39182
+ if (_item2.x >= fromTime && _item2.x <= toTime) {
39183
+ if (_item2.y > tempMinMax.maxY) {
39184
+ tempMinMax.maxY = _item2.y;
39185
+ }
39186
+
39187
+ if (_item2.y < tempMinMax.minY) {
39188
+ tempMinMax.minY = _item2.y;
39189
+ }
39190
+ }
39145
39191
  }
39192
+ } // 유효한 데이터가 없는 경우 기본값 설정
39193
+
39194
+
39195
+ if (!Number.isFinite(tempMinMax.maxY)) {
39196
+ tempMinMax.maxY = 0;
39197
+ }
39198
+
39199
+ if (!Number.isFinite(tempMinMax.minY)) {
39200
+ tempMinMax.minY = 0;
39146
39201
  }
39147
39202
 
39148
39203
  minMaxValues.maxY = Math.max(minMaxValues.maxY, tempMinMax.maxY);
@@ -54040,14 +54095,13 @@ var plugins_tooltip_modules = {
54040
54095
  }
54041
54096
 
54042
54097
  var horizontal = this.options.horizontal;
54098
+ var rect = this.chartDOM.getBoundingClientRect();
54043
54099
 
54044
- var _this$chartDOM$getBou2 = this.chartDOM.getBoundingClientRect(),
54045
- top = _this$chartDOM$getBou2.top,
54046
- bottom = _this$chartDOM$getBou2.bottom,
54047
- left = _this$chartDOM$getBou2.left,
54048
- right = _this$chartDOM$getBou2.right;
54100
+ var _mousePosition2 = _slicedToArray(mousePosition, 2),
54101
+ mouseX = _mousePosition2[0],
54102
+ mouseY = _mousePosition2[1];
54049
54103
 
54050
- var isHoveredChart = lodash_es_inRange(mousePosition[0], left, right) && lodash_es_inRange(mousePosition[1], bottom, top);
54104
+ var isHoveredChart = lodash_es_inRange(mouseX, rect.left, rect.right) && lodash_es_inRange(mouseY, rect.bottom, rect.top);
54051
54105
 
54052
54106
  if (isHoveredChart) {
54053
54107
  return;
@@ -54064,25 +54118,64 @@ var plugins_tooltip_modules = {
54064
54118
  var indicatorPosition;
54065
54119
 
54066
54120
  if (horizontal) {
54067
- var _this$options$axesY;
54068
-
54069
- var chartHeight = graphPos.y2 - graphPos.y1; // CategoryMode인 경우 라벨들이 균등 간격으로 배치됨
54121
+ var _this$options$axesY, _this$options$axesY2;
54070
54122
 
54123
+ var chartHeight = graphPos.y2 - graphPos.y1;
54071
54124
  var isCategoryMode = (_this$options$axesY = this.options.axesY) === null || _this$options$axesY === void 0 ? void 0 : _this$options$axesY.some(function (axis) {
54072
54125
  return axis.categoryMode;
54073
54126
  });
54074
- var positionY = isCategoryMode ? graphPos.y1 + chartHeight * (matchingLabelIndex + 0.5) / labelsCount : graphPos.y1 + chartHeight * matchingLabelIndex / (labelsCount - 1);
54127
+ var isTimeAxis = (_this$options$axesY2 = this.options.axesY) === null || _this$options$axesY2 === void 0 ? void 0 : _this$options$axesY2.some(function (axis) {
54128
+ return axis.type === 'time';
54129
+ });
54130
+ var positionY;
54131
+
54132
+ if (isCategoryMode) {
54133
+ positionY = graphPos.y1 + chartHeight * (matchingLabelIndex + 0.5) / labelsCount;
54134
+ } else if (isTimeAxis) {
54135
+ var _this$axesSteps, _this$axesSteps$y, _axisStep$graphMin, _this$data$labels8, _axisStep$graphMax, _this$data$labels9;
54136
+
54137
+ // 틱 위치와 동일하게 graphMin/graphMax 사용
54138
+ var axisStep = (_this$axesSteps = this.axesSteps) === null || _this$axesSteps === void 0 ? void 0 : (_this$axesSteps$y = _this$axesSteps.y) === null || _this$axesSteps$y === void 0 ? void 0 : _this$axesSteps$y[0];
54139
+ var graphMin = (_axisStep$graphMin = axisStep === null || axisStep === void 0 ? void 0 : axisStep.graphMin) !== null && _axisStep$graphMin !== void 0 ? _axisStep$graphMin : +((_this$data$labels8 = this.data.labels) === null || _this$data$labels8 === void 0 ? void 0 : _this$data$labels8[0]);
54140
+ var graphMax = (_axisStep$graphMax = axisStep === null || axisStep === void 0 ? void 0 : axisStep.graphMax) !== null && _axisStep$graphMax !== void 0 ? _axisStep$graphMax : +((_this$data$labels9 = this.data.labels) === null || _this$data$labels9 === void 0 ? void 0 : _this$data$labels9[this.data.labels.length - 1]);
54141
+ positionY = graphPos.y1 + chartHeight * (+dataLabel - graphMin) / (graphMax - graphMin);
54142
+ } else {
54143
+ positionY = graphPos.y1 + chartHeight * matchingLabelIndex / (labelsCount - 1);
54144
+ }
54145
+
54075
54146
  indicatorPosition = [graphPos.x2, positionY];
54076
54147
  } else {
54077
- var _this$options$axesX;
54148
+ var _this$options$axesX, _this$options$axesX2;
54078
54149
 
54079
- var chartWidth = graphPos.x2 - graphPos.x1; // CategoryMode인 경우 라벨들이 균등 간격으로 배치됨
54150
+ var chartWidth = graphPos.x2 - graphPos.x1;
54080
54151
 
54081
54152
  var _isCategoryMode = (_this$options$axesX = this.options.axesX) === null || _this$options$axesX === void 0 ? void 0 : _this$options$axesX.some(function (axis) {
54082
54153
  return axis.categoryMode;
54083
54154
  });
54084
54155
 
54085
- var positionX = _isCategoryMode ? graphPos.x1 + chartWidth * (matchingLabelIndex + 0.5) / labelsCount : graphPos.x1 + chartWidth * matchingLabelIndex / (labelsCount - 1);
54156
+ var _isTimeAxis = (_this$options$axesX2 = this.options.axesX) === null || _this$options$axesX2 === void 0 ? void 0 : _this$options$axesX2.some(function (axis) {
54157
+ return axis.type === 'time';
54158
+ });
54159
+
54160
+ var positionX;
54161
+
54162
+ if (_isCategoryMode) {
54163
+ positionX = graphPos.x1 + chartWidth * (matchingLabelIndex + 0.5) / labelsCount;
54164
+ } else if (_isTimeAxis) {
54165
+ var _this$axesSteps2, _this$axesSteps2$x, _axisStep$graphMin2, _this$data$labels10, _axisStep$graphMax2, _this$data$labels11;
54166
+
54167
+ // 틱 위치와 동일하게 graphMin/graphMax 사용
54168
+ var _axisStep = (_this$axesSteps2 = this.axesSteps) === null || _this$axesSteps2 === void 0 ? void 0 : (_this$axesSteps2$x = _this$axesSteps2.x) === null || _this$axesSteps2$x === void 0 ? void 0 : _this$axesSteps2$x[0];
54169
+
54170
+ var _graphMin = (_axisStep$graphMin2 = _axisStep === null || _axisStep === void 0 ? void 0 : _axisStep.graphMin) !== null && _axisStep$graphMin2 !== void 0 ? _axisStep$graphMin2 : +((_this$data$labels10 = this.data.labels) === null || _this$data$labels10 === void 0 ? void 0 : _this$data$labels10[0]);
54171
+
54172
+ var _graphMax = (_axisStep$graphMax2 = _axisStep === null || _axisStep === void 0 ? void 0 : _axisStep.graphMax) !== null && _axisStep$graphMax2 !== void 0 ? _axisStep$graphMax2 : +((_this$data$labels11 = this.data.labels) === null || _this$data$labels11 === void 0 ? void 0 : _this$data$labels11[this.data.labels.length - 1]);
54173
+
54174
+ positionX = graphPos.x1 + chartWidth * (+dataLabel - _graphMin) / (_graphMax - _graphMin);
54175
+ } else {
54176
+ positionX = graphPos.x1 + chartWidth * matchingLabelIndex / (labelsCount - 1);
54177
+ }
54178
+
54086
54179
  indicatorPosition = [positionX, graphPos.y2];
54087
54180
  }
54088
54181
 
@@ -56325,7 +56418,6 @@ var chart_core_EvChart = /*#__PURE__*/function () {
56325
56418
  this.axesRange = null;
56326
56419
  this.labelOffset = null;
56327
56420
  this.chartRect = null;
56328
- this.pieDataSet = [];
56329
56421
  }
56330
56422
  /**
56331
56423
  * Clear overlay canvas