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

Method update

src/data/Tree.ts:380–391  ·  view source on GitHub ↗

* Update item available by list, * when list has been performed options like 'filterSelf' or 'map'.

()

Source from the content-addressed store, hash-verified

378 * when list has been performed options like 'filterSelf' or 'map'.
379 */
380 update() {
381 const data = this.data;
382 const nodes = this._nodes;
383
384 for (let i = 0, len = nodes.length; i < len; i++) {
385 nodes[i].dataIndex = -1;
386 }
387
388 for (let i = 0, len = data.count(); i < len; i++) {
389 nodes[data.getRawIndex(i)].dataIndex = i;
390 }
391 }
392
393 /**
394 * Clear all layouts

Callers 1

createTreeMethod · 0.95

Calls 2

countMethod · 0.65
getRawIndexMethod · 0.65

Tested by

no test coverage detected