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

Function cloneSourceShallow

src/data/Source.ts:241–251  ·  view source on GitHub ↗
(source: Source)

Source from the content-addressed store, hash-verified

239 * Clone source but excludes source data.
240 */
241export function cloneSourceShallow(source: Source): Source {
242 return new SourceImpl({
243 data: source.data,
244 sourceFormat: source.sourceFormat,
245
246 seriesLayoutBy: source.seriesLayoutBy,
247 dimensionsDefine: clone(source.dimensionsDefine),
248 startIndex: source.startIndex,
249 dimensionsDetectedCount: source.dimensionsDetectedCount
250 });
251}
252
253/**
254 * Note: An empty array will be detected as `SOURCE_FORMAT_ARRAY_ROWS`.

Callers 1

_applyTransformMethod · 0.90

Calls 1

cloneFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…