trying to fix clusters
All checks were successful
Build Org Website / build (push) Successful in 49s

This commit is contained in:
2026-05-10 16:43:26 +01:00
parent 527bc66b05
commit f267933239

View File

@@ -3192,7 +3192,13 @@ HIDDEN_APP_HTML = r"""<!doctype html>
state.clusterPositions = new Map();
const byDepth = new Map();
clusters.forEach((cluster) => {
const layer = state.mode === "timeline" || state.mode === "flow" ? 1 : cluster.depth;
const layer =
state.mode === "character"
? "characters"
: state.mode === "timeline" || state.mode === "flow"
? 1
: cluster.depth;
if (!byDepth.has(layer)) byDepth.set(layer, []);
byDepth.get(layer).push(cluster);
});