comparison client/src/components/Pdftool.vue @ 2288:3f9847c89491

client: pdf-gen: removed unused parameter
author Markus Kottlaender <markus@intevation.de>
date Fri, 15 Feb 2019 14:39:16 +0100
parents 9f327f197ddd
children 60af456d01f0
comparison
equal deleted inserted replaced
2287:3154120af837 2288:3f9847c89491
289 case "text": { 289 case "text": {
290 this.addText( 290 this.addText(
291 e.position, 291 e.position,
292 e.offset || defaultOffset, 292 e.offset || defaultOffset,
293 e.width, 293 e.width,
294 e.rounding || defaultRounding,
295 e.fontSize || defaultFontSize, 294 e.fontSize || defaultFontSize,
296 e.color || defaultTextColor, 295 e.color || defaultTextColor,
297 e.text 296 e.text
298 ); 297 );
299 break; 298 break;
402 this.pdf.doc.setDrawColor(color); 401 this.pdf.doc.setDrawColor(color);
403 this.pdf.doc.setFillColor(color); 402 this.pdf.doc.setFillColor(color);
404 this.pdf.doc.roundedRect(x, y, w, h, rounding, rounding, "FD"); 403 this.pdf.doc.roundedRect(x, y, w, h, rounding, rounding, "FD");
405 }, 404 },
406 // add some text at specific coordinates and determine how many wrolds in single line 405 // add some text at specific coordinates and determine how many wrolds in single line
407 addText(position, offset, width, rounding, fontSize, color, text) { 406 addText(position, offset, width, fontSize, color, text) {
408 text = this.replacePlaceholders(text); 407 text = this.replacePlaceholders(text);
409 408
410 // split the incoming string to an array, each element is a string of 409 // split the incoming string to an array, each element is a string of
411 // words in a single line 410 // words in a single line
412 this.pdf.doc.setTextColor(color); 411 this.pdf.doc.setTextColor(color);
471 this.addBox(position, offset, width, height, rounding, background); 470 this.addBox(position, offset, width, height, rounding, background);
472 this.addText( 471 this.addText(
473 position, 472 position,
474 { x: offset.x + padding, y: offset.y + padding }, 473 { x: offset.x + padding, y: offset.y + padding },
475 textWidth, 474 textWidth,
476 rounding,
477 fontSize, 475 fontSize,
478 color, 476 color,
479 text 477 text
480 ); 478 );
481 }, 479 },