mirror of
https://github.com/zen-browser/pdf.js.git
synced 2025-07-10 10:15:37 +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:
|
case OPS.fillStroke:
|
||||||
this.fillStroke();
|
this.fillStroke();
|
||||||
break;
|
break;
|
||||||
|
case OPS.paintSolidColorImageMask:
|
||||||
|
this.paintSolidColorImageMask();
|
||||||
|
break;
|
||||||
case OPS.closePath:
|
case OPS.closePath:
|
||||||
this.closePath();
|
this.closePath();
|
||||||
break;
|
break;
|
||||||
|
@ -670,6 +673,17 @@ var SVGGraphics = (function SVGGraphicsClosure(ctx) {
|
||||||
this.closePath();
|
this.closePath();
|
||||||
this.fillStroke();
|
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;
|
return SVGGraphics;
|
||||||
})();
|
})();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue