add TODO() for Shading Pattern
This commit is contained in:
parent
452550ea72
commit
20b0fb9dc0
9
pdf.js
9
pdf.js
@ -2867,13 +2867,14 @@ var CanvasGraphics = (function() {
|
|||||||
error("Unable to find pattern resource");
|
error("Unable to find pattern resource");
|
||||||
|
|
||||||
var pattern = xref.fetchIfRef(patternRes.get(patternName.name));
|
var pattern = xref.fetchIfRef(patternRes.get(patternName.name));
|
||||||
|
var patternDict = IsStream(pattern) ? pattern.dict : pattern;
|
||||||
const types = [null, this.tilingFill];
|
const types = [null, this.tilingFill,
|
||||||
var typeNum = pattern.dict.get("PatternType");
|
function() { TODO("Shading Patterns"); }];
|
||||||
|
var typeNum = patternDict.get("PatternType");
|
||||||
var patternFn = types[typeNum];
|
var patternFn = types[typeNum];
|
||||||
if (!patternFn)
|
if (!patternFn)
|
||||||
error("Unhandled pattern type");
|
error("Unhandled pattern type");
|
||||||
patternFn.call(this, pattern);
|
patternFn.call(this, pattern, patternDict);
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
// TODO real impl
|
// TODO real impl
|
||||||
|
Loading…
Reference in New Issue
Block a user