mirror of
https://github.com/bilawalsidhu/gods-eye-view.git
synced 2026-11-16 16:22:20 +00:00
Let readiness waits know when the app owns the camera
While the cockpit holds camera inputs or the camera follows a target, whenSettled no longer waits for enabled inputs or a still pose; it still waits for the engine, the restored view, drawn frames and no flight, and its timeout now prints what it saw (inputs, following, cockpit, last pose change). Scenarios that waited for the camera where they needed the picture wait for it instead: weather and Nepal imagery for their tiles and frames, imagery capture while a box drag holds inputs, and pixel and pick polling for drawn frames. The vessel click retries at the vessel's rendered position.
This commit is contained in:
1 parent
417890b862
commit
b73fe82e27
11 files changed
+291
-42
No files matched your search
@@ -1,4 +1,4 @@
|
||||
import { whenSettled } from './qa/ready.mjs';
|
||||
import { whenFramesDrawn, whenSettled, whenTilesLoaded } from './qa/ready.mjs';
|
||||
// Recent imagery on a keyless preview, starting on Navara: the NASA catalog
|
||||
// and imagery tiles are fixtures, and the image, A/B, swap, divider, opacity,
|
||||
// basemap, toggle, failure, box-drag and zoom-to-fit checks read the rendered
|
||||
@@ -206,7 +206,10 @@ try {
|
||||
await whenSettled(page);
|
||||
const capture = async (name) => {
|
||||
await page.evaluate(() => window.__godsEyeView.requestRender('imagery-qa'));
|
||||
await whenSettled(page);
|
||||
// The box tool holds inputs until mouseup; this capture only needs its drawing.
|
||||
await whenFramesDrawn(page);
|
||||
await whenTilesLoaded(page, { timeoutMs: 90000 });
|
||||
await whenFramesDrawn(page);
|
||||
const buffer = await page.screenshot();
|
||||
await fs.writeFile(output.replace(/\.json$/, `-${name}.png`), buffer);
|
||||
const pixels = await sharp(buffer)
|
||||
|
||||
Reference in new issue
Block a user