MCPcopy
hub / github.com/apache/echarts / eachCtx

Function eachCtx

test/lib/testHelper.js:1629–1643  ·  view source on GitHub ↗
(cb)

Source from the content-addressed store, hash-verified

1627 });
1628
1629 function eachCtx(cb) {
1630 var painter = chart.getZr().painter;
1631 if (painter.type !== 'canvas') {
1632 return;
1633 }
1634 var layers = painter.getLayers();
1635 for (var zlevel in layers) {
1636 if (layers.hasOwnProperty(zlevel)) {
1637 var layer = layers[zlevel];
1638 var canvas = layer.dom;
1639 var ctx = canvas.getContext('2d');
1640 cb(zlevel, ctx);
1641 }
1642 }
1643 }
1644 }
1645
1646 /**

Callers 1

initRecordCanvasFunction · 0.85

Calls 3

getContextMethod · 0.80
cbFunction · 0.70
getZrMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…