Remove _sMasked

This commit is contained in:
alafr 2016-11-30 09:26:24 +02:00 committed by GitHub
parent c892bc348b
commit c1cda04126

View File

@ -36,19 +36,7 @@ module.exports =
_setColor: (color, stroke) ->
color = @_normalizeColor color
return no unless color
# clear sMask
if @_sMasked
gstate = @ref
Type: 'ExtGState'
SMask: 'None'
gstate.end()
name = "Gs#{++@_opacityCount}"
@page.ext_gstates[name] = gstate
@addContent "/#{name} gs"
@_sMasked = false
op = if stroke then 'SCN' else 'scn'
if color instanceof PDFGradient
@ -271,4 +259,4 @@ namedColors =
white: [255, 255, 255]
whitesmoke: [245, 245, 245]
yellow: [255, 255, 0]
yellowgreen: [154, 205, 50]
yellowgreen: [154, 205, 50]