mirror of
https://github.com/bilawalsidhu/gods-eye-view.git
synced 2026-11-16 16:22:20 +00:00
style: format the phase 2 files and add them to the format scope
Prettier on the 13 new test files that failed --check; format-scope.json now lists every file phase 2 added (src/globe/**, engineChoice, navaraMode, cameraAngles, the QA scripts and pages, build/navaraAssets and tests).
This commit is contained in:
1 parent
312ed416e9
commit
80cc0b536e
14 files changed
+229
-46
No files matched your search
@@ -15,7 +15,10 @@ function linkFor(pose) {
|
||||
const params = new URLSearchParams(manager._buildHashParams().toString());
|
||||
manager.destroy();
|
||||
return Object.fromEntries(
|
||||
['lat', 'lon', 'alt', 'heading', 'pitch', 'roll'].map((k) => [k, params.get(k)]),
|
||||
['lat', 'lon', 'alt', 'heading', 'pitch', 'roll'].map((k) => [
|
||||
k,
|
||||
params.get(k),
|
||||
]),
|
||||
);
|
||||
}
|
||||
|
||||
@@ -43,7 +46,10 @@ test('a straight-down view writes roll 0; other angles round as before', () => {
|
||||
assert.equal(down.roll, '0');
|
||||
assert.equal(down.pitch, '-90');
|
||||
const oblique = linkFor(at(45.4, -29.6, 2));
|
||||
assert.deepEqual([oblique.heading, oblique.pitch, oblique.roll], ['45', '-30', '2']);
|
||||
assert.deepEqual(
|
||||
[oblique.heading, oblique.pitch, oblique.roll],
|
||||
['45', '-30', '2'],
|
||||
);
|
||||
assert.equal(linkFor(at(359.7, -30)).heading, '360');
|
||||
});
|
||||
|
||||
|
||||
Reference in new issue
Block a user