* Update chart progressive and blend. * @param {module:echarts/model/Series|module:echarts/model/Component} model * @param {module:echarts/view/Component|module:echarts/view/Chart} view
(seriesModel, chartView)
| 28880 | * @param {module:echarts/view/Component|module:echarts/view/Chart} view |
| 28881 | */ |
| 28882 | function updateBlend(seriesModel, chartView) { |
| 28883 | var blendMode = seriesModel.get('blendMode') || null; |
| 28884 | if (__DEV__) { |
| 28885 | if (!env$1.canvasSupported && blendMode && blendMode !== 'source-over') { |
| 28886 | console.warn('Only canvas support blendMode'); |
| 28887 | } |
| 28888 | } |
| 28889 | chartView.group.traverse(function (el) { |
| 28890 | // FIXME marker and other components |
| 28891 | if (!el.isGroup) { |
| 28892 | // Only set if blendMode is changed. In case element is incremental and don't wan't to rerender. |
| 28893 | if (el.style.blend !== blendMode) { |
| 28894 | el.setStyle('blend', blendMode); |
| 28895 | } |
| 28896 | } |
| 28897 | if (el.eachPendingDisplayable) { |
| 28898 | el.eachPendingDisplayable(function (displayable) { |
| 28899 | displayable.setStyle('blend', blendMode); |
| 28900 | }); |
| 28901 | } |
| 28902 | }); |
| 28903 | } |
| 28904 | |
| 28905 | /** |
| 28906 | * @param {module:echarts/model/Series|module:echarts/model/Component} model |
no test coverage detected