MCPcopy
hub / github.com/apache/echarts / _initDimensions

Method _initDimensions

src/coord/parallel/ParallelModel.ts:165–183  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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

Callers 1

mergeOptionMethod · 0.95

Calls 4

queryComponentsMethod · 0.80
filterMethod · 0.45
getMethod · 0.45
eachMethod · 0.45

Tested by

no test coverage detected