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 2020/07/22 05:16:09 UTC
[incubator-echarts] branch optimize-style updated: fix: add back
hover layer.
This is an automated email from the ASF dual-hosted git repository.
shenyi pushed a commit to branch optimize-style
in repository https://gitbox.apache.org/repos/asf/incubator-echarts.git
The following commit(s) were added to refs/heads/optimize-style by this push:
new 3ddf62a fix: add back hover layer.
3ddf62a is described below
commit 3ddf62a2b259c04ea1548f015f73e0fde7541079
Author: pissang <bm...@gmail.com>
AuthorDate: Wed Jul 22 13:15:35 2020 +0800
fix: add back hover layer.
---
src/echarts.ts | 11 ++++++-----
1 file changed, 6 insertions(+), 5 deletions(-)
diff --git a/src/echarts.ts b/src/echarts.ts
index 0c6876e..de8aeab 100644
--- a/src/echarts.ts
+++ b/src/echarts.ts
@@ -1799,6 +1799,7 @@ class ECharts extends Eventful {
if (dispatcher) {
const ecData = getECData(dispatcher);
// Try blur all in the related series. Then emphasis the hoverred.
+ // TODO. progressive mode.
toggleSeriesBlurState(
ecData.seriesIndex, ecData.focus, ecData.blurScope, ecIns, true
);
@@ -1943,8 +1944,7 @@ class ECharts extends Eventful {
// If use hover layer
- // TODO
- // updateHoverLayerStatus(ecIns, ecModel);
+ updateHoverLayerStatus(ecIns, ecModel);
// Add aria
aria(ecIns._zr.dom, ecModel);
@@ -2017,8 +2017,9 @@ class ECharts extends Eventful {
const chartView = ecIns._chartsMap[seriesModel.__viewId];
if (chartView.__alive) {
chartView.group.traverse(function (el: ECElement) {
- // Don't switch back.
- el.useHoverLayer = true;
+ if (el.states.emphasis) {
+ el.states.emphasis.hoverLayer = true;
+ }
});
}
});
@@ -2026,7 +2027,7 @@ class ECharts extends Eventful {
};
/**
- * Update chart progressive and blend.
+ * Update chart and blend.
*/
function updateBlend(seriesModel: SeriesModel, chartView: ChartView): void {
const blendMode = seriesModel.get('blendMode') || null;
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org