()
| 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) { |
no test coverage detected