提交 b96e6a3e 编写于 作者: L lang

Label line smooth

上级 b148e1cf
......@@ -108,6 +108,7 @@ define(function(require) {
length: 20,
// 引导线两段中的第二段长度
length2: 5,
smooth: false,
lineStyle: {
// color: 各异,
width: 1,
......
......@@ -207,6 +207,14 @@ define(function (require) {
labelText.hoverStyle = getLabelStyle(data, idx, 'emphasis', labelHoverModel);
labelLine.hoverStyle = labelLineHoverModel.getModel('lineStyle').getLineStyle();
var smooth = labelLineModel.get('smooth');
if (smooth && smooth === true) {
smooth = 0.4;
}
labelLine.setShape({
smooth: smooth
});
graphic.setHoverStyle(this);
// Toggle selected
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册