Commit 26172d35 by Tu Nombre

Achico segun necesidad

1 parent a6e38495
...@@ -138,7 +138,7 @@ class PDF2 { ...@@ -138,7 +138,7 @@ class PDF2 {
frenosToPDF(pointer, data) { frenosToPDF(pointer, data) {
const frenos = this.A4.addRelativeChild(new Div(pointer, new Vector(Pos.end, 60))); const frenos = this.A4.addRelativeChild(new Div(pointer, new Vector(Pos.end, 60))); //Esto hay q achicar
const divsize = new Vector(this.containerSize, Pos.quarter); const divsize = new Vector(this.containerSize, Pos.quarter);
...@@ -184,8 +184,10 @@ class PDF2 { ...@@ -184,8 +184,10 @@ class PDF2 {
]); ]);
} }
}; };
let contador = 0
for (let i = 0; i < ejes.length; i++) { for (let i = 0; i < ejes.length; i++) {
if (data[`peso_estatico_${i + 1}`] != '---') {
contador = contador + 15
table( table(
ejes[i], ejes[i],
i + 1, i + 1,
...@@ -202,8 +204,9 @@ class PDF2 { ...@@ -202,8 +204,9 @@ class PDF2 {
); );
//console.log(data); //console.log(data);
} }
}
return pointer.addxy(0, 60); return pointer.addxy(0, contador);
} }
traseroToPDF(pointer, data) { traseroToPDF(pointer, data) {
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!