Brain: dots where a connection meets a neuron, inbound hollow and outbound filled
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user