ericdrowell / KineticJS

KineticJS is an HTML5 Canvas JavaScript framework that extends the 2d context by enabling canvas interactivity for desktop and mobile applications.
http://www.kineticjs.com
3.98k stars 752 forks source link

stroke for Sprite not working #941

Open conghai opened 10 years ago

conghai commented 10 years ago

I use kinetic js version 5.1.0

this.sprite = new Kinetic.Sprite({ x: x, y: y, image: this.source, animation: 'idle', animations: this.anims, frameRate: this.frame_time['idle'], frameIndex: 0, draggable: drag, stroke: '#000000', strokeWidth: 4, strokeEnabled: true });

Sprite animations can run but not has Stroke.

emnkoksal commented 10 years ago

If you are using cache (ie. mySprite.cache()), stroke won't be displayed.