Update shadow.class.js

add affectStroke to toObject
This commit is contained in:
Andrea Bogazzi 2015-10-21 11:10:34 +02:00
parent e322764e4c
commit d4bae8230d

View file

@ -147,6 +147,7 @@
blur: this.blur,
offsetX: this.offsetX,
offsetY: this.offsetY
affectStroke: this.affectStroke
};
}
var obj = { }, proto = fabric.Shadow.prototype;
@ -162,6 +163,9 @@
if (this.offsetY !== proto.offsetY) {
obj.offsetY = this.offsetY;
}
if (this.affectStroke !== proto.affectStroke) {
obj.affectStroke = this.affectStroke;
}
return obj;
}
});