mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-19 22:58:07 +02:00
Merge pull request #1952 from yurydelendik/fix-dummy-shading
Fixes Shading.Dummy return type
This commit is contained in:
commit
e4a75cf02d
1 changed files with 7 additions and 1 deletions
|
@ -38,6 +38,7 @@ var Pattern = (function PatternClosure() {
|
|||
// Both radial and axial shadings are handled by RadialAxial shading.
|
||||
return new Shadings.RadialAxial(dict, matrix, xref, res);
|
||||
default:
|
||||
TODO('Unsupported shading type: ' + type);
|
||||
return new Shadings.Dummy();
|
||||
}
|
||||
};
|
||||
|
@ -174,7 +175,12 @@ Shadings.Dummy = (function DummyClosure() {
|
|||
}
|
||||
|
||||
Dummy.fromIR = function Dummy_fromIR() {
|
||||
return 'hotpink';
|
||||
return {
|
||||
type: 'Pattern',
|
||||
getPattern: function Dummy_fromIR_getPattern() {
|
||||
return 'hotpink';
|
||||
}
|
||||
};
|
||||
};
|
||||
|
||||
Dummy.prototype = {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue