提交 f5f1f933 编写于 作者: C Catouse

* refactor code.

上级 ac5f71dc
......@@ -208,10 +208,8 @@
var middleAngle = (segment.endAngle + segment.startAngle) / 2;
var placement = options.scaleLabelPlacement;
if(placement !== 'inside' && placement !== 'outside') {
if((this.chart.width - this.chart.height) > 50) {
if(segment.circumference < (Math.PI / 18)) {
placement = 'outside';
}
if((this.chart.width - this.chart.height) > 50 && segment.circumference < (Math.PI / 18)) {
placement = 'outside';
}
}
......@@ -363,4 +361,3 @@
}).call(this, jQuery);
/// ----- ZUI change end -----
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册