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.
@@ -11174,7 +11174,7 @@ module.exports = exports;
11174
11174
  /***/ "9224":
11175
11175
  /***/ (function(module) {
11176
11176
 
11177
- module.exports = JSON.parse("{\"a\":\"3.4.124\"}");
11177
+ module.exports = JSON.parse("{\"a\":\"3.4.126\"}");
11178
11178
 
11179
11179
  /***/ }),
11180
11180
 
@@ -45411,9 +45411,6 @@ var scale_Scale = /*#__PURE__*/function () {
45411
45411
  var mergedPlotLineOpt = lodash_es_defaultsDeep({}, plotLine, PLOT_LINE_OPTION);
45412
45412
  var value = mergedPlotLineOpt.value,
45413
45413
  labelOpt = mergedPlotLineOpt.label;
45414
-
45415
- _this3.setPlotLineStyle(mergedPlotLineOpt);
45416
-
45417
45414
  var dataPos;
45418
45415
 
45419
45416
  if (_this3.type === 'x') {
@@ -45423,6 +45420,8 @@ var scale_Scale = /*#__PURE__*/function () {
45423
45420
  return;
45424
45421
  }
45425
45422
 
45423
+ _this3.setPlotLineStyle(mergedPlotLineOpt);
45424
+
45426
45425
  _this3.drawXPlotLine(dataPos, minX, maxX, minY, maxY);
45427
45426
  } else {
45428
45427
  dataPos = helpers_canvas.calculateY(value, axisMin, axisMax, yArea, maxY);
@@ -45431,6 +45430,8 @@ var scale_Scale = /*#__PURE__*/function () {
45431
45430
  return;
45432
45431
  }
45433
45432
 
45433
+ _this3.setPlotLineStyle(mergedPlotLineOpt);
45434
+
45434
45435
  _this3.drawYPlotLine(dataPos, minX, maxX, minY, maxY);
45435
45436
  }
45436
45437
 
@@ -46783,9 +46784,7 @@ var scale_time_category_TimeCategoryScale = /*#__PURE__*/function (_Scale) {
46783
46784
  var axisMin = stepInfo.graphMin;
46784
46785
  var axisMax = stepInfo.graphMax;
46785
46786
  var stepValue = stepInfo.rawInterval;
46786
- var oriSteps = stepInfo.oriSteps; // 2개 이하일 경우, 첫번째와 마지막 라벨만 표시
46787
-
46788
- var count = steps <= 2 ? oriSteps : Math.round(oriSteps / steps);
46787
+ var oriSteps = stepInfo.oriSteps;
46789
46788
  var startPoint = aPos[this.units.rectStart];
46790
46789
  var endPoint = aPos[this.units.rectEnd];
46791
46790
  var offsetPoint = aPos[this.units.rectOffset(this.position)];
@@ -46837,8 +46836,18 @@ var scale_time_category_TimeCategoryScale = /*#__PURE__*/function (_Scale) {
46837
46836
  ctx.strokeStyle = this.gridLineColor;
46838
46837
  var labelText;
46839
46838
  var labelPoint;
46840
- var ix;
46841
- var maxIndex = oriSteps === count ? oriSteps : oriSteps - 1;
46839
+ var ix; // 2개 이하일 경우, 첫번째와 마지막 라벨만 표시
46840
+
46841
+ var count = steps <= 2 ? oriSteps : Math.round(oriSteps / steps); // 첫번째 라벨이 축 시작점보다 오른쪽에 있을 경우, count를 1로 설정
46842
+ // 추후 개선 필요: 근본적 문제는 라벨이 2개인 경우 oriSteps가 1로 와야하는데 2로 옴. horizontal일 때 예외처리 필요.
46843
+
46844
+ var isStartPointRightOfRectStart = startPoint > Math.ceil(aPos[this.units.rectStart]);
46845
+
46846
+ if (this.type === 'x' && isStartPointRightOfRectStart && count === oriSteps) {
46847
+ count = 1;
46848
+ }
46849
+
46850
+ var maxIndex = count === oriSteps ? oriSteps : oriSteps - 1;
46842
46851
 
46843
46852
  var _loop = function _loop() {
46844
46853
  var _this2$options, _this2$options$select, _this2$options2, _this2$options2$selec, _selectLabelInfo$data;
@@ -46899,7 +46908,7 @@ var scale_time_category_TimeCategoryScale = /*#__PURE__*/function (_Scale) {
46899
46908
  }
46900
46909
  }
46901
46910
 
46902
- if (ix !== 0 && ix < oriSteps && _this2.showGrid) {
46911
+ if (ix < oriSteps && _this2.showGrid && (isStartPointRightOfRectStart || !isStartPointRightOfRectStart && ix !== 0)) {
46903
46912
  ctx.moveTo(linePosition, offsetPoint);
46904
46913
  ctx.lineTo(linePosition, offsetCounterPoint);
46905
46914
  }
@@ -46907,7 +46916,7 @@ var scale_time_category_TimeCategoryScale = /*#__PURE__*/function (_Scale) {
46907
46916
  labelPoint = _this2.position === 'left' ? offsetPoint - 10 : offsetPoint + 10;
46908
46917
  ctx.fillText(labelText, labelPoint, labelCenter);
46909
46918
 
46910
- if (ix !== 0 && ix < oriSteps && _this2.showGrid) {
46919
+ if (ix < oriSteps && _this2.showGrid && (isStartPointRightOfRectStart || !isStartPointRightOfRectStart && ix !== 0)) {
46911
46920
  ctx.moveTo(offsetPoint, linePosition);
46912
46921
  ctx.lineTo(offsetCounterPoint, linePosition);
46913
46922
  }
@@ -50435,6 +50444,8 @@ function inRange(number, start, end) {
50435
50444
 
50436
50445
 
50437
50446
 
50447
+
50448
+
50438
50449
 
50439
50450
 
50440
50451
  var plugins_interaction_modules = {
@@ -50488,7 +50499,23 @@ var plugins_interaction_modules = {
50488
50499
 
50489
50500
  _this.drawItemsHighlight(hitInfo, ctx);
50490
50501
 
50491
- if (tooltip !== null && tooltip !== void 0 && (_tooltip$formatter = tooltip.formatter) !== null && _tooltip$formatter !== void 0 && _tooltip$formatter.html) {
50502
+ if (typeof (tooltip === null || tooltip === void 0 ? void 0 : tooltip.returnValue) === 'function') {
50503
+ var seriesList = [];
50504
+ Object.keys(hitInfo.items).forEach(function (sId) {
50505
+ seriesList.push({
50506
+ sId: sId,
50507
+ data: hitInfo.items[sId].data,
50508
+ color: hitInfo.items[sId].color,
50509
+ name: hitInfo.items[sId].name,
50510
+ dataId: hitInfo.items[sId].id,
50511
+ index: hitInfo.items[sId].index
50512
+ });
50513
+ });
50514
+
50515
+ _this.hideTooltipDOM();
50516
+
50517
+ tooltip.returnValue(seriesList, e);
50518
+ } else if (tooltip !== null && tooltip !== void 0 && (_tooltip$formatter = tooltip.formatter) !== null && _tooltip$formatter !== void 0 && _tooltip$formatter.html) {
50492
50519
  _this.drawCustomTooltip(hitInfo === null || hitInfo === void 0 ? void 0 : hitInfo.items);
50493
50520
 
50494
50521
  _this.setCustomTooltipLayoutPosition(hitInfo, e);
@@ -50505,6 +50532,10 @@ var plugins_interaction_modules = {
50505
50532
  }
50506
50533
  }
50507
50534
  } else if (tooltip.use && _this.isInitTooltip) {
50535
+ if (typeof (tooltip === null || tooltip === void 0 ? void 0 : tooltip.returnValue) === 'function') {
50536
+ tooltip.returnValue([], e);
50537
+ }
50538
+
50508
50539
  _this.hideTooltipDOM();
50509
50540
  }
50510
50541
 
@@ -50543,7 +50574,7 @@ var plugins_interaction_modules = {
50543
50574
  */
50544
50575
 
50545
50576
 
50546
- this.onMouseLeave = function () {
50577
+ this.onMouseLeave = function (e) {
50547
50578
  var _this$options2 = _this.options,
50548
50579
  tooltip = _this$options2.tooltip,
50549
50580
  dragSelection = _this$options2.dragSelection;
@@ -50557,6 +50588,10 @@ var plugins_interaction_modules = {
50557
50588
  }
50558
50589
 
50559
50590
  if (tooltip.use && _this.isInitTooltip) {
50591
+ if (typeof (tooltip === null || tooltip === void 0 ? void 0 : tooltip.returnValue) === 'function') {
50592
+ tooltip.returnValue([], e);
50593
+ }
50594
+
50560
50595
  _this.tooltipClear();
50561
50596
  }
50562
50597