This commit is contained in:
33333-33333 2026-06-25 14:51:58 +09:00
commit 434f07cc4e
103 changed files with 8387 additions and 8152 deletions

View file

@ -201,37 +201,6 @@ function lineageExpectedChildEdgeCount(component, family) {
for (const n of component || []) count += lineageParentIds(n, idSet, family).length;
return count;
}
function lineageVisibleRelationSignature(family) {
family = lineageEdgeFamily(family);
const relationIndex = lineageRelationIndex(family);
const relatedIds = new Set();
for (const [childId, parents] of relationIndex.parentsByChild.entries()) {
if (!parents.size) continue;
relatedIds.add(childId);
for (const parentId of parents) relatedIds.add(parentId);
}
return Array.from(relatedIds)
.sort()
.map(id => {
const n = family[id] || {};
const parents = Array.from(relationIndex.parentsByChild.get(id) || []).sort().join(",");
const children = Array.from(relationIndex.childrenByParent.get(id) || []).sort().join(",");
return [
id,
n.name || "",
n.type || "",
n.generation || 1,
n.birthTime || 0,
n.alive === false ? 0 : 1,
n.deathReason || "",
parents,
children,
].join(":");
})
.join("|");
}
function lineageArchiveNearViewport() {
if (!ui.archiveContent?.getBoundingClientRect) return true;
const rect = ui.archiveContent.getBoundingClientRect();