提交 61da5ff2 编写于 作者: P pissang

Incremental rendering remove needsClear flag.

上级 7ffec768
......@@ -222,7 +222,6 @@ export default echarts.extendChartView({
rect.incremental = incremental;
// PENDING
if (incremental) {
rect.needsClear = start === 0;
// Rect must use hover layer if it's incremental.
rect.useHoverLayer = true;
}
......
......@@ -1572,11 +1572,17 @@ function updateBlend(seriesModel, chartView) {
chartView.group.traverse(function (el) {
// FIXME marker and other components
if (!el.isGroup) {
el.setStyle('blend', blendMode);
// Only set if blendMode is changed. In case element is incremental and don't wan't to rerender.
if (el.style.blend !== blendMode) {
el.setStyle('blend', blendMode);
}
}
if (el.eachPendingDisplayable) {
el.eachPendingDisplayable(function (displayable) {
displayable.setStyle('blend', blendMode);
// Only set if blendMode is changed. In case element is incremental and don't wan't to rerender.
if (el.style.blend !== blendMode) {
el.setStyle('blend', blendMode);
}
});
}
});
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册