Skip to content

Commit

Permalink
add TODO() for Shading Pattern
Browse files Browse the repository at this point in the history
  • Loading branch information
joneschrisg committed Jun 22, 2011
1 parent 452550e commit 20b0fb9
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions pdf.js
Original file line number Diff line number Diff line change
Expand Up @@ -2867,13 +2867,14 @@ var CanvasGraphics = (function() {
error("Unable to find pattern resource");

var pattern = xref.fetchIfRef(patternRes.get(patternName.name));

const types = [null, this.tilingFill];
var typeNum = pattern.dict.get("PatternType");
var patternDict = IsStream(pattern) ? pattern.dict : pattern;
const types = [null, this.tilingFill,
function() { TODO("Shading Patterns"); }];
var typeNum = patternDict.get("PatternType");
var patternFn = types[typeNum];
if (!patternFn)
error("Unhandled pattern type");
patternFn.call(this, pattern);
patternFn.call(this, pattern, patternDict);
}
} else {
// TODO real impl
Expand Down

0 comments on commit 20b0fb9

Please sign in to comment.