mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-22 16:18:08 +02:00
Fix pattern handling regression in SVGGraphics
(PR 13770 follow-up)
While the FAQ clearly lists the SVG back-end as unsupported, see https://github.com/mozilla/pdf.js/wiki/Frequently-Asked-Questions#backends, I suppose that small/simple regressions still makes sense to fix.
This commit is contained in:
parent
bbb64369f1
commit
8c6f1e45c7
1 changed files with 3 additions and 0 deletions
|
@ -1160,6 +1160,9 @@ if (
|
|||
* @private
|
||||
*/
|
||||
_makeShadingPattern(args) {
|
||||
if (typeof args === "string") {
|
||||
args = this.objs.get(args);
|
||||
}
|
||||
switch (args[0]) {
|
||||
case "RadialAxial":
|
||||
const shadingId = `shading${shadingCount++}`;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue