@visactor/vchart 2.0.11-alpha.1 → 2.0.11-alpha.3
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/es5/index.js +1 -1
- package/build/index.es.js +10 -6
- package/build/index.js +10 -6
- package/build/index.min.js +1 -1
- package/build/tsconfig.tsbuildinfo +1 -1
- package/cjs/component/tooltip/tooltip.js +7 -7
- package/cjs/component/tooltip/tooltip.js.map +1 -1
- package/cjs/core/index.d.ts +1 -1
- package/cjs/core/index.js +1 -1
- package/cjs/core/index.js.map +1 -1
- package/esm/component/tooltip/tooltip.js +6 -7
- package/esm/component/tooltip/tooltip.js.map +1 -1
- package/esm/core/index.d.ts +1 -1
- package/esm/core/index.js +1 -1
- package/esm/core/index.js.map +1 -1
- package/package.json +4 -4
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.
|
|
61535
|
+
const version = "2.0.11-alpha.3";
|
|
61536
61536
|
|
|
61537
61537
|
const addVChartProperty = (data, op) => {
|
|
61538
61538
|
const context = op.beforeCall();
|
|
@@ -95816,6 +95816,11 @@ class Tooltip extends BaseComponent {
|
|
|
95816
95816
|
}
|
|
95817
95817
|
};
|
|
95818
95818
|
this._handleChartMouseOut = (params) => {
|
|
95819
|
+
if (this._cacheActiveType &&
|
|
95820
|
+
isObject$2(this._option.componentShowContent.tooltip) &&
|
|
95821
|
+
this._option.componentShowContent.tooltip[this._cacheActiveType] === false) {
|
|
95822
|
+
return;
|
|
95823
|
+
}
|
|
95819
95824
|
if (this._alwaysShow || this._isReleased || this._isEnterTooltip) {
|
|
95820
95825
|
return;
|
|
95821
95826
|
}
|
|
@@ -95885,7 +95890,7 @@ class Tooltip extends BaseComponent {
|
|
|
95885
95890
|
if (res === 'unShowByOption') {
|
|
95886
95891
|
success[type] = 'unShowByOption';
|
|
95887
95892
|
}
|
|
95888
|
-
else {
|
|
95893
|
+
else if (res) {
|
|
95889
95894
|
success[type] = true;
|
|
95890
95895
|
break;
|
|
95891
95896
|
}
|
|
@@ -95898,10 +95903,8 @@ class Tooltip extends BaseComponent {
|
|
|
95898
95903
|
success.dimension = this._showTooltipByMouseEvent('dimension', mouseEventData, params, isClick);
|
|
95899
95904
|
}
|
|
95900
95905
|
}
|
|
95901
|
-
if (
|
|
95902
|
-
if (success.
|
|
95903
|
-
success.dimension !== 'unShowByOption' &&
|
|
95904
|
-
success.group !== 'unShowByOption') {
|
|
95906
|
+
if (success.mark !== true && success.group !== true && (success.dimension !== true || isNil$1(dimensionInfo))) {
|
|
95907
|
+
if (!this._cacheActiveType || success[this._cacheActiveType] !== 'unShowByOption') {
|
|
95905
95908
|
this._handleChartMouseOut(params);
|
|
95906
95909
|
}
|
|
95907
95910
|
}
|
|
@@ -96214,6 +96217,7 @@ class Tooltip extends BaseComponent {
|
|
|
96214
96217
|
const result = showTooltip(datum, options, this);
|
|
96215
96218
|
if (result !== 'none') {
|
|
96216
96219
|
this._alwaysShow = !!(options === null || options === void 0 ? void 0 : options.alwaysShow);
|
|
96220
|
+
this._cacheActiveType = result;
|
|
96217
96221
|
}
|
|
96218
96222
|
return result;
|
|
96219
96223
|
}
|
package/build/index.js
CHANGED
|
@@ -61538,7 +61538,7 @@
|
|
|
61538
61538
|
});
|
|
61539
61539
|
};
|
|
61540
61540
|
|
|
61541
|
-
const version = "2.0.11-alpha.
|
|
61541
|
+
const version = "2.0.11-alpha.3";
|
|
61542
61542
|
|
|
61543
61543
|
const addVChartProperty = (data, op) => {
|
|
61544
61544
|
const context = op.beforeCall();
|
|
@@ -95822,6 +95822,11 @@
|
|
|
95822
95822
|
}
|
|
95823
95823
|
};
|
|
95824
95824
|
this._handleChartMouseOut = (params) => {
|
|
95825
|
+
if (this._cacheActiveType &&
|
|
95826
|
+
isObject$2(this._option.componentShowContent.tooltip) &&
|
|
95827
|
+
this._option.componentShowContent.tooltip[this._cacheActiveType] === false) {
|
|
95828
|
+
return;
|
|
95829
|
+
}
|
|
95825
95830
|
if (this._alwaysShow || this._isReleased || this._isEnterTooltip) {
|
|
95826
95831
|
return;
|
|
95827
95832
|
}
|
|
@@ -95891,7 +95896,7 @@
|
|
|
95891
95896
|
if (res === 'unShowByOption') {
|
|
95892
95897
|
success[type] = 'unShowByOption';
|
|
95893
95898
|
}
|
|
95894
|
-
else {
|
|
95899
|
+
else if (res) {
|
|
95895
95900
|
success[type] = true;
|
|
95896
95901
|
break;
|
|
95897
95902
|
}
|
|
@@ -95904,10 +95909,8 @@
|
|
|
95904
95909
|
success.dimension = this._showTooltipByMouseEvent('dimension', mouseEventData, params, isClick);
|
|
95905
95910
|
}
|
|
95906
95911
|
}
|
|
95907
|
-
if (
|
|
95908
|
-
if (success.
|
|
95909
|
-
success.dimension !== 'unShowByOption' &&
|
|
95910
|
-
success.group !== 'unShowByOption') {
|
|
95912
|
+
if (success.mark !== true && success.group !== true && (success.dimension !== true || isNil$1(dimensionInfo))) {
|
|
95913
|
+
if (!this._cacheActiveType || success[this._cacheActiveType] !== 'unShowByOption') {
|
|
95911
95914
|
this._handleChartMouseOut(params);
|
|
95912
95915
|
}
|
|
95913
95916
|
}
|
|
@@ -96220,6 +96223,7 @@
|
|
|
96220
96223
|
const result = showTooltip(datum, options, this);
|
|
96221
96224
|
if (result !== 'none') {
|
|
96222
96225
|
this._alwaysShow = !!(options === null || options === void 0 ? void 0 : options.alwaysShow);
|
|
96226
|
+
this._cacheActiveType = result;
|
|
96223
96227
|
}
|
|
96224
96228
|
return result;
|
|
96225
96229
|
}
|