Files
meshcore-analyzer/cmd/server
dborupandClaude Sonnet 5 fb69681de7 feat: View Path approximates unpositioned nodes from a weighted centroid of neighbors, not just one
nearestPositionedNeighbor picked exactly one neighbor (the strongest by
edge count) and used its exact coordinates -- so the approximate marker
always landed precisely on top of that neighbor's own dot. Since each
neighbor's own position is a real, precise fix, and only the
unpositioned node's position relative to them is unknown, more
positioned neighbors should narrow the estimate rather than being
ignored in favor of just the top one.

Now sums every positioned neighbor's coordinates weighted by
neighbor_edges.count and returns the centroid. With exactly one
positioned neighbor this is unchanged (reduces to that neighbor's exact
position); with several, the marker settles somewhere among them
instead of overlapping a single specific node.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-07-24 17:19:47 +02:00
..