mirror of
https://github.com/bilawalsidhu/gods-eye-view.git
synced 2026-11-06 03:14:00 +00:00
refactor(street-level): trim dead paths, duplicated labels and test-only API
- visibleBbox: no view-rectangle fallback or grid option; its one caller always ranges the rays - tilesForBbox returns the tiles; normalizeBbox takes arrays only - viewerHost: no try/catch around adapter calls that catch for themselves - coverage: counts come from the drawn sequences; no sequenceCount export - one keyStatusLabel for the pill and the layer list - no constructor source check, double-init guard or selectSequence / clearSequence on the layer Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
1 parent
777aa62586
commit
d59b4d05bb
14 files changed
+73
-116
No files matched your search
@@ -155,7 +155,7 @@ test('a tilted view from 3 km loads the tile at the centre of the screen', () =>
|
||||
const ahead = lat + 3000 / Math.tan((20 * Math.PI) / 180) / 110_540;
|
||||
const centreTile = `${lonToTileX(lon, 13)}/${latToTileY(ahead, 13)}`;
|
||||
const chosen = (from) =>
|
||||
tilesForBbox(bbox, 13, { limit: 9, from }).tiles.map(
|
||||
tilesForBbox(bbox, 13, { limit: 9, from }).map(
|
||||
(tile) => `${tile.x}/${tile.y}`,
|
||||
);
|
||||
assert.ok(
|
||||
|
||||
Reference in new issue
Block a user