Reputation: 571
Is there a way to remove the applied shadow from Kinetic.Shape? unfortunately shape.setShadow(null) doesn't work.
Upvotes: 1
Views: 485
Reputation: 5169
Kinetic.js now has a setShadowEnabled
method.
So, just call shape.setShadowEnabled(false)
.
Upvotes: 1
Reputation: 36
Set the shadow color's alpha component to 0 (e.g.):
shape.setShadow({color: 'rgba(80, 80, 80, 0)'})
Upvotes: 2