4 Commits
Author SHA1 Message Date
Cato e15126d202 docs(picking): measured tap cost, and a bench script (#23)
A tap takes about 1.5 ms from 4,000 to 40,000 features; a grid over the
boxes halves it at 40,000 and changes nothing at 4,000, so there is no
index. scripts/bench-pick.ts reproduces the numbers.

Claude-Session: https://claude.ai/code/session_019MDtmsK7DLpfrBNHLWnWaM
2026-11-10 12:14:35 +01:00
Cato 9863117d66 fix(map): a tap picks the place drawn on top, and pickAllAt returns the stack (0.7.0) (#21)
pickAt walked the features in array order and ignored layer, so a coarse
Natural Earth country listed first took every tap inside a fine place
drawn over it (Solon: a tap inside Narva selected Russia). The pick index
is now topmost first: highest layer, then smallest area, then listed last.

Adds pickAllAt, picking tests on real borders (Narva, Valga/Valka,
Goerlitz/Zgorzelec, Baarle enclaves, Liechtenstein communes) with sourced
fixtures, and docs/design/picking.md.

Claude-Session: https://claude.ai/code/session_019MDtmsK7DLpfrBNHLWnWaM
2026-11-10 11:54:16 +01:00
CatoandClaude 12463a6d01 feat(map): one renderer for the geography geo-kit delivers (0.2.0) (#14)
`@bitbaum/geo-kit/map`: an orthographic globe on Canvas 2D (d3-geo) which,
zoomed in, is a flat map of the place in front of the reader, so the world
and a commune are one projection and one renderer. Extracted from Substrata's
globe (camera, motion, culling, picking, the fast projection, painting, input
and frame loop), made country-neutral (features keyed by any id, fills by id,
limits per map) and framework-free (`createMap` takes a canvas). Solon's
commune map moves onto it from MapLibre, Substrata's globe after it.

d3-geo and topojson-client are optional peer dependencies, needed by /map only.


Claude-Session: https://claude.ai/code/session_019MDtmuxKPxNit33QRcXSCC

Co-authored-by: Claude <noreply@anthropic.com>
2026-10-30 22:01:34 +01:00
Cato 46487bc387 feat: add verified geography contracts and release workflows 2026-09-29 18:45:45 -07:00