diff --git a/scripts/capture-screenshots.js b/scripts/capture-screenshots.js index ce35bb5d..871e5de5 100644 --- a/scripts/capture-screenshots.js +++ b/scripts/capture-screenshots.js @@ -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(); diff --git a/static/examples/bouncing-ball-dark.svg b/static/examples/bouncing-ball-dark.svg deleted file mode 100644 index b2b5f6e6..00000000 --- a/static/examples/bouncing-ball-dark.svg +++ /dev/null @@ -1,114 +0,0 @@ - - - - - - - - - - - - - - - -Bounce -ZeroCrossing - - - - -Zeno -Condition - - - - - - -pos -Integrator - - - - - - - - - - - - -vel -Integrator - - - - - - - - - - - - -x(t) -Scope - - - - - - - - -gravity -Constant - - - - - - - - -v(t) -Scope - - - - - - - - -energy -Function - - - - - - - - - - - - - - - - -E(t) -Scope - - - - - - - \ No newline at end of file diff --git a/static/examples/bouncing-ball-light.svg b/static/examples/bouncing-ball-light.svg deleted file mode 100644 index 9e4b2a0a..00000000 --- a/static/examples/bouncing-ball-light.svg +++ /dev/null @@ -1,114 +0,0 @@ - - - - - - - - - - - - - - - -Bounce -ZeroCrossing - - - - -Zeno -Condition - - - - - - -pos -Integrator - - - - - - - - - - - - -vel -Integrator - - - - - - - - - - - - -x(t) -Scope - - - - - - - - -gravity -Constant - - - - - - - - -v(t) -Scope - - - - - - - - -energy -Function - - - - - - - - - - - - - - - - -E(t) -Scope - - - - - - - \ No newline at end of file diff --git a/static/examples/cascade-subsystem-dark.svg b/static/examples/cascade-subsystem-dark.svg deleted file mode 100644 index b0510769..00000000 --- a/static/examples/cascade-subsystem-dark.svg +++ /dev/null @@ -1,154 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - -Setpoint -StepSource - - - - - - - - -PI-1 -PID - - - - - - - - - - - - -Error-1 -Adder - - - - - - - - - - - - - - - - -Error-2 -Adder - - - - - - - - - - - - - - - - -PI-2 -PID - - - - - - - - - - - - -Plant -Subsystem - - - - - - - - - - - - - - - - -Plant vs Setpoint -Scope - - - - - - - - - - - - -Err-1 and PI-1 -Scope - - - - - - - - - - - - -Err-2 and PI-2 -Scope - - - - - - - - - - - \ No newline at end of file diff --git a/static/examples/cascade-subsystem-light.svg b/static/examples/cascade-subsystem-light.svg deleted file mode 100644 index dc2bbca8..00000000 --- a/static/examples/cascade-subsystem-light.svg +++ /dev/null @@ -1,154 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - -Setpoint -StepSource - - - - - - - - -PI-1 -PID - - - - - - - - - - - - -Error-1 -Adder - - - - - - - - - - - - - - - - -Error-2 -Adder - - - - - - - - - - - - - - - - -PI-2 -PID - - - - - - - - - - - - -Plant -Subsystem - - - - - - - - - - - - - - - - -Plant vs Setpoint -Scope - - - - - - - - - - - - -Err-1 and PI-1 -Scope - - - - - - - - - - - - -Err-2 and PI-2 -Scope - - - - - - - - - - - \ No newline at end of file diff --git a/static/examples/feedback-system-dark.svg b/static/examples/feedback-system-dark.svg deleted file mode 100644 index 41a4b791..00000000 --- a/static/examples/feedback-system-dark.svg +++ /dev/null @@ -1,83 +0,0 @@ - - - - - - - - - - - - - - -Difference -Adder - - - - - - - - - - - - - - - - -Feedback -Amplifier - - - - - - - - - - - - -Integrator -Integrator - - - - - - - - - - - - -Unit Step -StepSource - - - - - - - - -Result -Scope - - - - - - - - - - - \ No newline at end of file diff --git a/static/examples/feedback-system-light.svg b/static/examples/feedback-system-light.svg deleted file mode 100644 index 0e76f177..00000000 --- a/static/examples/feedback-system-light.svg +++ /dev/null @@ -1,83 +0,0 @@ - - - - - - - - - - - - - - -Difference -Adder - - - - - - - - - - - - - - - - -Feedback -Amplifier - - - - - - - - - - - - -Integrator -Integrator - - - - - - - - - - - - -Unit Step -StepSource - - - - - - - - -Result -Scope - - - - - - - - - - - \ No newline at end of file diff --git a/static/examples/fmcw-radar-dark.svg b/static/examples/fmcw-radar-dark.svg deleted file mode 100644 index 357ea33f..00000000 --- a/static/examples/fmcw-radar-dark.svg +++ /dev/null @@ -1,122 +0,0 @@ - - - - - - - - - - - - - - - - - -Mixer -Multiplier - - - - - - - - - - - - - - - - -LPF -ButterworthLowpassFilter - - - - - - - - - - - - -Mixer -Spectrum - - - - - - - - -Freespace -Delay - - - - - - - - - - - - -Chirp -ChirpPhaseNoiseSource - - - - - - - - -Chirp -Spectrum - - - - - - - - -LPF -Spectrum - - - - - - - - -Mixer -Scope - - - - - - - - -LPF -Scope - - - - - - - \ No newline at end of file diff --git a/static/examples/fmcw-radar-light.svg b/static/examples/fmcw-radar-light.svg deleted file mode 100644 index 66a9c30c..00000000 --- a/static/examples/fmcw-radar-light.svg +++ /dev/null @@ -1,122 +0,0 @@ - - - - - - - - - - - - - - - - - -Mixer -Multiplier - - - - - - - - - - - - - - - - -LPF -ButterworthLowpassFilter - - - - - - - - - - - - -Mixer -Spectrum - - - - - - - - -Freespace -Delay - - - - - - - - - - - - -Chirp -ChirpPhaseNoiseSource - - - - - - - - -Chirp -Spectrum - - - - - - - - -LPF -Spectrum - - - - - - - - -Mixer -Scope - - - - - - - - -LPF -Scope - - - - - - - \ No newline at end of file diff --git a/static/examples/harmonic-oscillator-dark.svg b/static/examples/harmonic-oscillator-dark.svg deleted file mode 100644 index 84c40784..00000000 --- a/static/examples/harmonic-oscillator-dark.svg +++ /dev/null @@ -1,118 +0,0 @@ - - - - - - - - - - - - - - - - - -velocity -Integrator - - - - - - - - - - - - -position -Integrator - - - - - - - - - - - - -mass -Amplifier - - - - - - - - - - - - -damping -Amplifier - - - - - - - - - - - - -Adder -Adder - - - - - - - - - - - - - - - - -results -Scope - - - - - - - - - - - - -stiffness -Amplifier - - - - - - - - - - - \ No newline at end of file diff --git a/static/examples/harmonic-oscillator-light.svg b/static/examples/harmonic-oscillator-light.svg deleted file mode 100644 index fbe005ad..00000000 --- a/static/examples/harmonic-oscillator-light.svg +++ /dev/null @@ -1,118 +0,0 @@ - - - - - - - - - - - - - - - - - -velocity -Integrator - - - - - - - - - - - - -position -Integrator - - - - - - - - - - - - -mass -Amplifier - - - - - - - - - - - - -damping -Amplifier - - - - - - - - - - - - -Adder -Adder - - - - - - - - - - - - - - - - -results -Scope - - - - - - - - - - - - -stiffness -Amplifier - - - - - - - - - - - \ No newline at end of file diff --git a/static/examples/pid-subsystem-dark.svg b/static/examples/pid-subsystem-dark.svg deleted file mode 100644 index 590ef9eb..00000000 --- a/static/examples/pid-subsystem-dark.svg +++ /dev/null @@ -1,105 +0,0 @@ - - - - - - - - - - - - - - - - -Setpoint -StepSource - - - - - - - - -Error -Adder - - - - - - - - - - - - - - - - -PID Controler -PID - - - - - - - - - - - - -Setpoint vs Plant -Scope - - - - - - - - - - - - -Error -Scope - - - - - - - - -Plant -Subsystem - - - - - - - - - - - - -Control Signal -Scope - - - - - - - \ No newline at end of file diff --git a/static/examples/pid-subsystem-light.svg b/static/examples/pid-subsystem-light.svg deleted file mode 100644 index d2d9c4b1..00000000 --- a/static/examples/pid-subsystem-light.svg +++ /dev/null @@ -1,105 +0,0 @@ - - - - - - - - - - - - - - - - -Setpoint -StepSource - - - - - - - - -Error -Adder - - - - - - - - - - - - - - - - -PID Controler -PID - - - - - - - - - - - - -Setpoint vs Plant -Scope - - - - - - - - - - - - -Error -Scope - - - - - - - - -Plant -Subsystem - - - - - - - - - - - - -Control Signal -Scope - - - - - - - \ No newline at end of file diff --git a/static/examples/squarewave-lpf-dark.svg b/static/examples/squarewave-lpf-dark.svg deleted file mode 100644 index 5631a339..00000000 --- a/static/examples/squarewave-lpf-dark.svg +++ /dev/null @@ -1,48 +0,0 @@ - - - - - - - - - - - -Signal -SquareWaveSource - - - - - - - - -LPF -ButterworthLowpassFilter - - - - - - - - - - - - -Result -Scope - - - - - - - - - - - \ No newline at end of file diff --git a/static/examples/squarewave-lpf-light.svg b/static/examples/squarewave-lpf-light.svg deleted file mode 100644 index 004e8ce1..00000000 --- a/static/examples/squarewave-lpf-light.svg +++ /dev/null @@ -1,48 +0,0 @@ - - - - - - - - - - - -Signal -SquareWaveSource - - - - - - - - -LPF -ButterworthLowpassFilter - - - - - - - - - - - - -Result -Scope - - - - - - - - - - - \ No newline at end of file diff --git a/static/examples/thermostat-dark.svg b/static/examples/thermostat-dark.svg deleted file mode 100644 index 22f392a6..00000000 --- a/static/examples/thermostat-dark.svg +++ /dev/null @@ -1,109 +0,0 @@ - - - - - - - - - - - - - - - - -Relay -Relay - - - - - - - - - - - - -Ambient Const -Constant - - - - - - - - -Ambient Day -SinusoidalSource - - - - - - - - -Adder -Adder - - - - - - - - - - - - - - - - -House -Subsystem - - - - - - - - - - - - - - - - -Temperature -Scope - - - - - - - - - - - - -Heater -Scope - - - - - - - \ No newline at end of file diff --git a/static/examples/thermostat-light.svg b/static/examples/thermostat-light.svg deleted file mode 100644 index 817bab43..00000000 --- a/static/examples/thermostat-light.svg +++ /dev/null @@ -1,109 +0,0 @@ - - - - - - - - - - - - - - - - -Relay -Relay - - - - - - - - - - - - -Ambient Const -Constant - - - - - - - - -Ambient Day -SinusoidalSource - - - - - - - - -Adder -Adder - - - - - - - - - - - - - - - - -House -Subsystem - - - - - - - - - - - - - - - - -Temperature -Scope - - - - - - - - - - - - -Heater -Scope - - - - - - - \ No newline at end of file diff --git a/static/examples/vanderpol-dark.svg b/static/examples/vanderpol-dark.svg deleted file mode 100644 index 1da747f8..00000000 --- a/static/examples/vanderpol-dark.svg +++ /dev/null @@ -1,159 +0,0 @@ - - - - - - - - - - - - - - - - - - - - -X2 -Integrator - - - - - - - - - - - - -X1 -Integrator - - - - - - - - - - - - -Difference -Adder - - - - - - - - - - - - - - - - -Square -Pow - - - - - - - - - - - - -Param-Mu -Amplifier - - - - - - - - - - - - -One -Constant - - - - - - - - -Multiplier -Multiplier - - - - - - - - - - - - - - - - -Difference -Adder - - - - - - - - - - - - - - - - -X1(t) -Scope - - - - - - - - -X2(t) -Scope - - - - - - - \ No newline at end of file diff --git a/static/examples/vanderpol-light.svg b/static/examples/vanderpol-light.svg deleted file mode 100644 index 88f7b5a6..00000000 --- a/static/examples/vanderpol-light.svg +++ /dev/null @@ -1,159 +0,0 @@ - - - - - - - - - - - - - - - - - - - - -X2 -Integrator - - - - - - - - - - - - -X1 -Integrator - - - - - - - - - - - - -Difference -Adder - - - - - - - - - - - - - - - - -Square -Pow - - - - - - - - - - - - -Param-Mu -Amplifier - - - - - - - - - - - - -One -Constant - - - - - - - - -Multiplier -Multiplier - - - - - - - - - - - - - - - - -Difference -Adder - - - - - - - - - - - - - - - - -X1(t) -Scope - - - - - - - - -X2(t) -Scope - - - - - - - \ No newline at end of file