Skip to content

Commit

Permalink
no shadow for text inner stroke, close #588
Browse files Browse the repository at this point in the history
  • Loading branch information
fuzhenn committed Jan 27, 2018
1 parent cf04454 commit fb4f5da
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/core/Canvas.js
Original file line number Diff line number Diff line change
Expand Up @@ -315,8 +315,15 @@ const Canvas = {
}
Canvas.fillText(ctx, text, pt);
if (gco) {
const shadow = ctx.shadowBlur;
if (shadow) {
ctx.shadowBlur = 0;
}
ctx.globalCompositeOperation = gco;
Canvas.fillText(ctx, text, pt, fill);
if (shadow) {
ctx.shadowBlur = shadow;
}
}
},

Expand Down

0 comments on commit fb4f5da

Please sign in to comment.