mirror of
https://github.com/foliojs/pdfkit.git
synced 2025-12-08 20:15:54 +00:00
Define upfront
This commit is contained in:
parent
ee86d0493f
commit
89dd7fdc8e
@ -189,6 +189,7 @@ module.exports =
|
||||
wrap.startY = @y # the initial Y position
|
||||
wrap.lineWidth = lineWidth # the maximum width of each line
|
||||
wrap.firstLine = true # whether we are on the first line of a paragraph
|
||||
wrap.lastLine = false # whether we are on the last line of a paragraph
|
||||
|
||||
# split the line into words
|
||||
words = text.match(WORD_RE)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user