Skip to content

Commit

Permalink
fix(Grid View): 🐛 Closing gs in wrong direction
Browse files Browse the repository at this point in the history
  • Loading branch information
SkepticMystic committed Nov 17, 2021
1 parent 8593325 commit 8cfa81e
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 6 deletions.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
8 changes: 4 additions & 4 deletions src/Components/TrailPath.svelte
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<script lang="ts">
import type { App, TFile, View } from "obsidian";
import type { App, TFile } from "obsidian";
import { hoverPreview } from "obsidian-community-lib/dist/utils";
import type { BreadcrumbsSettings } from "src/interfaces";
import { openOrSwitch } from "src/sharedFunctions";
import { hoverPreview } from "obsidian-community-lib/dist/utils";
export let sortedTrails: string[][];
export let app: App;
Expand All @@ -12,7 +12,7 @@
const activeLeafView = app.workspace.activeLeaf.view;
let showAll = settings.showAll;
$: buttonText = showAll ? "Shortest" : "All";
$: trailsToShow = showAll ? sortedTrails : [sortedTrails[0]];
</script>

Expand Down Expand Up @@ -44,7 +44,7 @@
{#if sortedTrails.length > 1}
<div>
<button class="button-div" on:click={() => (showAll = !showAll)}>
{buttonText}
{showAll ? "Shortest" : "All"}
</button>
</div>
{/if}
Expand Down
4 changes: 2 additions & 2 deletions src/sharedFunctions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@ export function getDVMetadataCache(
const dvCache: dvFrontmatterCache = app.plugins.plugins.dataview.api.page(
file.path
);

superDebug(settings, { dvCache });
fileFrontmatterArr.push(dvCache);
});
Expand Down Expand Up @@ -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();
Expand Down Expand Up @@ -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;
}
Expand Down

0 comments on commit 8cfa81e

Please sign in to comment.