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/build/main.js +1 -1
- package/package.json +1 -1
- package/src/activities/PDFMapGenerator.ts +12 -14
package/package.json
CHANGED
|
@@ -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:
|
|
472
|
+
x: 40,
|
|
473
473
|
y: 145,
|
|
474
|
-
width:
|
|
475
|
-
height:
|
|
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 +
|
|
619
|
+
x: (28 + 111),
|
|
621
620
|
y: 145,
|
|
622
|
-
size:
|
|
623
|
-
color: rgb(
|
|
624
|
-
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 +
|
|
629
|
-
y:
|
|
630
|
-
size:
|
|
631
|
-
color: rgb(1,
|
|
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,
|