changeset 3807:876dc90c2825 yworks-svg2pdf

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.
author Bernhard Reiter <bernhard@intevation.de>
date Thu, 04 Jul 2019 11:59:12 +0200
parents cc80a37173f8
children 8163eb8b40ed
files client/src/lib/mixins.js
diffstat 1 files changed, 6 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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": {