evui 3.4.118 → 3.4.120

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.
@@ -11171,7 +11171,7 @@ module.exports = exports;
11171
11171
  /***/ "9224":
11172
11172
  /***/ (function(module) {
11173
11173
 
11174
- module.exports = JSON.parse("{\"a\":\"3.4.118\"}");
11174
+ module.exports = JSON.parse("{\"a\":\"3.4.120\"}");
11175
11175
 
11176
11176
  /***/ }),
11177
11177
 
@@ -38816,12 +38816,14 @@ var modules = {
38816
38816
  });
38817
38817
  } else {
38818
38818
  seriesIDs.forEach(function (seriesID) {
38819
+ var _data$seriesID, _data$seriesID2;
38820
+
38819
38821
  var series = _this.seriesList[seriesID];
38820
- var hasPassingValueInData = data[seriesID].some(function (item) {
38822
+ var hasPassingValueInData = data === null || data === void 0 ? void 0 : (_data$seriesID = data[seriesID]) === null || _data$seriesID === void 0 ? void 0 : _data$seriesID.some(function (item) {
38821
38823
  return item === series.passingValue;
38822
38824
  });
38823
38825
  series.hasPassingValueInData = hasPassingValueInData;
38824
- var sData = data[seriesID].map(function (item) {
38826
+ var sData = data === null || data === void 0 ? void 0 : (_data$seriesID2 = data[seriesID]) === null || _data$seriesID2 === void 0 ? void 0 : _data$seriesID2.map(function (item) {
38825
38827
  if (series.interpolation === 'zero' && !item) {
38826
38828
  return 0;
38827
38829
  }
@@ -42433,33 +42435,30 @@ var element_scatter_Scatter = /*#__PURE__*/function () {
42433
42435
  }, {
42434
42436
  key: "defaultScatterDraw",
42435
42437
  value: function defaultScatterDraw(param) {
42436
- var _this2 = this;
42437
-
42438
42438
  var ctx = param.ctx,
42439
42439
  axesSteps = param.axesSteps,
42440
42440
  duple = param.duple,
42441
42441
  legendHitInfo = param.legendHitInfo;
42442
- var minmaxY = axesSteps.y[this.yAxisIndex];
42443
- this.data.forEach(function (item, idx) {
42444
- var shouldDraw = legendHitInfo ? legendHitInfo.sId === _this2.sId : !duple.has("".concat(item.x).concat(item.y));
42442
+ var minmaxY = axesSteps.y[this.yAxisIndex]; // Adjusted because Real Time Scatter is drawn from the back.
42445
42443
 
42446
- if (shouldDraw) {
42447
- if (!duple.has("".concat(item.x).concat(item.y))) {
42448
- duple.add("".concat(item.x).concat(item.y));
42449
- }
42444
+ for (var i = 0; i < this.data.length; i++) {
42445
+ var item = this.data[i];
42446
+ var idx = i;
42447
+ var shouldDraw = legendHitInfo ? legendHitInfo.sId === this.sId : duple.get("".concat(item.x).concat(item.y)) === this.sId;
42450
42448
 
42451
- _this2.calcItem(item, param);
42449
+ if (shouldDraw) {
42450
+ this.calcItem(item, param);
42452
42451
 
42453
42452
  if (item.xp !== null && item.yp !== null) {
42454
- var overflowColor = item.y > minmaxY.graphMax && _this2.overflowColor;
42455
- var color = overflowColor || item.dataColor || _this2.color;
42456
- ctx.strokeStyle = helpers_util.colorStringToRgba(color, _this2.getOpacity(param, color, idx));
42457
- var pointFillColor = item.dataColor || _this2.pointFill;
42458
- ctx.fillStyle = helpers_util.colorStringToRgba(pointFillColor, _this2.getOpacity(param, pointFillColor, idx));
42459
- helpers_canvas.drawPoint(ctx, _this2.pointStyle, _this2.pointSize, item.xp, item.yp);
42453
+ var overflowColor = item.y > minmaxY.graphMax && this.overflowColor;
42454
+ var color = overflowColor || item.dataColor || this.color;
42455
+ ctx.strokeStyle = helpers_util.colorStringToRgba(color, this.getOpacity(param, color, idx));
42456
+ var pointFillColor = item.dataColor || this.pointFill;
42457
+ ctx.fillStyle = helpers_util.colorStringToRgba(pointFillColor, this.getOpacity(param, pointFillColor, idx));
42458
+ helpers_canvas.drawPoint(ctx, this.pointStyle, this.pointSize, item.xp, item.yp);
42460
42459
  }
42461
42460
  }
42462
- });
42461
+ }
42463
42462
  }
42464
42463
  /**
42465
42464
  * Draw real time scatter chart
@@ -42486,13 +42485,9 @@ var element_scatter_Scatter = /*#__PURE__*/function () {
42486
42485
  var _this$data$this$sId2, _this$data$this$sId2$, _this$data$this$sId3, _this$data$this$sId3$;
42487
42486
 
42488
42487
  var item = (_this$data$this$sId3 = this.data[this.sId]) === null || _this$data$this$sId3 === void 0 ? void 0 : (_this$data$this$sId3$ = _this$data$this$sId3.dataGroup[i]) === null || _this$data$this$sId3$ === void 0 ? void 0 : _this$data$this$sId3$.data[j];
42489
- var shouldDraw = legendHitInfo ? legendHitInfo.sId === this.sId : !duple.has("".concat(item.x).concat(item.y));
42488
+ var shouldDraw = legendHitInfo ? legendHitInfo.sId === this.sId : duple.get("".concat(item.x).concat(item.y)) === this.sId;
42490
42489
 
42491
42490
  if (shouldDraw) {
42492
- if (!duple.has("".concat(item.x).concat(item.y))) {
42493
- duple.add("".concat(item.x).concat(item.y));
42494
- }
42495
-
42496
42491
  this.calcItem(item, param);
42497
42492
 
42498
42493
  if (item.xp !== null && item.yp !== null) {
@@ -45232,116 +45227,122 @@ var scale_Scale = /*#__PURE__*/function () {
45232
45227
  }
45233
45228
 
45234
45229
  if ((_this$labelStyle2 = this.labelStyle) !== null && _this$labelStyle2 !== void 0 && _this$labelStyle2.show) {
45235
- var distance = endPoint - startPoint;
45236
- var labelGap = distance / steps;
45237
- var ticks = [];
45238
- var size = stepInfo.interval;
45239
- var labelCenter = null;
45240
- var linePosition = null;
45241
- var offsetStartPoint = startPoint;
45242
- var axisMinForLabel = axisMin;
45243
-
45244
- if (this.type === 'x' && options !== null && options !== void 0 && options.axesX[0].flow && dataLabels.length !== steps + 1) {
45245
- var axisMinByMinutes = Math.floor(axisMin / size) * size;
45246
-
45247
- if (axisMinByMinutes !== +axisMin) {
45248
- axisMinForLabel = axisMinByMinutes + size;
45249
- offsetStartPoint += distance / (axisMax - axisMin) * (axisMinForLabel - axisMin);
45230
+ (function () {
45231
+ var distance = endPoint - startPoint;
45232
+ var labelGap = distance / steps;
45233
+ var ticks = [];
45234
+ var size = stepInfo.interval;
45235
+ var labelCenter = null;
45236
+ var linePosition = null;
45237
+ var offsetStartPoint = startPoint;
45238
+ var axisMinForLabel = axisMin;
45239
+
45240
+ if (_this3.type === 'x' && options !== null && options !== void 0 && options.axesX[0].flow && dataLabels.length !== steps + 1) {
45241
+ var axisMinByMinutes = Math.floor(axisMin / size) * size;
45242
+
45243
+ if (axisMinByMinutes !== +axisMin) {
45244
+ axisMinForLabel = axisMinByMinutes + size;
45245
+ offsetStartPoint += distance / (axisMax - axisMin) * (axisMinForLabel - axisMin);
45246
+ }
45250
45247
  }
45251
- }
45252
45248
 
45253
- ctx.strokeStyle = this.gridLineColor;
45254
- ctx.lineWidth = 1;
45255
- aliasPixel = helpers_util.aliasPixel(ctx.lineWidth);
45256
- var labelText;
45249
+ ctx.strokeStyle = _this3.gridLineColor;
45250
+ ctx.lineWidth = 1;
45251
+ aliasPixel = helpers_util.aliasPixel(ctx.lineWidth);
45252
+ var labelText;
45257
45253
 
45258
- for (var ix = 0; ix <= steps; ix++) {
45259
- labelCenter = Math.round(offsetStartPoint + labelGap * ix);
45254
+ var _loop = function _loop(ix) {
45255
+ labelCenter = Math.round(offsetStartPoint + labelGap * ix);
45260
45256
 
45261
- if (labelCenter <= endPoint || this.type !== 'x' || !(options !== null && options !== void 0 && options.axesX[0].flow) || dataLabels.length === steps + 1) {
45262
- var _ticks, _this$options, _this$options$selectL, _this$options2, _this$options2$select, _selectLabelInfo$data;
45257
+ if (labelCenter <= endPoint || _this3.type !== 'x' || !(options !== null && options !== void 0 && options.axesX[0].flow) || dataLabels.length === steps + 1) {
45258
+ var _ticks, _this3$options, _this3$options$select, _this3$options2, _this3$options2$selec, _selectLabelInfo$data;
45263
45259
 
45264
- ctx.beginPath();
45265
- ticks[ix] = axisMinForLabel + ix * stepValue;
45266
- linePosition = labelCenter + aliasPixel;
45267
- labelText = this.getLabelFormat(Math.min(axisMax, ticks[ix]), {
45268
- prev: (_ticks = ticks[ix - 1]) !== null && _ticks !== void 0 ? _ticks : ''
45269
- });
45270
- var isBlurredLabel = ((_this$options = this.options) === null || _this$options === void 0 ? void 0 : (_this$options$selectL = _this$options.selectLabel) === null || _this$options$selectL === void 0 ? void 0 : _this$options$selectL.use) && ((_this$options2 = this.options) === null || _this$options2 === void 0 ? void 0 : (_this$options2$select = _this$options2.selectLabel) === null || _this$options2$select === void 0 ? void 0 : _this$options2$select.useLabelOpacity) && this.options.horizontal === (this.type === 'y') && (selectLabelInfo === null || selectLabelInfo === void 0 ? void 0 : (_selectLabelInfo$data = selectLabelInfo.dataIndex) === null || _selectLabelInfo$data === void 0 ? void 0 : _selectLabelInfo$data.length) && !(selectLabelInfo !== null && selectLabelInfo !== void 0 && selectLabelInfo.label.map(function (t, index) {
45271
- var _selectLabelInfo$labe;
45272
-
45273
- return _this3.getLabelFormat(Math.min(axisMax, t), {
45274
- prev: (_selectLabelInfo$labe = selectLabelInfo === null || selectLabelInfo === void 0 ? void 0 : selectLabelInfo.label[index - 1]) !== null && _selectLabelInfo$labe !== void 0 ? _selectLabelInfo$labe : ''
45260
+ ctx.beginPath();
45261
+ ticks[ix] = axisMinForLabel + ix * stepValue;
45262
+ linePosition = labelCenter + aliasPixel;
45263
+ labelText = _this3.getLabelFormat(Math.min(axisMax, ticks[ix]), {
45264
+ prev: (_ticks = ticks[ix - 1]) !== null && _ticks !== void 0 ? _ticks : ''
45275
45265
  });
45276
- }).includes(labelText));
45277
- var labelColor = this.labelStyle.color;
45278
- var defaultOpacity = 1;
45266
+ var isBlurredLabel = ((_this3$options = _this3.options) === null || _this3$options === void 0 ? void 0 : (_this3$options$select = _this3$options.selectLabel) === null || _this3$options$select === void 0 ? void 0 : _this3$options$select.use) && ((_this3$options2 = _this3.options) === null || _this3$options2 === void 0 ? void 0 : (_this3$options2$selec = _this3$options2.selectLabel) === null || _this3$options2$selec === void 0 ? void 0 : _this3$options2$selec.useLabelOpacity) && _this3.options.horizontal === (_this3.type === 'y') && (selectLabelInfo === null || selectLabelInfo === void 0 ? void 0 : (_selectLabelInfo$data = selectLabelInfo.dataIndex) === null || _selectLabelInfo$data === void 0 ? void 0 : _selectLabelInfo$data.length) && !(selectLabelInfo !== null && selectLabelInfo !== void 0 && selectLabelInfo.label.map(function (t) {
45267
+ var _ticks2;
45279
45268
 
45280
- if (helpers_util.getColorStringType(labelColor) === 'RGBA') {
45281
- defaultOpacity = helpers_util.getOpacity(labelColor);
45282
- }
45269
+ return _this3.getLabelFormat(Math.min(axisMax, t), {
45270
+ prev: (_ticks2 = ticks[ix - 1]) !== null && _ticks2 !== void 0 ? _ticks2 : ''
45271
+ });
45272
+ }).includes(labelText));
45273
+ var labelColor = _this3.labelStyle.color;
45274
+ var defaultOpacity = 1;
45283
45275
 
45284
- ctx.fillStyle = helpers_util.colorStringToRgba(labelColor, isBlurredLabel ? 0.1 : defaultOpacity);
45285
- var labelPoint = void 0;
45276
+ if (helpers_util.getColorStringType(labelColor) === 'RGBA') {
45277
+ defaultOpacity = helpers_util.getOpacity(labelColor);
45278
+ }
45286
45279
 
45287
- if (this.type === 'x') {
45288
- var _options$brush, _options$selectItem, _this$options3;
45280
+ ctx.fillStyle = helpers_util.colorStringToRgba(labelColor, isBlurredLabel ? 0.1 : defaultOpacity);
45281
+ var labelPoint;
45289
45282
 
45290
- labelPoint = this.position === 'top' ? offsetPoint - 10 : offsetPoint + 10;
45283
+ if (_this3.type === 'x') {
45284
+ var _options$brush, _options$selectItem, _this3$options3;
45291
45285
 
45292
- if (options !== null && options !== void 0 && (_options$brush = options.brush) !== null && _options$brush !== void 0 && _options$brush.showLabel || !(options !== null && options !== void 0 && options.brush)) {
45293
- ctx.fillText(labelText, labelCenter, labelPoint);
45294
- }
45286
+ labelPoint = _this3.position === 'top' ? offsetPoint - 10 : offsetPoint + 10;
45295
45287
 
45296
- if (!isBlurredLabel && options !== null && options !== void 0 && (_options$selectItem = options.selectItem) !== null && _options$selectItem !== void 0 && _options$selectItem.showLabelTip && hitInfo !== null && hitInfo !== void 0 && hitInfo.label && !((_this$options3 = this.options) !== null && _this$options3 !== void 0 && _this$options3.horizontal)) {
45297
- var selectedLabel = this.getLabelFormat(Math.min(axisMax, hitInfo.label + 0 * stepValue));
45298
-
45299
- if (selectedLabel === labelText) {
45300
- var _this$labelStyle3, _options$selectItem2, _options$selectItem2$, _options$selectItem3, _options$selectItem3$;
45301
-
45302
- var height = Math.round(ctx.measureText((_this$labelStyle3 = this.labelStyle) === null || _this$labelStyle3 === void 0 ? void 0 : _this$labelStyle3.fontSize).width);
45303
- helpers_util.showLabelTip({
45304
- ctx: this.ctx,
45305
- width: Math.round(ctx.measureText(selectedLabel).width) + 10,
45306
- height: height,
45307
- x: labelCenter,
45308
- y: labelPoint + (height - 2),
45309
- borderRadius: 2,
45310
- arrowSize: 3,
45311
- text: labelText,
45312
- backgroundColor: options === null || options === void 0 ? void 0 : (_options$selectItem2 = options.selectItem) === null || _options$selectItem2 === void 0 ? void 0 : (_options$selectItem2$ = _options$selectItem2.labelTipStyle) === null || _options$selectItem2$ === void 0 ? void 0 : _options$selectItem2$.backgroundColor,
45313
- textColor: options === null || options === void 0 ? void 0 : (_options$selectItem3 = options.selectItem) === null || _options$selectItem3 === void 0 ? void 0 : (_options$selectItem3$ = _options$selectItem3.labelTipStyle) === null || _options$selectItem3$ === void 0 ? void 0 : _options$selectItem3$.textColor
45314
- });
45288
+ if (options !== null && options !== void 0 && (_options$brush = options.brush) !== null && _options$brush !== void 0 && _options$brush.showLabel || !(options !== null && options !== void 0 && options.brush)) {
45289
+ ctx.fillText(labelText, labelCenter, labelPoint);
45315
45290
  }
45316
- }
45317
45291
 
45318
- if ((ix !== 0 || options !== null && options !== void 0 && options.axesX[0].flow) && this.showGrid) {
45319
- ctx.moveTo(linePosition, offsetPoint);
45320
- ctx.lineTo(linePosition, offsetCounterPoint);
45321
- }
45322
- } else {
45323
- var _options$brush2;
45292
+ if (!isBlurredLabel && options !== null && options !== void 0 && (_options$selectItem = options.selectItem) !== null && _options$selectItem !== void 0 && _options$selectItem.showLabelTip && hitInfo !== null && hitInfo !== void 0 && hitInfo.label && !((_this3$options3 = _this3.options) !== null && _this3$options3 !== void 0 && _this3$options3.horizontal)) {
45293
+ var selectedLabel = _this3.getLabelFormat(Math.min(axisMax, hitInfo.label + 0 * stepValue));
45294
+
45295
+ if (selectedLabel === labelText) {
45296
+ var _this3$labelStyle, _options$selectItem2, _options$selectItem2$, _options$selectItem3, _options$selectItem3$;
45297
+
45298
+ var height = Math.round(ctx.measureText((_this3$labelStyle = _this3.labelStyle) === null || _this3$labelStyle === void 0 ? void 0 : _this3$labelStyle.fontSize).width);
45299
+ helpers_util.showLabelTip({
45300
+ ctx: _this3.ctx,
45301
+ width: Math.round(ctx.measureText(selectedLabel).width) + 10,
45302
+ height: height,
45303
+ x: labelCenter,
45304
+ y: labelPoint + (height - 2),
45305
+ borderRadius: 2,
45306
+ arrowSize: 3,
45307
+ text: labelText,
45308
+ backgroundColor: options === null || options === void 0 ? void 0 : (_options$selectItem2 = options.selectItem) === null || _options$selectItem2 === void 0 ? void 0 : (_options$selectItem2$ = _options$selectItem2.labelTipStyle) === null || _options$selectItem2$ === void 0 ? void 0 : _options$selectItem2$.backgroundColor,
45309
+ textColor: options === null || options === void 0 ? void 0 : (_options$selectItem3 = options.selectItem) === null || _options$selectItem3 === void 0 ? void 0 : (_options$selectItem3$ = _options$selectItem3.labelTipStyle) === null || _options$selectItem3$ === void 0 ? void 0 : _options$selectItem3$.textColor
45310
+ });
45311
+ }
45312
+ }
45324
45313
 
45325
- labelPoint = this.position === 'left' ? offsetPoint - 10 : offsetPoint + 10;
45314
+ if ((ix !== 0 || options !== null && options !== void 0 && options.axesX[0].flow) && _this3.showGrid) {
45315
+ ctx.moveTo(linePosition, offsetPoint);
45316
+ ctx.lineTo(linePosition, offsetCounterPoint);
45317
+ }
45318
+ } else {
45319
+ var _options$brush2;
45326
45320
 
45327
- if (options !== null && options !== void 0 && (_options$brush2 = options.brush) !== null && _options$brush2 !== void 0 && _options$brush2.showLabel || !(options !== null && options !== void 0 && options.brush)) {
45328
- ctx.fillText(labelText, labelPoint, labelCenter);
45329
- }
45321
+ labelPoint = _this3.position === 'left' ? offsetPoint - 10 : offsetPoint + 10;
45330
45322
 
45331
- if (ix === steps) {
45332
- linePosition -= 1;
45333
- }
45323
+ if (options !== null && options !== void 0 && (_options$brush2 = options.brush) !== null && _options$brush2 !== void 0 && _options$brush2.showLabel || !(options !== null && options !== void 0 && options.brush)) {
45324
+ ctx.fillText(labelText, labelPoint, labelCenter);
45325
+ }
45334
45326
 
45335
- if (ix !== 0 && this.showGrid) {
45336
- ctx.moveTo(offsetPoint, linePosition);
45337
- ctx.lineTo(offsetCounterPoint, linePosition);
45327
+ if (ix === steps) {
45328
+ linePosition -= 1;
45329
+ }
45330
+
45331
+ if (ix !== 0 && _this3.showGrid) {
45332
+ ctx.moveTo(offsetPoint, linePosition);
45333
+ ctx.lineTo(offsetCounterPoint, linePosition);
45334
+ }
45338
45335
  }
45336
+
45337
+ ctx.stroke();
45338
+ ctx.closePath();
45339
45339
  }
45340
+ };
45340
45341
 
45341
- ctx.stroke();
45342
- ctx.closePath();
45342
+ for (var ix = 0; ix <= steps; ix++) {
45343
+ _loop(ix);
45343
45344
  }
45344
- }
45345
+ })();
45345
45346
  } // Draw plot lines and plot bands
45346
45347
 
45347
45348
 
@@ -46839,8 +46840,8 @@ var scale_time_category_TimeCategoryScale = /*#__PURE__*/function (_Scale) {
46839
46840
  var ix;
46840
46841
  var maxIndex = oriSteps === count ? oriSteps : oriSteps - 1;
46841
46842
 
46842
- for (ix = 0; ix <= maxIndex; ix += count) {
46843
- var _this$options, _this$options$selectL, _this$options2, _this$options2$select, _selectLabelInfo$data;
46843
+ var _loop = function _loop() {
46844
+ var _this2$options, _this2$options$select, _this2$options2, _this2$options2$selec, _selectLabelInfo$data;
46844
46845
 
46845
46846
  ticks[ix] = dayjs_min_default()(axisMin).valueOf() + ix * stepValue;
46846
46847
  labelCenter = Math.round(startPoint + graphGap * ix);
@@ -46853,17 +46854,15 @@ var scale_time_category_TimeCategoryScale = /*#__PURE__*/function (_Scale) {
46853
46854
  }
46854
46855
  }
46855
46856
 
46856
- labelText = this.getLabelFormat(Math.min(axisMax, ticks[ix]), {
46857
+ labelText = _this2.getLabelFormat(Math.min(axisMax, ticks[ix]), {
46857
46858
  prev: prev
46858
46859
  });
46859
- var isBlurredLabel = ((_this$options = this.options) === null || _this$options === void 0 ? void 0 : (_this$options$selectL = _this$options.selectLabel) === null || _this$options$selectL === void 0 ? void 0 : _this$options$selectL.use) && ((_this$options2 = this.options) === null || _this$options2 === void 0 ? void 0 : (_this$options2$select = _this$options2.selectLabel) === null || _this$options2$select === void 0 ? void 0 : _this$options2$select.useLabelOpacity) && this.options.horizontal === (this.type === 'y') && (selectLabelInfo === null || selectLabelInfo === void 0 ? void 0 : (_selectLabelInfo$data = selectLabelInfo.dataIndex) === null || _selectLabelInfo$data === void 0 ? void 0 : _selectLabelInfo$data.length) && !(selectLabelInfo !== null && selectLabelInfo !== void 0 && selectLabelInfo.label.map(function (t, index) {
46860
- var _selectLabelInfo$labe;
46861
-
46860
+ var isBlurredLabel = ((_this2$options = _this2.options) === null || _this2$options === void 0 ? void 0 : (_this2$options$select = _this2$options.selectLabel) === null || _this2$options$select === void 0 ? void 0 : _this2$options$select.use) && ((_this2$options2 = _this2.options) === null || _this2$options2 === void 0 ? void 0 : (_this2$options2$selec = _this2$options2.selectLabel) === null || _this2$options2$selec === void 0 ? void 0 : _this2$options2$selec.useLabelOpacity) && _this2.options.horizontal === (_this2.type === 'y') && (selectLabelInfo === null || selectLabelInfo === void 0 ? void 0 : (_selectLabelInfo$data = selectLabelInfo.dataIndex) === null || _selectLabelInfo$data === void 0 ? void 0 : _selectLabelInfo$data.length) && !(selectLabelInfo !== null && selectLabelInfo !== void 0 && selectLabelInfo.label.map(function (t) {
46862
46861
  return _this2.getLabelFormat(Math.min(axisMax, t), {
46863
- prev: (_selectLabelInfo$labe = selectLabelInfo === null || selectLabelInfo === void 0 ? void 0 : selectLabelInfo.label[index - 1]) !== null && _selectLabelInfo$labe !== void 0 ? _selectLabelInfo$labe : ''
46862
+ prev: prev
46864
46863
  });
46865
46864
  }).includes(labelText));
46866
- var labelColor = this.labelStyle.color;
46865
+ var labelColor = _this2.labelStyle.color;
46867
46866
  var defaultOpacity = 1;
46868
46867
 
46869
46868
  if (helpers_util.getColorStringType(labelColor) === 'RGBA') {
@@ -46872,21 +46871,21 @@ var scale_time_category_TimeCategoryScale = /*#__PURE__*/function (_Scale) {
46872
46871
 
46873
46872
  ctx.fillStyle = helpers_util.colorStringToRgba(labelColor, isBlurredLabel ? 0.1 : defaultOpacity);
46874
46873
 
46875
- if (this.type === 'x') {
46876
- var _this$options3, _this$options3$select, _this$options4;
46874
+ if (_this2.type === 'x') {
46875
+ var _this2$options3, _this2$options3$selec, _this2$options4;
46877
46876
 
46878
- labelPoint = this.position === 'top' ? offsetPoint - 10 : offsetPoint + 10;
46877
+ labelPoint = _this2.position === 'top' ? offsetPoint - 10 : offsetPoint + 10;
46879
46878
  ctx.fillText(labelText, labelCenter, labelPoint);
46880
46879
 
46881
- if (!isBlurredLabel && (_this$options3 = this.options) !== null && _this$options3 !== void 0 && (_this$options3$select = _this$options3.selectItem) !== null && _this$options3$select !== void 0 && _this$options3$select.showLabelTip && hitInfo !== null && hitInfo !== void 0 && hitInfo.label && !((_this$options4 = this.options) !== null && _this$options4 !== void 0 && _this$options4.horizontal)) {
46882
- var selectedLabel = this.getLabelFormat(Math.min(axisMax, hitInfo.label + 0 * stepValue));
46880
+ if (!isBlurredLabel && (_this2$options3 = _this2.options) !== null && _this2$options3 !== void 0 && (_this2$options3$selec = _this2$options3.selectItem) !== null && _this2$options3$selec !== void 0 && _this2$options3$selec.showLabelTip && hitInfo !== null && hitInfo !== void 0 && hitInfo.label && !((_this2$options4 = _this2.options) !== null && _this2$options4 !== void 0 && _this2$options4.horizontal)) {
46881
+ var selectedLabel = _this2.getLabelFormat(Math.min(axisMax, hitInfo.label + 0 * stepValue));
46883
46882
 
46884
46883
  if (selectedLabel === labelText) {
46885
- var _this$labelStyle, _this$options5, _this$options5$select, _this$options5$select2, _this$options6, _this$options6$select, _this$options6$select2;
46884
+ var _this2$labelStyle, _this2$options5, _this2$options5$selec, _this2$options5$selec2, _this2$options6, _this2$options6$selec, _this2$options6$selec2;
46886
46885
 
46887
- var height = Math.round(ctx.measureText((_this$labelStyle = this.labelStyle) === null || _this$labelStyle === void 0 ? void 0 : _this$labelStyle.fontSize).width);
46886
+ var height = Math.round(ctx.measureText((_this2$labelStyle = _this2.labelStyle) === null || _this2$labelStyle === void 0 ? void 0 : _this2$labelStyle.fontSize).width);
46888
46887
  helpers_util.showLabelTip({
46889
- ctx: this.ctx,
46888
+ ctx: _this2.ctx,
46890
46889
  width: Math.round(ctx.measureText(selectedLabel).width) + 10,
46891
46890
  height: height,
46892
46891
  x: labelCenter,
@@ -46894,27 +46893,31 @@ var scale_time_category_TimeCategoryScale = /*#__PURE__*/function (_Scale) {
46894
46893
  borderRadius: 2,
46895
46894
  arrowSize: 3,
46896
46895
  text: labelText,
46897
- backgroundColor: (_this$options5 = this.options) === null || _this$options5 === void 0 ? void 0 : (_this$options5$select = _this$options5.selectItem) === null || _this$options5$select === void 0 ? void 0 : (_this$options5$select2 = _this$options5$select.labelTipStyle) === null || _this$options5$select2 === void 0 ? void 0 : _this$options5$select2.backgroundColor,
46898
- textColor: (_this$options6 = this.options) === null || _this$options6 === void 0 ? void 0 : (_this$options6$select = _this$options6.selectItem) === null || _this$options6$select === void 0 ? void 0 : (_this$options6$select2 = _this$options6$select.labelTipStyle) === null || _this$options6$select2 === void 0 ? void 0 : _this$options6$select2.textColor
46896
+ backgroundColor: (_this2$options5 = _this2.options) === null || _this2$options5 === void 0 ? void 0 : (_this2$options5$selec = _this2$options5.selectItem) === null || _this2$options5$selec === void 0 ? void 0 : (_this2$options5$selec2 = _this2$options5$selec.labelTipStyle) === null || _this2$options5$selec2 === void 0 ? void 0 : _this2$options5$selec2.backgroundColor,
46897
+ textColor: (_this2$options6 = _this2.options) === null || _this2$options6 === void 0 ? void 0 : (_this2$options6$selec = _this2$options6.selectItem) === null || _this2$options6$selec === void 0 ? void 0 : (_this2$options6$selec2 = _this2$options6$selec.labelTipStyle) === null || _this2$options6$selec2 === void 0 ? void 0 : _this2$options6$selec2.textColor
46899
46898
  });
46900
46899
  }
46901
46900
  }
46902
46901
 
46903
- if (ix !== 0 && ix < oriSteps && this.showGrid) {
46902
+ if (ix !== 0 && ix < oriSteps && _this2.showGrid) {
46904
46903
  ctx.moveTo(linePosition, offsetPoint);
46905
46904
  ctx.lineTo(linePosition, offsetCounterPoint);
46906
46905
  }
46907
46906
  } else {
46908
- labelPoint = this.position === 'left' ? offsetPoint - 10 : offsetPoint + 10;
46907
+ labelPoint = _this2.position === 'left' ? offsetPoint - 10 : offsetPoint + 10;
46909
46908
  ctx.fillText(labelText, labelPoint, labelCenter);
46910
46909
 
46911
- if (ix !== 0 && ix < oriSteps && this.showGrid) {
46910
+ if (ix !== 0 && ix < oriSteps && _this2.showGrid) {
46912
46911
  ctx.moveTo(offsetPoint, linePosition);
46913
46912
  ctx.lineTo(offsetCounterPoint, linePosition);
46914
46913
  }
46915
46914
  }
46916
46915
 
46917
46916
  ctx.stroke();
46917
+ };
46918
+
46919
+ for (ix = 0; ix <= maxIndex; ix += count) {
46920
+ _loop();
46918
46921
  }
46919
46922
 
46920
46923
  if (this.categoryMode && alignToGridLine && ix * count === oriSteps) {
@@ -54065,6 +54068,7 @@ var element_tip_modules = {
54065
54068
 
54066
54069
 
54067
54070
 
54071
+
54068
54072
 
54069
54073
 
54070
54074
  var chart_core_EvChart = /*#__PURE__*/function () {
@@ -54367,6 +54371,51 @@ var chart_core_EvChart = /*#__PURE__*/function () {
54367
54371
  this.displayCtx.drawImage(this.bufferCanvas, 0, 0);
54368
54372
  }
54369
54373
  }
54374
+ /**
54375
+ * Collect duplicate point keys for scatter overlap detection
54376
+ * @param {Map<string, string>} duple
54377
+ * @param {string[]} chartTypeSet
54378
+ *
54379
+ * @returns {undefined}
54380
+ */
54381
+
54382
+ }, {
54383
+ key: "collectDuplicatePoints",
54384
+ value: function collectDuplicatePoints(duple, chartTypeSet) {
54385
+ var isReverseOrder = !!this.options.reverse;
54386
+
54387
+ for (var jx = isReverseOrder ? chartTypeSet.length - 1 : 0; isReverseOrder ? jx >= 0 : jx < chartTypeSet.length; isReverseOrder ? jx-- : jx++) {
54388
+ var _this$options$realTim;
54389
+
54390
+ var series = this.seriesList[chartTypeSet[jx]];
54391
+
54392
+ if ((_this$options$realTim = this.options.realTimeScatter) !== null && _this$options$realTim !== void 0 && _this$options$realTim.use) {
54393
+ var _series$data$series$s;
54394
+
54395
+ var seriesDatas = (_series$data$series$s = series.data[series.sId]) === null || _series$data$series$s === void 0 ? void 0 : _series$data$series$s.dataGroup;
54396
+
54397
+ for (var i = 0; i < seriesDatas.length; i++) {
54398
+ var _seriesDatas$i;
54399
+
54400
+ var dataItems = ((_seriesDatas$i = seriesDatas[i]) === null || _seriesDatas$i === void 0 ? void 0 : _seriesDatas$i.data) || [];
54401
+
54402
+ for (var j = 0; j < dataItems.length; j++) {
54403
+ var item = dataItems[j];
54404
+ duple.set("".concat(item.x).concat(item.y), series.sId);
54405
+ }
54406
+ }
54407
+ } else {
54408
+ var _this$data$data$chart;
54409
+
54410
+ var _seriesDatas = (_this$data$data$chart = this.data.data[chartTypeSet[jx]]) !== null && _this$data$data$chart !== void 0 ? _this$data$data$chart : [];
54411
+
54412
+ for (var _i = 0; _i < _seriesDatas.length; _i++) {
54413
+ var _item = _seriesDatas[_i];
54414
+ duple.set("".concat(_item.x).concat(_item.y), series.sId);
54415
+ }
54416
+ }
54417
+ }
54418
+ }
54370
54419
  /**
54371
54420
  * Draw each series
54372
54421
  * @param {any} [hitInfo=undefined] legend mouseover callback (object or undefined)
@@ -54418,13 +54467,21 @@ var chart_core_EvChart = /*#__PURE__*/function () {
54418
54467
  showSeriesCount++;
54419
54468
  }
54420
54469
  });
54421
- var duple = new Set();
54470
+ /**
54471
+ * new Map<`${x}${y}`, seriesID>
54472
+ */
54473
+
54474
+ var duple = new Map();
54422
54475
  var chartKeys = Object.keys(this.seriesInfo.charts);
54423
54476
 
54424
54477
  for (var ix = 0; ix < chartKeys.length; ix++) {
54425
54478
  var chartType = chartKeys[ix];
54426
54479
  var chartTypeSet = this.seriesInfo.charts[chartType];
54427
54480
 
54481
+ if (chartType === 'scatter') {
54482
+ this.collectDuplicatePoints(duple, chartTypeSet);
54483
+ }
54484
+
54428
54485
  for (var jx = 0; jx < chartTypeSet.length; jx++) {
54429
54486
  var series = this.seriesList[chartTypeSet[jx]];
54430
54487
 
@@ -54503,8 +54560,6 @@ var chart_core_EvChart = /*#__PURE__*/function () {
54503
54560
 
54504
54561
  case 'scatter':
54505
54562
  {
54506
- var _this$options$realTim;
54507
-
54508
54563
  var _legendHitInfo4 = hitInfo === null || hitInfo === void 0 ? void 0 : hitInfo.legend;
54509
54564
 
54510
54565
  var _selectInfo = void 0;
@@ -54525,7 +54580,7 @@ var chart_core_EvChart = /*#__PURE__*/function () {
54525
54580
  }
54526
54581
  }
54527
54582
 
54528
- if ((_this$options$realTim = this.options.realTimeScatter) !== null && _this$options$realTim !== void 0 && _this$options$realTim.use) {
54583
+ if (this.options.seriesReverse) {
54529
54584
  series = this.seriesList[chartTypeSet.at(-1 - jx)];
54530
54585
  }
54531
54586
 
@@ -56176,7 +56231,8 @@ var DEFAULT_OPTIONS = {
56176
56231
  },
56177
56232
  error: '#FF0000',
56178
56233
  decimalPoint: 0
56179
- }
56234
+ },
56235
+ seriesReverse: false
56180
56236
  };
56181
56237
  var DEFAULT_DATA = {
56182
56238
  series: {},