diff --git a/my-mind.js b/my-mind.js index 16445cd..ab0acfb 100644 --- a/my-mind.js +++ b/my-mind.js @@ -882,7 +882,7 @@ lastChild.resolvedShape.getVerticalAnchor(lastChild) + lastChild.position[1] - R2 ]; let d = [`M ${pointAnchor}`, `L ${lineEnd}`]; - let sweep = dirModifier > 1 ? 1 : 0; + let sweep = dirModifier > 0 ? 0 : 1; children.forEach((child) => { const { resolvedShape: resolvedShape2, position } = child; const y = resolvedShape2.getVerticalAnchor(child) + position[1]; diff --git a/src/layout/tree.ts b/src/layout/tree.ts index e065a33..4eb07ba 100644 --- a/src/layout/tree.ts +++ b/src/layout/tree.ts @@ -73,7 +73,7 @@ export default class TreeLayout extends Layout { ]; let d = [`M ${pointAnchor}`, `L ${lineEnd}`]; - let sweep = (dirModifier > 1 ? 1 : 0); + let sweep = (dirModifier > 0 ? 0 : 1); children.forEach(child => { const { resolvedShape, position } = child;