evui 3.4.112 → 3.4.114

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.
@@ -11164,7 +11164,7 @@ module.exports = exports;
11164
11164
  /***/ "9224":
11165
11165
  /***/ (function(module) {
11166
11166
 
11167
- module.exports = JSON.parse("{\"a\":\"3.4.112\"}");
11167
+ module.exports = JSON.parse("{\"a\":\"3.4.114\"}");
11168
11168
 
11169
11169
  /***/ }),
11170
11170
 
@@ -38820,9 +38820,9 @@ var modules = {
38820
38820
 
38821
38821
  if (series && sData) {
38822
38822
  if (series.isExistGrp && series.stackIndex && !series.isOverlapping) {
38823
- series.data = _this.addSeriesStackDS(sData, label, series.bsIds, series.stackIndex, series.interpolation);
38823
+ series.data = _this.addSeriesStackDS(sData, label, series.bsIds, series.stackIndex);
38824
38824
  } else {
38825
- series.data = _this.addSeriesDS(sData, label, series.isExistGrp, series.interpolation);
38825
+ series.data = _this.addSeriesDS(sData, label, series.isExistGrp);
38826
38826
  }
38827
38827
 
38828
38828
  series.minMax = _this.getSeriesMinMax(series.data);
@@ -39209,17 +39209,13 @@ var modules = {
39209
39209
  * @param {object} label chart label
39210
39210
  * @param {array} bsIds stacked base data ID List
39211
39211
  * @param {number} sIdx series ordered index
39212
- * @param {import('./index').InterpolationType} interpolation interpolation type
39213
39212
  *
39214
- * @typedef {import('./index').ChartSeriesDataPoint} ChartSeriesDataPoint
39215
- *
39216
- * @returns {ChartSeriesDataPoint[]} data for each series
39213
+ * @returns {array} data for each series
39217
39214
  */
39218
39215
  addSeriesStackDS: function addSeriesStackDS(data, label, bsIds) {
39219
39216
  var _this4 = this;
39220
39217
 
39221
39218
  var sIdx = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : 0;
39222
- var interpolation = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : 'none';
39223
39219
  var isHorizontal = this.options.horizontal;
39224
39220
  var sdata = [];
39225
39221
 
@@ -39266,14 +39262,15 @@ var modules = {
39266
39262
  if (oData != null) {
39267
39263
  gdata = bdata + oData;
39268
39264
  } else {
39269
- gdata = odata;
39265
+ gdata = null;
39266
+ bdata = 0;
39270
39267
  }
39271
39268
  } else {
39272
39269
  bdata = 0;
39273
39270
  gdata = oData;
39274
39271
  }
39275
39272
 
39276
- sdata.push(_this4.addData(gdata, ldata, odata, bdata, interpolation));
39273
+ sdata.push(_this4.addData(gdata, ldata, odata, bdata));
39277
39274
  }
39278
39275
  });
39279
39276
  return sdata;
@@ -39284,17 +39281,13 @@ var modules = {
39284
39281
  * @param {object} data chart series info
39285
39282
  * @param {object} label chart label
39286
39283
  * @param {boolean} isBase is Base(bottommost) series at stack chart
39287
- * @param {import('./index').InterpolationType} interpolation interpolation type
39288
- *
39289
- * @typedef {import('./index').ChartSeriesDataPoint} ChartSeriesDataPoint
39290
39284
  *
39291
- * @returns {ChartSeriesDataPoint[]} data for each series
39285
+ * @returns {array} data for each series
39292
39286
  */
39293
39287
  addSeriesDS: function addSeriesDS(data, label, isBase) {
39294
39288
  var _this$seriesList$Obje,
39295
39289
  _this5 = this;
39296
39290
 
39297
- var interpolation = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : 'none';
39298
39291
  var isHorizontal = this.options.horizontal;
39299
39292
  var sdata = [];
39300
39293
  var passingValue = (_this$seriesList$Obje = this.seriesList[Object.keys(this.seriesList)[0]]) === null || _this$seriesList$Obje === void 0 ? void 0 : _this$seriesList$Obje.passingValue;
@@ -39309,7 +39302,7 @@ var modules = {
39309
39302
 
39310
39303
  if (ldata !== null) {
39311
39304
  var isPassingValueWithStack = isBase && !helpers_util.isNullOrUndefined(passingValue) && gdata === passingValue;
39312
- sdata.push(_this5.addData(isPassingValueWithStack ? 0 : gdata, ldata, gdata, null, interpolation));
39305
+ sdata.push(_this5.addData(isPassingValueWithStack ? 0 : gdata, ldata, gdata));
39313
39306
  }
39314
39307
  });
39315
39308
  return sdata;
@@ -39366,18 +39359,13 @@ var modules = {
39366
39359
  * @param {object} ldata label data (x-axis value for vertical chart)
39367
39360
  * @param {object} odata original data (without stacked value)
39368
39361
  * @param {object} bdata base data (stacked value)
39369
- * @param {import('./index').InterpolationType} interpolation interpolation type
39370
- *
39371
- * @typedef {import('./index').ChartSeriesDataPoint} ChartSeriesDataPoint
39372
- *
39373
- * @returns {ChartSeriesDataPoint} data for each graph point
39362
+ * @returns {object} data for each graph point
39374
39363
  */
39375
39364
  addData: function addData(gdata, ldata) {
39376
39365
  var _gdataColor;
39377
39366
 
39378
39367
  var odata = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : null;
39379
39368
  var bdata = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : null;
39380
- var interpolation = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : 'none';
39381
39369
  var data;
39382
39370
  var gdataValue = null;
39383
39371
  var odataValue = null;
@@ -39390,7 +39378,7 @@ var modules = {
39390
39378
  gdataColor = gdata.color;
39391
39379
  dataTextColor = gdata.textColor;
39392
39380
  } else {
39393
- gdataValue = interpolation === 'zero' && !gdata ? bdata !== null && bdata !== void 0 ? bdata : 0 : gdata !== null && gdata !== void 0 ? gdata : null;
39381
+ gdataValue = gdata !== null && gdata !== void 0 ? gdata : null;
39394
39382
  }
39395
39383
 
39396
39384
  if (odata !== null && _typeof(odata) === 'object') {
@@ -39947,18 +39935,12 @@ var modules = {
39947
39935
  return result;
39948
39936
  },
39949
39937
 
39950
- /**
39951
- * @typedef {Object} LabelInfoResult
39952
- * @property {number} labelIndex - 선택된 라벨의 인덱스
39953
- * @property {object} hitInfo - 해당 위치에서의 히트 정보 (getItemByPosition 반환값)
39954
- */
39955
-
39956
39938
  /**
39957
39939
  * Find label info by position x and y
39958
39940
  * @param {array} offset position x and y
39959
39941
  * @param {string | null} targetAxis target Axis Location ('xAxis', 'yAxis' , null)
39960
39942
  *
39961
- * @returns {LabelInfoResult} clicked label information
39943
+ * @returns {object} clicked label information
39962
39944
  */
39963
39945
  getLabelInfoByPosition: function getLabelInfoByPosition(offset, targetAxis) {
39964
39946
  var _Object$values$sort$, _Object$values$sort$2, _scrollbarOpt, _scale, _scale$labels, _scale3, _scale3$labels;
@@ -40065,14 +40047,11 @@ var modules = {
40065
40047
 
40066
40048
  /**
40067
40049
  * Get current mouse target label value in label array or calculated using mouse position
40068
- *
40069
- * @typedef {import('./index').MouseLabelValue} MouseLabelValue
40070
- *
40071
40050
  * @param {string} targetAxis target Axis Location ('xAxis', 'yAxis')
40072
40051
  * @param {array} offset return value from getMousePosition()
40073
40052
  * @param {number} labelIndex
40074
40053
  *
40075
- * @returns {MouseLabelValue} current mouse target label value
40054
+ * @returns {object} current mouse target label value
40076
40055
  */
40077
40056
  getCurMouseLabelVal: function getCurMouseLabelVal(targetAxis, offset, labelIndex) {
40078
40057
  var _this9 = this;
@@ -41102,57 +41081,6 @@ var defaultsDeep = _baseRest(function(args) {
41102
41081
 
41103
41082
  /* harmony default export */ var lodash_es_defaultsDeep = (defaultsDeep);
41104
41083
 
41105
- // CONCATENATED MODULE: ./node_modules/lodash-es/isUndefined.js
41106
- /**
41107
- * Checks if `value` is `undefined`.
41108
- *
41109
- * @static
41110
- * @since 0.1.0
41111
- * @memberOf _
41112
- * @category Lang
41113
- * @param {*} value The value to check.
41114
- * @returns {boolean} Returns `true` if `value` is `undefined`, else `false`.
41115
- * @example
41116
- *
41117
- * _.isUndefined(void 0);
41118
- * // => true
41119
- *
41120
- * _.isUndefined(null);
41121
- * // => false
41122
- */
41123
- function isUndefined(value) {
41124
- return value === undefined;
41125
- }
41126
-
41127
- /* harmony default export */ var lodash_es_isUndefined = (isUndefined);
41128
-
41129
- // CONCATENATED MODULE: ./node_modules/lodash-es/isNil.js
41130
- /**
41131
- * Checks if `value` is `null` or `undefined`.
41132
- *
41133
- * @static
41134
- * @memberOf _
41135
- * @since 4.0.0
41136
- * @category Lang
41137
- * @param {*} value The value to check.
41138
- * @returns {boolean} Returns `true` if `value` is nullish, else `false`.
41139
- * @example
41140
- *
41141
- * _.isNil(null);
41142
- * // => true
41143
- *
41144
- * _.isNil(void 0);
41145
- * // => true
41146
- *
41147
- * _.isNil(NaN);
41148
- * // => false
41149
- */
41150
- function isNil(value) {
41151
- return value == null;
41152
- }
41153
-
41154
- /* harmony default export */ var lodash_es_isNil = (isNil);
41155
-
41156
41084
  // CONCATENATED MODULE: ./src/components/chart/helpers/helpers.constant.js
41157
41085
  var AXIS_UNITS = {
41158
41086
  x: {
@@ -41200,8 +41128,7 @@ var LINE_OPTION = {
41200
41128
  fill: false,
41201
41129
  fillOpacity: 0.4,
41202
41130
  showLegend: true,
41203
- passingValue: null,
41204
- interpolation: 'none'
41131
+ passingValue: null
41205
41132
  };
41206
41133
  var BAR_OPTION = {
41207
41134
  show: true,
@@ -41388,13 +41315,13 @@ var TIME_INTERVALS = {
41388
41315
  /* harmony default export */ var helpers_canvas = ({
41389
41316
  /**
41390
41317
  * Calculate X position
41391
- * @param {number|null|undefined} value graph value
41318
+ * @param {any} value graph value
41392
41319
  * @param {number} min min value
41393
41320
  * @param {number} max max value
41394
41321
  * @param {number} area height for axis
41395
41322
  * @param {number} startPoint startPoint
41396
41323
  *
41397
- * @returns {number|null} position
41324
+ * @returns {any} position
41398
41325
  */
41399
41326
  calculateX: function calculateX(value, min, max, area) {
41400
41327
  var startPoint = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : 0;
@@ -41434,13 +41361,13 @@ var TIME_INTERVALS = {
41434
41361
 
41435
41362
  /**
41436
41363
  * Calculate Y position
41437
- * @param {number|null|undefined} value graph value
41364
+ * @param {any} value graph value
41438
41365
  * @param {number} min min value
41439
41366
  * @param {number} max max value
41440
41367
  * @param {number} area height for axis
41441
41368
  * @param {number} startPoint startPoint
41442
41369
  *
41443
- * @returns {number|null} position
41370
+ * @returns {any} position
41444
41371
  */
41445
41372
  calculateY: function calculateY(value, min, max, area) {
41446
41373
  var startPoint = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : 0;
@@ -41688,6 +41615,7 @@ var TIME_INTERVALS = {
41688
41615
 
41689
41616
 
41690
41617
 
41618
+
41691
41619
  var element_line_Line = /*#__PURE__*/function () {
41692
41620
  function Line(sId, opt, sIdx) {
41693
41621
  var _this = this;
@@ -41724,8 +41652,6 @@ var element_line_Line = /*#__PURE__*/function () {
41724
41652
  lineWidth: 2
41725
41653
  }
41726
41654
  };
41727
- /** @type {import('../model/index').ChartSeriesDataPoint[]} */
41728
-
41729
41655
  this.data = [];
41730
41656
  this.beforeMouseXp = 0;
41731
41657
  this.beforeMouseYp = 0;
@@ -41733,23 +41659,11 @@ var element_line_Line = /*#__PURE__*/function () {
41733
41659
  this.size = {
41734
41660
  comboOffset: 0
41735
41661
  };
41736
- this.usePassingValue = !lodash_es_isUndefined(this.passingValue) && this.interpolation === 'linear';
41662
+ this.usePassingValue = !!this.passingValue;
41737
41663
  }
41738
- /**
41739
- * @typedef {Object} LineDrawParam
41740
- * @property {CanvasRenderingContext2D} ctx - 캔버스 렌더링 컨텍스트
41741
- * @property {object} chartRect - 차트 영역 정보
41742
- * @property {object} labelOffset - 라벨 오프셋 정보
41743
- * @property {object} axesSteps - 축 스텝 정보
41744
- * @property {object} [selectLabel] - 선택된 라벨 정보
41745
- * @property {object} [selectSeries] - 선택된 시리즈 정보
41746
- * @property {object} [legendHitInfo] - 범례 히트 정보
41747
- * @property {boolean} [isBrush] - 브러시 사용 여부
41748
- */
41749
-
41750
41664
  /**
41751
41665
  * Draw series data
41752
- * @param {LineDrawParam} param object for drawing series data
41666
+ * @param {object} param object for drawing series data
41753
41667
  *
41754
41668
  * @returns {undefined}
41755
41669
  */
@@ -41818,6 +41732,8 @@ var element_line_Line = /*#__PURE__*/function () {
41818
41732
  }
41819
41733
 
41820
41734
  var endPoint = chartRect.y2 - labelOffset.bottom;
41735
+ var x;
41736
+ var y;
41821
41737
  var barAreaByCombo = 0;
41822
41738
  var minmaxX = axesSteps.x[this.xAxisIndex];
41823
41739
  var minmaxY = axesSteps.y[this.yAxisIndex];
@@ -41842,40 +41758,51 @@ var element_line_Line = /*#__PURE__*/function () {
41842
41758
  }; // draw line
41843
41759
 
41844
41760
 
41845
- var prevValid;
41846
- this.data.forEach(function (curr) {
41847
- var _prevValid, _prevValid2, _prevValid3;
41848
-
41849
- var x = getXPos(curr.x);
41850
- var y = getYPos(curr.y);
41851
-
41852
- if (_this2.isExistGrp && _this2.usePassingValue && curr.o === _this2.passingValue) {
41853
- var _curr$b;
41854
-
41855
- y = getYPos((_curr$b = curr.b) !== null && _curr$b !== void 0 ? _curr$b : 0);
41856
- }
41761
+ var needCutoff = false;
41762
+ this.data.reduce(function (prev, curr) {
41763
+ x = getXPos(curr.x);
41764
+ y = getYPos(curr.y);
41857
41765
 
41858
41766
  if (x !== null) {
41859
41767
  x += helpers_util.aliasPixel(x);
41860
41768
  }
41861
41769
 
41862
- curr.xp = x;
41863
- curr.yp = y;
41770
+ if (_this2.usePassingValue) {
41771
+ if (curr.o === _this2.passingValue) {
41772
+ y = getYPos(prev.y);
41864
41773
 
41865
- if (_this2.usePassingValue && curr.o === _this2.passingValue) {
41866
- if (!_this2.isExistGrp) {
41867
- return;
41774
+ if (prev.o === null) {
41775
+ needCutoff = true;
41776
+ }
41777
+
41778
+ if (_this2.isExistGrp && !needCutoff) {
41779
+ var _curr$b;
41780
+
41781
+ y = getYPos((_curr$b = curr.b) !== null && _curr$b !== void 0 ? _curr$b : 0);
41782
+ ctx.lineTo(x, y);
41783
+ }
41784
+
41785
+ curr.xp = x;
41786
+ curr.yp = y;
41787
+ return curr;
41868
41788
  }
41869
41789
  }
41870
41790
 
41871
- if (lodash_es_isNil((_prevValid = prevValid) === null || _prevValid === void 0 ? void 0 : _prevValid.y) && _this2.usePassingValue && _this2.passingValue !== ((_prevValid2 = prevValid) === null || _prevValid2 === void 0 ? void 0 : _prevValid2.o) || !_this2.usePassingValue && lodash_es_isNil(curr.o) && _this2.interpolation !== 'zero' || !_this2.usePassingValue && lodash_es_isNil((_prevValid3 = prevValid) === null || _prevValid3 === void 0 ? void 0 : _prevValid3.y) || lodash_es_isNil(curr.o) && curr.y == null && _this2.passingValue !== curr.o) {
41791
+ var isNullValue = helpers_util.isNullOrUndefined(prev.o) || helpers_util.isNullOrUndefined(curr.o) || helpers_util.isNullOrUndefined(curr.x) || helpers_util.isNullOrUndefined(curr.y);
41792
+
41793
+ if (isNullValue || needCutoff) {
41872
41794
  ctx.moveTo(x, y);
41795
+ needCutoff = false;
41873
41796
  } else {
41874
41797
  ctx.lineTo(x, y);
41875
41798
  }
41876
41799
 
41877
- prevValid = curr;
41878
- });
41800
+ curr.xp = x; // eslint-disable-line
41801
+
41802
+ curr.yp = y; // eslint-disable-line
41803
+
41804
+ return curr;
41805
+ }, this.data[0]);
41879
41806
  ctx.stroke();
41880
41807
 
41881
41808
  if (this.segments) {
@@ -41915,24 +41842,20 @@ var element_line_Line = /*#__PURE__*/function () {
41915
41842
  var valueArray = this.data.map(function (item) {
41916
41843
  return item === null || item === void 0 ? void 0 : item.o;
41917
41844
  });
41918
- /** @type {Array<[number, number]>} */
41919
-
41920
41845
  var needFillDataIndexList = [];
41921
41846
 
41922
41847
  for (var i = 0; i < valueArray.length + 1; i++) {
41923
- var isNoneInterpolation = this.interpolation === 'none' || this.usePassingValue && this.passingValue !== null;
41924
-
41925
- if (isNoneInterpolation ? lodash_es_isNil(valueArray[i]) : lodash_es_isUndefined(valueArray[i])) {
41848
+ if (helpers_util.isNullOrUndefined(valueArray[i])) {
41926
41849
  if (start !== null && end !== null) {
41927
41850
  var temp = valueArray.slice(start, i);
41928
41851
  var lastNormalValueIndex = temp.findLastIndex(function (item) {
41929
- return !lodash_es_isNil(item) && item !== _this2.passingValue;
41852
+ return item !== helpers_util.isNullOrUndefined(item) && item !== _this2.passingValue;
41930
41853
  });
41931
41854
  needFillDataIndexList.push([start, start + lastNormalValueIndex]);
41932
41855
  start = null;
41933
41856
  end = null;
41934
41857
  }
41935
- } else if (this.usePassingValue && valueArray[i] === this.passingValue) {
41858
+ } else if (valueArray[i] === this.passingValue) {
41936
41859
  end = i;
41937
41860
  } else {
41938
41861
  start = start === null ? i : start;
@@ -41962,7 +41885,7 @@ var element_line_Line = /*#__PURE__*/function () {
41962
41885
 
41963
41886
  if (ix === startIndex) {
41964
41887
  ctx.moveTo(currData.xp, currData.yp);
41965
- } else if (_this2.isExistGrp || _this2.passingValue !== currData.o || _this2.interpolation === 'zero' && lodash_es_isNil(currData.o)) {
41888
+ } else if (_this2.isExistGrp || _this2.passingValue !== currData.o) {
41966
41889
  ctx.lineTo(currData.xp, currData.yp);
41967
41890
  }
41968
41891
 
@@ -41995,7 +41918,7 @@ var element_line_Line = /*#__PURE__*/function () {
41995
41918
  return;
41996
41919
  }
41997
41920
 
41998
- var isSingle = _this2.interpolation === 'none' && 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);
41921
+ 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);
41999
41922
  var isSelectedLabel = selectedLabelIndexList.includes(ix);
42000
41923
 
42001
41924
  if (_this2.point || isSingle || isSelectedLabel) {
@@ -42992,7 +42915,7 @@ var element_bar_Bar = /*#__PURE__*/function () {
42992
42915
 
42993
42916
  if (sx <= xp && xp <= ex) {
42994
42917
  item.data = gdata[m];
42995
- item.index = m;
42918
+ item.index = gdata[m].index; // 원본 데이터 인덱스 사용
42996
42919
 
42997
42920
  if (ey <= yp && yp <= sy) {
42998
42921
  item.hit = true;
@@ -43041,7 +42964,7 @@ var element_bar_Bar = /*#__PURE__*/function () {
43041
42964
 
43042
42965
  if (ey <= yp && yp <= sy) {
43043
42966
  item.data = gdata[m];
43044
- item.index = m;
42967
+ item.index = gdata[m].index; // 원본 데이터 인덱스 사용
43045
42968
 
43046
42969
  if (sx <= xp && xp <= ex) {
43047
42970
  item.hit = true;
@@ -44819,47 +44742,6 @@ var model_series_modules = {
44819
44742
  Store: model_store,
44820
44743
  Series: model_series
44821
44744
  });
44822
- /**
44823
- * @typedef {Object} ChartDOMSize
44824
- * @property {number} width - 차트 DOM의 너비
44825
- * @property {number} height - 차트 DOM의 높이
44826
- */
44827
-
44828
- /**
44829
- * @typedef {Object} ChartRect
44830
- * @property {number} x1 - 차트 영역의 시작 X 좌표
44831
- * @property {number} x2 - 차트 영역의 끝 X 좌표
44832
- * @property {number} y1 - 차트 영역의 시작 Y 좌표
44833
- * @property {number} y2 - 차트 영역의 끝 Y 좌표
44834
- * @property {number} chartWidth - 실제 차트 그리기 영역의 너비
44835
- * @property {number} chartHeight - 실제 차트 그리기 영역의 높이
44836
- * @property {number} width - 전체 차트 컨테이너의 너비
44837
- * @property {number} height - 전체 차트 컨테이너의 높이
44838
- */
44839
-
44840
- /**
44841
- * @typedef {Object} MouseLabelValue
44842
- * @property {string|number} labelVal - 마우스 위치에 해당하는 라벨 값
44843
- * @property {number} labelIdx - 라벨 인덱스 (없으면 -1)
44844
- */
44845
-
44846
- /**
44847
- * @typedef {Object} ChartSeriesDataPoint
44848
- * @property {number|null} x - x축 값 또는 라벨
44849
- * @property {number|null} y - y축 값 또는 데이터 값
44850
- * @property {number|null} o - 원본 데이터 값
44851
- * @property {number|null} b - 스택형 차트의 베이스 값
44852
- * @property {number|null} xp - x좌표 위치(픽셀 등)
44853
- * @property {number|null} yp - y좌표 위치(픽셀 등)
44854
- * @property {number|null} w - 너비
44855
- * @property {number|null} h - 높이
44856
- * @property {string|null} dataColor - 데이터 색상
44857
- * @property {string|null} dataTextColor - 텍스트 색상
44858
- */
44859
-
44860
- /**
44861
- * @typedef {'none' | 'linear' | 'zero'} InterpolationType
44862
- */
44863
44745
  // CONCATENATED MODULE: ./src/components/chart/scale/scale.js
44864
44746
 
44865
44747
 
@@ -51346,7 +51228,7 @@ var plugins_interaction_modules = {
51346
51228
  if (item !== null && item !== void 0 && item.data) {
51347
51229
  var gdata = void 0;
51348
51230
 
51349
- if (item.data.o === null && series.interpolation !== 'zero') {
51231
+ if (item.data.o === null) {
51350
51232
  if (!series.isExistGrp) {
51351
51233
  gdata = isHorizontal ? item.data.x : item.data.y;
51352
51234
  }
@@ -54009,6 +53891,7 @@ var element_tip_modules = {
54009
53891
 
54010
53892
 
54011
53893
 
53894
+
54012
53895
 
54013
53896
 
54014
53897
  var chart_core_EvChart = /*#__PURE__*/function () {
@@ -54196,60 +54079,87 @@ var chart_core_EvChart = /*#__PURE__*/function () {
54196
54079
  });
54197
54080
  }
54198
54081
  }, {
54199
- key: "adjustYAxisWidth",
54200
- value: function adjustYAxisWidth() {
54201
- var _this$options$axesY, _this$axesY, _this$axesRange, _this$axesSteps, _this$axesSteps$y, _this$axesSteps$y$, _this$axesSteps2, _this$axesY$;
54082
+ key: "adjustXAndYAxisWidth",
54083
+ value: function adjustXAndYAxisWidth() {
54084
+ var _this$options$axesX,
54085
+ _this$options$axesY,
54086
+ _this2 = this,
54087
+ _this$axesSteps,
54088
+ _this$axesSteps2,
54089
+ _this$axesX$,
54090
+ _this$axesY$,
54091
+ _this$axesRange,
54092
+ _this$axesRange$x,
54093
+ _this$axesRange2,
54094
+ _this$axesRange3,
54095
+ _this$axesRange3$y,
54096
+ _this$axesRange4;
54202
54097
 
54203
54098
  // fitWidth(maxWidth에 넘을 시 말줄임표 들어가는 기능)을 사용중인 step Axis인 경우에는 적용 제외
54204
- var isStepAxisUseFitWidth = (_this$options$axesY = this.options.axesY) === null || _this$options$axesY === void 0 ? void 0 : _this$options$axesY.some(function (axisY) {
54099
+ var isStepXAxisUseFitWidth = (_this$options$axesX = this.options.axesX) === null || _this$options$axesX === void 0 ? void 0 : _this$options$axesX.some(function (axisX) {
54100
+ var _axisX$labelStyle;
54101
+
54102
+ return axisX.type === 'step' && ((_axisX$labelStyle = axisX.labelStyle) === null || _axisX$labelStyle === void 0 ? void 0 : _axisX$labelStyle.fitWidth);
54103
+ });
54104
+ var isStepYAxisUseFitWidth = (_this$options$axesY = this.options.axesY) === null || _this$options$axesY === void 0 ? void 0 : _this$options$axesY.some(function (axisY) {
54205
54105
  var _axisY$labelStyle;
54206
54106
 
54207
54107
  return axisY.type === 'step' && ((_axisY$labelStyle = axisY.labelStyle) === null || _axisY$labelStyle === void 0 ? void 0 : _axisY$labelStyle.fitWidth);
54208
54108
  });
54209
54109
 
54210
- if (!((_this$axesY = this.axesY) !== null && _this$axesY !== void 0 && _this$axesY.length) || !((_this$axesRange = this.axesRange) !== null && _this$axesRange !== void 0 && _this$axesRange.y) || !((_this$axesSteps = this.axesSteps) !== null && _this$axesSteps !== void 0 && (_this$axesSteps$y = _this$axesSteps.y) !== null && _this$axesSteps$y !== void 0 && _this$axesSteps$y.length) || isStepAxisUseFitWidth) {
54211
- return;
54212
- }
54213
-
54214
- var notFormattedLabels = [];
54215
-
54216
- var _ref2 = (_this$axesSteps$y$ = (_this$axesSteps2 = this.axesSteps) === null || _this$axesSteps2 === void 0 ? void 0 : _this$axesSteps2.y[0]) !== null && _this$axesSteps$y$ !== void 0 ? _this$axesSteps$y$ : {},
54217
- interval = _ref2.interval,
54218
- graphMin = _ref2.graphMin,
54219
- graphMax = _ref2.graphMax,
54220
- _ref2$steps = _ref2.steps,
54221
- steps = _ref2$steps === void 0 ? 0 : _ref2$steps;
54110
+ var getNotFormattedLabels = function getNotFormattedLabels(axesSteps) {
54111
+ var _ref2 = axesSteps !== null && axesSteps !== void 0 ? axesSteps : {},
54112
+ interval = _ref2.interval,
54113
+ graphMin = _ref2.graphMin,
54114
+ graphMax = _ref2.graphMax,
54115
+ _ref2$steps = _ref2.steps,
54116
+ steps = _ref2$steps === void 0 ? 0 : _ref2$steps;
54117
+
54118
+ var result = [];
54119
+
54120
+ if (interval) {
54121
+ result = Array.from({
54122
+ length: steps
54123
+ }, function (_, i) {
54124
+ return graphMin + i * interval;
54125
+ });
54126
+ result.push(graphMax);
54127
+ } else {
54128
+ var _ref3, _labels$y;
54222
54129
 
54223
- if (interval) {
54224
- for (var i = 0; i < steps; i++) {
54225
- notFormattedLabels.push(graphMin + i * interval);
54130
+ var labels = _this2.data.labels;
54131
+ result = (_ref3 = (_labels$y = labels === null || labels === void 0 ? void 0 : labels.y) !== null && _labels$y !== void 0 ? _labels$y : labels) !== null && _ref3 !== void 0 ? _ref3 : [];
54226
54132
  }
54227
54133
 
54228
- notFormattedLabels.push(graphMax);
54229
- } else {
54230
- var _ref3, _this$data$labels$y, _this$data$labels;
54231
-
54232
- notFormattedLabels = (_ref3 = (_this$data$labels$y = (_this$data$labels = this.data.labels) === null || _this$data$labels === void 0 ? void 0 : _this$data$labels.y) !== null && _this$data$labels$y !== void 0 ? _this$data$labels$y : this.data.labels) !== null && _ref3 !== void 0 ? _ref3 : [];
54233
- }
54234
-
54235
- var yMaxWidth = (_this$axesY$ = this.axesY[0]) === null || _this$axesY$ === void 0 ? void 0 : _this$axesY$.getLabelWidthHasMaxLength(notFormattedLabels);
54134
+ return result;
54135
+ };
54236
54136
 
54237
- if (yMaxWidth > 0) {
54238
- var adjustedRange = {
54239
- x: this.axesRange.x,
54240
- y: this.axesRange.y.map(function (value) {
54241
- return _objectSpread2(_objectSpread2({}, value), {}, {
54242
- size: {
54243
- width: yMaxWidth,
54244
- height: value.size.height
54245
- }
54246
- });
54247
- })
54248
- };
54249
- this.labelOffset = this.getLabelOffset(adjustedRange);
54250
- this.labelRange = this.getAxesLabelRange();
54251
- this.axesSteps = this.calculateSteps();
54252
- }
54137
+ var notFormattedXLabels = getNotFormattedLabels((_this$axesSteps = this.axesSteps) === null || _this$axesSteps === void 0 ? void 0 : _this$axesSteps.x[0]);
54138
+ var notFormattedYLabels = getNotFormattedLabels((_this$axesSteps2 = this.axesSteps) === null || _this$axesSteps2 === void 0 ? void 0 : _this$axesSteps2.y[0]);
54139
+ var xMaxWidth = (_this$axesX$ = this.axesX[0]) === null || _this$axesX$ === void 0 ? void 0 : _this$axesX$.getLabelWidthHasMaxLength(notFormattedXLabels);
54140
+ var yMaxWidth = (_this$axesY$ = this.axesY[0]) === null || _this$axesY$ === void 0 ? void 0 : _this$axesY$.getLabelWidthHasMaxLength(notFormattedYLabels);
54141
+ var adjustedRange = {
54142
+ x: !isStepXAxisUseFitWidth ? (_this$axesRange = this.axesRange) === null || _this$axesRange === void 0 ? void 0 : (_this$axesRange$x = _this$axesRange.x) === null || _this$axesRange$x === void 0 ? void 0 : _this$axesRange$x.map(function (value) {
54143
+ return _objectSpread2(_objectSpread2({}, value), {}, {
54144
+ size: {
54145
+ width: Math.max(xMaxWidth, value.size.width),
54146
+ height: value.size.height
54147
+ }
54148
+ });
54149
+ }) : (_this$axesRange2 = this.axesRange) === null || _this$axesRange2 === void 0 ? void 0 : _this$axesRange2.x,
54150
+ y: !isStepYAxisUseFitWidth ? (_this$axesRange3 = this.axesRange) === null || _this$axesRange3 === void 0 ? void 0 : (_this$axesRange3$y = _this$axesRange3.y) === null || _this$axesRange3$y === void 0 ? void 0 : _this$axesRange3$y.map(function (value) {
54151
+ return _objectSpread2(_objectSpread2({}, value), {}, {
54152
+ size: {
54153
+ width: Math.max(yMaxWidth, value.size.width),
54154
+ height: value.size.height
54155
+ }
54156
+ });
54157
+ }) : (_this$axesRange4 = this.axesRange) === null || _this$axesRange4 === void 0 ? void 0 : _this$axesRange4.y
54158
+ };
54159
+ this.axesRange = adjustedRange;
54160
+ this.labelOffset = this.getLabelOffset(adjustedRange);
54161
+ this.labelRange = this.getAxesLabelRange();
54162
+ this.axesSteps = this.calculateSteps();
54253
54163
  }
54254
54164
  /**
54255
54165
  * To draw canvas chart, it processes several sequential jobs
@@ -54268,7 +54178,7 @@ var chart_core_EvChart = /*#__PURE__*/function () {
54268
54178
  this.labelOffset = this.getLabelOffset();
54269
54179
  this.labelRange = this.getAxesLabelRange();
54270
54180
  this.axesSteps = this.calculateSteps();
54271
- this.adjustYAxisWidth();
54181
+ this.adjustXAndYAxisWidth();
54272
54182
  this.drawAxis(hitInfo);
54273
54183
  this.drawSeries(hitInfo);
54274
54184
 
@@ -54293,7 +54203,7 @@ var chart_core_EvChart = /*#__PURE__*/function () {
54293
54203
  }, {
54294
54204
  key: "drawSeries",
54295
54205
  value: function drawSeries(hitInfo) {
54296
- var _this2 = this;
54206
+ var _this3 = this;
54297
54207
 
54298
54208
  var _this$options2 = this.options,
54299
54209
  maxTip = _this$options2.maxTip,
@@ -54330,7 +54240,7 @@ var chart_core_EvChart = /*#__PURE__*/function () {
54330
54240
  var showIndex = 0;
54331
54241
  var showSeriesCount = 0;
54332
54242
  this.seriesInfo.charts.bar.forEach(function (series) {
54333
- if (_this2.seriesList[series].show) {
54243
+ if (_this3.seriesList[series].show) {
54334
54244
  showSeriesCount++;
54335
54245
  }
54336
54246
  });
@@ -54532,14 +54442,14 @@ var chart_core_EvChart = /*#__PURE__*/function () {
54532
54442
  }, {
54533
54443
  key: "getAxesRange",
54534
54444
  value: function getAxesRange() {
54535
- var _this3 = this;
54445
+ var _this4 = this;
54536
54446
 
54537
54447
  /* eslint-disable max-len */
54538
54448
  var axesXMinMax = this.axesX.map(function (axis, index) {
54539
- return axis.calculateScaleRange(_this3.minMax.x[index], _this3.scrollbar.x, _this3.chartRect);
54449
+ return axis.calculateScaleRange(_this4.minMax.x[index], _this4.scrollbar.x, _this4.chartRect);
54540
54450
  });
54541
54451
  var axesYMinMax = this.axesY.map(function (axis, index) {
54542
- return axis.calculateScaleRange(_this3.minMax.y[index], _this3.scrollbar.y, _this3.chartRect);
54452
+ return axis.calculateScaleRange(_this4.minMax.y[index], _this4.scrollbar.y, _this4.chartRect);
54543
54453
  });
54544
54454
  /* eslint-enable max-len */
54545
54455
 
@@ -54557,13 +54467,13 @@ var chart_core_EvChart = /*#__PURE__*/function () {
54557
54467
  }, {
54558
54468
  key: "drawAxis",
54559
54469
  value: function drawAxis(hitInfo) {
54560
- var _this4 = this;
54470
+ var _this5 = this;
54561
54471
 
54562
54472
  this.axesX.forEach(function (axis, index) {
54563
- axis.draw(_this4.chartRect, _this4.labelOffset, _this4.axesSteps.x[index], hitInfo, _this4.defaultSelectInfo, _this4.data.labels);
54473
+ axis.draw(_this5.chartRect, _this5.labelOffset, _this5.axesSteps.x[index], hitInfo, _this5.defaultSelectInfo, _this5.data.labels);
54564
54474
  });
54565
54475
  this.axesY.forEach(function (axis, index) {
54566
- axis.draw(_this4.chartRect, _this4.labelOffset, _this4.axesSteps.y[index], hitInfo, _this4.defaultSelectInfo);
54476
+ axis.draw(_this5.chartRect, _this5.labelOffset, _this5.axesSteps.y[index], hitInfo, _this5.defaultSelectInfo);
54567
54477
  });
54568
54478
  }
54569
54479
  /**
@@ -54575,27 +54485,27 @@ var chart_core_EvChart = /*#__PURE__*/function () {
54575
54485
  }, {
54576
54486
  key: "calculateSteps",
54577
54487
  value: function calculateSteps() {
54578
- var _this5 = this;
54488
+ var _this6 = this;
54579
54489
 
54580
54490
  var axesXMinMax = this.axesX.map(function (axis, index) {
54581
54491
  var range = {
54582
- minValue: _this5.axesRange.x[index].min,
54583
- maxValue: _this5.axesRange.x[index].max,
54584
- minIndex: _this5.axesRange.x[index].minIndex,
54585
- maxIndex: _this5.axesRange.x[index].maxIndex,
54586
- minSteps: _this5.labelRange.x[index].min,
54587
- maxSteps: _this5.labelRange.x[index].max
54492
+ minValue: _this6.axesRange.x[index].min,
54493
+ maxValue: _this6.axesRange.x[index].max,
54494
+ minIndex: _this6.axesRange.x[index].minIndex,
54495
+ maxIndex: _this6.axesRange.x[index].maxIndex,
54496
+ minSteps: _this6.labelRange.x[index].min,
54497
+ maxSteps: _this6.labelRange.x[index].max
54588
54498
  };
54589
54499
  return axis.calculateSteps(range);
54590
54500
  });
54591
54501
  var axesYMinMax = this.axesY.map(function (axis, index) {
54592
54502
  var range = {
54593
- minValue: _this5.axesRange.y[index].min,
54594
- maxValue: _this5.axesRange.y[index].max,
54595
- minIndex: _this5.axesRange.y[index].minIndex,
54596
- maxIndex: _this5.axesRange.y[index].maxIndex,
54597
- minSteps: _this5.labelRange.y[index].min,
54598
- maxSteps: _this5.labelRange.y[index].max
54503
+ minValue: _this6.axesRange.y[index].min,
54504
+ maxValue: _this6.axesRange.y[index].max,
54505
+ minIndex: _this6.axesRange.y[index].minIndex,
54506
+ maxIndex: _this6.axesRange.y[index].maxIndex,
54507
+ minSteps: _this6.labelRange.y[index].min,
54508
+ maxSteps: _this6.labelRange.y[index].max
54599
54509
  };
54600
54510
  return axis.calculateSteps(range);
54601
54511
  });
@@ -54613,15 +54523,15 @@ var chart_core_EvChart = /*#__PURE__*/function () {
54613
54523
  }, {
54614
54524
  key: "getAxesLabelRange",
54615
54525
  value: function getAxesLabelRange() {
54616
- var _this6 = this;
54526
+ var _this7 = this;
54617
54527
 
54618
54528
  var axesXSteps = this.axesX.map(function (axis, index) {
54619
- var size = _this6.axesRange.x[index].size;
54620
- return axis.calculateLabelRange('x', _this6.chartRect, _this6.labelOffset, size.width);
54529
+ var size = _this7.axesRange.x[index].size;
54530
+ return axis.calculateLabelRange('x', _this7.chartRect, _this7.labelOffset, size.width);
54621
54531
  });
54622
54532
  var axesYSteps = this.axesY.map(function (axis, index) {
54623
- var size = _this6.axesRange.y[index].size;
54624
- return axis.calculateLabelRange('y', _this6.chartRect, _this6.labelOffset, size.height);
54533
+ var size = _this7.axesRange.y[index].size;
54534
+ return axis.calculateLabelRange('y', _this7.chartRect, _this7.labelOffset, size.height);
54625
54535
  });
54626
54536
  return {
54627
54537
  x: axesXSteps,
@@ -54653,9 +54563,8 @@ var chart_core_EvChart = /*#__PURE__*/function () {
54653
54563
  }
54654
54564
  /**
54655
54565
  * Get chart DOM size and set canvas size
54656
- * @typedef {import('./model/index').ChartDOMSize} ChartDOMSize
54657
54566
  *
54658
- * @returns {ChartDOMSize} chart size information
54567
+ * @returns {object} chart size information
54659
54568
  */
54660
54569
 
54661
54570
  }, {
@@ -54675,22 +54584,21 @@ var chart_core_EvChart = /*#__PURE__*/function () {
54675
54584
  }
54676
54585
  /**
54677
54586
  * Calculate chart size
54678
- * @typedef {import('./model/index').ChartRect} ChartRect
54679
54587
  *
54680
- * @returns {ChartRect} chart size information
54588
+ * @returns {object} chart size information
54681
54589
  */
54682
54590
 
54683
54591
  }, {
54684
54592
  key: "getChartRect",
54685
54593
  value: function getChartRect() {
54686
- var _this$options$axesX, _this$options$axesX$, _this$options$axesY2, _this$options$axesY2$;
54594
+ var _this$options$axesX2, _this$options$axesX2$, _this$options$axesY2, _this$options$axesY2$;
54687
54595
 
54688
54596
  var _this$getChartDOMRect = this.getChartDOMRect(),
54689
54597
  width = _this$getChartDOMRect.width,
54690
54598
  height = _this$getChartDOMRect.height;
54691
54599
 
54692
54600
  var padding = this.options.padding;
54693
- var xAxisTitleOpt = (_this$options$axesX = this.options.axesX) === null || _this$options$axesX === void 0 ? void 0 : (_this$options$axesX$ = _this$options$axesX[0]) === null || _this$options$axesX$ === void 0 ? void 0 : _this$options$axesX$.title;
54601
+ var xAxisTitleOpt = (_this$options$axesX2 = this.options.axesX) === null || _this$options$axesX2 === void 0 ? void 0 : (_this$options$axesX2$ = _this$options$axesX2[0]) === null || _this$options$axesX2$ === void 0 ? void 0 : _this$options$axesX2$.title;
54694
54602
  var yAxisTitleOpt = (_this$options$axesY2 = this.options.axesY) === null || _this$options$axesY2 === void 0 ? void 0 : (_this$options$axesY2$ = _this$options$axesY2[0]) === null || _this$options$axesY2$ === void 0 ? void 0 : _this$options$axesY2$.title;
54695
54603
  var titleMargin = 10;
54696
54604
  var xAxisTitleHeight = 0;