Commit 99005221 by Tu Nombre

Corrijo la orientacion del papel oculto ruido

1 parent ef8223e3
......@@ -10,7 +10,7 @@ class PDF2 {
new Vector(842,595)
);
this.containerSize = 86;
this.containerSize = 95;
this.font = {
"font": "courier",
"type": "normal",
......@@ -35,7 +35,7 @@ class PDF2 {
(pointer, data) => pdfthis.frenosToPDF(pointer, data['frenos']),
(pointer, data) => pdfthis.traseroToPDF(pointer, data['trasero']),
(pointer, data) => pdfthis.gaseshumosToPDF(pointer, data['gaseshumos']),
(pointer, data) => pdfthis.ruidoToPDF(pointer, data['ruido'])
//(pointer, data) => pdfthis.ruidoToPDF(pointer, data['ruido'])
];
/**
......@@ -159,19 +159,19 @@ class PDF2 {
} else {
container.addRelativeChildren([
new Text(`${this.Dominio} - Diagnóstico de Frenos - ${tiEj} eje`, new Vector(Pos.beg, Pos.beg_margin + 10), this.font),
new Text("Peso Lado Izquierdo", new Vector(Pos.beg_margin, Pos.quarter), this.font),
new Text(`${Pi} Kg`, new Vector(Pos.beg_margin + 3, Pos.quarter + 10), this.font),
new Text("Fuerza IZ", new Vector(Pos.beg_margin, Pos.middle), this.font),
new Text(`${FI} KN`, new Vector(Pos.beg_margin + 3, Pos.middle + 10), this.font),
new Text("Diferencia", new Vector(Pos.middle - 10, Pos.middle), this.font),
new Text(`${DFT} Kg`, new Vector(Pos.middle - 5, Pos.middle + 10), this.font),
new Text("Peso del Eje ", new Vector(Pos.middle - 10, Pos.quarter), this.font),
new Text(`${peso} %`, new Vector(Pos.middle - 5, Pos.quarter + 10), this.font),
new Text("Peso Lado Derecho", new Vector(Pos.three_quarters, Pos.quarter), this.font),
new Text(`${Pd} KG`, new Vector(Pos.three_quarters + 3, Pos.quarter + 10), this.font),
new Text("Fuerza DE", new Vector(Pos.three_quarters, Pos.middle), this.font),
new Text(`${FD} KN`, new Vector(Pos.three_quarters + 3, Pos.middle + 10), this.font)
new Text(`${this.Dominio} - Diagnóstico de Frenos - ${tiEj} eje`, new Vector(Pos.beg, Pos.beg_margin + 10), this.font), //OK TITULO
new Text("Peso Lado Izquierdo", new Vector(Pos.beg_margin, Pos.quarter), this.font),//OK IZ
new Text(`${Pi} Kg`, new Vector(Pos.beg_margin + 3, Pos.quarter + 10), this.font),//OK IZ
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("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 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
new Text(`${FD} KN`, new Vector(Pos.three_quarters -25, Pos.middle + 10), this.font)//OK DER
]);
}
};
......
......@@ -149,7 +149,7 @@
"window.open(
compile(
(new PDF2()).pdf( collectToConvert() ),
new jsPDF('landscape', 'pt', 'a4')
new jsPDF('portrait', 'pt', 'a4')
)
.output('bloburl')
)";
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!