evui 3.4.124 → 3.4.125

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.125\"}");
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
  }