evui 3.4.147 → 3.4.148
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 +52 -14
- package/dist/evui.common.js.map +1 -1
- package/dist/evui.umd.js +52 -14
- 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.tooltip.js +32 -11
package/dist/evui.common.js
CHANGED
|
@@ -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.
|
|
11230
|
+
module.exports = JSON.parse("{\"a\":\"3.4.148\"}");
|
|
11231
11231
|
|
|
11232
11232
|
/***/ }),
|
|
11233
11233
|
|
|
@@ -54040,14 +54040,13 @@ var plugins_tooltip_modules = {
|
|
|
54040
54040
|
}
|
|
54041
54041
|
|
|
54042
54042
|
var horizontal = this.options.horizontal;
|
|
54043
|
+
var rect = this.chartDOM.getBoundingClientRect();
|
|
54043
54044
|
|
|
54044
|
-
var
|
|
54045
|
-
|
|
54046
|
-
|
|
54047
|
-
left = _this$chartDOM$getBou2.left,
|
|
54048
|
-
right = _this$chartDOM$getBou2.right;
|
|
54045
|
+
var _mousePosition2 = _slicedToArray(mousePosition, 2),
|
|
54046
|
+
mouseX = _mousePosition2[0],
|
|
54047
|
+
mouseY = _mousePosition2[1];
|
|
54049
54048
|
|
|
54050
|
-
var isHoveredChart = lodash_es_inRange(
|
|
54049
|
+
var isHoveredChart = lodash_es_inRange(mouseX, rect.left, rect.right) && lodash_es_inRange(mouseY, rect.bottom, rect.top);
|
|
54051
54050
|
|
|
54052
54051
|
if (isHoveredChart) {
|
|
54053
54052
|
return;
|
|
@@ -54064,25 +54063,64 @@ var plugins_tooltip_modules = {
|
|
|
54064
54063
|
var indicatorPosition;
|
|
54065
54064
|
|
|
54066
54065
|
if (horizontal) {
|
|
54067
|
-
var _this$options$axesY;
|
|
54068
|
-
|
|
54069
|
-
var chartHeight = graphPos.y2 - graphPos.y1; // CategoryMode인 경우 라벨들이 균등 간격으로 배치됨
|
|
54066
|
+
var _this$options$axesY, _this$options$axesY2;
|
|
54070
54067
|
|
|
54068
|
+
var chartHeight = graphPos.y2 - graphPos.y1;
|
|
54071
54069
|
var isCategoryMode = (_this$options$axesY = this.options.axesY) === null || _this$options$axesY === void 0 ? void 0 : _this$options$axesY.some(function (axis) {
|
|
54072
54070
|
return axis.categoryMode;
|
|
54073
54071
|
});
|
|
54074
|
-
var
|
|
54072
|
+
var isTimeAxis = (_this$options$axesY2 = this.options.axesY) === null || _this$options$axesY2 === void 0 ? void 0 : _this$options$axesY2.some(function (axis) {
|
|
54073
|
+
return axis.type === 'time';
|
|
54074
|
+
});
|
|
54075
|
+
var positionY;
|
|
54076
|
+
|
|
54077
|
+
if (isCategoryMode) {
|
|
54078
|
+
positionY = graphPos.y1 + chartHeight * (matchingLabelIndex + 0.5) / labelsCount;
|
|
54079
|
+
} else if (isTimeAxis) {
|
|
54080
|
+
var _this$axesSteps, _this$axesSteps$y, _axisStep$graphMin, _this$data$labels8, _axisStep$graphMax, _this$data$labels9;
|
|
54081
|
+
|
|
54082
|
+
// 틱 위치와 동일하게 graphMin/graphMax 사용
|
|
54083
|
+
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];
|
|
54084
|
+
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]);
|
|
54085
|
+
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]);
|
|
54086
|
+
positionY = graphPos.y1 + chartHeight * (+dataLabel - graphMin) / (graphMax - graphMin);
|
|
54087
|
+
} else {
|
|
54088
|
+
positionY = graphPos.y1 + chartHeight * matchingLabelIndex / (labelsCount - 1);
|
|
54089
|
+
}
|
|
54090
|
+
|
|
54075
54091
|
indicatorPosition = [graphPos.x2, positionY];
|
|
54076
54092
|
} else {
|
|
54077
|
-
var _this$options$axesX;
|
|
54093
|
+
var _this$options$axesX, _this$options$axesX2;
|
|
54078
54094
|
|
|
54079
|
-
var chartWidth = graphPos.x2 - graphPos.x1;
|
|
54095
|
+
var chartWidth = graphPos.x2 - graphPos.x1;
|
|
54080
54096
|
|
|
54081
54097
|
var _isCategoryMode = (_this$options$axesX = this.options.axesX) === null || _this$options$axesX === void 0 ? void 0 : _this$options$axesX.some(function (axis) {
|
|
54082
54098
|
return axis.categoryMode;
|
|
54083
54099
|
});
|
|
54084
54100
|
|
|
54085
|
-
var
|
|
54101
|
+
var _isTimeAxis = (_this$options$axesX2 = this.options.axesX) === null || _this$options$axesX2 === void 0 ? void 0 : _this$options$axesX2.some(function (axis) {
|
|
54102
|
+
return axis.type === 'time';
|
|
54103
|
+
});
|
|
54104
|
+
|
|
54105
|
+
var positionX;
|
|
54106
|
+
|
|
54107
|
+
if (_isCategoryMode) {
|
|
54108
|
+
positionX = graphPos.x1 + chartWidth * (matchingLabelIndex + 0.5) / labelsCount;
|
|
54109
|
+
} else if (_isTimeAxis) {
|
|
54110
|
+
var _this$axesSteps2, _this$axesSteps2$x, _axisStep$graphMin2, _this$data$labels10, _axisStep$graphMax2, _this$data$labels11;
|
|
54111
|
+
|
|
54112
|
+
// 틱 위치와 동일하게 graphMin/graphMax 사용
|
|
54113
|
+
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];
|
|
54114
|
+
|
|
54115
|
+
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]);
|
|
54116
|
+
|
|
54117
|
+
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]);
|
|
54118
|
+
|
|
54119
|
+
positionX = graphPos.x1 + chartWidth * (+dataLabel - _graphMin) / (_graphMax - _graphMin);
|
|
54120
|
+
} else {
|
|
54121
|
+
positionX = graphPos.x1 + chartWidth * matchingLabelIndex / (labelsCount - 1);
|
|
54122
|
+
}
|
|
54123
|
+
|
|
54086
54124
|
indicatorPosition = [positionX, graphPos.y2];
|
|
54087
54125
|
}
|
|
54088
54126
|
|