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

Function replaceEChartsVersion

test/runTest/cli.js:86–97  ·  view source on GitHub ↗
(interceptedRequest, source, version)

Source from the content-addressed store, hash-verified

84}
85
86function replaceEChartsVersion(interceptedRequest, source, version) {
87 // TODO Extensions and maps
88 if (interceptedRequest.url().endsWith('dist/echarts.js')) {
89 console.log('Use echarts version: ' + source + ' ' + version);
90 interceptedRequest.continue({
91 url: `${origin}/test/runTest/${getVersionDir(source, version)}/${getEChartsTestFileName()}`
92 });
93 }
94 else {
95 interceptedRequest.continue();
96 }
97}
98
99async function convertToWebP(filePath, lossless) {
100 const webpPath = filePath.replace(/\.png$/, '.webp');

Callers 1

runTestPageFunction · 0.85

Calls 1

getVersionDirFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…