mirror of
https://github.com/Hopiu/fabric.js.git
synced 2026-05-22 04:11:52 +00:00
Update itext.class.js
This commit is contained in:
parent
0933c6f5c2
commit
9ee71616bf
1 changed files with 2 additions and 2 deletions
|
|
@ -860,12 +860,12 @@
|
|||
|
||||
var fill = styleDeclaration.fill || this.fill;
|
||||
ctx.fillStyle = fill.toLive
|
||||
? fill.toLive(ctx)
|
||||
? fill.toLive(ctx, this)
|
||||
: fill;
|
||||
|
||||
if (styleDeclaration.stroke) {
|
||||
ctx.strokeStyle = (styleDeclaration.stroke && styleDeclaration.stroke.toLive)
|
||||
? styleDeclaration.stroke.toLive(ctx)
|
||||
? styleDeclaration.stroke.toLive(ctx, this)
|
||||
: styleDeclaration.stroke;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue