tvcharts 0.7.53 → 0.7.55

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.
package/dist/echarts.js CHANGED
@@ -2197,7 +2197,7 @@ var Handler = class extends Eventful_default {
2197
2197
  }
2198
2198
  }
2199
2199
  findHover(x, y, exclude) {
2200
- const list = this.storage.getDisplayList();
2200
+ const list = this.storage.getEventDisplayList();
2201
2201
  const out2 = new HoveredResult(x, y);
2202
2202
  setHoverTarget(list, out2, x, y, exclude);
2203
2203
  if (this._pointerSize && !out2.target) {
@@ -2854,10 +2854,29 @@ function shapeCompareFunc(a, b) {
2854
2854
  }
2855
2855
  return a.zlevel - b.zlevel;
2856
2856
  }
2857
+ function eventCompareFunc(a, b) {
2858
+ return a.zevent - b.zevent;
2859
+ }
2860
+ function getEventDisplayList(list) {
2861
+ const zEventList = [];
2862
+ const restList = [];
2863
+ for (let i = 0; i < list.length; i++) {
2864
+ const el = list[i];
2865
+ if (el.zevent) {
2866
+ zEventList.push(el);
2867
+ } else {
2868
+ restList.push(el);
2869
+ }
2870
+ }
2871
+ sort(zEventList, eventCompareFunc);
2872
+ Array.prototype.push.apply(restList, zEventList);
2873
+ return restList;
2874
+ }
2857
2875
  var Storage = class {
2858
2876
  constructor() {
2859
2877
  this._roots = [];
2860
2878
  this._displayList = [];
2879
+ this._eventDisplayList = [];
2861
2880
  this._displayListLen = 0;
2862
2881
  this.displayableSortFunc = shapeCompareFunc;
2863
2882
  }
@@ -2883,6 +2902,10 @@ var Storage = class {
2883
2902
  }
2884
2903
  displayList.length = this._displayListLen;
2885
2904
  sort(displayList, shapeCompareFunc);
2905
+ this._eventDisplayList = getEventDisplayList(displayList);
2906
+ }
2907
+ getEventDisplayList() {
2908
+ return this._eventDisplayList;
2886
2909
  }
2887
2910
  _updateAndAddDisplayable(el, clipPaths, includeIgnore) {
2888
2911
  if (el.ignore && !includeIgnore) {
@@ -7215,7 +7238,7 @@ function getElementSSRData(el) {
7215
7238
  function registerSSRDataGetter(getter) {
7216
7239
  ssrDataGetter = getter;
7217
7240
  }
7218
- var version = "5.6.74";
7241
+ var version = "5.6.76";
7219
7242
 
7220
7243
  // src/util/number.ts
7221
7244
  var RADIAN_EPSILON = 1e-4;
@@ -25885,7 +25908,6 @@ ECharts.internalField = function() {
25885
25908
  ecIns.selectedComponentGroupId = id;
25886
25909
  ecIns.trigger("selectidchanged", id);
25887
25910
  updateMethods.update.call(ecIns);
25888
- console.log("\u56FE\u5F62\u66F4\u65B0");
25889
25911
  }
25890
25912
  getSelectedComponentGroupId() {
25891
25913
  return ecIns.selectedComponentGroupId;
@@ -39266,7 +39288,14 @@ var Cartesian2D = class extends Cartesian_default {
39266
39288
  return new BoundingRect_default(x, y, width, height);
39267
39289
  }
39268
39290
  getBaseValue() {
39269
- return this.baseValue;
39291
+ let baseValue;
39292
+ const seriesModal = this.seriesModal;
39293
+ if (seriesModal) {
39294
+ const seriesData = seriesModal.getData();
39295
+ const dim = isCandle(seriesModal.subType) ? "close" : "y";
39296
+ baseValue = seriesData.get(dim, 0);
39297
+ }
39298
+ return baseValue;
39270
39299
  }
39271
39300
  };
39272
39301
  var Cartesian2D_default = Cartesian2D;
@@ -39750,10 +39779,7 @@ var Grid2 = class {
39750
39779
  seriesModel.coordinateSystem = grid.getCartesian(xAxisModel.componentIndex, yAxisModel.componentIndex);
39751
39780
  const copy3 = Object.create(Object.getPrototypeOf(seriesModel.coordinateSystem));
39752
39781
  seriesModel.coordinateSystem = Object.assign(copy3, seriesModel.coordinateSystem);
39753
- const seriesData = seriesModel.getData();
39754
- const dim = isCandle(seriesModel.subType) ? "close" : "y";
39755
- const baseValue = seriesData.get(dim, 0);
39756
- seriesModel.coordinateSystem.baseValue = baseValue;
39782
+ seriesModel.coordinateSystem.seriesModal = seriesModel;
39757
39783
  });
39758
39784
  return grids;
39759
39785
  }
@@ -67762,7 +67788,8 @@ function updateCommonAttrs(el, elOption, defaultZ, defaultZlevel) {
67762
67788
  ["cursor", Displayable_default.prototype.cursor],
67763
67789
  ["zlevel", defaultZlevel || 0],
67764
67790
  ["z", defaultZ || 0],
67765
- ["z2", 0]
67791
+ ["z2", 0],
67792
+ ["zevent", 1]
67766
67793
  ], (item) => {
67767
67794
  const prop = item[0];
67768
67795
  if (hasOwn(elOption, prop)) {
@@ -68518,6 +68545,7 @@ var AxisProxy = class {
68518
68545
  }
68519
68546
  each14(seriesModels, function(seriesModel) {
68520
68547
  let seriesData = seriesModel.getData();
68548
+ console.log("%c [ seriesData ]-413", "font-size:13px; background:pink; color:#bf2c9f;", seriesData);
68521
68549
  const dataDims = seriesData.mapDimensionsAll(axisDim);
68522
68550
  if (!dataDims.length || seriesModel.get("notFilterData")) {
68523
68551
  return;