Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
proyecto-covid-threejs-igev
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
jonschi
proyecto-covid-threejs-igev
Commits
7f35521c
Commit
7f35521c
authored
Mar 31, 2022
by
jonschi
Browse files
Options
Downloads
Patches
Plain Diff
corregir unas palabras
parent
207677d8
No related branches found
No related tags found
No related merge requests found
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
frontend/src/components/Globe.vue
+1
-1
1 addition, 1 deletion
frontend/src/components/Globe.vue
frontend/src/components/Sidebar.vue
+2
-2
2 additions, 2 deletions
frontend/src/components/Sidebar.vue
frontend/src/helpers/visualization.js
+2
-2
2 additions, 2 deletions
frontend/src/helpers/visualization.js
with
5 additions
and
5 deletions
frontend/src/components/Globe.vue
+
1
−
1
View file @
7f35521c
...
...
@@ -214,7 +214,7 @@ function updateRegions(animationTime) {
for
(
const
nuts
in
regionMeshData
)
{
regionMeshData
[
nuts
].
forEach
(({
mesh
,
shape
})
=>
{
const
covidDataWeek
=
props
.
covidData
[
props
.
selectedDate
.
toJSON
()][
nuts
];
const
color
=
visualization
.
color
(
covidDataWeek
.
incidence
);
const
color
=
visualization
.
color
ByIncidence
(
covidDataWeek
.
incidence
);
const
extrusion
=
visualization
.
extrusion
(
covidDataWeek
.
incidence
)
const
shapeGeometry
=
createShapeGeometry
(
shape
,
extrusion
);
...
...
This diff is collapsed.
Click to expand it.
frontend/src/components/Sidebar.vue
+
2
−
2
View file @
7f35521c
...
...
@@ -238,7 +238,7 @@ onMounted(() => {
<div
class=
"level-item has-text-centered"
>
<div>
<p
class=
"heading"
>
<i
class=
"fa fa-people-group"
></i>
Po
pulatio
n
<i
class=
"fa fa-people-group"
></i>
Po
blació
n
</p>
<p
class=
"title"
>
{{
numberWithDots
(
currentCovidElement
.
population
)
}}
...
...
@@ -288,7 +288,7 @@ onMounted(() => {
/>
</div>
<div
class=
"column"
>
<label
class=
"label"
>
Dividir casos por pobla
ción
</label>
<label
class=
"label"
>
Mostrar propor
ción
</label>
</div>
<div
class=
"column"
>
<div
class=
"field"
>
...
...
This diff is collapsed.
Click to expand it.
frontend/src/helpers/visualization.js
+
2
−
2
View file @
7f35521c
...
...
@@ -8,7 +8,7 @@ const extrusion = function (incidence) {
}
// black and white scheme for now
const
color
=
function
(
incidence
)
{
const
color
ByIncidence
=
function
(
incidence
)
{
incidence
=
parseFloat
(
incidence
)
if
(
incidence
>
maxIncidence
)
incidence
=
maxIncidence
let
value
=
(
255
-
Math
.
round
((
incidence
/
maxIncidence
)
*
255
))
...
...
@@ -19,5 +19,5 @@ const color = function (incidence) {
export
default
{
extrusion
,
color
,
color
ByIncidence
,
}
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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!
Save comment
Cancel
Please
sign in
to comment