fix: zone de hit des arcs réduite au strokeWidth visible (sans marge)
ci/woodpecker/push/woodpecker Pipeline was successful

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
syoul
2026-04-22 01:57:43 +02:00
parent 88e2232cfb
commit 782b063b25
+1 -1
View File
@@ -330,7 +330,7 @@ export function FlowMap({ arcs, focusCity, onCityClick }: FlowMapProps) {
style={{ cursor: 'default' }} style={{ cursor: 'default' }}
> >
{/* Zone de hit invisible plus large */} {/* Zone de hit invisible plus large */}
<path d={a.path} fill="none" stroke="transparent" strokeWidth={Math.max(4, a.strokeW + 2)} /> <path d={a.path} fill="none" stroke="transparent" strokeWidth={Math.max(2, a.strokeW)} />
<path d={a.path} fill="none" stroke={a.stroke} strokeWidth={a.strokeW} strokeLinecap="round" /> <path d={a.path} fill="none" stroke={a.stroke} strokeWidth={a.strokeW} strokeLinecap="round" />
<polygon points={a.arrowPts} fill={a.arrowFill} /> <polygon points={a.arrowPts} fill={a.arrowFill} />
</g> </g>