Implementing effects. Closes #2 (#19)

Co-authored-by: osiu97 <osiu97@gmail.com>
Reviewed-on: #19
This commit was merged in pull request #19.
This commit is contained in:
2026-07-08 21:47:34 +02:00
parent 1a94ca3947
commit 9aa9d0f69f
9 changed files with 338 additions and 83 deletions
+2 -2
View File
@@ -14,7 +14,7 @@ export default {
get isRunning() { return isRunning; },
stop() { isRunning = false; },
async run(sequence, spotsData, currentSteps1, currentSteps2, onStepComplete) {
async run(sequence, spotsData, currentSteps1, currentSteps2, mode, onStepComplete) {
if (isRunning) {
UI.log('A sequence is already running.', 'warn');
return false;
@@ -55,7 +55,7 @@ export default {
UI.log(`Seq step: ${label}`, 'info');
const success = await Motion.goto(targetX, targetY, step.mode || 'direct');
const success = await Motion.goto(targetX, targetY, mode || 'direct');
if (!success) {
isRunning = false;
return false;