MCPcopy Index your code
hub / github.com/apache/echarts / render

Method render

src/component/axis/ParallelAxisView.ts:56–104  ·  view source on GitHub ↗
(
        axisModel: ParallelAxisModel,
        ecModel: GlobalModel,
        api: ExtensionAPI,
        payload: Payload
    )

Source from the content-addressed store, hash-verified

54 }
55
56 render(
57 axisModel: ParallelAxisModel,
58 ecModel: GlobalModel,
59 api: ExtensionAPI,
60 payload: Payload
61 ): void {
62 if (fromAxisAreaSelect(axisModel, ecModel, payload)) {
63 return;
64 }
65
66 this.axisModel = axisModel;
67 this.api = api;
68
69 this.group.removeAll();
70
71 const oldAxisGroup = this._axisGroup;
72 this._axisGroup = new graphic.Group();
73 this.group.add(this._axisGroup);
74
75 if (!axisModel.get('show')) {
76 return;
77 }
78
79 const coordSysModel = getCoordSysModel(axisModel, ecModel);
80 const coordSys = coordSysModel.coordinateSystem;
81
82 const areaSelectStyle = axisModel.getAreaSelectStyle();
83 const areaWidth = areaSelectStyle.width;
84
85 const dim = axisModel.axis.dim;
86 const axisLayout = coordSys.getAxisLayout(dim);
87
88 const builderOpt = zrUtil.extend(
89 {strokeContainThreshold: areaWidth},
90 axisLayout
91 );
92
93 const axisBuilder = new AxisBuilder(axisModel, api, builderOpt);
94
95 axisBuilder.build();
96
97 this._axisGroup.add(axisBuilder.group);
98
99 this._refreshBrushController(
100 builderOpt, areaSelectStyle, axisModel, coordSysModel, areaWidth, api
101 );
102
103 graphic.groupTransition(oldAxisGroup, this._axisGroup, axisModel);
104 }
105
106 // /**
107 // * @override

Callers

nothing calls this directly

Calls 8

buildMethod · 0.95
fromAxisAreaSelectFunction · 0.85
getCoordSysModelFunction · 0.85
getAreaSelectStyleMethod · 0.80
getAxisLayoutMethod · 0.80
addMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected