Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions scripts/capture-screenshots.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,12 @@ const MANIFEST_PATH = join(STATIC_DIR, 'manifest.json');
const BASE_URL = 'https://view.pathsim.org';
const VIEWPORT = { width: 1000, height: 600 };
const DEVICE_SCALE_FACTOR = 1;
const SETTLE_DELAY = 1500;
const SETTLE_DELAY = 5000;
const THEMES = ['dark', 'light'];

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

const page = await browser.newPage();
Expand Down
114 changes: 0 additions & 114 deletions static/examples/bouncing-ball-dark.svg

This file was deleted.

114 changes: 0 additions & 114 deletions static/examples/bouncing-ball-light.svg

This file was deleted.

154 changes: 0 additions & 154 deletions static/examples/cascade-subsystem-dark.svg

This file was deleted.

154 changes: 0 additions & 154 deletions static/examples/cascade-subsystem-light.svg

This file was deleted.

83 changes: 0 additions & 83 deletions static/examples/feedback-system-dark.svg

This file was deleted.

Loading
Loading