shading-pattern: While drawing patterns, transform to the baseTransform first
This commit is contained in:
parent
f096e4ab91
commit
a9081653fc
@ -1089,6 +1089,9 @@ var CanvasGraphics = (function CanvasGraphicsClosure() {
|
|||||||
|
|
||||||
if (isPatternFill) {
|
if (isPatternFill) {
|
||||||
ctx.save();
|
ctx.save();
|
||||||
|
if (this.baseTransform) {
|
||||||
|
ctx.setTransform.apply(ctx, this.baseTransform);
|
||||||
|
}
|
||||||
ctx.fillStyle = fillColor.getPattern(ctx, this);
|
ctx.fillStyle = fillColor.getPattern(ctx, this);
|
||||||
needRestore = true;
|
needRestore = true;
|
||||||
}
|
}
|
||||||
|
1
test/pdfs/.gitignore
vendored
1
test/pdfs/.gitignore
vendored
@ -181,6 +181,7 @@
|
|||||||
!issue6081.pdf
|
!issue6081.pdf
|
||||||
!issue6069.pdf
|
!issue6069.pdf
|
||||||
!issue6106.pdf
|
!issue6106.pdf
|
||||||
|
!issue6296.pdf
|
||||||
!bug1001080.pdf
|
!bug1001080.pdf
|
||||||
!issue6108.pdf
|
!issue6108.pdf
|
||||||
!issue6113.pdf
|
!issue6113.pdf
|
||||||
|
BIN
test/pdfs/issue6296.pdf
Normal file
BIN
test/pdfs/issue6296.pdf
Normal file
Binary file not shown.
@ -2510,6 +2510,12 @@
|
|||||||
"link": true,
|
"link": true,
|
||||||
"type": "eq"
|
"type": "eq"
|
||||||
},
|
},
|
||||||
|
{ "id": "issue6296.pdf",
|
||||||
|
"file": "pdfs/issue6296.pdf",
|
||||||
|
"md5": "734e191aab1372e6fd7523ca7751fcf0",
|
||||||
|
"rounds": 1,
|
||||||
|
"type": "eq"
|
||||||
|
},
|
||||||
{ "id": "issue5549.pdf",
|
{ "id": "issue5549.pdf",
|
||||||
"file": "pdfs/issue5549.pdf",
|
"file": "pdfs/issue5549.pdf",
|
||||||
"md5": "6c36df6ebc583c9e18aad0ad00d257b8",
|
"md5": "6c36df6ebc583c9e18aad0ad00d257b8",
|
||||||
|
Loading…
Reference in New Issue
Block a user