MCPcopy Create free account
hub / github.com/apache/echarts / cloneShallow

Method cloneShallow

src/data/SeriesData.ts:1346–1360  ·  view source on GitHub ↗

* Shallow clone a new list except visual and layout properties, and graph elements. * New list only change the indices.

(list?: SeriesData<HostModel>)

Source from the content-addressed store, hash-verified

1344 * New list only change the indices.
1345 */
1346 cloneShallow(list?: SeriesData<HostModel>): SeriesData<HostModel> {
1347 if (!list) {
1348 list = new SeriesData(
1349 this._schema
1350 ? this._schema
1351 : map(this.dimensions, this._getDimInfo, this),
1352 this.hostModel
1353 );
1354 }
1355
1356 transferProperties(list, this);
1357 list._store = this._store;
1358
1359 return list;
1360 }
1361
1362 /**
1363 * Wrap some method to add more feature

Callers 4

SeriesData.test.tsFile · 0.45
dataTaskResetFunction · 0.45
dataTaskProgressFunction · 0.45
cloneShallowInjectionFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected