prevent tool direction change with tabs. fix dark mode arrow colors

This commit is contained in:
Stewart Allen 2022-01-25 10:01:25 -05:00
commit ed4b5dba7a
4 changed files with 17 additions and 11 deletions

View file

@ -602,7 +602,7 @@
poly.forEachPoint(function(point, pidx, points, offset) {
camOut(point.clone(), offset !== 0);
}, poly.isClosed(), index);
});
}, { swapdir: false });
newLayer();
}
}

View file

@ -435,7 +435,7 @@
if (ease) {
start.z += ease;
}
start = poly2polyEmit(inside, start, emitter, { mark: "emark", perm: true });
start = poly2polyEmit(inside, start, emitter, { mark: "emark", perm: true, swapdir: false });
if (ease) {
start.z += ease;
}
@ -447,8 +447,8 @@
let frag = ftops.filter(p => p.open);
let full = ftops.filter(p => !p.open);
poly2polyEmit(full, start, roughTopEmit, { mark: "emark" });
poly2polyEmit(frag, start, roughTopEmit, { mark: "emark" });
poly2polyEmit(full, start, roughTopEmit, { mark: "emark", swapdir: false });
poly2polyEmit(frag, start, roughTopEmit, { mark: "emark", swapdir: false });
return start;
}
@ -493,7 +493,7 @@
fromPoint = depthOutlinePath(fromPoint, depth + 1, levels, radius, emitter, dir, ease);
fromPoint = depthOutlinePath(fromPoint, depth + 1, levels, radius, emitter, !dir, ease);
return fromPoint;
}, {weight: false});
}, { weight: false, swapdir: false });
return start;
}