MCPcopy Index your code
hub / github.com/SuperMap/iClient-JavaScript / updateBlend

Function updateBlend

libs/echarts/echarts-en.simple.js:28882–28903  ·  view source on GitHub ↗

* 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)

Source from the content-addressed store, hash-verified

28880 * @param {module:echarts/view/Component|module:echarts/view/Chart} view
28881 */
28882function 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

Callers 1

renderSeriesFunction · 0.70

Calls 3

traverseMethod · 0.80
getMethod · 0.45
setStyleMethod · 0.45

Tested by

no test coverage detected