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

Function cloneSourceShallow

_benchmarks/sample_echarts.js:19820–19830  ·  view source on GitHub ↗

* Clone source but excludes source data.

(source)

Source from the content-addressed store, hash-verified

19818 */
19819
19820 function cloneSourceShallow(source) {
19821 return new SourceImpl({
19822 data: source.data,
19823 sourceFormat: source.sourceFormat,
19824 seriesLayoutBy: source.seriesLayoutBy,
19825 dimensionsDefine: clone(source.dimensionsDefine),
19826 startIndex: source.startIndex,
19827 dimensionsDetectedCount: source.dimensionsDetectedCount,
19828 encodeDefine: makeEncodeDefine(source.encodeDefine)
19829 });
19830 }
19831
19832 function makeEncodeDefine(encodeDefine) {
19833 // null means user not specify `series.encode`.

Callers 1

sample_echarts.jsFile · 0.85

Calls 2

makeEncodeDefineFunction · 0.85
cloneFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…