提交 aa993c4e 编写于 作者: L lang

Fix graph line curveness switched from 0.x to 0

上级 ba743a1b
......@@ -61,6 +61,10 @@ define(function (require) {
targetShape.cpx1 = cp1[0];
targetShape.cpy1 = cp1[1];
}
else {
targetShape.cpx1 = NaN;
targetShape.cpy1 = NaN;
}
}
function updateSymbolAndLabelBeforeLineUpdate () {
......
......@@ -9,7 +9,7 @@ define(function (require) {
var bezierCurveProto = graphic.BezierCurve.prototype;
function isLine(shape) {
return shape.cpx1 == null || shape.cpy1 == null;
return isNaN(+shape.cpx1) || isNaN(+shape.cpy1);
}
return graphic.extendShape({
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册