docs(data): the Bhote Koshi event layer's comments say event

This commit is contained in:
Sameh Khamis committed 2026-11-12 11:41:54 -08:00
1 parent 83255f2bdb
commit 1a7ef7fc7a
2 files changed
+4 -4

No files matched your search

+3 -3
View File
@@ -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();
+1 -1
View File
@@ -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');