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

Method findAxisModel

src/coord/polar/PolarModel.ts:48–58  ·  view source on GitHub ↗
(axisType: 'angleAxis' | 'radiusAxis')

Source from the content-addressed store, hash-verified

46 findAxisModel(axisType: 'angleAxis'): AngleAxisModel
47 findAxisModel(axisType: 'radiusAxis'): RadiusAxisModel
48 findAxisModel(axisType: 'angleAxis' | 'radiusAxis'): AngleAxisModel | RadiusAxisModel {
49 let foundAxisModel;
50 const ecModel = this.ecModel;
51
52 ecModel.eachComponent(axisType, function (this: PolarModel, axisModel: AngleAxisModel | RadiusAxisModel) {
53 if (axisModel.getCoordSysModel() === this) {
54 foundAxisModel = axisModel;
55 }
56 }, this);
57 return foundAxisModel;
58 }
59
60 static defaultOption: PolarOption = {
61

Callers 2

referHelper.tsFile · 0.80
polarCreator.tsFile · 0.80

Calls 2

eachComponentMethod · 0.80
getCoordSysModelMethod · 0.45

Tested by

no test coverage detected