evui 3.4.124 → 3.4.126
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 +48 -13
- package/dist/evui.common.js.map +1 -1
- package/dist/evui.umd.js +48 -13
- 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/plugins/plugins.interaction.js +25 -2
- package/src/components/chart/scale/scale.js +2 -2
- package/src/components/chart/scale/scale.time.category.js +22 -6
package/dist/evui.umd.js
CHANGED
|
@@ -11183,7 +11183,7 @@ module.exports = exports;
|
|
|
11183
11183
|
/***/ "9224":
|
|
11184
11184
|
/***/ (function(module) {
|
|
11185
11185
|
|
|
11186
|
-
module.exports = JSON.parse("{\"a\":\"3.4.
|
|
11186
|
+
module.exports = JSON.parse("{\"a\":\"3.4.126\"}");
|
|
11187
11187
|
|
|
11188
11188
|
/***/ }),
|
|
11189
11189
|
|
|
@@ -45420,9 +45420,6 @@ var scale_Scale = /*#__PURE__*/function () {
|
|
|
45420
45420
|
var mergedPlotLineOpt = lodash_es_defaultsDeep({}, plotLine, PLOT_LINE_OPTION);
|
|
45421
45421
|
var value = mergedPlotLineOpt.value,
|
|
45422
45422
|
labelOpt = mergedPlotLineOpt.label;
|
|
45423
|
-
|
|
45424
|
-
_this3.setPlotLineStyle(mergedPlotLineOpt);
|
|
45425
|
-
|
|
45426
45423
|
var dataPos;
|
|
45427
45424
|
|
|
45428
45425
|
if (_this3.type === 'x') {
|
|
@@ -45432,6 +45429,8 @@ var scale_Scale = /*#__PURE__*/function () {
|
|
|
45432
45429
|
return;
|
|
45433
45430
|
}
|
|
45434
45431
|
|
|
45432
|
+
_this3.setPlotLineStyle(mergedPlotLineOpt);
|
|
45433
|
+
|
|
45435
45434
|
_this3.drawXPlotLine(dataPos, minX, maxX, minY, maxY);
|
|
45436
45435
|
} else {
|
|
45437
45436
|
dataPos = helpers_canvas.calculateY(value, axisMin, axisMax, yArea, maxY);
|
|
@@ -45440,6 +45439,8 @@ var scale_Scale = /*#__PURE__*/function () {
|
|
|
45440
45439
|
return;
|
|
45441
45440
|
}
|
|
45442
45441
|
|
|
45442
|
+
_this3.setPlotLineStyle(mergedPlotLineOpt);
|
|
45443
|
+
|
|
45443
45444
|
_this3.drawYPlotLine(dataPos, minX, maxX, minY, maxY);
|
|
45444
45445
|
}
|
|
45445
45446
|
|
|
@@ -46792,9 +46793,7 @@ var scale_time_category_TimeCategoryScale = /*#__PURE__*/function (_Scale) {
|
|
|
46792
46793
|
var axisMin = stepInfo.graphMin;
|
|
46793
46794
|
var axisMax = stepInfo.graphMax;
|
|
46794
46795
|
var stepValue = stepInfo.rawInterval;
|
|
46795
|
-
var oriSteps = stepInfo.oriSteps;
|
|
46796
|
-
|
|
46797
|
-
var count = steps <= 2 ? oriSteps : Math.round(oriSteps / steps);
|
|
46796
|
+
var oriSteps = stepInfo.oriSteps;
|
|
46798
46797
|
var startPoint = aPos[this.units.rectStart];
|
|
46799
46798
|
var endPoint = aPos[this.units.rectEnd];
|
|
46800
46799
|
var offsetPoint = aPos[this.units.rectOffset(this.position)];
|
|
@@ -46846,8 +46845,18 @@ var scale_time_category_TimeCategoryScale = /*#__PURE__*/function (_Scale) {
|
|
|
46846
46845
|
ctx.strokeStyle = this.gridLineColor;
|
|
46847
46846
|
var labelText;
|
|
46848
46847
|
var labelPoint;
|
|
46849
|
-
var ix;
|
|
46850
|
-
|
|
46848
|
+
var ix; // 2개 이하일 경우, 첫번째와 마지막 라벨만 표시
|
|
46849
|
+
|
|
46850
|
+
var count = steps <= 2 ? oriSteps : Math.round(oriSteps / steps); // 첫번째 라벨이 축 시작점보다 오른쪽에 있을 경우, count를 1로 설정
|
|
46851
|
+
// 추후 개선 필요: 근본적 문제는 라벨이 2개인 경우 oriSteps가 1로 와야하는데 2로 옴. horizontal일 때 예외처리 필요.
|
|
46852
|
+
|
|
46853
|
+
var isStartPointRightOfRectStart = startPoint > Math.ceil(aPos[this.units.rectStart]);
|
|
46854
|
+
|
|
46855
|
+
if (this.type === 'x' && isStartPointRightOfRectStart && count === oriSteps) {
|
|
46856
|
+
count = 1;
|
|
46857
|
+
}
|
|
46858
|
+
|
|
46859
|
+
var maxIndex = count === oriSteps ? oriSteps : oriSteps - 1;
|
|
46851
46860
|
|
|
46852
46861
|
var _loop = function _loop() {
|
|
46853
46862
|
var _this2$options, _this2$options$select, _this2$options2, _this2$options2$selec, _selectLabelInfo$data;
|
|
@@ -46908,7 +46917,7 @@ var scale_time_category_TimeCategoryScale = /*#__PURE__*/function (_Scale) {
|
|
|
46908
46917
|
}
|
|
46909
46918
|
}
|
|
46910
46919
|
|
|
46911
|
-
if (ix
|
|
46920
|
+
if (ix < oriSteps && _this2.showGrid && (isStartPointRightOfRectStart || !isStartPointRightOfRectStart && ix !== 0)) {
|
|
46912
46921
|
ctx.moveTo(linePosition, offsetPoint);
|
|
46913
46922
|
ctx.lineTo(linePosition, offsetCounterPoint);
|
|
46914
46923
|
}
|
|
@@ -46916,7 +46925,7 @@ var scale_time_category_TimeCategoryScale = /*#__PURE__*/function (_Scale) {
|
|
|
46916
46925
|
labelPoint = _this2.position === 'left' ? offsetPoint - 10 : offsetPoint + 10;
|
|
46917
46926
|
ctx.fillText(labelText, labelPoint, labelCenter);
|
|
46918
46927
|
|
|
46919
|
-
if (ix
|
|
46928
|
+
if (ix < oriSteps && _this2.showGrid && (isStartPointRightOfRectStart || !isStartPointRightOfRectStart && ix !== 0)) {
|
|
46920
46929
|
ctx.moveTo(offsetPoint, linePosition);
|
|
46921
46930
|
ctx.lineTo(offsetCounterPoint, linePosition);
|
|
46922
46931
|
}
|
|
@@ -50444,6 +50453,8 @@ function inRange(number, start, end) {
|
|
|
50444
50453
|
|
|
50445
50454
|
|
|
50446
50455
|
|
|
50456
|
+
|
|
50457
|
+
|
|
50447
50458
|
|
|
50448
50459
|
|
|
50449
50460
|
var plugins_interaction_modules = {
|
|
@@ -50497,7 +50508,23 @@ var plugins_interaction_modules = {
|
|
|
50497
50508
|
|
|
50498
50509
|
_this.drawItemsHighlight(hitInfo, ctx);
|
|
50499
50510
|
|
|
50500
|
-
if (tooltip
|
|
50511
|
+
if (typeof (tooltip === null || tooltip === void 0 ? void 0 : tooltip.returnValue) === 'function') {
|
|
50512
|
+
var seriesList = [];
|
|
50513
|
+
Object.keys(hitInfo.items).forEach(function (sId) {
|
|
50514
|
+
seriesList.push({
|
|
50515
|
+
sId: sId,
|
|
50516
|
+
data: hitInfo.items[sId].data,
|
|
50517
|
+
color: hitInfo.items[sId].color,
|
|
50518
|
+
name: hitInfo.items[sId].name,
|
|
50519
|
+
dataId: hitInfo.items[sId].id,
|
|
50520
|
+
index: hitInfo.items[sId].index
|
|
50521
|
+
});
|
|
50522
|
+
});
|
|
50523
|
+
|
|
50524
|
+
_this.hideTooltipDOM();
|
|
50525
|
+
|
|
50526
|
+
tooltip.returnValue(seriesList, e);
|
|
50527
|
+
} else if (tooltip !== null && tooltip !== void 0 && (_tooltip$formatter = tooltip.formatter) !== null && _tooltip$formatter !== void 0 && _tooltip$formatter.html) {
|
|
50501
50528
|
_this.drawCustomTooltip(hitInfo === null || hitInfo === void 0 ? void 0 : hitInfo.items);
|
|
50502
50529
|
|
|
50503
50530
|
_this.setCustomTooltipLayoutPosition(hitInfo, e);
|
|
@@ -50514,6 +50541,10 @@ var plugins_interaction_modules = {
|
|
|
50514
50541
|
}
|
|
50515
50542
|
}
|
|
50516
50543
|
} else if (tooltip.use && _this.isInitTooltip) {
|
|
50544
|
+
if (typeof (tooltip === null || tooltip === void 0 ? void 0 : tooltip.returnValue) === 'function') {
|
|
50545
|
+
tooltip.returnValue([], e);
|
|
50546
|
+
}
|
|
50547
|
+
|
|
50517
50548
|
_this.hideTooltipDOM();
|
|
50518
50549
|
}
|
|
50519
50550
|
|
|
@@ -50552,7 +50583,7 @@ var plugins_interaction_modules = {
|
|
|
50552
50583
|
*/
|
|
50553
50584
|
|
|
50554
50585
|
|
|
50555
|
-
this.onMouseLeave = function () {
|
|
50586
|
+
this.onMouseLeave = function (e) {
|
|
50556
50587
|
var _this$options2 = _this.options,
|
|
50557
50588
|
tooltip = _this$options2.tooltip,
|
|
50558
50589
|
dragSelection = _this$options2.dragSelection;
|
|
@@ -50566,6 +50597,10 @@ var plugins_interaction_modules = {
|
|
|
50566
50597
|
}
|
|
50567
50598
|
|
|
50568
50599
|
if (tooltip.use && _this.isInitTooltip) {
|
|
50600
|
+
if (typeof (tooltip === null || tooltip === void 0 ? void 0 : tooltip.returnValue) === 'function') {
|
|
50601
|
+
tooltip.returnValue([], e);
|
|
50602
|
+
}
|
|
50603
|
+
|
|
50569
50604
|
_this.tooltipClear();
|
|
50570
50605
|
}
|
|
50571
50606
|
|