Skip to content

Commit

Permalink
fix: Juggl doesnt render correctly for notes with - in the name
Browse files Browse the repository at this point in the history
  • Loading branch information
HEmile committed Jan 23, 2022
1 parent 4f40700 commit 2024886
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/Visualisations/Juggl.ts
Original file line number Diff line number Diff line change
Expand Up @@ -286,7 +286,7 @@ export function createJugglTrail(
.split("\n")
.map((line) => {
const pair = line.split("- ");
return pair[1];
return pair.slice(1).join("- ");
})
.filter((pair) => pair && pair !== "");
let depthMapDown = createDepthMap(allPaths, source);
Expand Down Expand Up @@ -415,7 +415,6 @@ export function createJugglTrail(
argsUp.layout = layout;
}
const isFdgd = layout === 'cola' || layout === 'd3-force';
console.log({argsUp, isFdgd})
if (isFdgd) {
// @ts-ignore
argsUp.fdgdLayout = layout;
Expand Down

0 comments on commit 2024886

Please sign in to comment.