abstsracted away sequence node collections

added generic action updaters
This commit is contained in:
ari committed 2022-07-10 12:40:44 -04:00
1 parent d62c484f33
commit f549993d3e
18 files changed
+351 -217

No files matched your search

@@ -10,11 +10,11 @@ export const moveAlong = (
): XYPosition => {
const moveOnY = {
y: startPoint.y + dims[by].height * dims.distanceFactor * increment,
x: startPoint.x + dims[by].width,
x: startPoint.x,
};
const moveOnX = {
x: startPoint.x + dims[by].width * dims.distanceFactor * increment,
y: startPoint.y + dims[by].height,
y: startPoint.y,
};
if (direction === "next") {
return dims.flipped ? moveOnX : moveOnY;