Skip to content
Snippets Groups Projects
Commit dce57fa8 authored by David Smadja's avatar David Smadja
Browse files

Add picto

parent a2a11b37
No related branches found
No related tags found
1 merge request!285Indicateur cas type graphique
...@@ -3,6 +3,7 @@ ...@@ -3,6 +3,7 @@
import { getSituationVariableValue, type Situation } from "$lib/situations" import { getSituationVariableValue, type Situation } from "$lib/situations"
import { variableSummaryByName, type VariableValue } from "$lib/variables" import { variableSummaryByName, type VariableValue } from "$lib/variables"
import type { PopulationWithoutId } from "@openfisca/json-model" import type { PopulationWithoutId } from "@openfisca/json-model"
import PictoBigPersonneACharge from "$lib/components/ui_transverse_components/pictos/PictoBigPersonneACharge.svelte"
interface Props { interface Props {
situation: Situation situation: Situation
...@@ -28,7 +29,7 @@ ...@@ -28,7 +29,7 @@
let min = $derived(situation.sliders![0].min) let min = $derived(situation.sliders![0].min)
let max = $derived(situation.sliders![0].max) let max = $derived(situation.sliders![0].max)
let personSituation = $derived( let personSituation = $derived(
situation[personEntity.key_plural] as { situation[personEntity.key_plural!] as {
[populationId: string]: PopulationWithoutId [populationId: string]: PopulationWithoutId
}, },
) )
...@@ -50,6 +51,11 @@ ...@@ -50,6 +51,11 @@
</script> </script>
<div <div
class="pointer-events-none absolute inset-y-0 -translate-x-1/2 border-l border-neutral-600" class="pointer-events-none absolute inset-y-0 inline -translate-x-1/2 border-l-2 border-neutral-600"
style:left="{linePositionX}%" style:left="{linePositionX}%"
></div> >
<div class="relative" style:top="-50px" style:left="-20px">
<PictoBigPersonneACharge />
</div>
<div class="relative" style:top="-80px" style:left="20px">Cas type</div>
</div>
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment