evui 3.4.115 → 3.4.117
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.common.js +37 -27
- package/dist/evui.common.js.map +1 -1
- package/dist/evui.umd.js +37 -27
- package/dist/evui.umd.js.map +1 -1
- package/dist/evui.umd.min.js +1 -1
- package/dist/evui.umd.min.js.map +1 -1
- package/package.json +1 -1
- package/src/components/chart/element/element.line.js +15 -9
- package/src/components/chart/model/model.store.js +5 -0
package/dist/evui.common.js
CHANGED
|
@@ -11171,7 +11171,7 @@ module.exports = exports;
|
|
|
11171
11171
|
/***/ "9224":
|
|
11172
11172
|
/***/ (function(module) {
|
|
11173
11173
|
|
|
11174
|
-
module.exports = JSON.parse("{\"a\":\"3.4.
|
|
11174
|
+
module.exports = JSON.parse("{\"a\":\"3.4.117\"}");
|
|
11175
11175
|
|
|
11176
11176
|
/***/ }),
|
|
11177
11177
|
|
|
@@ -38817,6 +38817,10 @@ var modules = {
|
|
|
38817
38817
|
} else {
|
|
38818
38818
|
seriesIDs.forEach(function (seriesID) {
|
|
38819
38819
|
var series = _this.seriesList[seriesID];
|
|
38820
|
+
var hasPassingValueInData = data[seriesID].some(function (item) {
|
|
38821
|
+
return item === series.passingValue;
|
|
38822
|
+
});
|
|
38823
|
+
series.hasPassingValueInData = hasPassingValueInData;
|
|
38820
38824
|
var sData = data[seriesID].map(function (item) {
|
|
38821
38825
|
if (series.interpolation === 'zero' && !item) {
|
|
38822
38826
|
return 0;
|
|
@@ -41738,29 +41742,33 @@ var element_line_Line = /*#__PURE__*/function () {
|
|
|
41738
41742
|
this.size = {
|
|
41739
41743
|
comboOffset: 0
|
|
41740
41744
|
};
|
|
41741
|
-
this.useLinearInterpolation = this.interpolation === 'linear' || this.interpolation === 'none' && !!this.passingValue;
|
|
41742
41745
|
}
|
|
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
41746
|
|
|
41755
|
-
|
|
41756
|
-
|
|
41757
|
-
|
|
41758
|
-
|
|
41759
|
-
|
|
41760
|
-
|
|
41747
|
+
_createClass(Line, [{
|
|
41748
|
+
key: "useLinearInterpolation",
|
|
41749
|
+
value: function useLinearInterpolation() {
|
|
41750
|
+
return this.interpolation === 'linear' || this.interpolation === 'none' && !!this.passingValue && this.hasPassingValueInData;
|
|
41751
|
+
}
|
|
41752
|
+
/**
|
|
41753
|
+
* @typedef {Object} LineDrawParam
|
|
41754
|
+
* @property {CanvasRenderingContext2D} ctx - 캔버스 렌더링 컨텍스트
|
|
41755
|
+
* @property {object} chartRect - 차트 영역 정보
|
|
41756
|
+
* @property {object} labelOffset - 라벨 오프셋 정보
|
|
41757
|
+
* @property {object} axesSteps - 축 스텝 정보
|
|
41758
|
+
* @property {object} [selectLabel] - 선택된 라벨 정보
|
|
41759
|
+
* @property {object} [selectSeries] - 선택된 시리즈 정보
|
|
41760
|
+
* @property {object} [legendHitInfo] - 범례 히트 정보
|
|
41761
|
+
* @property {boolean} [isBrush] - 브러시 사용 여부
|
|
41762
|
+
*/
|
|
41761
41763
|
|
|
41764
|
+
/**
|
|
41765
|
+
* Draw series data
|
|
41766
|
+
* @param {LineDrawParam} param object for drawing series data
|
|
41767
|
+
*
|
|
41768
|
+
* @returns {undefined}
|
|
41769
|
+
*/
|
|
41762
41770
|
|
|
41763
|
-
|
|
41771
|
+
}, {
|
|
41764
41772
|
key: "draw",
|
|
41765
41773
|
value: function draw(param) {
|
|
41766
41774
|
var _selectLabel$selected,
|
|
@@ -41823,6 +41831,7 @@ var element_line_Line = /*#__PURE__*/function () {
|
|
|
41823
41831
|
}
|
|
41824
41832
|
|
|
41825
41833
|
var endPoint = chartRect.y2 - labelOffset.bottom;
|
|
41834
|
+
var isLinearInterpolation = this.useLinearInterpolation();
|
|
41826
41835
|
var barAreaByCombo = 0;
|
|
41827
41836
|
var minmaxX = axesSteps.x[this.xAxisIndex];
|
|
41828
41837
|
var minmaxY = axesSteps.y[this.yAxisIndex];
|
|
@@ -41854,7 +41863,7 @@ var element_line_Line = /*#__PURE__*/function () {
|
|
|
41854
41863
|
var x = getXPos(curr.x);
|
|
41855
41864
|
var y = getYPos(curr.y);
|
|
41856
41865
|
|
|
41857
|
-
if (_this2.isExistGrp &&
|
|
41866
|
+
if (_this2.isExistGrp && isLinearInterpolation && curr.o === null) {
|
|
41858
41867
|
var _curr$b;
|
|
41859
41868
|
|
|
41860
41869
|
y = getYPos((_curr$b = curr.b) !== null && _curr$b !== void 0 ? _curr$b : 0);
|
|
@@ -41867,13 +41876,13 @@ var element_line_Line = /*#__PURE__*/function () {
|
|
|
41867
41876
|
curr.xp = x;
|
|
41868
41877
|
curr.yp = y;
|
|
41869
41878
|
|
|
41870
|
-
if (
|
|
41879
|
+
if (isLinearInterpolation && curr.o === null) {
|
|
41871
41880
|
if (!_this2.isExistGrp) {
|
|
41872
41881
|
return;
|
|
41873
41882
|
}
|
|
41874
41883
|
}
|
|
41875
41884
|
|
|
41876
|
-
if (lodash_es_isNil((_prevValid = prevValid) === null || _prevValid === void 0 ? void 0 : _prevValid.y) && !_this2.isExistGrp || !
|
|
41885
|
+
if (lodash_es_isNil((_prevValid = prevValid) === null || _prevValid === void 0 ? void 0 : _prevValid.y) && !_this2.isExistGrp || !isLinearInterpolation && (lodash_es_isNil((_prevValid2 = prevValid) === null || _prevValid2 === void 0 ? void 0 : _prevValid2.y) || lodash_es_isNil(curr.o))) {
|
|
41877
41886
|
ctx.moveTo(x, y);
|
|
41878
41887
|
} else {
|
|
41879
41888
|
ctx.lineTo(x, y);
|
|
@@ -41925,7 +41934,7 @@ var element_line_Line = /*#__PURE__*/function () {
|
|
|
41925
41934
|
var needFillDataIndexList = [];
|
|
41926
41935
|
|
|
41927
41936
|
for (var i = 0; i < valueArray.length + 1; i++) {
|
|
41928
|
-
if (
|
|
41937
|
+
if (isLinearInterpolation && lodash_es_isUndefined(valueArray[i]) || !isLinearInterpolation && lodash_es_isNil(valueArray[i])) {
|
|
41929
41938
|
if (start !== null && end !== null) {
|
|
41930
41939
|
var temp = valueArray.slice(start, i);
|
|
41931
41940
|
var lastNormalValueIndex = temp.findLastIndex(function (item) {
|
|
@@ -41935,7 +41944,7 @@ var element_line_Line = /*#__PURE__*/function () {
|
|
|
41935
41944
|
start = null;
|
|
41936
41945
|
end = null;
|
|
41937
41946
|
}
|
|
41938
|
-
} else if (
|
|
41947
|
+
} else if (isLinearInterpolation && valueArray[i] === null) {
|
|
41939
41948
|
end = i;
|
|
41940
41949
|
} else {
|
|
41941
41950
|
start = start === null ? i : start;
|
|
@@ -42003,7 +42012,7 @@ var element_line_Line = /*#__PURE__*/function () {
|
|
|
42003
42012
|
|
|
42004
42013
|
var prevData = (_this2$data = _this2.data[ix - 1]) === null || _this2$data === void 0 ? void 0 : _this2$data.o;
|
|
42005
42014
|
var nextData = (_this2$data2 = _this2.data[ix + 1]) === null || _this2$data2 === void 0 ? void 0 : _this2$data2.o;
|
|
42006
|
-
var isSingle = !
|
|
42015
|
+
var isSingle = !isLinearInterpolation && lodash_es_isNil(prevData) && lodash_es_isNil(nextData) || isLinearSingle;
|
|
42007
42016
|
var isSelectedLabel = selectedLabelIndexList.includes(ix);
|
|
42008
42017
|
|
|
42009
42018
|
if (_this2.point || isSingle || isSelectedLabel) {
|
|
@@ -42072,6 +42081,7 @@ var element_line_Line = /*#__PURE__*/function () {
|
|
|
42072
42081
|
return !helpers_util.isNullOrUndefined(data.x);
|
|
42073
42082
|
});
|
|
42074
42083
|
var SPARE_XP = 0.5;
|
|
42084
|
+
var isLinearInterpolation = this.useLinearInterpolation();
|
|
42075
42085
|
|
|
42076
42086
|
if (gdata !== null && gdata !== void 0 && gdata.length) {
|
|
42077
42087
|
if (typeof dataIndex === 'number' && this.show) {
|
|
@@ -42155,7 +42165,7 @@ var element_line_Line = /*#__PURE__*/function () {
|
|
|
42155
42165
|
}
|
|
42156
42166
|
}
|
|
42157
42167
|
|
|
42158
|
-
if (
|
|
42168
|
+
if (isLinearInterpolation && (item === null || item === void 0 ? void 0 : (_item$data = item.data) === null || _item$data === void 0 ? void 0 : _item$data.o) === null) {
|
|
42159
42169
|
item.data = null;
|
|
42160
42170
|
}
|
|
42161
42171
|
|