You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@echarts.apache.org by su...@apache.org on 2021/03/27 14:54:53 UTC
[echarts] 02/02: fix: tweak the last commit.
This is an automated email from the ASF dual-hosted git repository.
sushuang pushed a commit to branch fix/geo-svg
in repository https://gitbox.apache.org/repos/asf/echarts.git
commit 9c2cb8eb518085fab5ed5f543d74fed49eb95299
Author: 100pah <su...@gmail.com>
AuthorDate: Thu Mar 25 13:20:22 2021 +0800
fix: tweak the last commit.
---
src/core/echarts.ts | 8 ++++++--
src/util/states.ts | 4 +---
2 files changed, 7 insertions(+), 5 deletions(-)
diff --git a/src/core/echarts.ts b/src/core/echarts.ts
index a9d7103..799a564 100644
--- a/src/core/echarts.ts
+++ b/src/core/echarts.ts
@@ -42,7 +42,7 @@ import {
HOVER_STATE_EMPHASIS,
HOVER_STATE_BLUR,
blurSeries,
- toggleSeriesBlurStateFromPayload,
+ blurSeriesFromPayload,
toggleSelectionFromPayload,
updateSeriesElementSelection,
getAllSelectedIndices,
@@ -1473,12 +1473,16 @@ class ECharts extends Eventful<ECEventDefinition> {
});
}
+ if (isHighDownPayload(payload)) {
+ allLeaveBlur(ecIns._api);
+ }
+
// If dispatchAction before setOption, do nothing.
ecModel && ecModel.eachComponent(condition, function (model) {
if (!excludeSeriesIdMap || excludeSeriesIdMap.get(model.id) == null) {
if (isHighDownPayload(payload) && !payload.notBlur) {
if (model instanceof SeriesModel) {
- toggleSeriesBlurStateFromPayload(model, payload, ecIns._api);
+ blurSeriesFromPayload(model, payload, ecIns._api);
}
}
else if (isSelectChangePayload(payload)) {
diff --git a/src/util/states.ts b/src/util/states.ts
index 31b5367..b3de1c1 100644
--- a/src/util/states.ts
+++ b/src/util/states.ts
@@ -482,7 +482,7 @@ export function blurSeries(
});
}
-export function toggleSeriesBlurStateFromPayload(
+export function blurSeriesFromPayload(
seriesModel: SeriesModel,
payload: Payload,
api: ExtensionAPI
@@ -507,8 +507,6 @@ export function toggleSeriesBlurStateFromPayload(
}
}
- allLeaveBlur(api);
-
if (isHighlight) {
if (el) {
const ecData = getECData(el);
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org