Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
Luciano Barletta
/
Pruebas-RTO
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
Commit 99005221
authored
2024-07-05 09:34:00 -0300
by
Tu Nombre
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
Corrijo la orientacion del papel oculto ruido
1 parent
ef8223e3
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
16 deletions
static/src/pdf2.js
templates/form.html
static/src/pdf2.js
View file @
9900522
...
...
@@ -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
]);
}
};
...
...
templates/form.html
View file @
9900522
...
...
@@ -149,7 +149,7 @@
"window.open(
compile(
(new PDF2()).pdf( collectToConvert() ),
new jsPDF('
landscape
', 'pt', 'a4')
new jsPDF('
portrait
', 'pt', 'a4')
)
.output('bloburl')
)"
;
...
...
Write
Preview
Styling with
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment