trying to fix clusters
All checks were successful
Build Org Website / build (push) Successful in 49s
All checks were successful
Build Org Website / build (push) Successful in 49s
This commit is contained in:
@@ -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);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user