Placeholder even-odd fill
This commit is contained in:
parent
e820a20b63
commit
c1758ea66f
8
pdf.js
8
pdf.js
@ -1592,6 +1592,7 @@ var Interpreter = (function() {
|
|||||||
re: gfx.rectangle,
|
re: gfx.rectangle,
|
||||||
S: gfx.stroke,
|
S: gfx.stroke,
|
||||||
f: gfx.fill,
|
f: gfx.fill,
|
||||||
|
"f*": gfx.eoFill,
|
||||||
B: gfx.fillStroke,
|
B: gfx.fillStroke,
|
||||||
b: gfx.closeFillStroke,
|
b: gfx.closeFillStroke,
|
||||||
n: gfx.endPath,
|
n: gfx.endPath,
|
||||||
@ -1740,6 +1741,9 @@ var EchoGraphics = (function() {
|
|||||||
fill: function() {
|
fill: function() {
|
||||||
this.printdentln("f");
|
this.printdentln("f");
|
||||||
},
|
},
|
||||||
|
eoFill: function() {
|
||||||
|
this.printdentln("f*");
|
||||||
|
},
|
||||||
fillStroke: function() {
|
fillStroke: function() {
|
||||||
this.printdentln("B");
|
this.printdentln("B");
|
||||||
},
|
},
|
||||||
@ -1951,6 +1955,10 @@ var CanvasGraphics = (function() {
|
|||||||
this.ctx.fill();
|
this.ctx.fill();
|
||||||
this.consumePath();
|
this.consumePath();
|
||||||
},
|
},
|
||||||
|
eoFill: function() {
|
||||||
|
// TODO: <canvas> needs to support even-odd winding rule
|
||||||
|
this.fill();
|
||||||
|
},
|
||||||
fillStroke: function() {
|
fillStroke: function() {
|
||||||
this.ctx.fill();
|
this.ctx.fill();
|
||||||
this.ctx.stroke();
|
this.ctx.stroke();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user