1
0
Fork 0
mirror of https://github.com/mozilla/pdf.js.git synced 2025-04-22 16:18:08 +02:00

shading-pattern: While drawing patterns, transform to the baseTransform first

This commit is contained in:
Daan Sprenkels 2015-11-25 08:44:06 +01:00
parent f096e4ab91
commit a9081653fc
4 changed files with 10 additions and 0 deletions

View file

@ -1089,6 +1089,9 @@ var CanvasGraphics = (function CanvasGraphicsClosure() {
if (isPatternFill) {
ctx.save();
if (this.baseTransform) {
ctx.setTransform.apply(ctx, this.baseTransform);
}
ctx.fillStyle = fillColor.getPattern(ctx, this);
needRestore = true;
}