mirror of
https://github.com/Hopiu/fabric.js.git
synced 2026-05-03 19:34:46 +00:00
Update shadow.class.js
add affectStroke to toObject
This commit is contained in:
parent
e322764e4c
commit
d4bae8230d
1 changed files with 4 additions and 0 deletions
|
|
@ -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;
|
||||
}
|
||||
});
|
||||
|
|
|
|||
Loading…
Reference in a new issue