MCPcopy Create free account
hub / github.com/apache/echarts / _buildView

Method _buildView

src/component/visualMap/ContinuousView.ts:129–160  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

127 }
128
129 private _buildView() {
130 this.group.removeAll();
131
132 const visualMapModel = this.visualMapModel;
133 const thisGroup = this.group;
134
135 this._orient = visualMapModel.get('orient');
136 this._useHandle = visualMapModel.get('calculable');
137
138 this._resetInterval();
139
140 this._renderBar(thisGroup);
141
142 const dataRangeText = visualMapModel.get('text');
143 this._renderEndsText(thisGroup, dataRangeText, 0);
144 this._renderEndsText(thisGroup, dataRangeText, 1);
145
146 // Do this for background size calculation.
147 this._updateView(true);
148
149 // After updating view, inner shapes is built completely,
150 // and then background can be rendered.
151 this.renderBackground(thisGroup);
152
153 // Real update view
154 this._updateView();
155
156 this._enableHoverLinkToSeries();
157 this._enableHoverLinkFromSeries();
158
159 this.positionGroup(thisGroup);
160 }
161
162 private _renderEndsText(group: graphic.Group, dataRangeText: string[], endsIndex?: 0 | 1) {
163 if (!dataRangeText) {

Callers 1

doRenderMethod · 0.95

Calls 9

_resetIntervalMethod · 0.95
_renderBarMethod · 0.95
_renderEndsTextMethod · 0.95
_updateViewMethod · 0.95
renderBackgroundMethod · 0.80
positionGroupMethod · 0.80
getMethod · 0.45

Tested by

no test coverage detected