From 935d8fcd2fcfda65046112e986e894a7c659b0d5 Mon Sep 17 00:00:00 2001 From: Ross Keenan Date: Tue, 10 Aug 2021 21:42:14 +0200 Subject: [PATCH] feat(Vis View): :sparkles: Basic zoom on tidyTree --- src/Visualisations/TidyTree.ts | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/Visualisations/TidyTree.ts b/src/Visualisations/TidyTree.ts index 0c3eb33b..a5e7bb0e 100644 --- a/src/Visualisations/TidyTree.ts +++ b/src/Visualisations/TidyTree.ts @@ -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 = ( @@ -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