mirror of
https://github.com/konvajs/konva.git
synced 2025-11-18 17:21:36 +08:00
applyFilter should generate a temp canvas based on the size of the image dimensions, not the user defined dimensions
This commit is contained in:
2
dist/kinetic-core.js
vendored
2
dist/kinetic-core.js
vendored
@@ -4514,7 +4514,7 @@ Kinetic.Image = Kinetic.Shape.extend({
|
||||
* filter has been applied
|
||||
*/
|
||||
applyFilter: function(config) {
|
||||
var canvas = new Kinetic.Canvas(this.attrs.width, this.attrs.height);
|
||||
var canvas = new Kinetic.Canvas(this.attrs.image.width, this.attrs.image.height);
|
||||
var context = canvas.getContext();
|
||||
context.drawImage(this.attrs.image, 0, 0);
|
||||
try {
|
||||
|
||||
2
dist/kinetic-core.min.js
vendored
2
dist/kinetic-core.min.js
vendored
File diff suppressed because one or more lines are too long
@@ -80,7 +80,7 @@ Kinetic.Image = Kinetic.Shape.extend({
|
||||
* filter has been applied
|
||||
*/
|
||||
applyFilter: function(config) {
|
||||
var canvas = new Kinetic.Canvas(this.attrs.width, this.attrs.height);
|
||||
var canvas = new Kinetic.Canvas(this.attrs.image.width, this.attrs.image.height);
|
||||
var context = canvas.getContext();
|
||||
context.drawImage(this.attrs.image, 0, 0);
|
||||
try {
|
||||
|
||||
Reference in New Issue
Block a user