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

Function processAddUpdate

src/chart/custom/CustomView.ts:1459–1476  ·  view source on GitHub ↗
(
    this: DataDiffer<DiffGroupContext>,
    newIndex: number,
    oldIndex?: number
)

Source from the content-addressed store, hash-verified

1457}
1458
1459function processAddUpdate(
1460 this: DataDiffer<DiffGroupContext>,
1461 newIndex: number,
1462 oldIndex?: number
1463): void {
1464 const context = this.context;
1465 const childOption = newIndex != null ? context.newChildren[newIndex] : null;
1466 const child = oldIndex != null ? context.oldChildren[oldIndex] : null;
1467
1468 doCreateOrUpdateEl(
1469 context.api,
1470 child,
1471 context.dataIndex,
1472 childOption,
1473 context.seriesModel,
1474 context.group
1475 );
1476}
1477
1478function processRemove(this: DataDiffer<DiffGroupContext>, oldIndex: number): void {
1479 const context = this.context;

Callers

nothing calls this directly

Calls 1

doCreateOrUpdateElFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…