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
11 months ago
by
Tu Nombre
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
Se agrega alineador
1 parent
50992d02
Hide 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 = {
'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'
:
'?'
,
...
...
This diff is collapsed.
Click to expand it.
static/src/pdf2.js
View file @
2bc0ddb
...
...
@@ -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
...
...
This diff is collapsed.
Click to expand it.
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