You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@echarts.apache.org by sh...@apache.org on 2021/04/23 06:39:29 UTC
[echarts] 01/03: fix(map): fix wrong usage of change state manually
This is an automated email from the ASF dual-hosted git repository.
shenyi pushed a commit to branch fix-map
in repository https://gitbox.apache.org/repos/asf/echarts.git
commit e20c4a6fdb615da40b3cab6f120c97bc5586b8c9
Author: pissang <bm...@gmail.com>
AuthorDate: Fri Apr 23 12:59:26 2021 +0800
fix(map): fix wrong usage of change state manually
---
src/chart/map/MapView.ts | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/chart/map/MapView.ts b/src/chart/map/MapView.ts
index 1a960d5..1e0dff4 100644
--- a/src/chart/map/MapView.ts
+++ b/src/chart/map/MapView.ts
@@ -26,7 +26,7 @@ import GlobalModel from '../../model/Global';
import ExtensionAPI from '../../core/ExtensionAPI';
import { Payload, DisplayState, ECElement } from '../../util/types';
import { setLabelStyle, getLabelStatesModels } from '../../label/labelStyle';
-import { Z2_EMPHASIS_LIFT } from '../../util/states';
+import { setStatesFlag, Z2_EMPHASIS_LIFT } from '../../util/states';
class MapView extends ChartView {
@@ -183,7 +183,7 @@ class MapView extends ChartView {
}
(regionGroup as ECElement).onHoverStateChange = function (toState) {
- circle.useState(toState);
+ setStatesFlag(circle, toState);
};
}
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org