Skip to content

Commit f2899db

Browse files
authored
Merge pull request #285 from pathsim/chore/screenshot-capture-fixes
Fix screenshot capture: longer settle delay and skip animation
2 parents f6549a4 + 39c1afe commit f2899db

19 files changed

Lines changed: 2 additions & 2026 deletions

scripts/capture-screenshots.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,12 +19,12 @@ const MANIFEST_PATH = join(STATIC_DIR, 'manifest.json');
1919
const BASE_URL = 'https://view.pathsim.org';
2020
const VIEWPORT = { width: 1000, height: 600 };
2121
const DEVICE_SCALE_FACTOR = 1;
22-
const SETTLE_DELAY = 1500;
22+
const SETTLE_DELAY = 5000;
2323
const THEMES = ['dark', 'light'];
2424

2525
async function captureScreenshot(browser, filename, theme) {
2626
const basename = filename.replace('.json', '');
27-
const url = `${BASE_URL}?model=examples/${filename}&theme=${theme}`;
27+
const url = `${BASE_URL}?model=examples/${filename}&theme=${theme}&fancyloading=false`;
2828
console.log(` ${basename} ${theme}...`);
2929

3030
const page = await browser.newPage();

static/examples/bouncing-ball-dark.svg

Lines changed: 0 additions & 114 deletions
This file was deleted.

static/examples/bouncing-ball-light.svg

Lines changed: 0 additions & 114 deletions
This file was deleted.

static/examples/cascade-subsystem-dark.svg

Lines changed: 0 additions & 154 deletions
This file was deleted.

static/examples/cascade-subsystem-light.svg

Lines changed: 0 additions & 154 deletions
This file was deleted.

static/examples/feedback-system-dark.svg

Lines changed: 0 additions & 83 deletions
This file was deleted.

0 commit comments

Comments
 (0)