diff --git a/components/codev/CodevGraph.vue b/components/codev/CodevGraph.vue
index 97764d3..5d2347c 100644
--- a/components/codev/CodevGraph.vue
+++ b/components/codev/CodevGraph.vue
@@ -8,7 +8,21 @@
-
+
@@ -82,9 +96,9 @@ function buildLinks(nodes: SimNode[]): SimLink[] {
}
function linkColor(mode: string): string {
- if (mode === 'solution') return '#1B4436'
- if (mode === 'alliance') return '#3b82f6'
- if (mode === 'surprise') return '#a855f7'
+ if (mode === 'solution') return '#22c55e'
+ if (mode === 'alliance') return '#f97316'
+ if (mode === 'surprise') return '#3b82f6'
return '#ccc'
}
@@ -132,8 +146,6 @@ function rebuildLinks() {
currentLinks = buildLinks(currentNodes)
if (!gLinks || !simulation) return
- const r = nodeRadius.value
-
const linkSel = gLinks
.selectAll('line')
.data(currentLinks, (d: SimLink) => {
@@ -149,7 +161,7 @@ function rebuildLinks() {
.attr('stroke', d => linkColor(d.mode))
.attr('stroke-width', d => 1 + d.score * 3)
.attr('stroke-opacity', 0.7)
- .attr('marker-end', null)
+ .attr('marker-end', d => d.mode === 'solution' ? 'url(#arrow-solution)' : null)
}
// ── Rendu complet ──────────────────────────────────────────────────────────
@@ -173,6 +185,7 @@ function render() {
.attr('stroke', d => linkColor(d.mode))
.attr('stroke-width', d => 1 + d.score * 3)
.attr('stroke-opacity', 0.7)
+ .attr('marker-end', d => d.mode === 'solution' ? 'url(#arrow-solution)' : null)
// Noeuds = groupe par personne
const nodeGroups = gNodes!
diff --git a/pages/codev/carto.vue b/pages/codev/carto.vue
index 4939cd5..88e11db 100644
--- a/pages/codev/carto.vue
+++ b/pages/codev/carto.vue
@@ -6,7 +6,7 @@
Chargement...
- {{ fiches.length }} fiche{{ fiches.length !== 1 ? 's' : '' }} — clique sur un nom pour voir le detail
+ {{ fiches.length }} fiche{{ fiches.length !== 1 ? 's' : '' }} - clique sur un nom pour voir le detail