evui 3.4.115 → 3.4.116

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.
@@ -11171,7 +11171,7 @@ module.exports = exports;
11171
11171
  /***/ "9224":
11172
11172
  /***/ (function(module) {
11173
11173
 
11174
- module.exports = JSON.parse("{\"a\":\"3.4.115\"}");
11174
+ module.exports = JSON.parse("{\"a\":\"3.4.116\"}");
11175
11175
 
11176
11176
  /***/ }),
11177
11177
 
@@ -38817,17 +38817,7 @@ var modules = {
38817
38817
  } else {
38818
38818
  seriesIDs.forEach(function (seriesID) {
38819
38819
  var series = _this.seriesList[seriesID];
38820
- var sData = data[seriesID].map(function (item) {
38821
- if (series.interpolation === 'zero' && !item) {
38822
- return 0;
38823
- }
38824
-
38825
- if (item === series.passingValue) {
38826
- return null;
38827
- }
38828
-
38829
- return item;
38830
- });
38820
+ var sData = data[seriesID];
38831
38821
 
38832
38822
  if (series && sData) {
38833
38823
  if (series.isExistGrp && series.stackIndex && !series.isOverlapping) {
@@ -39221,9 +39211,7 @@ var modules = {
39221
39211
  * @param {array} bsIds stacked base data ID List
39222
39212
  * @param {number} sIdx series ordered index
39223
39213
  *
39224
- * @typedef {import('./index').ChartSeriesDataPoint} ChartSeriesDataPoint
39225
- *
39226
- * @returns {ChartSeriesDataPoint[]} data for each series
39214
+ * @returns {array} data for each series
39227
39215
  */
39228
39216
  addSeriesStackDS: function addSeriesStackDS(data, label, bsIds) {
39229
39217
  var _this4 = this;
@@ -39275,7 +39263,8 @@ var modules = {
39275
39263
  if (oData != null) {
39276
39264
  gdata = bdata + oData;
39277
39265
  } else {
39278
- gdata = odata;
39266
+ gdata = null;
39267
+ bdata = 0;
39279
39268
  }
39280
39269
  } else {
39281
39270
  bdata = 0;
@@ -39294,9 +39283,7 @@ var modules = {
39294
39283
  * @param {object} label chart label
39295
39284
  * @param {boolean} isBase is Base(bottommost) series at stack chart
39296
39285
  *
39297
- * @typedef {import('./index').ChartSeriesDataPoint} ChartSeriesDataPoint
39298
- *
39299
- * @returns {ChartSeriesDataPoint[]} data for each series
39286
+ * @returns {array} data for each series
39300
39287
  */
39301
39288
  addSeriesDS: function addSeriesDS(data, label, isBase) {
39302
39289
  var _this$seriesList$Obje,
@@ -39373,10 +39360,7 @@ var modules = {
39373
39360
  * @param {object} ldata label data (x-axis value for vertical chart)
39374
39361
  * @param {object} odata original data (without stacked value)
39375
39362
  * @param {object} bdata base data (stacked value)
39376
- *
39377
- * @typedef {import('./index').ChartSeriesDataPoint} ChartSeriesDataPoint
39378
- *
39379
- * @returns {ChartSeriesDataPoint} data for each graph point
39363
+ * @returns {object} data for each graph point
39380
39364
  */
39381
39365
  addData: function addData(gdata, ldata) {
39382
39366
  var _gdataColor;
@@ -39952,18 +39936,12 @@ var modules = {
39952
39936
  return result;
39953
39937
  },
39954
39938
 
39955
- /**
39956
- * @typedef {Object} LabelInfoResult
39957
- * @property {number} labelIndex - 선택된 라벨의 인덱스
39958
- * @property {object} hitInfo - 해당 위치에서의 히트 정보 (getItemByPosition 반환값)
39959
- */
39960
-
39961
39939
  /**
39962
39940
  * Find label info by position x and y
39963
39941
  * @param {array} offset position x and y
39964
39942
  * @param {string | null} targetAxis target Axis Location ('xAxis', 'yAxis' , null)
39965
39943
  *
39966
- * @returns {LabelInfoResult} clicked label information
39944
+ * @returns {object} clicked label information
39967
39945
  */
39968
39946
  getLabelInfoByPosition: function getLabelInfoByPosition(offset, targetAxis) {
39969
39947
  var _Object$values$sort$, _Object$values$sort$2, _scrollbarOpt, _scale, _scale$labels, _scale3, _scale3$labels;
@@ -40070,14 +40048,11 @@ var modules = {
40070
40048
 
40071
40049
  /**
40072
40050
  * Get current mouse target label value in label array or calculated using mouse position
40073
- *
40074
- * @typedef {import('./index').MouseLabelValue} MouseLabelValue
40075
- *
40076
40051
  * @param {string} targetAxis target Axis Location ('xAxis', 'yAxis')
40077
40052
  * @param {array} offset return value from getMousePosition()
40078
40053
  * @param {number} labelIndex
40079
40054
  *
40080
- * @returns {MouseLabelValue} current mouse target label value
40055
+ * @returns {object} current mouse target label value
40081
40056
  */
40082
40057
  getCurMouseLabelVal: function getCurMouseLabelVal(targetAxis, offset, labelIndex) {
40083
40058
  var _this9 = this;
@@ -41107,57 +41082,6 @@ var defaultsDeep = _baseRest(function(args) {
41107
41082
 
41108
41083
  /* harmony default export */ var lodash_es_defaultsDeep = (defaultsDeep);
41109
41084
 
41110
- // CONCATENATED MODULE: ./node_modules/lodash-es/isNil.js
41111
- /**
41112
- * Checks if `value` is `null` or `undefined`.
41113
- *
41114
- * @static
41115
- * @memberOf _
41116
- * @since 4.0.0
41117
- * @category Lang
41118
- * @param {*} value The value to check.
41119
- * @returns {boolean} Returns `true` if `value` is nullish, else `false`.
41120
- * @example
41121
- *
41122
- * _.isNil(null);
41123
- * // => true
41124
- *
41125
- * _.isNil(void 0);
41126
- * // => true
41127
- *
41128
- * _.isNil(NaN);
41129
- * // => false
41130
- */
41131
- function isNil(value) {
41132
- return value == null;
41133
- }
41134
-
41135
- /* harmony default export */ var lodash_es_isNil = (isNil);
41136
-
41137
- // CONCATENATED MODULE: ./node_modules/lodash-es/isUndefined.js
41138
- /**
41139
- * Checks if `value` is `undefined`.
41140
- *
41141
- * @static
41142
- * @since 0.1.0
41143
- * @memberOf _
41144
- * @category Lang
41145
- * @param {*} value The value to check.
41146
- * @returns {boolean} Returns `true` if `value` is `undefined`, else `false`.
41147
- * @example
41148
- *
41149
- * _.isUndefined(void 0);
41150
- * // => true
41151
- *
41152
- * _.isUndefined(null);
41153
- * // => false
41154
- */
41155
- function isUndefined(value) {
41156
- return value === undefined;
41157
- }
41158
-
41159
- /* harmony default export */ var lodash_es_isUndefined = (isUndefined);
41160
-
41161
41085
  // CONCATENATED MODULE: ./src/components/chart/helpers/helpers.constant.js
41162
41086
  var AXIS_UNITS = {
41163
41087
  x: {
@@ -41205,8 +41129,7 @@ var LINE_OPTION = {
41205
41129
  fill: false,
41206
41130
  fillOpacity: 0.4,
41207
41131
  showLegend: true,
41208
- passingValue: null,
41209
- interpolation: 'none'
41132
+ passingValue: null
41210
41133
  };
41211
41134
  var BAR_OPTION = {
41212
41135
  show: true,
@@ -41393,13 +41316,13 @@ var TIME_INTERVALS = {
41393
41316
  /* harmony default export */ var helpers_canvas = ({
41394
41317
  /**
41395
41318
  * Calculate X position
41396
- * @param {number|null|undefined} value graph value
41319
+ * @param {any} value graph value
41397
41320
  * @param {number} min min value
41398
41321
  * @param {number} max max value
41399
41322
  * @param {number} area height for axis
41400
41323
  * @param {number} startPoint startPoint
41401
41324
  *
41402
- * @returns {number|null} position
41325
+ * @returns {any} position
41403
41326
  */
41404
41327
  calculateX: function calculateX(value, min, max, area) {
41405
41328
  var startPoint = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : 0;
@@ -41439,13 +41362,13 @@ var TIME_INTERVALS = {
41439
41362
 
41440
41363
  /**
41441
41364
  * Calculate Y position
41442
- * @param {number|null|undefined} value graph value
41365
+ * @param {any} value graph value
41443
41366
  * @param {number} min min value
41444
41367
  * @param {number} max max value
41445
41368
  * @param {number} area height for axis
41446
41369
  * @param {number} startPoint startPoint
41447
41370
  *
41448
- * @returns {number|null} position
41371
+ * @returns {any} position
41449
41372
  */
41450
41373
  calculateY: function calculateY(value, min, max, area) {
41451
41374
  var startPoint = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : 0;
@@ -41693,6 +41616,7 @@ var TIME_INTERVALS = {
41693
41616
 
41694
41617
 
41695
41618
 
41619
+
41696
41620
  var element_line_Line = /*#__PURE__*/function () {
41697
41621
  function Line(sId, opt, sIdx) {
41698
41622
  var _this = this;
@@ -41729,8 +41653,6 @@ var element_line_Line = /*#__PURE__*/function () {
41729
41653
  lineWidth: 2
41730
41654
  }
41731
41655
  };
41732
- /** @type {import('../model/index').ChartSeriesDataPoint[]} */
41733
-
41734
41656
  this.data = [];
41735
41657
  this.beforeMouseXp = 0;
41736
41658
  this.beforeMouseYp = 0;
@@ -41738,23 +41660,11 @@ var element_line_Line = /*#__PURE__*/function () {
41738
41660
  this.size = {
41739
41661
  comboOffset: 0
41740
41662
  };
41741
- this.useLinearInterpolation = this.interpolation === 'linear' || this.interpolation === 'none' && !!this.passingValue;
41663
+ this.usePassingValue = !!this.passingValue;
41742
41664
  }
41743
- /**
41744
- * @typedef {Object} LineDrawParam
41745
- * @property {CanvasRenderingContext2D} ctx - 캔버스 렌더링 컨텍스트
41746
- * @property {object} chartRect - 차트 영역 정보
41747
- * @property {object} labelOffset - 라벨 오프셋 정보
41748
- * @property {object} axesSteps - 축 스텝 정보
41749
- * @property {object} [selectLabel] - 선택된 라벨 정보
41750
- * @property {object} [selectSeries] - 선택된 시리즈 정보
41751
- * @property {object} [legendHitInfo] - 범례 히트 정보
41752
- * @property {boolean} [isBrush] - 브러시 사용 여부
41753
- */
41754
-
41755
41665
  /**
41756
41666
  * Draw series data
41757
- * @param {LineDrawParam} param object for drawing series data
41667
+ * @param {object} param object for drawing series data
41758
41668
  *
41759
41669
  * @returns {undefined}
41760
41670
  */
@@ -41823,6 +41733,8 @@ var element_line_Line = /*#__PURE__*/function () {
41823
41733
  }
41824
41734
 
41825
41735
  var endPoint = chartRect.y2 - labelOffset.bottom;
41736
+ var x;
41737
+ var y;
41826
41738
  var barAreaByCombo = 0;
41827
41739
  var minmaxX = axesSteps.x[this.xAxisIndex];
41828
41740
  var minmaxY = axesSteps.y[this.yAxisIndex];
@@ -41847,40 +41759,51 @@ var element_line_Line = /*#__PURE__*/function () {
41847
41759
  }; // draw line
41848
41760
 
41849
41761
 
41850
- var prevValid;
41851
- this.data.forEach(function (curr) {
41852
- var _prevValid, _prevValid2;
41853
-
41854
- var x = getXPos(curr.x);
41855
- var y = getYPos(curr.y);
41856
-
41857
- if (_this2.isExistGrp && _this2.useLinearInterpolation && curr.o === null) {
41858
- var _curr$b;
41859
-
41860
- y = getYPos((_curr$b = curr.b) !== null && _curr$b !== void 0 ? _curr$b : 0);
41861
- }
41762
+ var needCutoff = false;
41763
+ this.data.reduce(function (prev, curr) {
41764
+ x = getXPos(curr.x);
41765
+ y = getYPos(curr.y);
41862
41766
 
41863
41767
  if (x !== null) {
41864
41768
  x += helpers_util.aliasPixel(x);
41865
41769
  }
41866
41770
 
41867
- curr.xp = x;
41868
- curr.yp = y;
41771
+ if (_this2.usePassingValue) {
41772
+ if (curr.o === _this2.passingValue) {
41773
+ y = getYPos(prev.y);
41869
41774
 
41870
- if (_this2.useLinearInterpolation && curr.o === null) {
41871
- if (!_this2.isExistGrp) {
41872
- return;
41775
+ if (prev.o === null) {
41776
+ needCutoff = true;
41777
+ }
41778
+
41779
+ if (_this2.isExistGrp && !needCutoff) {
41780
+ var _curr$b;
41781
+
41782
+ y = getYPos((_curr$b = curr.b) !== null && _curr$b !== void 0 ? _curr$b : 0);
41783
+ ctx.lineTo(x, y);
41784
+ }
41785
+
41786
+ curr.xp = x;
41787
+ curr.yp = y;
41788
+ return curr;
41873
41789
  }
41874
41790
  }
41875
41791
 
41876
- if (lodash_es_isNil((_prevValid = prevValid) === null || _prevValid === void 0 ? void 0 : _prevValid.y) && !_this2.isExistGrp || !_this2.useLinearInterpolation && (lodash_es_isNil((_prevValid2 = prevValid) === null || _prevValid2 === void 0 ? void 0 : _prevValid2.y) || lodash_es_isNil(curr.o))) {
41792
+ var isNullValue = helpers_util.isNullOrUndefined(prev.o) || helpers_util.isNullOrUndefined(curr.o) || helpers_util.isNullOrUndefined(curr.x) || helpers_util.isNullOrUndefined(curr.y);
41793
+
41794
+ if (isNullValue || needCutoff) {
41877
41795
  ctx.moveTo(x, y);
41796
+ needCutoff = false;
41878
41797
  } else {
41879
41798
  ctx.lineTo(x, y);
41880
41799
  }
41881
41800
 
41882
- prevValid = curr;
41883
- });
41801
+ curr.xp = x; // eslint-disable-line
41802
+
41803
+ curr.yp = y; // eslint-disable-line
41804
+
41805
+ return curr;
41806
+ }, this.data[0]);
41884
41807
  ctx.stroke();
41885
41808
 
41886
41809
  if (this.segments) {
@@ -41920,22 +41843,20 @@ var element_line_Line = /*#__PURE__*/function () {
41920
41843
  var valueArray = this.data.map(function (item) {
41921
41844
  return item === null || item === void 0 ? void 0 : item.o;
41922
41845
  });
41923
- /** @type {Array<[number, number]>} */
41924
-
41925
41846
  var needFillDataIndexList = [];
41926
41847
 
41927
41848
  for (var i = 0; i < valueArray.length + 1; i++) {
41928
- if (this.useLinearInterpolation && lodash_es_isUndefined(valueArray[i]) || !this.useLinearInterpolation && lodash_es_isNil(valueArray[i])) {
41849
+ if (helpers_util.isNullOrUndefined(valueArray[i])) {
41929
41850
  if (start !== null && end !== null) {
41930
41851
  var temp = valueArray.slice(start, i);
41931
41852
  var lastNormalValueIndex = temp.findLastIndex(function (item) {
41932
- return !lodash_es_isNil(item) && item !== null;
41853
+ return item !== helpers_util.isNullOrUndefined(item) && item !== _this2.passingValue;
41933
41854
  });
41934
41855
  needFillDataIndexList.push([start, start + lastNormalValueIndex]);
41935
41856
  start = null;
41936
41857
  end = null;
41937
41858
  }
41938
- } else if (this.useLinearInterpolation && valueArray[i] === null) {
41859
+ } else if (valueArray[i] === this.passingValue) {
41939
41860
  end = i;
41940
41861
  } else {
41941
41862
  start = start === null ? i : start;
@@ -41965,7 +41886,7 @@ var element_line_Line = /*#__PURE__*/function () {
41965
41886
 
41966
41887
  if (ix === startIndex) {
41967
41888
  ctx.moveTo(currData.xp, currData.yp);
41968
- } else if (_this2.isExistGrp || currData.o !== null) {
41889
+ } else if (_this2.isExistGrp || _this2.passingValue !== currData.o) {
41969
41890
  ctx.lineTo(currData.xp, currData.yp);
41970
41891
  }
41971
41892
 
@@ -41991,19 +41912,14 @@ var element_line_Line = /*#__PURE__*/function () {
41991
41912
  ctx.strokeStyle = helpers_util.colorStringToRgba(mainColor, mainColorOpacity);
41992
41913
  var focusStyle = helpers_util.colorStringToRgba(pointFillColor, 1);
41993
41914
  var blurStyle = helpers_util.colorStringToRgba(pointFillColor, pointFillColorOpacity);
41994
- var isLinearSingle = this.interpolation === 'linear' && this.data.filter(function (item) {
41995
- return item.o !== null;
41996
- }).length === 1;
41997
41915
  this.data.forEach(function (curr, ix) {
41998
41916
  var _this2$data, _this2$data2;
41999
41917
 
42000
- if (curr.xp === null || curr.yp === null || curr.o === null) {
41918
+ if (curr.xp === null || curr.yp === null || curr.o === _this2.passingValue) {
42001
41919
  return;
42002
41920
  }
42003
41921
 
42004
- var prevData = (_this2$data = _this2.data[ix - 1]) === null || _this2$data === void 0 ? void 0 : _this2$data.o;
42005
- var nextData = (_this2$data2 = _this2.data[ix + 1]) === null || _this2$data2 === void 0 ? void 0 : _this2$data2.o;
42006
- var isSingle = !_this2.useLinearInterpolation && lodash_es_isNil(prevData) && lodash_es_isNil(nextData) || isLinearSingle;
41922
+ var isSingle = helpers_util.isNullOrUndefined((_this2$data = _this2.data[ix - 1]) === null || _this2$data === void 0 ? void 0 : _this2$data.o) && helpers_util.isNullOrUndefined((_this2$data2 = _this2.data[ix + 1]) === null || _this2$data2 === void 0 ? void 0 : _this2$data2.o);
42007
41923
  var isSelectedLabel = selectedLabelIndexList.includes(ix);
42008
41924
 
42009
41925
  if (_this2.point || isSingle || isSelectedLabel) {
@@ -42034,7 +41950,7 @@ var element_line_Line = /*#__PURE__*/function () {
42034
41950
  o = gdata.o;
42035
41951
  ctx.save();
42036
41952
 
42037
- if (xp !== null && yp !== null && o !== null && this.pointHighlight) {
41953
+ if (xp !== null && yp !== null && o !== this.passingValue && this.pointHighlight) {
42038
41954
  ctx.strokeStyle = helpers_util.colorStringToRgba(this.color, 0);
42039
41955
  ctx.fillStyle = helpers_util.colorStringToRgba(this.color, this.highlight.maxShadowOpacity);
42040
41956
  helpers_canvas.drawPoint(ctx, this.pointStyle, this.highlight.maxShadowSize, xp, yp);
@@ -42155,7 +42071,7 @@ var element_line_Line = /*#__PURE__*/function () {
42155
42071
  }
42156
42072
  }
42157
42073
 
42158
- if (this.useLinearInterpolation && (item === null || item === void 0 ? void 0 : (_item$data = item.data) === null || _item$data === void 0 ? void 0 : _item$data.o) === null) {
42074
+ if (this.usePassingValue && (item === null || item === void 0 ? void 0 : (_item$data = item.data) === null || _item$data === void 0 ? void 0 : _item$data.o) === this.passingValue) {
42159
42075
  item.data = null;
42160
42076
  }
42161
42077
 
@@ -44827,47 +44743,6 @@ var model_series_modules = {
44827
44743
  Store: model_store,
44828
44744
  Series: model_series
44829
44745
  });
44830
- /**
44831
- * @typedef {Object} ChartDOMSize
44832
- * @property {number} width - 차트 DOM의 너비
44833
- * @property {number} height - 차트 DOM의 높이
44834
- */
44835
-
44836
- /**
44837
- * @typedef {Object} ChartRect
44838
- * @property {number} x1 - 차트 영역의 시작 X 좌표
44839
- * @property {number} x2 - 차트 영역의 끝 X 좌표
44840
- * @property {number} y1 - 차트 영역의 시작 Y 좌표
44841
- * @property {number} y2 - 차트 영역의 끝 Y 좌표
44842
- * @property {number} chartWidth - 실제 차트 그리기 영역의 너비
44843
- * @property {number} chartHeight - 실제 차트 그리기 영역의 높이
44844
- * @property {number} width - 전체 차트 컨테이너의 너비
44845
- * @property {number} height - 전체 차트 컨테이너의 높이
44846
- */
44847
-
44848
- /**
44849
- * @typedef {Object} MouseLabelValue
44850
- * @property {string|number} labelVal - 마우스 위치에 해당하는 라벨 값
44851
- * @property {number} labelIdx - 라벨 인덱스 (없으면 -1)
44852
- */
44853
-
44854
- /**
44855
- * @typedef {Object} ChartSeriesDataPoint
44856
- * @property {number|null} x - x축 값 또는 라벨
44857
- * @property {number|null} y - y축 값 또는 데이터 값
44858
- * @property {number|null} o - 원본 데이터 값
44859
- * @property {number|null} b - 스택형 차트의 베이스 값
44860
- * @property {number|null} xp - x좌표 위치(픽셀 등)
44861
- * @property {number|null} yp - y좌표 위치(픽셀 등)
44862
- * @property {number|null} w - 너비
44863
- * @property {number|null} h - 높이
44864
- * @property {string|null} dataColor - 데이터 색상
44865
- * @property {string|null} dataTextColor - 텍스트 색상
44866
- */
44867
-
44868
- /**
44869
- * @typedef {'none' | 'linear' | 'zero'} InterpolationType
44870
- */
44871
44746
  // CONCATENATED MODULE: ./src/components/chart/scale/scale.js
44872
44747
 
44873
44748
 
@@ -51354,7 +51229,7 @@ var plugins_interaction_modules = {
51354
51229
  if (item !== null && item !== void 0 && item.data) {
51355
51230
  var gdata = void 0;
51356
51231
 
51357
- if (item.data.o === null && series.interpolation !== 'zero') {
51232
+ if (item.data.o === null) {
51358
51233
  if (!series.isExistGrp) {
51359
51234
  gdata = isHorizontal ? item.data.x : item.data.y;
51360
51235
  }
@@ -54689,9 +54564,8 @@ var chart_core_EvChart = /*#__PURE__*/function () {
54689
54564
  }
54690
54565
  /**
54691
54566
  * Get chart DOM size and set canvas size
54692
- * @typedef {import('./model/index').ChartDOMSize} ChartDOMSize
54693
54567
  *
54694
- * @returns {ChartDOMSize} chart size information
54568
+ * @returns {object} chart size information
54695
54569
  */
54696
54570
 
54697
54571
  }, {
@@ -54711,9 +54585,8 @@ var chart_core_EvChart = /*#__PURE__*/function () {
54711
54585
  }
54712
54586
  /**
54713
54587
  * Calculate chart size
54714
- * @typedef {import('./model/index').ChartRect} ChartRect
54715
54588
  *
54716
- * @returns {ChartRect} chart size information
54589
+ * @returns {object} chart size information
54717
54590
  */
54718
54591
 
54719
54592
  }, {