Brain: dots where a connection meets a neuron, inbound hollow and outbound filled

This commit is contained in:
2026-08-17 12:52:31 +02:00
parent c249b39621
commit e8f18f5a3c
4 changed files with 111 additions and 76 deletions
+2 -2
View File
@@ -108,8 +108,8 @@ function build(graph: BrainGraph): { nodes: Node[]; edges: Edge[] } {
.stop()
.tick(300)
// Both of an edge's handles sit at a neuron's centre, so the edge is what has
// to trim itself back to the rims; the radius is only known here.
// An edge draws itself from the two centres outwards, so it needs the radius
// to find the rims — and the size that fixes it is only known here.
const radius = new Map(placed.map((node) => [node.id, node.size / 2]))
return {