mirror of
https://github.com/Hopiu/fabric.js.git
synced 2026-05-23 04:35:48 +00:00
Zoom overlay and background images
This commit is contained in:
parent
3262a66e99
commit
02b0b20343
5 changed files with 7 additions and 7 deletions
4
dist/fabric.js
vendored
4
dist/fabric.js
vendored
|
|
@ -9670,7 +9670,7 @@ fabric.Pattern = fabric.util.createClass(/** @lends fabric.Pattern.prototype */
|
|||
this.height);
|
||||
}
|
||||
if (this.backgroundImage) {
|
||||
this.backgroundImage.render(ctx);
|
||||
this._draw(ctx, this.backgroundImage);
|
||||
}
|
||||
},
|
||||
|
||||
|
|
@ -9691,7 +9691,7 @@ fabric.Pattern = fabric.util.createClass(/** @lends fabric.Pattern.prototype */
|
|||
this.height);
|
||||
}
|
||||
if (this.overlayImage) {
|
||||
this.overlayImage.render(ctx);
|
||||
this._draw(ctx, this.overlayImage);
|
||||
}
|
||||
},
|
||||
|
||||
|
|
|
|||
2
dist/fabric.min.js
vendored
2
dist/fabric.min.js
vendored
File diff suppressed because one or more lines are too long
BIN
dist/fabric.min.js.gz
vendored
BIN
dist/fabric.min.js.gz
vendored
Binary file not shown.
4
dist/fabric.require.js
vendored
4
dist/fabric.require.js
vendored
|
|
@ -5503,7 +5503,7 @@ fabric.Pattern = fabric.util.createClass({
|
|||
ctx.fillRect(this.backgroundColor.offsetX || 0, this.backgroundColor.offsetY || 0, this.width, this.height);
|
||||
}
|
||||
if (this.backgroundImage) {
|
||||
this.backgroundImage.render(ctx);
|
||||
this._draw(ctx, this.backgroundImage);
|
||||
}
|
||||
},
|
||||
_renderOverlay: function(ctx) {
|
||||
|
|
@ -5512,7 +5512,7 @@ fabric.Pattern = fabric.util.createClass({
|
|||
ctx.fillRect(this.overlayColor.offsetX || 0, this.overlayColor.offsetY || 0, this.width, this.height);
|
||||
}
|
||||
if (this.overlayImage) {
|
||||
this.overlayImage.render(ctx);
|
||||
this._draw(ctx, this.overlayImage);
|
||||
}
|
||||
},
|
||||
renderTop: function() {
|
||||
|
|
|
|||
|
|
@ -845,7 +845,7 @@
|
|||
this.height);
|
||||
}
|
||||
if (this.backgroundImage) {
|
||||
this.backgroundImage.render(ctx);
|
||||
this._draw(ctx, this.backgroundImage);
|
||||
}
|
||||
},
|
||||
|
||||
|
|
@ -866,7 +866,7 @@
|
|||
this.height);
|
||||
}
|
||||
if (this.overlayImage) {
|
||||
this.overlayImage.render(ctx);
|
||||
this._draw(ctx, this.overlayImage);
|
||||
}
|
||||
},
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue