Skip to content

Commit

Permalink
fix(markline): add lineWidth fault tolerance
Browse files Browse the repository at this point in the history
  • Loading branch information
deqingli committed Dec 20, 2018
1 parent 520ba6c commit 12c96be
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/chart/helper/Line.js
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ function setLinePoints(targetShape, points, lineWidth) {
y2: points[1][1]
},
style: {
lineWidth: lineWidth
lineWidth: lineWidth == null ? 1 : lineWidth
}
});

Expand Down

0 comments on commit 12c96be

Please sign in to comment.