mirror of
https://github.com/Hopiu/fabric.js.git
synced 2026-05-16 09:43:11 +00:00
Update text.js
This commit is contained in:
parent
51fcd6cc52
commit
ed00d1c5fb
2 changed files with 6 additions and 4 deletions
|
|
@ -649,7 +649,7 @@
|
|||
angle = 360 + angle;
|
||||
}
|
||||
|
||||
t.target.angle = angle;
|
||||
t.target.angle = angle % 360;
|
||||
},
|
||||
|
||||
/**
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
},
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Reference in a new issue