Mercurial > gemma
comparison client/src/components/gauge/Waterlevel.vue @ 3139:5daaabc2e7fc
client: remove console log
author | Fadi Abbud <fadi.abbud@intevation.de> |
---|---|
date | Thu, 02 May 2019 11:35:23 +0200 |
parents | 35c0da49eb89 |
children | 91556825d95c |
comparison
equal
deleted
inserted
replaced
3138:106e1d011a5d | 3139:5daaabc2e7fc |
---|---|
238 let y = offset.y; | 238 let y = offset.y; |
239 this.pdf.doc.setTextColor(color); | 239 this.pdf.doc.setTextColor(color); |
240 this.pdf.doc.setFontSize(size); | 240 this.pdf.doc.setFontSize(size); |
241 this.pdf.doc.setFontStyle("bold"); | 241 this.pdf.doc.setFontStyle("bold"); |
242 let width = this.pdf.doc.getTextWidth(gaugeInfo) + size / 2; | 242 let width = this.pdf.doc.getTextWidth(gaugeInfo) + size / 2; |
243 console.log("width", width); | |
244 | 243 |
245 if (["topright", "bottomright"].indexOf(position) !== -1) { | 244 if (["topright", "bottomright"].indexOf(position) !== -1) { |
246 x = this.pdf.width - offset.x - width; | 245 x = this.pdf.width - offset.x - width; |
247 } | 246 } |
248 if (["bottomright", "bottomleft"].indexOf(position) !== -1) { | 247 if (["bottomright", "bottomleft"].indexOf(position) !== -1) { |
249 y = this.pdf.height - offset.y - this.getTextHeight(1); | 248 y = this.pdf.height - offset.y - this.getTextHeight(1); |
250 } | 249 } |
251 //let y1 = y === 0 ? y + this.getTextHeigt(1) : y1; | |
252 console.log("y1", y); | |
253 console.log("x", x); | |
254 console.log("position", position); | |
255 this.pdf.doc.text(gaugeInfo, x, y, { | 250 this.pdf.doc.text(gaugeInfo, x, y, { |
256 baseline: "hanging" | 251 baseline: "hanging" |
257 }); | 252 }); |
258 }, | 253 }, |
259 getTextHeight(numberOfLines) { | 254 getTextHeight(numberOfLines) { |
266 // Diagram legend | 261 // Diagram legend |
267 addDiagramLegend(position, offset, color) { | 262 addDiagramLegend(position, offset, color) { |
268 let x = offset.x; | 263 let x = offset.x; |
269 let y = offset.y; | 264 let y = offset.y; |
270 let width = this.pdf.doc.getTextWidth("Navigable Range") + 12; | 265 let width = this.pdf.doc.getTextWidth("Navigable Range") + 12; |
271 console.log("width for legend", width); | |
272 let height = 15; | 266 let height = 15; |
273 if (["topright", "bottomright"].indexOf(position) !== -1) { | 267 if (["topright", "bottomright"].indexOf(position) !== -1) { |
274 x = this.pdf.width - offset.x - width; | 268 x = this.pdf.width - offset.x - width; |
275 } | 269 } |
276 if (["bottomright", "bottomleft"].indexOf(position) !== -1) { | 270 if (["bottomright", "bottomleft"].indexOf(position) !== -1) { |