MCPcopy
hub / github.com/tdewolff/minify / decalVisual

Function decalVisual

_benchmarks/sample_echarts.js:27546–27572  ·  view source on GitHub ↗
(ecModel, api)

Source from the content-addressed store, hash-verified

27544 }
27545
27546 function decalVisual(ecModel, api) {
27547 ecModel.eachRawSeries(function (seriesModel) {
27548 if (ecModel.isSeriesFiltered(seriesModel)) {
27549 return;
27550 }
27551
27552 var data = seriesModel.getData();
27553
27554 if (data.hasItemVisual()) {
27555 data.each(function (idx) {
27556 var decal = data.getItemVisual(idx, 'decal');
27557
27558 if (decal) {
27559 var itemStyle = data.ensureUniqueItemVisual(idx, 'style');
27560 itemStyle.decal = createOrUpdatePatternFromDecal(decal, api);
27561 }
27562 });
27563 }
27564
27565 var decal = data.getVisual('decal');
27566
27567 if (decal) {
27568 var style = data.getVisual('style');
27569 style.decal = createOrUpdatePatternFromDecal(decal, api);
27570 }
27571 });
27572 }
27573
27574 function parseXML(svg) {
27575 if (isString(svg)) {

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…