This is an automated email from the ASF dual-hosted git repository. shenyi pushed a commit to branch enhance-workflow in repository https://gitbox.apache.org/repos/asf/echarts.git
commit a37923769ac7c7517fef5bbd5502288697ed21dc Author: pissang <[email protected]> AuthorDate: Tue Apr 20 13:09:00 2021 +0800 style: format code --- src/chart/pie/PieView.ts | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/src/chart/pie/PieView.ts b/src/chart/pie/PieView.ts index 30a21dd..e7e575f 100644 --- a/src/chart/pie/PieView.ts +++ b/src/chart/pie/PieView.ts @@ -191,19 +191,19 @@ class PiePiece extends graphic.Sector { const labelPosition = seriesModel.get(['label', 'position']); if (labelPosition !== 'outside' && labelPosition !== 'outer') { sector.removeTextGuideLine(); - return; - } else { - let polyline = this.getTextGuideLine(); - if (!polyline) { - polyline = new graphic.Polyline(); - this.setTextGuideLine(polyline); - } - - // Default use item visual color - setLabelLineStyle(this, getLabelLineStatesModels(itemModel), { - stroke: visualColor, - opacity: retrieve3(labelLineModel.get(['lineStyle', 'opacity']), visualOpacity, 1) - }); + } + else { + let polyline = this.getTextGuideLine(); + if (!polyline) { + polyline = new graphic.Polyline(); + this.setTextGuideLine(polyline); + } + + // Default use item visual color + setLabelLineStyle(this, getLabelLineStatesModels(itemModel), { + stroke: visualColor, + opacity: retrieve3(labelLineModel.get(['lineStyle', 'opacity']), visualOpacity, 1) + }); } } } --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
