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:
parent
f096e4ab91
commit
a9081653fc
4 changed files with 10 additions and 0 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue