Zoom overlay and background images

This commit is contained in:
Tom French 2014-06-12 13:10:42 +01:00
parent 3262a66e99
commit 02b0b20343
5 changed files with 7 additions and 7 deletions

4
dist/fabric.js vendored
View file

@ -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

File diff suppressed because one or more lines are too long

BIN
dist/fabric.min.js.gz vendored

Binary file not shown.

View file

@ -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() {

View file

@ -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);
}
},