From 8cfa81e2250ae4f1a5652c825a0c344382bb30ce Mon Sep 17 00:00:00 2001 From: Ross Keenan Date: Wed, 17 Nov 2021 12:48:07 +0200 Subject: [PATCH] fix(Grid View): :bug: Closing gs in wrong direction --- package.json | 1 + src/Components/TrailPath.svelte | 8 ++++---- src/sharedFunctions.ts | 4 ++-- 3 files changed, 7 insertions(+), 6 deletions(-) diff --git a/package.json b/package.json index e31f1ca4..e11158a5 100644 --- a/package.json +++ b/package.json @@ -43,6 +43,7 @@ "d3": "^6.7.0", "fs": "0.0.1-security", "graphology": "^0.23.1", + "graphology-traversal": "^0.2.2", "hierarchy-js": "^1.0.4", "juggl-api": "git+https://github.com/HEmile/juggl-api.git", "nodejs": "^0.0.0", diff --git a/src/Components/TrailPath.svelte b/src/Components/TrailPath.svelte index 7af62867..a772c817 100644 --- a/src/Components/TrailPath.svelte +++ b/src/Components/TrailPath.svelte @@ -1,8 +1,8 @@ @@ -44,7 +44,7 @@ {#if sortedTrails.length > 1}
{/if} diff --git a/src/sharedFunctions.ts b/src/sharedFunctions.ts index ac25c4f5..e385a858 100644 --- a/src/sharedFunctions.ts +++ b/src/sharedFunctions.ts @@ -82,6 +82,7 @@ export function getDVMetadataCache( const dvCache: dvFrontmatterCache = app.plugins.plugins.dataview.api.page( file.path ); + superDebug(settings, { dvCache }); fileFrontmatterArr.push(dvCache); }); @@ -282,7 +283,6 @@ export function getFieldValues( }); } unProxied.forEach((value) => { - console.log({ unproxiedValue: value }); if (typeof value === "string" || typeof value === "number") { // Obs cache converts link of form: [[\d+]] to number[][] const rawItemAsString = value.toString(); @@ -407,7 +407,7 @@ export async function getNeighbourObjArr( export function closeImpliedLinks(real: Graph, implied: Graph): Graph { const closedG = real.copy(); implied.forEachEdge((key, a, s, t) => { - closedG.mergeEdge(s, t, a); + closedG.mergeEdge(t, s, a); }); return closedG; }