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 2bc0ddb1
authored
2024-07-05 12:53:56 -0300
by
Tu Nombre
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
Se agrega alineador
1 parent
50992d02
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
11 deletions
pruebas.py
static/src/pdf2.js
pruebas.py
View file @
2bc0ddb
...
@@ -5,7 +5,7 @@ report = {
...
@@ -5,7 +5,7 @@ report = {
'ingeniero'
:
'Usuario no cargado'
,
'ingeniero'
:
'Usuario no cargado'
,
'fecha'
:
'19/06/2024'
,
'hora'
:
'11:46'
},
'fecha'
:
'19/06/2024'
,
'hora'
:
'11:46'
},
'alineador'
:
{
'alineador'
:
{
'eje_delantero'
:
'
?
'
},
'eje_delantero'
:
'
7.8
'
},
'suspension'
:
{
'suspension'
:
{
'rendimiento_izquierdo_1'
:
'?'
,
'rendimiento_izquierdo_1'
:
'?'
,
'rendimiento_derecho_1'
:
'?'
,
'rendimiento_derecho_1'
:
'?'
,
...
...
static/src/pdf2.js
View file @
2bc0ddb
...
@@ -79,18 +79,18 @@ class PDF2 {
...
@@ -79,18 +79,18 @@ class PDF2 {
alineadorToPDF
(
pointer
,
data
)
{
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([
alineador
.
addRelativeChildren
([
//new Text("Resultado Pruebas en Banco de Alineador al Paso"
, new Vector(Pos.beg_margin + 2, Pos.third), this.font),
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
.
addxy
(
0
,
5
);
return
pointer
//
return pointer
}
}
suspensionToPDF
(
pointer
,
data
)
{
suspensionToPDF
(
pointer
,
data
)
{
...
@@ -165,9 +165,9 @@ class PDF2 {
...
@@ -165,9 +165,9 @@ class PDF2 {
new
Text
(
"Fuerza IZ"
,
new
Vector
(
Pos
.
beg_margin
,
Pos
.
middle
),
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
(
`
${
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
(
"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 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
(
"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
(
`
${
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
(
"Fuerza DE"
,
new
Vector
(
Pos
.
three_quarters
-
28
,
Pos
.
middle
),
this
.
font
),
//OK DER
...
...
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