mirror of
https://github.com/bilawalsidhu/gods-eye-view.git
synced 2026-11-17 00:32:21 +00:00
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:
1 parent
4b665147e1
commit
aebb3e79c3
6 files changed
+11
-2
No files matched your search
@@ -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',
|
||||
);
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
Reference in new issue
Block a user