mirror of
https://github.com/Hopiu/fabric.js.git
synced 2026-05-02 11:04:43 +00:00
Render canvas after setting background image.
This commit is contained in:
parent
a239bdd2a8
commit
1bfa25acf4
4 changed files with 3 additions and 3 deletions
2
dist/all.js
vendored
2
dist/all.js
vendored
|
|
@ -7063,7 +7063,7 @@ fabric.util.object.extend(fabric.StaticCanvas.prototype, {
|
|||
_this.backgroundColor = serialized.background;
|
||||
|
||||
if (serialized.backgroundImage) {
|
||||
_this.setBackgroundImage(serialized.backgroundImage);
|
||||
_this.setBackgroundImage(serialized.backgroundImage, _this.renderAll.bind(_this));
|
||||
_this.backgroundImageOpacity = serialized.backgroundImageOpacity;
|
||||
_this.backgroundImageStretch = serialized.backgroundImageStretch;
|
||||
}
|
||||
|
|
|
|||
2
dist/all.min.js
vendored
2
dist/all.min.js
vendored
File diff suppressed because one or more lines are too long
BIN
dist/all.min.js.gz
vendored
BIN
dist/all.min.js.gz
vendored
Binary file not shown.
|
|
@ -166,7 +166,7 @@ fabric.util.object.extend(fabric.StaticCanvas.prototype, {
|
|||
_this.backgroundColor = serialized.background;
|
||||
|
||||
if (serialized.backgroundImage) {
|
||||
_this.setBackgroundImage(serialized.backgroundImage);
|
||||
_this.setBackgroundImage(serialized.backgroundImage, _this.renderAll.bind(_this));
|
||||
_this.backgroundImageOpacity = serialized.backgroundImageOpacity;
|
||||
_this.backgroundImageStretch = serialized.backgroundImageStretch;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue