routie dev init since i didn't adhere to any proper guidance up until now

This commit is contained in:
2026-04-29 22:27:29 -06:00
commit e1dabb71e2
15301 changed files with 3562618 additions and 0 deletions
+36
View File
@@ -0,0 +1,36 @@
// Types
export function getIndentLines({
depth,
isLast,
isLastGroup,
leafLinks,
separateRoots,
parentIndentLines,
variant
}) {
const isLastLeaf = isLast && (!isLastGroup || separateRoots || depth > 1);
if (!parentIndentLines || !depth) {
return {
leaf: undefined,
node: undefined,
children: parentIndentLines,
footer: parentIndentLines && (!isLastLeaf || variant === 'simple') ? [...parentIndentLines, separateRoots ? 'none' : 'line'] : ['none']
};
}
if (variant === 'simple') {
return {
leaf: [...parentIndentLines, 'line'],
node: [...parentIndentLines, 'line'],
children: [...parentIndentLines, 'line'],
footer: [...parentIndentLines, 'line', 'line']
};
}
return {
leaf: [...parentIndentLines, isLastLeaf ? 'last-leaf' : 'leaf', ...(leafLinks ? ['leaf-link'] : [])],
node: [...parentIndentLines, isLastLeaf ? 'last-leaf' : 'leaf'],
children: [...parentIndentLines, isLastLeaf ? 'none' : 'line'],
footer: [...parentIndentLines, isLastLeaf ? 'none' : 'line']
};
}
//# sourceMappingURL=indentLines.js.map