@visactor/vchart 2.0.11-alpha.1 → 2.0.11-alpha.2

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/build/index.es.js CHANGED
@@ -61532,7 +61532,7 @@ const lookup = (data, opt) => {
61532
61532
  });
61533
61533
  };
61534
61534
 
61535
- const version = "2.0.11-alpha.1";
61535
+ const version = "2.0.11-alpha.2";
61536
61536
 
61537
61537
  const addVChartProperty = (data, op) => {
61538
61538
  const context = op.beforeCall();
@@ -95885,7 +95885,7 @@ class Tooltip extends BaseComponent {
95885
95885
  if (res === 'unShowByOption') {
95886
95886
  success[type] = 'unShowByOption';
95887
95887
  }
95888
- else {
95888
+ else if (res) {
95889
95889
  success[type] = true;
95890
95890
  break;
95891
95891
  }
@@ -95898,10 +95898,8 @@ class Tooltip extends BaseComponent {
95898
95898
  success.dimension = this._showTooltipByMouseEvent('dimension', mouseEventData, params, isClick);
95899
95899
  }
95900
95900
  }
95901
- if (!success.mark && !success.group && (!success.dimension || isNil$1(dimensionInfo))) {
95902
- if (success.mark !== 'unShowByOption' &&
95903
- success.dimension !== 'unShowByOption' &&
95904
- success.group !== 'unShowByOption') {
95901
+ if (success.mark !== true && success.group !== true && (success.dimension !== true || isNil$1(dimensionInfo))) {
95902
+ if (!this._cacheActiveType || success[this._cacheActiveType] !== 'unShowByOption') {
95905
95903
  this._handleChartMouseOut(params);
95906
95904
  }
95907
95905
  }
@@ -96214,6 +96212,7 @@ class Tooltip extends BaseComponent {
96214
96212
  const result = showTooltip(datum, options, this);
96215
96213
  if (result !== 'none') {
96216
96214
  this._alwaysShow = !!(options === null || options === void 0 ? void 0 : options.alwaysShow);
96215
+ this._cacheActiveType = result;
96217
96216
  }
96218
96217
  return result;
96219
96218
  }
package/build/index.js CHANGED
@@ -61538,7 +61538,7 @@
61538
61538
  });
61539
61539
  };
61540
61540
 
61541
- const version = "2.0.11-alpha.1";
61541
+ const version = "2.0.11-alpha.2";
61542
61542
 
61543
61543
  const addVChartProperty = (data, op) => {
61544
61544
  const context = op.beforeCall();
@@ -95891,7 +95891,7 @@
95891
95891
  if (res === 'unShowByOption') {
95892
95892
  success[type] = 'unShowByOption';
95893
95893
  }
95894
- else {
95894
+ else if (res) {
95895
95895
  success[type] = true;
95896
95896
  break;
95897
95897
  }
@@ -95904,10 +95904,8 @@
95904
95904
  success.dimension = this._showTooltipByMouseEvent('dimension', mouseEventData, params, isClick);
95905
95905
  }
95906
95906
  }
95907
- if (!success.mark && !success.group && (!success.dimension || isNil$1(dimensionInfo))) {
95908
- if (success.mark !== 'unShowByOption' &&
95909
- success.dimension !== 'unShowByOption' &&
95910
- success.group !== 'unShowByOption') {
95907
+ if (success.mark !== true && success.group !== true && (success.dimension !== true || isNil$1(dimensionInfo))) {
95908
+ if (!this._cacheActiveType || success[this._cacheActiveType] !== 'unShowByOption') {
95911
95909
  this._handleChartMouseOut(params);
95912
95910
  }
95913
95911
  }
@@ -96220,6 +96218,7 @@
96220
96218
  const result = showTooltip(datum, options, this);
96221
96219
  if (result !== 'none') {
96222
96220
  this._alwaysShow = !!(options === null || options === void 0 ? void 0 : options.alwaysShow);
96221
+ this._cacheActiveType = result;
96223
96222
  }
96224
96223
  return result;
96225
96224
  }