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

Method _getUpstreamSourceManagers

src/data/helper/sourceManager.ts:429–445  ·  view source on GitHub ↗

* PENDING: Is it fast enough? * If no upstream, return empty array.

()

Source from the content-addressed store, hash-verified

427 * If no upstream, return empty array.
428 */
429 private _getUpstreamSourceManagers(): SourceManager[] {
430 // Always get the relationship from the raw option.
431 // Do not cache the link of the dependency graph, so that
432 // there is no need to update them when change happens.
433 const sourceHost = this._sourceHost;
434
435 if (isSeries(sourceHost)) {
436 const datasetModel = querySeriesUpstreamDatasetModel(sourceHost);
437 return !datasetModel ? [] : [datasetModel.getSourceManager()];
438 }
439 else {
440 return map(
441 queryDatasetUpstreamDatasetModels(sourceHost as DatasetModel),
442 datasetModel => datasetModel.getSourceManager()
443 );
444 }
445 }
446
447 private _getSourceMetaRawOption(): SourceMetaRawOption {
448 const sourceHost = this._sourceHost;

Callers 5

_createSourceMethod · 0.95
_isDirtyMethod · 0.95
getSourceMethod · 0.95
_innerGetDataStoreMethod · 0.95

Calls 4

isSeriesFunction · 0.85
getSourceManagerMethod · 0.45

Tested by

no test coverage detected