Fakultas Ilmu Komputer UI
Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
ppl-fasilkom-ui
PPL Sosial
tbcare
tbcare-web
Commits
e0d21704
Commit
e0d21704
authored
Jun 06, 2021
by
Nabilah Adani
Browse files
[CHORES]fixing file pdf
parent
47ce9ac4
Pipeline
#81760
passed with stages
in 4 minutes and 23 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
src/scenes/Home/utilities/utils.tsx
View file @
e0d21704
...
...
@@ -143,10 +143,10 @@ const image2pdf = (imageType: string, type: string, key: string, dataType: stri
const
writeInfoCases
=
(
doc
:
jsPDF
)
=>
{
doc
.
setFontSize
(
20
);
doc
.
setFont
(
"
arial
"
,
"
light
"
);
doc
.
text
(
"
Jumlah :
"
+
caseP
,
90
,
35
,
{
align
:
"
center
"
});
doc
.
text
(
"
Jumlah :
"
+
caseN
,
145
,
35
,
{
align
:
"
center
"
});
doc
.
text
(
"
Jumlah :
"
+
caseU
,
200
,
35
,
{
align
:
"
center
"
});
doc
.
setFont
(
"
arial
"
,
"
bold
"
);
doc
.
text
(
caseP
,
90
,
35
,
{
align
:
"
center
"
});
doc
.
text
(
caseN
,
145
,
35
,
{
align
:
"
center
"
});
doc
.
text
(
caseU
,
200
,
35
,
{
align
:
"
center
"
});
}
const
writeInfoCaseP
=
(
doc
:
jsPDF
)
=>
{
...
...
@@ -201,12 +201,12 @@ const image2pdf = (imageType: string, type: string, key: string, dataType: stri
doc
.
setFontSize
(
20
);
doc
.
setFont
(
"
arial
"
,
"
bold
"
);
if
(
key
===
"
Tanggal
"
)
doc
.
text
(
"
Total K
asus
:
"
+
total
,
pageWidth
/
2
,
155
,
{
align
:
"
center
"
})
doc
.
text
(
"
Total K
eseluruhan
:
"
+
total
+
"
Kasus
"
,
pageWidth
/
2
,
155
,
{
align
:
"
center
"
})
else
if
(
chartType
)
doc
.
text
(
"
Total :
"
+
total
+
"
Kasus
"
,
pageWidth
/
2
,
140
,
{
align
:
"
center
"
})
doc
.
text
(
"
Total
Keseluruhan
:
"
+
total
+
"
Kasus
"
,
pageWidth
/
2
,
140
,
{
align
:
"
center
"
})
else
doc
.
text
(
"
Total :
"
+
total
+
"
Kasus
"
,
pageWidth
/
2
,
150
,
{
align
:
"
center
"
})
doc
.
text
(
"
Total
Keseluruhan
:
"
+
total
+
"
Kasus
"
,
pageWidth
/
2
,
150
,
{
align
:
"
center
"
})
}
const
writeTextToPDF
=
(
doc
:
jsPDF
)
=>
{
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
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 comment