fix(mobile): director number keys work with the menu open, plus engine fixes

Number keys 1-9, 0, - and = jump to beats whether or not the director
is open. The engine now draws real river outlines over Esri's
inconsistent Hudson imagery, declutters Moment labels, and makes
playMoment, exitMoment and setTime(null) safe at any time (each view-
cone line owns its material; teardown waits for the frame in flight).

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01VVYRAqiQj9Y1V9ZfG1RcDH
This commit is contained in:
Claude committed 2026-10-23 08:15:00 +00:00
1 parent 070b549990
commit 4e1e838771
8 files changed
+227 -41

No files matched your search

+9 -1
View File
@@ -887,7 +887,11 @@ const moment = {
antennaM: ANTENNA,
decks: [DECK_86, DECK_102],
},
stage: { buildings: 'midtown-buildings.json', highlight: '1015862' },
stage: {
buildings: 'midtown-buildings.json',
water: 'midtown-water.json',
highlight: '1015862',
},
wind: WIND,
cameraPath,
beats: BEATS.map(([mmss, title]) => ({ t: at(mmss), title })),
@@ -906,6 +910,10 @@ const moment = {
detail:
'Real footprints and roof heights for Midtown (NYC OTI, dataset 5zhs-2jue).',
},
{
name: 'OpenStreetMap water polygons',
detail: 'Hudson and East River surfaces (ODbL, via OpenFreeMap).',
},
{
name: 'Esri World Imagery',
detail: 'Base imagery of the real place.',
+1 -4
View File
@@ -55,10 +55,7 @@ const template = meta.tiles[0];
const polys = [];
for (let x = tileX(BBOX.west); x <= tileX(BBOX.east); x++)
for (let y = tileY(BBOX.north); y <= tileY(BBOX.south); y++) {
const url = template
.replace('{z}', Z)
.replace('{x}', x)
.replace('{y}', y);
const url = template.replace('{z}', Z).replace('{x}', x).replace('{y}', y);
const r = await fetch(url);
if (!r.ok) throw new Error(`tile ${x}/${y} HTTP ${r.status}`);
const tile = new VectorTile(new Pbf(new Uint8Array(await r.arrayBuffer())));
+9 -1
View File
@@ -18,7 +18,11 @@
"antennaM": 443,
"decks": [320, 373]
},
"stage": { "buildings": "midtown-buildings.json", "highlight": "1015862" },
"stage": {
"buildings": "midtown-buildings.json",
"water": "midtown-water.json",
"highlight": "1015862"
},
"wind": { "fromDeg": 290, "kt": 14 },
"cameraPath": [
{
@@ -21394,6 +21398,10 @@
"name": "NYC Open Data · Building Footprints",
"detail": "Real footprints and roof heights for Midtown (NYC OTI, dataset 5zhs-2jue)."
},
{
"name": "OpenStreetMap water polygons",
"detail": "Hudson and East River surfaces (ODbL, via OpenFreeMap)."
},
{
"name": "Esri World Imagery",
"detail": "Base imagery of the real place."