Skip to content

Commit

Permalink
feat(Vis View): ✨ Basic zoom on tidyTree
Browse files Browse the repository at this point in the history
  • Loading branch information
SkepticMystic committed Aug 10, 2021
1 parent a6929fe commit 935d8fc
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/Visualisations/TidyTree.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import type { Graph } from "graphlib";
import type { App, TFile } from "obsidian";
import type { d3Node } from "src/interfaces";
import { openOrSwitch } from "src/sharedFunctions";
import { dfsFlatAdjList, VisModal } from "src/VisModal";
import { dfsFlatAdjList, dfsFlatAdjList2, VisModal } from "src/VisModal";
import { dataset_dev } from "svelte/internal";

export const tidyTree = (
Expand Down Expand Up @@ -116,9 +116,7 @@ export const tidyTree = (
.attr("stroke", "white");

function zoomed({ transform }) {
node.attr("transform", transform);
link.attr("transform", transform);
g.attr("transform", transform);
svg.attr("transform", transform);
}
svg.call(
d3
Expand Down

0 comments on commit 935d8fc

Please sign in to comment.