MCPcopy Index your code
hub / github.com/apache/echarts / writePNG

Function writePNG

test/runTest/cli.js:363–370  ·  view source on GitHub ↗
(diffPNG, diffPath)

Source from the content-addressed store, hash-verified

361}
362
363function writePNG(diffPNG, diffPath) {
364 return new Promise((resolve, reject) => {
365 const writer = fs.createWriteStream(diffPath);
366 diffPNG.pack().pipe(writer);
367 writer.on('finish', resolve);
368 writer.on('error', reject);
369 });
370};
371
372/**
373 * @param {puppeteer.Browser} browser

Callers 1

runTestFunction · 0.85

Calls 1

pipeMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…