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 26172d35
authored
2024-06-19 18:08:07 -0300
by
Tu Nombre
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
Achico segun necesidad
1 parent
a6e38495
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
17 deletions
static/src/pdf2.js
static/src/pdf2.js
View file @
26172d3
...
...
@@ -138,7 +138,7 @@ class PDF2 {
frenosToPDF
(
pointer
,
data
)
{
const
frenos
=
this
.
A4
.
addRelativeChild
(
new
Div
(
pointer
,
new
Vector
(
Pos
.
end
,
60
)));
const
frenos
=
this
.
A4
.
addRelativeChild
(
new
Div
(
pointer
,
new
Vector
(
Pos
.
end
,
60
)));
//Esto hay q achicar
const
divsize
=
new
Vector
(
this
.
containerSize
,
Pos
.
quarter
);
...
...
@@ -184,26 +184,29 @@ class PDF2 {
]);
}
};
let
contador
=
0
for
(
let
i
=
0
;
i
<
ejes
.
length
;
i
++
)
{
table
(
ejes
[
i
],
i
+
1
,
data
[
`fuerza_izquierda_
${
i
+
1
}
`
],
data
[
`resistencia_izquierda_
${
i
+
1
}
`
],
data
[
`ovalidad_izquierda_
${
i
+
1
}
`
],
data
[
`peso_estatico_
${
i
+
1
}
`
],
data
[
`fuerza_derecha_
${
i
+
1
}
`
],
data
[
`resistencia_derecha_
${
i
+
1
}
`
],
data
[
`ovalidad_derecha_
${
i
+
1
}
`
],
data
[
`diferencia_freno_
${
i
+
1
}
`
],
data
[
`peso_izquierdo_
${
i
+
1
}
`
],
data
[
`peso_derecho_
${
i
+
1
}
`
],
);
if
(
data
[
`peso_estatico_
${
i
+
1
}
`
]
!=
'---'
)
{
contador
=
contador
+
15
table
(
ejes
[
i
],
i
+
1
,
data
[
`fuerza_izquierda_
${
i
+
1
}
`
],
data
[
`resistencia_izquierda_
${
i
+
1
}
`
],
data
[
`ovalidad_izquierda_
${
i
+
1
}
`
],
data
[
`peso_estatico_
${
i
+
1
}
`
],
data
[
`fuerza_derecha_
${
i
+
1
}
`
],
data
[
`resistencia_derecha_
${
i
+
1
}
`
],
data
[
`ovalidad_derecha_
${
i
+
1
}
`
],
data
[
`diferencia_freno_
${
i
+
1
}
`
],
data
[
`peso_izquierdo_
${
i
+
1
}
`
],
data
[
`peso_derecho_
${
i
+
1
}
`
],
);
//console.log(data);
}
}
return
pointer
.
addxy
(
0
,
60
);
return
pointer
.
addxy
(
0
,
contador
);
}
traseroToPDF
(
pointer
,
data
)
{
...
...
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