mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-22 16:18:08 +02:00
Added paintSolidColorImageMask
This commit is contained in:
parent
c8a4ab3a19
commit
d799a18b74
1 changed files with 14 additions and 0 deletions
|
@ -300,6 +300,9 @@ var SVGGraphics = (function SVGGraphicsClosure(ctx) {
|
|||
case OPS.fillStroke:
|
||||
this.fillStroke();
|
||||
break;
|
||||
case OPS.paintSolidColorImageMask:
|
||||
this.paintSolidColorImageMask();
|
||||
break;
|
||||
case OPS.closePath:
|
||||
this.closePath();
|
||||
break;
|
||||
|
@ -670,6 +673,17 @@ var SVGGraphics = (function SVGGraphicsClosure(ctx) {
|
|||
this.closePath();
|
||||
this.fillStroke();
|
||||
},
|
||||
paintSolidColorImageMask:
|
||||
function SVGGraphics_paintSolidColorImageMask() {
|
||||
var current = this.current;
|
||||
var rect = document.createElementNS(NS, 'svg:rect');
|
||||
rect.setAttributeNS(null, 'x', 0);
|
||||
rect.setAttributeNS(null, 'y', 0);
|
||||
rect.setAttributeNS(null, 'width', 1);
|
||||
rect.setAttributeNS(null, 'height', 1);
|
||||
rect.setAttributeNS(null, 'fill', current.fillColor);
|
||||
this.tgrp.appendChild(rect);
|
||||
},
|
||||
};
|
||||
return SVGGraphics;
|
||||
})();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue