Commit 2bc0ddb1 by Tu Nombre

Se agrega alineador

1 parent 50992d02
......@@ -5,7 +5,7 @@ report = {
'ingeniero': 'Usuario no cargado',
'fecha': '19/06/2024', 'hora': '11:46'},
'alineador': {
'eje_delantero': '?'},
'eje_delantero': '7.8'},
'suspension': {
'rendimiento_izquierdo_1': '?',
'rendimiento_derecho_1': '?',
......
......@@ -79,18 +79,18 @@ class PDF2 {
alineadorToPDF(pointer, data) {
//const alineador = this.A4.addRelativeChild(new Div(pointer, new Vector(Pos.end, 5)));
const alineador = this.A4.addRelativeChild(new Div(pointer, new Vector(Pos.end, 5)));
//alineador.addRelativeChildren([
//new Text("Resultado Pruebas en Banco de Alineador al Paso", new Vector(Pos.beg_margin + 2, Pos.third), this.font),
alineador.addRelativeChildren([
new Text(`${this.Dominio} - Resultado Pruebas en Banco de Alineador al Paso`, new Vector(Pos.beg_margin + 2, Pos.third), this.font),
//new Text("Eje Delantero", new Vector(Pos.beg_margin + 2, Pos.two_thirds), this.font),
new Text("Eje Delantero", new Vector(Pos.beg_margin + 5, Pos.two_thirds), this.font),
//new Text(data['eje_delantero'], new Vector(Pos.quarter, Pos.two_thirds), this.font)
//]);
new Text(`Convergente - ${data['eje_delantero']} m/km`, new Vector(Pos.middle - 16, Pos.two_thirds), this.font)
]);
//return pointer.addxy(0, 5);
return pointer
return pointer.addxy(0, 5);
//return pointer
}
suspensionToPDF(pointer, data) {
......@@ -165,9 +165,9 @@ class PDF2 {
new Text("Fuerza IZ", new Vector(Pos.beg_margin, Pos.middle), this.font),//OK IZ
new Text(`${FI} KN`, new Vector(Pos.beg_margin + 3, Pos.middle + 10), this.font),//OK IZ
new Text("Diferencia", new Vector(Pos.middle - 21, Pos.middle), this.font),//OK MEDIO
new Text(`${DFT} Kg`, new Vector(Pos.middle - 18, Pos.middle + 10), this.font),//OK MEDIO
new Text(`${DFT} %`, new Vector(Pos.middle - 18, Pos.middle + 10), this.font),//OK MEDIO
new Text("Peso del Eje ", new Vector(Pos.middle - 21, Pos.quarter), this.font),//OK MEDIO
new Text(`${peso} %`, new Vector(Pos.middle - 18, Pos.quarter + 10), this.font),//OK MEDIO
new Text(`${peso} Kg`, new Vector(Pos.middle - 18, Pos.quarter + 10), this.font),//OK MEDIO
new Text("Peso Lado Derecho", new Vector(Pos.three_quarters - 28, Pos.quarter), this.font),//OK DER
new Text(`${Pd} KG`, new Vector(Pos.three_quarters - 25, Pos.quarter + 10), this.font),//OK DER
new Text("Fuerza DE", new Vector(Pos.three_quarters - 28, Pos.middle), this.font),//OK DER
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!