also set dimensons for PDF rendering
This commit is contained in:
parent
ab7329e966
commit
6ce46d8cee
1 changed files with 3 additions and 2 deletions
|
|
@ -462,8 +462,9 @@ func renderPDF(ctx context.Context, ms *xmain.State, plugin d2plugin.Plugin, ske
|
|||
diagram.Root.Fill = "transparent"
|
||||
|
||||
svg, err = d2svg.Render(diagram, &d2svg.RenderOpts{
|
||||
Pad: int(pad),
|
||||
Sketch: sketch,
|
||||
Pad: int(pad),
|
||||
Sketch: sketch,
|
||||
SetDimensions: true,
|
||||
})
|
||||
if err != nil {
|
||||
return nil, err
|
||||
|
|
|
|||
Loading…
Reference in a new issue