Skip to content

Commit

Permalink
fix: missing borders in showlayout command
Browse files Browse the repository at this point in the history
Due to changes applied to the (ptable.sile) graphics API in order
to allow optional fill and border: some parameters now need to be
explicitly set.
  • Loading branch information
Omikhleia authored and Didier Willis committed Jun 22, 2023
1 parent a642275 commit f56ae98
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions resilient/layouts/base.lua
Original file line number Diff line number Diff line change
Expand Up @@ -187,14 +187,18 @@ function layout:draw (W, H, options)
local painter = PathRenderer(rough and RoughPainter())
local path
path = buildFrameRect (painter, frames.bindinggutter, wratio, hratio, {
stroke = "0.1pt", fillcolor = "230", strokecolor = "225"
stroke = "0.1pt",
strokecolor = "225",
fillcolor = "220"
})
SILE.outputter:drawSVG(path, saveX, saveY, w, h, 1)
path = buildFrameRect (painter, frames.page, wratio, hratio, {
stroke = "0.5pt"
stroke = "0.5pt",
strokecolor = "black"
})
SILE.outputter:drawSVG(path, saveX, saveY, w, h, 1)
path = buildFrameRect(painter, frames.textblock, wratio, hratio, {
strokecolor = "black",
fillcolor = "200"
})
SILE.outputter:drawSVG(path, saveX, saveY, w, h, 1)
Expand Down

0 comments on commit f56ae98

Please sign in to comment.