()
| 163 | } |
| 164 | |
| 165 | private _initDimensions(): void { |
| 166 | const dimensions = this.dimensions = [] as DimensionName[]; |
| 167 | const parallelAxisIndex = this.parallelAxisIndex = [] as number[]; |
| 168 | |
| 169 | const axisModels = zrUtil.filter( |
| 170 | this.ecModel.queryComponents({ mainType: 'parallelAxis' }), |
| 171 | function (axisModel: ParallelAxisModel) { |
| 172 | // Can not use this.contains here, because |
| 173 | // initialization has not been completed yet. |
| 174 | return (axisModel.get('parallelIndex') || 0) === this.componentIndex; |
| 175 | }, |
| 176 | this |
| 177 | ); |
| 178 | |
| 179 | zrUtil.each(axisModels, function (axisModel: ParallelAxisModel) { |
| 180 | dimensions.push('dim' + axisModel.get('dim')); |
| 181 | parallelAxisIndex.push(axisModel.componentIndex); |
| 182 | }); |
| 183 | } |
| 184 | |
| 185 | } |
| 186 |
no test coverage detected