KineticJS
KineticJS copied to clipboard
Shadow applied incorrect on scale
When we apply scale, it is not applied to shadowBlur and shadowOpacity. Here is example: http://jsfiddle.net/qDPq8/3/
var stage = new Kinetic.Stage({
container: 'container',
width: 500,
height: 500
});
var layer = new Kinetic.Layer();
var rect = new Kinetic.Rect({
fill: 'red',
shadowOffset: {x:5, y:5},
shadowBlur: 10,
shadowOpacity: 0.6,
x: 30,
y: 30,
width: 100,
height: 50
});
layer.add(rect);
stage.add(layer);
stage.scale({x:0.1, y:0.1});
stage.draw();
When I apply 0.1 scale, I suppose that scale blur will be only 1 pixel more then shape and it should be under shape - but it is still with 5 px offset.