Skip to content

Commit

Permalink
fix: graphics.drawSVGPath negative number bug
Browse files Browse the repository at this point in the history
  • Loading branch information
06wj committed Apr 26, 2017
1 parent 653cf36 commit 560bdf8
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/view/Graphics.js
Original file line number Diff line number Diff line change
Expand Up @@ -521,8 +521,7 @@ return Class.create(/** @lends Graphics.prototype */{
*/
drawSVGPath: function(pathData){
var me = this, addAction = me._addAction,
path = pathData.replace(/,/g, ' ').split(/(?=[a-zA-Z])/);

path = pathData.replace(/,/g, ' ').replace(/-/g, ' -').split(/(?=[a-zA-Z])/);
addAction.call(me, ['beginPath']);
var currentPoint = {x:0, y:0};
var lastControlPoint = {x:0, y:0};
Expand Down

0 comments on commit 560bdf8

Please sign in to comment.