omit rendering arrows outside of thin/1d view mode
This commit is contained in:
parent
66e9ebbbc6
commit
e8407e5474
1 changed files with 2 additions and 3 deletions
|
|
@ -140,7 +140,7 @@ function path(levels, update, opts = {}) {
|
||||||
let width = 1;
|
let width = 1;
|
||||||
let emits = 0;
|
let emits = 0;
|
||||||
|
|
||||||
level.forEach((out,oi) => {
|
level.forEach(out => {
|
||||||
if (retracted && out.emit) {
|
if (retracted && out.emit) {
|
||||||
retracted = false;
|
retracted = false;
|
||||||
engages.push(lastOut.point);
|
engages.push(lastOut.point);
|
||||||
|
|
@ -224,7 +224,7 @@ function path(levels, update, opts = {}) {
|
||||||
return newPolygon().centerCircle(point, 0.2, 7).setZ(point.z + 0.02);
|
return newPolygon().centerCircle(point, 0.2, 7).setZ(point.z + 0.02);
|
||||||
}), { outline: true });
|
}), { outline: true });
|
||||||
}
|
}
|
||||||
if (heads.length) {
|
if (thin && heads.length) {
|
||||||
let line = dark ? 0xffffff : 0x112233;
|
let line = dark ? 0xffffff : 0x112233;
|
||||||
output
|
output
|
||||||
.setLayer('arrows', { face: headColor, line, opacity: 0.75 }, true)
|
.setLayer('arrows', { face: headColor, line, opacity: 0.75 }, true)
|
||||||
|
|
@ -266,7 +266,6 @@ function path(levels, update, opts = {}) {
|
||||||
update(index / levels.length, output);
|
update(index / levels.length, output);
|
||||||
});
|
});
|
||||||
|
|
||||||
// console.log({retractz});
|
|
||||||
return layers;
|
return layers;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue