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

Function resolveImagePath

test/runTest/genReport.js:28–35  ·  view source on GitHub ↗
(imageUrl)

Source from the content-addressed store, hash-verified

26const readFileAsync = util.promisify(fs.readFile);
27
28function resolveImagePath(imageUrl) {
29 if (!imageUrl) {
30 return '';
31 }
32
33 // The original image path is relative to the client.
34 return imageUrl.replace(/\\/g, '/').replace(/\.\.\/tmp/g, './tmp');
35}
36
37async function inlineImage(imageUrl) {
38 if (!imageUrl) {

Callers 1

inlineImageFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…