Skip to content

Commit

Permalink
Set up example for ignoreClearRect
Browse files Browse the repository at this point in the history
  • Loading branch information
MrRio committed Sep 30, 2016
1 parent e524ab3 commit a1b28b5
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion examples/canvg_context2d/bar_graph_with_text_and_lines.html
Original file line number Diff line number Diff line change
Expand Up @@ -664,6 +664,10 @@ <h1>Bar Graph With Text And Lines</h1>
var c = pdf.canvas;
c.width = 1000;
c.height = 500;
var ctx = c.getContext('2d');
ctx.ignoreClearRect = true;
ctx.fillStyle = '#ffffff';
ctx.fillRect(0, 0, 1000, 700);

//load a svg snippet in the canvas with id = 'drawingArea'
canvg(c, document.getElementById('svg').outerHTML, {
Expand All @@ -678,7 +682,6 @@ <h1>Bar Graph With Text And Lines</h1>
document.getElementById('source').innerText = makePdf().output();
//makePdf().save();
};

</script>

</body>
Expand Down

0 comments on commit a1b28b5

Please sign in to comment.