ebta-workflow-prod 4.0.12 → 4.0.13
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 +2 -11
package/package.json
CHANGED
|
@@ -469,7 +469,7 @@ 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
474
|
width: lableSize,
|
|
475
475
|
height: lableSize * (image10.height / image10.width),
|
|
@@ -615,19 +615,10 @@ 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
|
-
newPage.drawText('Maximum Speed 10KM/h within Work Area', {
|
|
620
|
-
x: (28 + 150),
|
|
621
|
-
y: 145,
|
|
622
|
-
size: 10.5,
|
|
623
|
-
color: rgb(1, 1, 1), // White color, IGNORE VSCODE COLOR
|
|
624
|
-
font: font,
|
|
625
|
-
});
|
|
626
|
-
console.log('start to put text2 in VMP')
|
|
627
618
|
newPage.drawText('Maximum Speed 10KM/h within Work Area', {
|
|
628
619
|
x: (28 + 151),
|
|
629
620
|
y: 145,
|
|
630
|
-
size:
|
|
621
|
+
size: 30,
|
|
631
622
|
color: rgb(1, 0, 0), // red color, IGNORE VSCODE COLOR
|
|
632
623
|
font: boldFont,
|
|
633
624
|
});
|