Merge pull request #1796 from asturur/Shadow-scaling

Support Shadow scaling for CanvasZoom and ScaleFactor
This commit is contained in:
Juriy Zaytsev 2014-10-31 13:05:32 +01:00
commit 1d7cfefba1

View file

@ -1061,10 +1061,12 @@
return;
}
var mult = this.canvas._currentMultiplier || 1;
ctx.shadowColor = this.shadow.color;
ctx.shadowBlur = this.shadow.blur;
ctx.shadowOffsetX = this.shadow.offsetX;
ctx.shadowOffsetY = this.shadow.offsetY;
ctx.shadowBlur = this.shadow.blur * mult * (this.scaleX + this.scaleY) / 2;
ctx.shadowOffsetX = this.shadow.offsetX * mult * this.scaleX;
ctx.shadowOffsetY = this.shadow.offsetY * mult * this.scaleY;
},
/**