From 1a7ef7fc7a23b3e5f4d0d54a31f225667c87565c Mon Sep 17 00:00:00 2001 From: Sameh Khamis Date: Thu, 12 Nov 2026 11:41:54 -0800 Subject: [PATCH] docs(data): the Bhote Koshi event layer's comments say event --- src/data/bhoteKoshiEvent.js | 6 +++--- src/data/bhoteKoshiEvent.test.mjs | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/data/bhoteKoshiEvent.js b/src/data/bhoteKoshiEvent.js index bc922b56e..e0fa8ee04 100644 --- a/src/data/bhoteKoshiEvent.js +++ b/src/data/bhoteKoshiEvent.js @@ -1052,7 +1052,7 @@ export function createBhoteKoshiEventLayer({ // surge front. Null while the layer is off. let _floodSets = null; let _floodSurfaceMode = null; - // What the flood shows, set as the story moves, and what was last drawn + // What the flood shows, set as the event plays, and what was last drawn // of it (`drawFlood`). let _floodShow = false; let _surgeShow = false; @@ -2573,7 +2573,7 @@ export function createBhoteKoshiEventLayer({ updateProgress(_progress); } - /** The flood's draw sets, drawing nothing until the story shows it. */ + /** The flood's draw sets, drawing nothing until the event shows it. */ function createFloodSets() { _floodSurfaceMode = usesPhotorealFloodSurface() ? 'tiles' : 'terrain'; const draw = drawOf(_viewer); @@ -2695,7 +2695,7 @@ export function createBhoteKoshiEventLayer({ function syncFloodSurfaceMode() { const nextMode = usesPhotorealFloodSurface() ? 'tiles' : 'terrain'; if (!_viewer || !_floodSets || _floodSurfaceMode === nextMode) return; - // Drawn anew on the other surface as the story next moves. + // Drawn anew on the other surface as the event next moves on. removeFloodSets(); _corridorPositionCache = { visibleCount: -1, positions: [] }; createFloodSets(); diff --git a/src/data/bhoteKoshiEvent.test.mjs b/src/data/bhoteKoshiEvent.test.mjs index 7e7653797..509147e15 100644 --- a/src/data/bhoteKoshiEvent.test.mjs +++ b/src/data/bhoteKoshiEvent.test.mjs @@ -1576,7 +1576,7 @@ test('Nepal hybrid comparison preserves native split and terrain-clamped flood t assert.ok(viewer._test.imagery.every((imageryLayer) => imageryLayer.show === false)); assert.equal(comparisonCalls.at(-1), null); - assert.equal(viewer._test.flood('bhote-koshi-flood-core'), undefined, 'drawn anew on the tiles as the story moves'); + assert.equal(viewer._test.flood('bhote-koshi-flood-core'), undefined, 'drawn anew on the tiles as the event plays'); layer.setParams({ progress: 0.6 }, { origin: 'scene' }); const tileFlood = viewer._test.flood('bhote-koshi-flood-core'); assert.equal(tileFlood.mode, 'draped');