mirror of
https://github.com/foliojs/pdfkit.git
synced 2025-12-08 20:15:54 +00:00
Remove _sMasked
This commit is contained in:
parent
c892bc348b
commit
c1cda04126
@ -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]
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user