ebta-workflow-prod 4.0.12 → 4.0.14

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "ebta-workflow-prod",
3
3
  "private": false,
4
- "version": "4.0.12",
4
+ "version": "4.0.14",
5
5
  "description": "",
6
6
  "license": "UNLICENSED",
7
7
  "author": "",
@@ -469,10 +469,10 @@ export default class PDFMapGeneratorActivity implements IActivityHandler {
469
469
  const lableSize = 100
470
470
  if (inputs.template == 'VMP') {
471
471
  newPage.drawImage(image10, {
472
- x: 28 + 200,
472
+ x: 40,
473
473
  y: 145,
474
- width: lableSize,
475
- height: lableSize * (image10.height / image10.width),
474
+ width: 60,
475
+ height: 60 * (image10.height / image10.width),
476
476
  });
477
477
  console.log('image10 drawn successfully')
478
478
  }
@@ -615,20 +615,18 @@ export default class PDFMapGeneratorActivity implements IActivityHandler {
615
615
  const boldFont = await doc.embedFont(StandardFonts.HelveticaBold);
616
616
  console.log('bold font embed successful')
617
617
  if (inputs.template == 'VMP') {
618
- console.log('start to put text1 in VMP')
619
618
  newPage.drawText('Maximum Speed 10KM/h within Work Area', {
620
- x: (28 + 150),
619
+ x: (28 + 111),
621
620
  y: 145,
622
- size: 10.5,
623
- color: rgb(1, 1, 1), // White color, IGNORE VSCODE COLOR
624
- font: font,
621
+ size: 25,
622
+ color: rgb(0, 0, 0), // WHITE color, IGNORE VSCODE COLOR
623
+ font: boldFont,
625
624
  });
626
- console.log('start to put text2 in VMP')
627
625
  newPage.drawText('Maximum Speed 10KM/h within Work Area', {
628
- x: (28 + 151),
629
- y: 145,
630
- size: 10,
631
- color: rgb(1, 0, 0), // red color, IGNORE VSCODE COLOR
626
+ x: (28 + 109),
627
+ y: 147,
628
+ size: 25,
629
+ color: rgb(1, 1, 1), // WHITE color, IGNORE VSCODE COLOR
632
630
  font: boldFont,
633
631
  });
634
632
  console.log('speed limit text inserted')
@@ -648,7 +646,7 @@ export default class PDFMapGeneratorActivity implements IActivityHandler {
648
646
  width: buttonW,
649
647
  height: buttonH,
650
648
  });
651
-
649
+
652
650
  newPage.drawText('Go to EBTA GIS', {
653
651
  x: buttonX + 5,
654
652
  y: buttonY + 22,