@visactor/vchart 2.0.11-alpha.3 → 2.0.11-alpha.5

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
@@ -43428,7 +43428,7 @@ class LabelBase extends AnimateComponent {
43428
43428
  } = this.attribute;
43429
43429
  for (let i = 0; i < texts.length; i++) {
43430
43430
  const text = texts[i];
43431
- if (!text) return;
43431
+ if (!text) return [];
43432
43432
  const textData = text.attribute,
43433
43433
  baseMark = this.getRelatedGraphic(textData);
43434
43434
  if (!baseMark) continue;
@@ -44085,7 +44085,7 @@ class ArcLabel extends LabelBase {
44085
44085
  }
44086
44086
  _layout(texts) {
44087
44087
  var _a, _b, _c;
44088
- if (!texts || !texts.length) return;
44088
+ if (!texts || !texts.length) return [];
44089
44089
  const labels = super._layout(texts),
44090
44090
  textBoundsArray = labels.map(label => this.getGraphicBounds(label)),
44091
44091
  ellipsisLabelAttribute = Object.assign(Object.assign({}, this.attribute.textStyle), {
@@ -61532,7 +61532,7 @@ const lookup = (data, opt) => {
61532
61532
  });
61533
61533
  };
61534
61534
 
61535
- const version = "2.0.11-alpha.3";
61535
+ const version = "2.0.11-alpha.5";
61536
61536
 
61537
61537
  const addVChartProperty = (data, op) => {
61538
61538
  const context = op.beforeCall();
@@ -95816,9 +95816,12 @@ class Tooltip extends BaseComponent {
95816
95816
  }
95817
95817
  };
95818
95818
  this._handleChartMouseOut = (params) => {
95819
+ var _a;
95819
95820
  if (this._cacheActiveType &&
95820
- isObject$2(this._option.componentShowContent.tooltip) &&
95821
- this._option.componentShowContent.tooltip[this._cacheActiveType] === false) {
95821
+ ((_a = this._option) === null || _a === void 0 ? void 0 : _a.componentShowContent) &&
95822
+ (this._option.componentShowContent.tooltip === false ||
95823
+ (isObject$2(this._option.componentShowContent.tooltip) &&
95824
+ this._option.componentShowContent.tooltip[this._cacheActiveType] === false))) {
95822
95825
  return;
95823
95826
  }
95824
95827
  if (this._alwaysShow || this._isReleased || this._isEnterTooltip) {
package/build/index.js CHANGED
@@ -43434,7 +43434,7 @@
43434
43434
  } = this.attribute;
43435
43435
  for (let i = 0; i < texts.length; i++) {
43436
43436
  const text = texts[i];
43437
- if (!text) return;
43437
+ if (!text) return [];
43438
43438
  const textData = text.attribute,
43439
43439
  baseMark = this.getRelatedGraphic(textData);
43440
43440
  if (!baseMark) continue;
@@ -44091,7 +44091,7 @@
44091
44091
  }
44092
44092
  _layout(texts) {
44093
44093
  var _a, _b, _c;
44094
- if (!texts || !texts.length) return;
44094
+ if (!texts || !texts.length) return [];
44095
44095
  const labels = super._layout(texts),
44096
44096
  textBoundsArray = labels.map(label => this.getGraphicBounds(label)),
44097
44097
  ellipsisLabelAttribute = Object.assign(Object.assign({}, this.attribute.textStyle), {
@@ -61538,7 +61538,7 @@
61538
61538
  });
61539
61539
  };
61540
61540
 
61541
- const version = "2.0.11-alpha.3";
61541
+ const version = "2.0.11-alpha.5";
61542
61542
 
61543
61543
  const addVChartProperty = (data, op) => {
61544
61544
  const context = op.beforeCall();
@@ -95822,9 +95822,12 @@
95822
95822
  }
95823
95823
  };
95824
95824
  this._handleChartMouseOut = (params) => {
95825
+ var _a;
95825
95826
  if (this._cacheActiveType &&
95826
- isObject$2(this._option.componentShowContent.tooltip) &&
95827
- this._option.componentShowContent.tooltip[this._cacheActiveType] === false) {
95827
+ ((_a = this._option) === null || _a === void 0 ? void 0 : _a.componentShowContent) &&
95828
+ (this._option.componentShowContent.tooltip === false ||
95829
+ (isObject$2(this._option.componentShowContent.tooltip) &&
95830
+ this._option.componentShowContent.tooltip[this._cacheActiveType] === false))) {
95828
95831
  return;
95829
95832
  }
95830
95833
  if (this._alwaysShow || this._isReleased || this._isEnterTooltip) {