# HG changeset patch # User Bernhard Reiter # Date 1562234352 -7200 # Node ID 876dc90c2825157c3ac6da2d6670542f88afca96 # Parent cc80a37173f88cd01dc616f1e8298d88064a9a22 client: improve pdf generation * Add width and height parameters back to calling addDiagram() because some code still needs it and it is likely to be needed in the future. diff -r cc80a37173f8 -r 876dc90c2825 client/src/lib/mixins.js --- a/client/src/lib/mixins.js Thu Jul 04 11:43:06 2019 +0200 +++ b/client/src/lib/mixins.js Thu Jul 04 11:59:12 2019 +0200 @@ -169,7 +169,12 @@ templateData.elements.forEach(e => { switch (e.type) { case "diagram": { - this.addDiagram(e.position, e.offset || defaultOffset); + this.addDiagram( + e.position, + e.offset || defaultOffset, + e.width || 200, + e.height || 100 + ); break; } case "diagramlegend": {