(
cb: (
axisDim: DataZoomAxisDimension,
axisIndex: number,
axisModel: AxisBaseModel,
dataZoomModel: DataZoomModel
) => void
)
| 38 | getTargetSeries(ecModel) { |
| 39 | |
| 40 | function eachAxisModel( |
| 41 | cb: ( |
| 42 | axisDim: DataZoomAxisDimension, |
| 43 | axisIndex: number, |
| 44 | axisModel: AxisBaseModel, |
| 45 | dataZoomModel: DataZoomModel |
| 46 | ) => void |
| 47 | ) { |
| 48 | ecModel.eachComponent('dataZoom', function (dataZoomModel: DataZoomModel) { |
| 49 | dataZoomModel.eachTargetAxis(function (axisDim, axisIndex) { |
| 50 | const axisModel = ecModel.getComponent(getAxisMainType(axisDim), axisIndex); |
| 51 | cb(axisDim, axisIndex, axisModel as AxisBaseModel, dataZoomModel); |
| 52 | }); |
| 53 | }); |
| 54 | } |
| 55 | // FIXME: it brings side-effect to `getTargetSeries`. |
| 56 | const proxyList: AxisProxy[] = []; |
| 57 | eachAxisModel(function (axisDim, axisIndex, axisModel, dataZoomModel) { |
no test coverage detected
searching dependent graphs…