mirror of
https://github.com/Hopiu/fabric.js.git
synced 2026-05-20 11:21:51 +00:00
fix shadow zoom level (#3475)
This commit is contained in:
parent
10f8c55948
commit
929391ff36
1 changed files with 5 additions and 4 deletions
|
|
@ -85,12 +85,13 @@ fabric.BaseBrush = fabric.util.createClass(/** @lends fabric.BaseBrush.prototype
|
|||
return;
|
||||
}
|
||||
|
||||
var ctx = this.canvas.contextTop;
|
||||
var ctx = this.canvas.contextTop,
|
||||
zoom = this.canvas.getZoom();
|
||||
|
||||
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 * zoom;
|
||||
ctx.shadowOffsetX = this.shadow.offsetX * zoom;
|
||||
ctx.shadowOffsetY = this.shadow.offsetY * zoom;
|
||||
},
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Reference in a new issue