mirror of
https://github.com/konvajs/konva.git
synced 2025-09-22 20:14:01 +08:00
rewrote shadow logic. Shadows can now be applied to images and sprites, even if they have transparent pixels
This commit is contained in:
@@ -23,7 +23,8 @@ Kinetic.Sprite = function(config) {
|
||||
context.beginPath();
|
||||
context.rect(0, 0, f.width, f.height);
|
||||
context.closePath();
|
||||
context.drawImage(this.attrs.image, f.x, f.y, f.width, f.height, 0, 0, f.width, f.height);
|
||||
|
||||
this.drawImage(this.attrs.image, f.x, f.y, f.width, f.height, 0, 0, f.width, f.height);
|
||||
}
|
||||
};
|
||||
// call super constructor
|
||||
|
Reference in New Issue
Block a user