evui 3.4.107 → 3.4.108

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.
@@ -11164,7 +11164,7 @@ module.exports = exports;
11164
11164
  /***/ "9224":
11165
11165
  /***/ (function(module) {
11166
11166
 
11167
- module.exports = JSON.parse("{\"a\":\"3.4.107\"}");
11167
+ module.exports = JSON.parse("{\"a\":\"3.4.108\"}");
11168
11168
 
11169
11169
  /***/ }),
11170
11170
 
@@ -38851,6 +38851,8 @@ var modules = {
38851
38851
  };
38852
38852
 
38853
38853
  for (var x = 0; x < keys.length; x++) {
38854
+ var _this$dataSet$key$dat, _this$dataSet$key$dat2, _this$dataSet$key$dat3;
38855
+
38854
38856
  var key = keys[x];
38855
38857
  var data = datas[key];
38856
38858
  var storeLength = data === null || data === void 0 ? void 0 : data.length;
@@ -38869,9 +38871,6 @@ var modules = {
38869
38871
  }
38870
38872
 
38871
38873
  this.dataSet[key].length = this.options.realTimeScatter.range || 300;
38872
- this.dataSet[key].toTime = Math.floor(Date.now() / 1000) * 1000;
38873
- this.dataSet[key].fromTime = this.dataSet[key].toTime - this.dataSet[key].length * 1000;
38874
- this.dataSet[key].endIndex = this.dataSet[key].length - 1;
38875
38874
 
38876
38875
  for (var i = 0; i < storeLength; i++) {
38877
38876
  var item = data[i];
@@ -38882,6 +38881,10 @@ var modules = {
38882
38881
  }
38883
38882
 
38884
38883
  lastTime = Math.floor(lastTime / 1000) * 1000;
38884
+ var dataGroupLastTime = ((_this$dataSet$key$dat = this.dataSet[key].dataGroup.at(-1)) === null || _this$dataSet$key$dat === void 0 ? void 0 : (_this$dataSet$key$dat2 = _this$dataSet$key$dat.data) === null || _this$dataSet$key$dat2 === void 0 ? void 0 : (_this$dataSet$key$dat3 = _this$dataSet$key$dat2.at(-1)) === null || _this$dataSet$key$dat3 === void 0 ? void 0 : _this$dataSet$key$dat3.x) || Date.now();
38885
+ this.dataSet[key].toTime = lastTime || (dataGroupLastTime ? Math.floor(dataGroupLastTime / 1000) * 1000 : 0);
38886
+ this.dataSet[key].fromTime = this.dataSet[key].toTime - this.dataSet[key].length * 1000;
38887
+ this.dataSet[key].endIndex = this.dataSet[key].length - 1;
38885
38888
 
38886
38889
  if ((this.dataSet[key].toTime - lastTime) / 1000 > this.dataSet[key].length && key === '') {
38887
38890
  return;