Co-authored-by: osiu97 <osiu97@gmail.com> Reviewed-on: #19
This commit was merged in pull request #19.
This commit is contained in:
@@ -261,6 +261,19 @@ function buildHTML() {
|
||||
</select>
|
||||
<div style="font-size: 0.7rem; color: var(--text-muted); margin-top: 4px;">Provides available spots for the editor.</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group" style="margin-bottom: 12px;">
|
||||
<label class="form-label">Global Movement Mode</label>
|
||||
<select id="seq-mode-select" class="form-input" style="width:100%;">
|
||||
<option value="direct">Direct (Normal)</option>
|
||||
<option value="snaky">Snaky</option>
|
||||
<option value="erratic">Erratic</option>
|
||||
<option value="jumpy">Jumpy</option>
|
||||
<option value="hesitant">Hesitant</option>
|
||||
<option value="overshoot">Overshoot</option>
|
||||
<option value="random">Random</option>
|
||||
</select>
|
||||
</div>
|
||||
|
||||
<div style="background: var(--surface-2); padding: 10px; border-radius: var(--radius-sm);">
|
||||
<div class="setting-row">
|
||||
@@ -671,8 +684,11 @@ export default {
|
||||
btnPlay.style.display = 'none';
|
||||
btnStop.style.display = 'inline-block';
|
||||
|
||||
const modeEl = document.getElementById('seq-mode-select');
|
||||
const mode = modeEl ? modeEl.value : 'direct';
|
||||
|
||||
await sendSettings();
|
||||
await SequenceRunner.run(sequence, spots, steps1, steps2, (s1, s2) => {
|
||||
await SequenceRunner.run(sequence, spots, steps1, steps2, mode, (s1, s2) => {
|
||||
steps1 = s1; steps2 = s2;
|
||||
updatePositionReadout();
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user