Mercurial > gemma
comparison client/src/components/fairway/Fairwayprofile.vue @ 3250:246754028bf4
client: cleanup code (fairwayprofile diagram)
author | Fadi Abbud <fadi.abbud@intevation.de> |
---|---|
date | Mon, 13 May 2019 16:31:35 +0200 |
parents | ecfa09241437 |
children | aac1ca73e92a |
comparison
equal
deleted
inserted
replaced
3249:d91c1200dc6b | 3250:246754028bf4 |
---|---|
362 if (svg) { | 362 if (svg) { |
363 svg = svg.replace(/\r?\n|\r/g, "").trim(); | 363 svg = svg.replace(/\r?\n|\r/g, "").trim(); |
364 } | 364 } |
365 // landscape format is used for both a3,a4 papersize | 365 // landscape format is used for both a3,a4 papersize |
366 if (!width) { | 366 if (!width) { |
367 width = this.form.paperSize === "a3" ? 380 : 290; | 367 width = this.templateData.properties.paperSize === "a3" ? 380 : 290; |
368 } | 368 } |
369 if (!height) { | 369 if (!height) { |
370 height = this.form.paperSize === "a3" ? 130 : 100; | 370 height = this.templateData.properties.paperSize === "a3" ? 130 : 100; |
371 } | 371 } |
372 if (["topright", "bottomright"].indexOf(position) !== -1) { | 372 if (["topright", "bottomright"].indexOf(position) !== -1) { |
373 x = this.pdf.width - offset.x - width; | 373 x = this.pdf.width - offset.x - width; |
374 } | 374 } |
375 if (["bottomright", "bottomleft"].indexOf(position) !== -1) { | 375 if (["bottomright", "bottomleft"].indexOf(position) !== -1) { |