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

Method getSource

src/data/helper/sourceManager.ts:356–366  ·  view source on GitHub ↗

* @param sourceIndex By default 0, means "main source". * In most cases there is only one source.

(sourceIndex?: number)

Source from the content-addressed store, hash-verified

354 * In most cases there is only one source.
355 */
356 getSource(sourceIndex?: number): Source {
357 sourceIndex = sourceIndex || 0;
358 const source = this._sourceList[sourceIndex];
359 if (!source) {
360 // Series may share source instance with dataset.
361 const upSourceMgrList = this._getUpstreamSourceManagers();
362 return upSourceMgrList[0]
363 && upSourceMgrList[0].getSource(sourceIndex);
364 }
365 return source;
366 }
367
368 /**
369 *

Callers

nothing calls this directly

Calls 2

getSourceMethod · 0.65

Tested by

no test coverage detected