diff --git a/components/CartePensees.vue b/components/CartePensees.vue index ada27d1..fc5223d 100644 --- a/components/CartePensees.vue +++ b/components/CartePensees.vue @@ -212,8 +212,8 @@ async function initGraph() { if (simulation) simulation.stop() // Phase 8.D : sim ajustee pour 171 auteurs (vs 28 v2.1, densite 6x) simulation = d3.forceSimulation(allNodes) - .force('link', d3.forceLink(links).id((d: any) => d.id).distance(85).strength((d: any) => d.strength ?? 0.5)) - .force('charge', d3.forceManyBody().strength(-30)) + .force('link', d3.forceLink(links).id((d: any) => d.id).distance(120).strength((d: any) => d.strength ?? 0.5)) + .force('charge', d3.forceManyBody().strength(-70)) .force('center', d3.forceCenter(W / 2, H / 2).strength(0.02)) .force('collision', d3.forceCollide().radius((d: any) => d.type === 'ecole-fixed' ? ecoleRadius(ecoleAuteurCounts.get(d.ecoleId) ?? 0) + 4 : 12)) .force('forceX', d3.forceX((d: any) => { @@ -241,7 +241,7 @@ async function initGraph() { const r = ecoleRadius(count) gEcoles.append('circle') .attr('cx', eNode.fx).attr('cy', eNode.fy).attr('r', r) - .attr('fill', ecole.color + '22').attr('stroke', ecole.color).attr('stroke-width', 2.5) + .attr('fill', ecole.color).attr('fill-opacity', 0.82).attr('stroke', ecole.color).attr('stroke-width', 2) .attr('class', 'ecole-node').style('cursor', 'pointer') .on('mouseenter', (e: any) => { if (!tooltipRef.value) return @@ -300,6 +300,8 @@ async function initGraph() { .attr('text-anchor', 'middle') .attr('dy', (d: any) => -(d.r + 4)) .style('pointer-events', 'none') + .style('opacity', (d: any) => d.ingere ? 1 : 0.3) + .style('fill', (d: any) => d.ingere ? '#1a1a1a' : '#777777') d3NodeSel .on('mouseenter', (e: any, d: any) => { diff --git a/components/ChatbotPensees.vue b/components/ChatbotPensees.vue index 016b373..602f807 100644 --- a/components/ChatbotPensees.vue +++ b/components/ChatbotPensees.vue @@ -236,7 +236,7 @@ const inputElOverlay = ref(null) const inputElInline = ref(null) const corpusCount = 18 -const corpus = ref('both') +const corpus = ref('pensees') // Phase 8.E : hashtag mentions const auteursIngeres = ref([]) diff --git a/pages/media.vue b/pages/media.vue index 11c6766..1d4b618 100644 --- a/pages/media.vue +++ b/pages/media.vue @@ -275,7 +275,7 @@ onMounted(async () => { } } try { - penseesData.value = await $fetch('/data/auteurs-pensees.json') + penseesData.value = await $fetch('/data/auteurs-pensees.json?v=4.1') } catch (e) { console.error('Erreur chargement auteurs-pensees.json', e) }