evui 3.4.136 → 3.4.137

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.
@@ -11191,7 +11191,7 @@ $({ target: 'Number', stat: true }, {
11191
11191
  /***/ "9224":
11192
11192
  /***/ (function(module) {
11193
11193
 
11194
- module.exports = JSON.parse("{\"a\":\"3.4.136\"}");
11194
+ module.exports = JSON.parse("{\"a\":\"3.4.137\"}");
11195
11195
 
11196
11196
  /***/ }),
11197
11197
 
@@ -41340,11 +41340,12 @@ var AXIS_OPTION = {
41340
41340
  axisLineWidth: 1,
41341
41341
  showGrid: true,
41342
41342
  gridLineColor: '#C9CFDC',
41343
+ showAxisTick: true,
41343
41344
  showIndicator: false,
41344
41345
  timeFormat: 'mm:ss',
41345
41346
  range: null,
41346
41347
  interval: null,
41347
- decimalPoint: null,
41348
+ decimalPoint: 'auto',
41348
41349
  labelStyle: {
41349
41350
  show: true,
41350
41351
  fontSize: 12,
@@ -45272,7 +45273,11 @@ var scale_Scale = /*#__PURE__*/function () {
45272
45273
  }
45273
45274
 
45274
45275
  if (this.autoScaleRatio) {
45275
- maxValue = Math.ceil(maxValue * (this.autoScaleRatio + 1));
45276
+ if (this.decimalPoint) {
45277
+ maxValue *= this.autoScaleRatio + 1;
45278
+ } else {
45279
+ maxValue = Math.ceil(maxValue * (this.autoScaleRatio + 1));
45280
+ }
45276
45281
  }
45277
45282
 
45278
45283
  if (this.startToZero) {
@@ -45368,6 +45373,15 @@ var scale_Scale = /*#__PURE__*/function () {
45368
45373
  interval = Math.ceil((graphMax - graphMin) / numberOfSteps);
45369
45374
  }
45370
45375
 
45376
+ if (this.decimalPoint === 'auto') {
45377
+ var _this$getDecimalPoint;
45378
+
45379
+ this.decimalPoint = this === null || this === void 0 ? void 0 : (_this$getDecimalPoint = this.getDecimalPointFromRange) === null || _this$getDecimalPoint === void 0 ? void 0 : _this$getDecimalPoint.call(this, {
45380
+ graphRange: graphRange,
45381
+ numberOfSteps: numberOfSteps
45382
+ });
45383
+ }
45384
+
45371
45385
  return {
45372
45386
  steps: numberOfSteps,
45373
45387
  interval: interval,
@@ -45457,6 +45471,7 @@ var scale_Scale = /*#__PURE__*/function () {
45457
45471
  var endPoint = aPos[this.units.rectEnd];
45458
45472
  var offsetPoint = aPos[this.units.rectOffset(this.position)];
45459
45473
  var offsetCounterPoint = aPos[this.units.rectOffsetCounter(this.position)];
45474
+ var AXIS_TICK_LENGTH = 5;
45460
45475
  var aliasPixel;
45461
45476
  this.drawAxisTitle(chartRect, labelOffset); // label font 설정
45462
45477
 
@@ -45481,8 +45496,8 @@ var scale_Scale = /*#__PURE__*/function () {
45481
45496
  ctx.moveTo(startPoint, offsetPoint + aliasPixel);
45482
45497
  ctx.lineTo(endPoint, offsetPoint + aliasPixel);
45483
45498
  } else {
45484
- ctx.moveTo(offsetPoint + aliasPixel + 1, startPoint);
45485
- ctx.lineTo(offsetPoint + aliasPixel + 1, endPoint);
45499
+ ctx.moveTo(offsetPoint + aliasPixel, startPoint);
45500
+ ctx.lineTo(offsetPoint + aliasPixel, endPoint);
45486
45501
  }
45487
45502
 
45488
45503
  ctx.stroke();
@@ -45578,9 +45593,22 @@ var scale_Scale = /*#__PURE__*/function () {
45578
45593
  }
45579
45594
  }
45580
45595
 
45596
+ if (_this3.showAxisTick) {
45597
+ ctx.beginPath();
45598
+ ctx.strokeStyle = _this3.axisLineColor;
45599
+ ctx.moveTo(linePosition, offsetPoint);
45600
+ ctx.lineTo(linePosition, offsetPoint + AXIS_TICK_LENGTH);
45601
+ ctx.stroke();
45602
+ ctx.closePath();
45603
+ }
45604
+
45581
45605
  if ((ix !== 0 || options !== null && options !== void 0 && options.axesX[0].flow) && _this3.showGrid) {
45606
+ ctx.beginPath();
45607
+ ctx.strokeStyle = _this3.gridLineColor;
45582
45608
  ctx.moveTo(linePosition, offsetPoint);
45583
45609
  ctx.lineTo(linePosition, offsetCounterPoint);
45610
+ ctx.stroke();
45611
+ ctx.closePath();
45584
45612
  }
45585
45613
  } else {
45586
45614
  var _options$brush2;
@@ -45595,14 +45623,26 @@ var scale_Scale = /*#__PURE__*/function () {
45595
45623
  linePosition -= 1;
45596
45624
  }
45597
45625
 
45626
+ if (_this3.showAxisTick) {
45627
+ var _this3$axisLineWidth;
45628
+
45629
+ ctx.beginPath();
45630
+ ctx.strokeStyle = _this3.axisLineColor;
45631
+ ctx.moveTo(offsetPoint + ((_this3$axisLineWidth = _this3.axisLineWidth) !== null && _this3$axisLineWidth !== void 0 ? _this3$axisLineWidth : 1), linePosition);
45632
+ ctx.lineTo(offsetPoint - AXIS_TICK_LENGTH, linePosition);
45633
+ ctx.stroke();
45634
+ ctx.closePath();
45635
+ }
45636
+
45598
45637
  if (ix !== 0 && _this3.showGrid) {
45638
+ ctx.beginPath();
45639
+ ctx.strokeStyle = _this3.gridLineColor;
45599
45640
  ctx.moveTo(offsetPoint, linePosition);
45600
45641
  ctx.lineTo(offsetCounterPoint, linePosition);
45642
+ ctx.stroke();
45643
+ ctx.closePath();
45601
45644
  }
45602
45645
  }
45603
-
45604
- ctx.stroke();
45605
- ctx.closePath();
45606
45646
  }
45607
45647
  };
45608
45648
 
@@ -46269,7 +46309,56 @@ var scale_linear_LinearScale = /*#__PURE__*/function (_Scale) {
46269
46309
  var max = range.maxValue;
46270
46310
  var min = range.minValue;
46271
46311
  var step = range.maxSteps;
46272
- return this.interval ? this.interval : Math.ceil((max - min) / step);
46312
+
46313
+ if (this.interval) {
46314
+ return this.interval;
46315
+ }
46316
+
46317
+ if (this.decimalPoint) {
46318
+ return (max - min) / step;
46319
+ }
46320
+
46321
+ return Math.ceil((max - min) / step);
46322
+ }
46323
+ /**
46324
+ * Get decimal point from range
46325
+ * @param {object} {
46326
+ * graphRange: number,
46327
+ * numberOfSteps: number,
46328
+ * interval: number,
46329
+ * }
46330
+ * @returns {number} decimal point
46331
+ */
46332
+
46333
+ }, {
46334
+ key: "getDecimalPointFromRange",
46335
+ value: function getDecimalPointFromRange(_ref) {
46336
+ var graphRange = _ref.graphRange,
46337
+ numberOfSteps = _ref.numberOfSteps;
46338
+
46339
+ if (numberOfSteps <= 0 || graphRange === 0) {
46340
+ return 0;
46341
+ }
46342
+
46343
+ var interval = graphRange / numberOfSteps;
46344
+
46345
+ if (interval === 0) {
46346
+ return 0;
46347
+ }
46348
+
46349
+ var decimals = 0;
46350
+ var temp = interval;
46351
+
46352
+ while (temp < 1) {
46353
+ temp *= 10;
46354
+ decimals++;
46355
+
46356
+ if (decimals > 10) {
46357
+ break;
46358
+ }
46359
+ }
46360
+
46361
+ return decimals;
46273
46362
  }
46274
46363
  }]);
46275
46364
 
@@ -46617,6 +46706,7 @@ var scale_step_StepScale = /*#__PURE__*/function (_Scale) {
46617
46706
  var offsetPoint = aPos[this.units.rectOffset(this.position)];
46618
46707
  var offsetCounterPoint = aPos[this.units.rectOffsetCounter(this.position)];
46619
46708
  var maxWidth = (_this$labelStyle$maxW2 = (_this$labelStyle2 = this.labelStyle) === null || _this$labelStyle2 === void 0 ? void 0 : _this$labelStyle2.maxWidth) !== null && _this$labelStyle$maxW2 !== void 0 ? _this$labelStyle$maxW2 : chartRect.chartWidth / (steps + 2);
46709
+ var AXIS_TICK_LENGTH = 5;
46620
46710
  this.drawAxisTitle(chartRect, labelOffset);
46621
46711
 
46622
46712
  if ((_this$labelStyle3 = this.labelStyle) !== null && _this$labelStyle3 !== void 0 && _this$labelStyle3.show) {
@@ -46719,9 +46809,22 @@ var scale_step_StepScale = /*#__PURE__*/function (_Scale) {
46719
46809
  }
46720
46810
  }
46721
46811
 
46812
+ if (this.showAxisTick) {
46813
+ ctx.beginPath();
46814
+ ctx.strokeStyle = this.axisLineColor;
46815
+ ctx.moveTo(labelCenter + labelGap / 2, offsetPoint);
46816
+ ctx.lineTo(labelCenter + labelGap / 2, offsetPoint + AXIS_TICK_LENGTH);
46817
+ ctx.stroke();
46818
+ ctx.closePath();
46819
+ }
46820
+
46722
46821
  if (index > 0 && this.showGrid) {
46822
+ ctx.beginPath();
46823
+ ctx.strokeStyle = this.gridLineColor;
46723
46824
  ctx.moveTo(linePosition, offsetPoint);
46724
46825
  ctx.lineTo(linePosition, offsetCounterPoint);
46826
+ ctx.stroke();
46827
+ ctx.closePath();
46725
46828
  }
46726
46829
  } else {
46727
46830
  labelPoint = this.position === 'left' ? offsetPoint - 10 : offsetPoint + 10;
@@ -46729,9 +46832,24 @@ var scale_step_StepScale = /*#__PURE__*/function (_Scale) {
46729
46832
  ctx.fillText(labelText, labelPoint, yPoint);
46730
46833
  drawnLabels.push(labelText);
46731
46834
 
46835
+ if (this.showAxisTick) {
46836
+ var _this$axisLineWidth;
46837
+
46838
+ ctx.beginPath();
46839
+ ctx.strokeStyle = this.axisLineColor;
46840
+ ctx.moveTo(offsetPoint + ((_this$axisLineWidth = this.axisLineWidth) !== null && _this$axisLineWidth !== void 0 ? _this$axisLineWidth : 1), yPoint);
46841
+ ctx.lineTo(offsetPoint - AXIS_TICK_LENGTH, yPoint);
46842
+ ctx.stroke();
46843
+ ctx.closePath();
46844
+ }
46845
+
46732
46846
  if (index > 0 && this.showGrid) {
46847
+ ctx.beginPath();
46848
+ ctx.strokeStyle = this.gridLineColor;
46733
46849
  ctx.moveTo(offsetPoint, linePosition);
46734
46850
  ctx.lineTo(offsetCounterPoint, linePosition);
46851
+ ctx.stroke();
46852
+ ctx.closePath();
46735
46853
  }
46736
46854
  }
46737
46855
 
@@ -47056,6 +47174,7 @@ var scale_time_category_TimeCategoryScale = /*#__PURE__*/function (_Scale) {
47056
47174
  var endPoint = aPos[this.units.rectEnd];
47057
47175
  var offsetPoint = aPos[this.units.rectOffset(this.position)];
47058
47176
  var offsetCounterPoint = aPos[this.units.rectOffsetCounter(this.position)];
47177
+ var AXIS_TICK_LENGTH = 5;
47059
47178
  this.drawAxisTitle(chartRect, labelOffset); // label font 설정
47060
47179
 
47061
47180
  ctx.font = helpers_util.getLabelStyle(this.labelStyle);
@@ -47175,17 +47294,45 @@ var scale_time_category_TimeCategoryScale = /*#__PURE__*/function (_Scale) {
47175
47294
  }
47176
47295
  }
47177
47296
 
47297
+ if (_this2.showAxisTick) {
47298
+ ctx.beginPath();
47299
+ ctx.strokeStyle = _this2.axisLineColor;
47300
+ ctx.moveTo(linePosition, offsetPoint);
47301
+ ctx.lineTo(linePosition, offsetPoint + AXIS_TICK_LENGTH);
47302
+ ctx.stroke();
47303
+ ctx.closePath();
47304
+ }
47305
+
47178
47306
  if (ix < oriSteps && _this2.showGrid && (isStartPointRightOfRectStart || !isStartPointRightOfRectStart && ix !== 0)) {
47307
+ ctx.beginPath();
47308
+ ctx.strokeStyle = _this2.gridLineColor;
47179
47309
  ctx.moveTo(linePosition, offsetPoint);
47180
47310
  ctx.lineTo(linePosition, offsetCounterPoint);
47311
+ ctx.stroke();
47312
+ ctx.closePath();
47181
47313
  }
47182
47314
  } else {
47183
47315
  labelPoint = _this2.position === 'left' ? offsetPoint - 10 : offsetPoint + 10;
47184
47316
  ctx.fillText(labelText, labelPoint, labelCenter);
47185
47317
 
47318
+ if (_this2.showAxisTick) {
47319
+ var _this2$axisLineWidth;
47320
+
47321
+ ctx.beginPath();
47322
+ ctx.strokeStyle = _this2.axisLineColor;
47323
+ ctx.moveTo(offsetPoint + ((_this2$axisLineWidth = _this2.axisLineWidth) !== null && _this2$axisLineWidth !== void 0 ? _this2$axisLineWidth : 1), linePosition);
47324
+ ctx.lineTo(offsetPoint - AXIS_TICK_LENGTH, linePosition);
47325
+ ctx.stroke();
47326
+ ctx.closePath();
47327
+ }
47328
+
47186
47329
  if (ix < oriSteps && _this2.showGrid && (isStartPointRightOfRectStart || !isStartPointRightOfRectStart && ix !== 0)) {
47330
+ ctx.beginPath();
47331
+ ctx.strokeStyle = _this2.gridLineColor;
47187
47332
  ctx.moveTo(offsetPoint, linePosition);
47188
47333
  ctx.lineTo(offsetCounterPoint, linePosition);
47334
+ ctx.stroke();
47335
+ ctx.closePath();
47189
47336
  }
47190
47337
  }
47191
47338
 
@@ -51069,7 +51216,7 @@ var plugins_interaction_modules = {
51069
51216
  } // tooltip 기반 indicator가 아직 설정되지 않은 경우에만 일반 indicator 처리
51070
51217
 
51071
51218
 
51072
- if (!args.hoveredLabel && type !== 'pie' && type !== 'scatter' && type !== 'heatMap') {
51219
+ if (!args.hoveredLabel && !_this.isNotUseIndicator()) {
51073
51220
  // line 차트가 아니고 line series가 없거나, tooltip이 없을 때는 일반 indicator 표시
51074
51221
  var _hasLineSeries = Object.values(_this.seriesList || {}).some(function (series) {
51075
51222
  return series.type === 'line';
@@ -51966,7 +52113,7 @@ var plugins_interaction_modules = {
51966
52113
 
51967
52114
  var targetDataIndex = this.findClosestDataIndex(offset, sIds);
51968
52115
 
51969
- if (targetDataIndex === -1 && this.options.type !== 'pie') {
52116
+ if (targetDataIndex === -1 && !this.isNotUseIndicator()) {
51970
52117
  return {
51971
52118
  items: items,
51972
52119
  hitId: hitId,
@@ -52763,6 +52910,9 @@ var plugins_interaction_modules = {
52763
52910
 
52764
52911
  return 'canvas';
52765
52912
  },
52913
+ isNotUseIndicator: function isNotUseIndicator() {
52914
+ return this.options.type === 'pie' || this.options.type === 'scatter' || this.options.type === 'heatMap';
52915
+ },
52766
52916
 
52767
52917
  /**
52768
52918
  * Clear 'defaultSelectInfo'