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

Function dealUpdate

src/component/axis/axisAction.ts:130–139  ·  view source on GitHub ↗
(modelProp: string, indexProp: string)

Source from the content-addressed store, hash-verified

128 const finderResult = parseFinder(ecModel, payload);
129
130 function dealUpdate(modelProp: string, indexProp: string) {
131 each(finderResult[modelProp], (axisModel: AxisBaseModel) => {
132 const result = axisModel.updateAxisBreaks(payload);
133 each(result.breaks, item => {
134 eventBreaks.push(
135 defaults({[indexProp]: axisModel.componentIndex}, item)
136 );
137 });
138 });
139 }
140
141 dealUpdate('xAxisModels', 'xAxisIndex');
142 dealUpdate('yAxisModels', 'yAxisIndex');

Callers 1

actionHandlerFunction · 0.85

Calls 2

updateAxisBreaksMethod · 0.65
eachFunction · 0.50

Tested by

no test coverage detected