mirror of
https://github.com/zen-browser/pdf.js.git
synced 2025-07-10 10:15:37 +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
|
* @private
|
||||||
*/
|
*/
|
||||||
_makeShadingPattern(args) {
|
_makeShadingPattern(args) {
|
||||||
|
if (typeof args === "string") {
|
||||||
|
args = this.objs.get(args);
|
||||||
|
}
|
||||||
switch (args[0]) {
|
switch (args[0]) {
|
||||||
case "RadialAxial":
|
case "RadialAxial":
|
||||||
const shadingId = `shading${shadingCount++}`;
|
const shadingId = `shading${shadingCount++}`;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue