Merge pull request #3305 from yurydelendik/annotation-clear-state
Reset canvas state before drawing annotations
This commit is contained in:
commit
10ffc8bc99
3 changed files with 59 additions and 24 deletions
|
@ -1647,6 +1647,15 @@ var CanvasGraphics = (function CanvasGraphicsClosure() {
|
|||
this.restore();
|
||||
},
|
||||
|
||||
beginAnnotations: function CanvasGraphics_beginAnnotations() {
|
||||
this.save();
|
||||
this.current = new CanvasExtraState();
|
||||
},
|
||||
|
||||
endAnnotations: function CanvasGraphics_endAnnotations() {
|
||||
this.restore();
|
||||
},
|
||||
|
||||
beginAnnotation: function CanvasGraphics_beginAnnotation(rect, transform,
|
||||
matrix) {
|
||||
this.save();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue