Merge pull request #1952 from yurydelendik/fix-dummy-shading
Fixes Shading.Dummy return type
This commit is contained in:
commit
e4a75cf02d
@ -38,6 +38,7 @@ var Pattern = (function PatternClosure() {
|
|||||||
// Both radial and axial shadings are handled by RadialAxial shading.
|
// Both radial and axial shadings are handled by RadialAxial shading.
|
||||||
return new Shadings.RadialAxial(dict, matrix, xref, res);
|
return new Shadings.RadialAxial(dict, matrix, xref, res);
|
||||||
default:
|
default:
|
||||||
|
TODO('Unsupported shading type: ' + type);
|
||||||
return new Shadings.Dummy();
|
return new Shadings.Dummy();
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
@ -174,7 +175,12 @@ Shadings.Dummy = (function DummyClosure() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
Dummy.fromIR = function Dummy_fromIR() {
|
Dummy.fromIR = function Dummy_fromIR() {
|
||||||
return 'hotpink';
|
return {
|
||||||
|
type: 'Pattern',
|
||||||
|
getPattern: function Dummy_fromIR_getPattern() {
|
||||||
|
return 'hotpink';
|
||||||
|
}
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
Dummy.prototype = {
|
Dummy.prototype = {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user