(modelProp: string, indexProp: string)
| 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'); |
no test coverage detected