mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-19 22:58:07 +02:00
Merge pull request #11927 from timvandermeij/svg-fill-opacity-shading
Implement fill opacity for shading patterns in the SVG back-end
This commit is contained in:
commit
9d38dd4e8b
1 changed files with 3 additions and 0 deletions
|
@ -1090,6 +1090,9 @@ if (typeof PDFJSDev === "undefined" || PDFJSDev.test("GENERIC")) {
|
|||
rect.setAttributeNS(null, "width", x1 - x0);
|
||||
rect.setAttributeNS(null, "height", y1 - y0);
|
||||
rect.setAttributeNS(null, "fill", this._makeShadingPattern(args));
|
||||
if (this.current.fillAlpha < 1) {
|
||||
rect.setAttributeNS(null, "fill-opacity", this.current.fillAlpha);
|
||||
}
|
||||
this._ensureTransformGroup().appendChild(rect);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue