fix(wildlife): the reveal pan eases quadratic out again

The pan used Cesium's QUADRATIC_OUT; through the camera port it took
cubicOut, the contract's nearest ease. The contract gains quadraticOut,
which Cesium maps to QUADRATIC_OUT and the stub camera computes.
This commit is contained in:
Sameh Khamis committed 2026-11-14 01:37:24 -08:00
1 parent 4b665147e1
commit aebb3e79c3
6 files changed
+11 -2

No files matched your search

+6
View File
@@ -1,5 +1,6 @@
import '../testSupport/registerDom.mjs';
import assert from 'node:assert/strict';
import * as Cesium from 'cesium';
import test from 'node:test';
import { fromDegrees, toLonLatH } from '../geo/ellipsoid.js';
import { bindWildlifeViewer } from '../testSupport/wildlifeViewer.mjs';
@@ -510,6 +511,11 @@ test('the camera correction preserves altitude and orientation and honors reduce
roll: 0.1,
});
assert.equal(flight.duration, reduced ? 0 : 0.22);
assert.equal(
flight.easingFunction,
Cesium.EasingFunction.QUADRATIC_OUT,
'eased as before',
);
}
});