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

Function wrapData

src/model/Series.ts:812–816  ·  view source on GitHub ↗
(data: SeriesData, seriesModel: SeriesModel)

Source from the content-addressed store, hash-verified

810
811// TODO refactor
812function wrapData(data: SeriesData, seriesModel: SeriesModel): void {
813 zrUtil.each(zrUtil.concatArray(data.CHANGABLE_METHODS, data.DOWNSAMPLE_METHODS), function (methodName) {
814 data.wrapMethod(methodName as any, zrUtil.curry(onDataChange, seriesModel));
815 });
816}
817
818function onDataChange(this: SeriesData, seriesModel: SeriesModel, newList: SeriesData): SeriesData {
819 const task = getCurrentTask(seriesModel);

Callers 2

initMethod · 0.85
mergeOptionMethod · 0.85

Calls 2

wrapMethodMethod · 0.80
eachMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…