Commit 6e4561b3 by Tu Nombre

fsd

1 parent c79214e7
...@@ -249,32 +249,32 @@ class PDF2 { ...@@ -249,32 +249,32 @@ class PDF2 {
gaseshumosToPDF(pointer, data) { gaseshumosToPDF(pointer, data) {
const gaseshumos = this.A4.addRelativeChild(new Div(pointer.addxy(Pos.beg_margin + 2, 0), new Vector(this.containerSize, 9))); const gaseshumos = this.A4.addRelativeChild(new Div(pointer.addxy(Pos.beg_margin + 2, 0), new Vector(this.containerSize, 9)));
if (data['opacidad_logaritmica'] != '---') {
gaseshumos.addRelativeChildren([ gaseshumos.addRelativeChildren([
new Text(`${this.Dominio} - Resultado Analizador de Gases`, new Vector(Pos.beg, Pos.third), this.font),
new Text(`${this.Dominio} - Resultado Analizador de Gases`, new Vector(Pos.beg, Pos.third), this.font), new Text(`Medición ${data['opacidad_logaritmica']}`, new Vector(Pos.three_quarters, Pos.two_thirds), this.font)
]);
new Text(`${this.Dominio} - Resultado Analizador de Humos`, new Vector(Pos.two_thirds, Pos.third), this.font), }
if (data['co'] != '---') {
new Text(`CO ${data['co']} % HC ${data['hc']} ppm`, new Vector(Pos.beg, Pos.two_thirds), this.font), gaseshumos.addRelativeChildren([
new Text(`${this.Dominio} - Resultado Analizador de Humos`, new Vector(Pos.two_thirds, Pos.third), this.font),
new Text(`Medición ${data['opacidad_logaritmica']}`, new Vector(Pos.three_quarters, Pos.two_thirds), this.font) new Text(`CO ${data['co']} % HC ${data['hc']} ppm`, new Vector(Pos.beg, Pos.two_thirds), this.font),
]);
]); }
return pointer.addxy(0, 9); return pointer.addxy(0, 9);
} }
ruidoToPDF(pointer, data) { ruidoToPDF(pointer, data) {
const gaseshumos = this.A4.addRelativeChild(new Div(pointer.addxy(Pos.beg_margin + 2, 0), new Vector(this.containerSize, 9))); const gaseshumos = this.A4.addRelativeChild(new Div(pointer.addxy(Pos.beg_margin + 2, 0), new Vector(this.containerSize, 9)));
gaseshumos.addRelativeChildren([
new Text(`${this.Dominio} - Resultado Analizador Ruido`, new Vector(Pos.beg, Pos.third), this.font),
new Text("", new Vector(Pos.two_thirds, Pos.third), this.font),
]);
gaseshumos.addRelativeChildren([ gaseshumos.addRelativeChildren([
new Text(`${this.Dominio} - Resultado Analizador Ruido`, new Vector(Pos.beg, Pos.third), this.font),
new Text("", new Vector(Pos.two_thirds, Pos.third), this.font),
new Text(` ${data['nivelsonoro']} dba`, new Vector(Pos.beg, Pos.two_thirds), this.font), new Text(` ${data['nivelsonoro']} dba`, new Vector(Pos.beg, Pos.two_thirds), this.font),
new Text("", new Vector(Pos.three_quarters, Pos.two_thirds), this.font) new Text("", new Vector(Pos.three_quarters, Pos.two_thirds), this.font)
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!