Fix free drawing path initialization

This commit is contained in:
kangax 2013-02-06 20:41:58 +01:00
parent a4340fda45
commit 4995fd9ed1
3 changed files with 4 additions and 4 deletions

4
dist/all.js vendored
View file

@ -7048,8 +7048,8 @@ fabric.Shadow = fabric.util.createClass(/** @scope fabric.Shadow.prototype */ {
createPath: function(pathData) {
var path = new fabric.Path(pathData);
path.fill = null;
path.stroke = this.color;
path.strokeWidth = this.width;
path.stroke = this.canvas.freeDrawingColor;
path.strokeWidth = this.canvas.freeDrawingLineWidth;
return path;
},

BIN
dist/all.min.js.gz vendored

Binary file not shown.

View file

@ -206,8 +206,8 @@
createPath: function(pathData) {
var path = new fabric.Path(pathData);
path.fill = null;
path.stroke = this.color;
path.strokeWidth = this.width;
path.stroke = this.canvas.freeDrawingColor;
path.strokeWidth = this.canvas.freeDrawingLineWidth;
return path;
},