diff --git a/main.js b/main.js
index 98af58b8..f7e7fddb 100644
--- a/main.js
+++ b/main.js
@@ -2815,7 +2815,7 @@ async function waitForResolvedLinks(app, delay = 1000, max = 50) {
}
const MATRIX_VIEW = "BC-matrix";
-const STATS_VIEW = "BC-stats";
+// export const STATS_VIEW = "BC-stats";
const DUCK_VIEW = "BC-ducks";
const TREE_VIEW = "BC-tree";
const TRAIL_ICON = "BC-trail-icon";
@@ -3102,7 +3102,7 @@ const DEFAULT_SETTINGS = {
refreshOnNoteChange: false,
useAllMetadata: true,
openMatrixOnLoad: true,
- openStatsOnLoad: true,
+ // openStatsOnLoad: true,
openDuckOnLoad: false,
openDownOnLoad: true,
overflowMLView: true,
@@ -14646,14 +14646,14 @@ function addTraverseNotesToGraph(plugin, traverseNotes, mainG, obsG) {
/* src\Components\NextPrev.svelte generated by Svelte v3.35.0 */
-function add_css$e() {
+function add_css$d() {
var style = element("style");
style.id = "svelte-11g23nm-style";
style.textContent = ".BC-nexts.svelte-11g23nm div.svelte-11g23nm{text-align:right}.BC-nexts.svelte-11g23nm.svelte-11g23nm{border-left:1px solid var(--background-modifier-border)}.BC-prevs.svelte-11g23nm.svelte-11g23nm{border-right:1px solid var(--background-modifier-border)}.BC-NextPrev-Container.svelte-11g23nm.svelte-11g23nm{display:grid;grid-template-columns:1fr 1fr}";
append(document.head, style);
}
-function get_each_context$a(ctx, list, i) {
+function get_each_context$9(ctx, list, i) {
const child_ctx = ctx.slice();
child_ctx[9] = list[i].field;
child_ctx[10] = list[i].real;
@@ -14661,7 +14661,7 @@ function get_each_context$a(ctx, list, i) {
return child_ctx;
}
-function get_each_context_1$7(ctx, list, i) {
+function get_each_context_1$6(ctx, list, i) {
const child_ctx = ctx.slice();
child_ctx[9] = list[i].field;
child_ctx[10] = list[i].real;
@@ -14670,7 +14670,7 @@ function get_each_context_1$7(ctx, list, i) {
}
// (15:6) {#each prev as { field, real, to }}
-function create_each_block_1$7(ctx) {
+function create_each_block_1$6(ctx) {
let div;
let strong;
let t0_value = /*field*/ ctx[9] + "";
@@ -14736,7 +14736,7 @@ function create_each_block_1$7(ctx) {
}
// (29:6) {#each next as { field, real, to }}
-function create_each_block$a(ctx) {
+function create_each_block$9(ctx) {
let div;
let t0_value = /*to*/ ctx[11] + "";
let t0;
@@ -14801,7 +14801,7 @@ function create_each_block$a(ctx) {
};
}
-function create_fragment$n(ctx) {
+function create_fragment$m(ctx) {
let div2;
let div0;
let span0;
@@ -14812,14 +14812,14 @@ function create_fragment$n(ctx) {
let each_blocks_1 = [];
for (let i = 0; i < each_value_1.length; i += 1) {
- each_blocks_1[i] = create_each_block_1$7(get_each_context_1$7(ctx, each_value_1, i));
+ each_blocks_1[i] = create_each_block_1$6(get_each_context_1$6(ctx, each_value_1, i));
}
let each_value = /*next*/ ctx[0];
let each_blocks = [];
for (let i = 0; i < each_value.length; i += 1) {
- each_blocks[i] = create_each_block$a(get_each_context$a(ctx, each_value, i));
+ each_blocks[i] = create_each_block$9(get_each_context$9(ctx, each_value, i));
}
return {
@@ -14867,12 +14867,12 @@ function create_fragment$n(ctx) {
let i;
for (i = 0; i < each_value_1.length; i += 1) {
- const child_ctx = get_each_context_1$7(ctx, each_value_1, i);
+ const child_ctx = get_each_context_1$6(ctx, each_value_1, i);
if (each_blocks_1[i]) {
each_blocks_1[i].p(child_ctx, dirty);
} else {
- each_blocks_1[i] = create_each_block_1$7(child_ctx);
+ each_blocks_1[i] = create_each_block_1$6(child_ctx);
each_blocks_1[i].c();
each_blocks_1[i].m(span0, null);
}
@@ -14890,12 +14890,12 @@ function create_fragment$n(ctx) {
let i;
for (i = 0; i < each_value.length; i += 1) {
- const child_ctx = get_each_context$a(ctx, each_value, i);
+ const child_ctx = get_each_context$9(ctx, each_value, i);
if (each_blocks[i]) {
each_blocks[i].p(child_ctx, dirty);
} else {
- each_blocks[i] = create_each_block$a(child_ctx);
+ each_blocks[i] = create_each_block$9(child_ctx);
each_blocks[i].c();
each_blocks[i].m(span1, null);
}
@@ -14918,7 +14918,7 @@ function create_fragment$n(ctx) {
};
}
-function instance$n($$self, $$props, $$invalidate) {
+function instance$m($$self, $$props, $$invalidate) {
let { plugin } = $$props;
@@ -14953,28 +14953,28 @@ function instance$n($$self, $$props, $$invalidate) {
class NextPrev extends SvelteComponent {
constructor(options) {
super();
- if (!document.getElementById("svelte-11g23nm-style")) add_css$e();
- init(this, options, instance$n, create_fragment$n, safe_not_equal, { plugin: 4, next: 0, prev: 1 });
+ if (!document.getElementById("svelte-11g23nm-style")) add_css$d();
+ init(this, options, instance$m, create_fragment$m, safe_not_equal, { plugin: 4, next: 0, prev: 1 });
}
}
/* src\Components\TrailGrid.svelte generated by Svelte v3.35.0 */
-function add_css$d() {
+function add_css$c() {
var style = element("style");
style.id = "svelte-awewii-style";
style.textContent = "div.BC-grid-wrapper.svelte-awewii.svelte-awewii{position:relative}div.BC-trail-grid.svelte-awewii.svelte-awewii{border:2px solid var(--background-modifier-border);display:grid;align-items:stretch;width:auto;height:auto}.BC-grid-options.svelte-awewii.svelte-awewii{position:absolute;top:0px;right:0px;height:35px;width:32px;border:1px solid var(--background-modifier-border);border-radius:10px;text-align:center;transition:width 0.3s;overflow-wrap:normal;overflow:hidden}div.BC-grid-options.svelte-awewii.svelte-awewii:hover{padding:0px 5px 5px 5px;width:fit-content}div.BC-grid-options.svelte-awewii:hover .BC-grid-options-icon.svelte-awewii{display:none}.BC-depth-button.svelte-awewii.svelte-awewii{padding:3px 5px}div.BC-trail-grid-item.svelte-awewii.svelte-awewii{display:flex;flex-direction:column;border:1px solid var(--background-modifier-border);align-items:center;justify-content:center;padding:2px;font-size:smaller}div.BC-trail-grid-item.BC-filler.svelte-awewii.svelte-awewii{opacity:0.7}";
append(document.head, style);
}
-function get_each_context$9(ctx, list, i) {
+function get_each_context$8(ctx, list, i) {
const child_ctx = ctx.slice();
child_ctx[24] = list[i];
child_ctx[26] = i;
return child_ctx;
}
-function get_each_context_1$6(ctx, list, i) {
+function get_each_context_1$5(ctx, list, i) {
const child_ctx = ctx.slice();
child_ctx[27] = list[i].value;
child_ctx[28] = list[i].first;
@@ -14983,7 +14983,7 @@ function get_each_context_1$6(ctx, list, i) {
}
// (44:6) {#each allRuns[i] as { value, first, last }}
-function create_each_block_1$6(ctx) {
+function create_each_block_1$5(ctx) {
let div1;
let div0;
let t0_value = (getAlt(/*value*/ ctx[27], /*plugin*/ ctx[0]) ?? dropDendron(/*value*/ ctx[27], /*settings*/ ctx[5])) + "";
@@ -15058,13 +15058,13 @@ function create_each_block_1$6(ctx) {
}
// (43:4) {#each transposedTrails as col, i}
-function create_each_block$9(ctx) {
+function create_each_block$8(ctx) {
let each_1_anchor;
let each_value_1 = /*allRuns*/ ctx[4][/*i*/ ctx[26]];
let each_blocks = [];
for (let i = 0; i < each_value_1.length; i += 1) {
- each_blocks[i] = create_each_block_1$6(get_each_context_1$6(ctx, each_value_1, i));
+ each_blocks[i] = create_each_block_1$5(get_each_context_1$5(ctx, each_value_1, i));
}
return {
@@ -15088,12 +15088,12 @@ function create_each_block$9(ctx) {
let i;
for (i = 0; i < each_value_1.length; i += 1) {
- const child_ctx = get_each_context_1$6(ctx, each_value_1, i);
+ const child_ctx = get_each_context_1$5(ctx, each_value_1, i);
if (each_blocks[i]) {
each_blocks[i].p(child_ctx, dirty);
} else {
- each_blocks[i] = create_each_block_1$6(child_ctx);
+ each_blocks[i] = create_each_block_1$5(child_ctx);
each_blocks[i].c();
each_blocks[i].m(each_1_anchor.parentNode, each_1_anchor);
}
@@ -15113,7 +15113,7 @@ function create_each_block$9(ctx) {
};
}
-function create_fragment$m(ctx) {
+function create_fragment$l(ctx) {
let div2;
let div0;
let t0;
@@ -15136,7 +15136,7 @@ function create_fragment$m(ctx) {
let each_blocks = [];
for (let i = 0; i < each_value.length; i += 1) {
- each_blocks[i] = create_each_block$9(get_each_context$9(ctx, each_value, i));
+ each_blocks[i] = create_each_block$8(get_each_context$8(ctx, each_value, i));
}
return {
@@ -15209,12 +15209,12 @@ function create_fragment$m(ctx) {
let i;
for (i = 0; i < each_value.length; i += 1) {
- const child_ctx = get_each_context$9(ctx, each_value, i);
+ const child_ctx = get_each_context$8(ctx, each_value, i);
if (each_blocks[i]) {
each_blocks[i].p(child_ctx, dirty);
} else {
- each_blocks[i] = create_each_block$9(child_ctx);
+ each_blocks[i] = create_each_block$8(child_ctx);
each_blocks[i].c();
each_blocks[i].m(div0, null);
}
@@ -15256,7 +15256,7 @@ function create_fragment$m(ctx) {
};
}
-function instance$m($$self, $$props, $$invalidate) {
+function instance$l($$self, $$props, $$invalidate) {
let paddedTrails;
let transposedTrails;
let allRuns;
@@ -15339,27 +15339,27 @@ function instance$m($$self, $$props, $$invalidate) {
class TrailGrid extends SvelteComponent {
constructor(options) {
super();
- if (!document.getElementById("svelte-awewii-style")) add_css$d();
- init(this, options, instance$m, create_fragment$m, safe_not_equal, { sortedTrails: 11, plugin: 0 }, [-1, -1]);
+ if (!document.getElementById("svelte-awewii-style")) add_css$c();
+ init(this, options, instance$l, create_fragment$l, safe_not_equal, { sortedTrails: 11, plugin: 0 }, [-1, -1]);
}
}
/* src\Components\TrailPath.svelte generated by Svelte v3.35.0 */
-function add_css$c() {
+function add_css$b() {
var style = element("style");
style.id = "svelte-3c1frp-style";
style.textContent = "span.BC-trail-path-container.svelte-3c1frp{display:flex;justify-content:space-between}";
append(document.head, style);
}
-function get_each_context$8(ctx, list, i) {
+function get_each_context$7(ctx, list, i) {
const child_ctx = ctx.slice();
child_ctx[12] = list[i];
return child_ctx;
}
-function get_each_context_1$5(ctx, list, i) {
+function get_each_context_1$4(ctx, list, i) {
const child_ctx = ctx.slice();
child_ctx[15] = list[i];
child_ctx[17] = i;
@@ -15373,7 +15373,7 @@ function create_else_block$3(ctx) {
let each_blocks = [];
for (let i = 0; i < each_value_1.length; i += 1) {
- each_blocks[i] = create_each_block_1$5(get_each_context_1$5(ctx, each_value_1, i));
+ each_blocks[i] = create_each_block_1$4(get_each_context_1$4(ctx, each_value_1, i));
}
return {
@@ -15397,12 +15397,12 @@ function create_else_block$3(ctx) {
let i;
for (i = 0; i < each_value_1.length; i += 1) {
- const child_ctx = get_each_context_1$5(ctx, each_value_1, i);
+ const child_ctx = get_each_context_1$4(ctx, each_value_1, i);
if (each_blocks[i]) {
each_blocks[i].p(child_ctx, dirty);
} else {
- each_blocks[i] = create_each_block_1$5(child_ctx);
+ each_blocks[i] = create_each_block_1$4(child_ctx);
each_blocks[i].c();
each_blocks[i].m(each_1_anchor.parentNode, each_1_anchor);
}
@@ -15463,7 +15463,7 @@ function create_if_block_2$3(ctx) {
}
// (20:10) {#each trail as crumb, i}
-function create_each_block_1$5(ctx) {
+function create_each_block_1$4(ctx) {
let span;
let t0_value = (getAlt(/*crumb*/ ctx[15], /*plugin*/ ctx[1]) ?? dropDendron(/*crumb*/ ctx[15], /*settings*/ ctx[4])) + "";
let t0;
@@ -15536,7 +15536,7 @@ function create_each_block_1$5(ctx) {
}
// (15:4) {#each trailsToShow as trail}
-function create_each_block$8(ctx) {
+function create_each_block$7(ctx) {
let div;
let t;
@@ -15616,7 +15616,7 @@ function create_if_block$7(ctx) {
};
}
-function create_fragment$l(ctx) {
+function create_fragment$k(ctx) {
let span;
let div;
let t;
@@ -15624,7 +15624,7 @@ function create_fragment$l(ctx) {
let each_blocks = [];
for (let i = 0; i < each_value.length; i += 1) {
- each_blocks[i] = create_each_block$8(get_each_context$8(ctx, each_value, i));
+ each_blocks[i] = create_each_block$7(get_each_context$7(ctx, each_value, i));
}
let if_block = /*sortedTrails*/ ctx[0].length > 1 && create_if_block$7(ctx);
@@ -15660,12 +15660,12 @@ function create_fragment$l(ctx) {
let i;
for (i = 0; i < each_value.length; i += 1) {
- const child_ctx = get_each_context$8(ctx, each_value, i);
+ const child_ctx = get_each_context$7(ctx, each_value, i);
if (each_blocks[i]) {
each_blocks[i].p(child_ctx, dirty);
} else {
- each_blocks[i] = create_each_block$8(child_ctx);
+ each_blocks[i] = create_each_block$7(child_ctx);
each_blocks[i].c();
each_blocks[i].m(div, null);
}
@@ -15701,7 +15701,7 @@ function create_fragment$l(ctx) {
};
}
-function instance$l($$self, $$props, $$invalidate) {
+function instance$k($$self, $$props, $$invalidate) {
let trailsToShow;
let { sortedTrails } = $$props;
@@ -15743,8 +15743,8 @@ function instance$l($$self, $$props, $$invalidate) {
class TrailPath extends SvelteComponent {
constructor(options) {
super();
- if (!document.getElementById("svelte-3c1frp-style")) add_css$c();
- init(this, options, instance$l, create_fragment$l, safe_not_equal, { sortedTrails: 0, plugin: 1 });
+ if (!document.getElementById("svelte-3c1frp-style")) add_css$b();
+ init(this, options, instance$k, create_fragment$k, safe_not_equal, { sortedTrails: 0, plugin: 1 });
}
}
@@ -33041,7 +33041,7 @@ const indexToLinePairs = (index, flat = false) => index
/* src\Components\JugglButton.svelte generated by Svelte v3.35.0 */
-function create_fragment$k(ctx) {
+function create_fragment$j(ctx) {
let button;
let t;
let mounted;
@@ -33090,7 +33090,7 @@ function create_fragment$k(ctx) {
};
}
-function instance$k($$self, $$props, $$invalidate) {
+function instance$j($$self, $$props, $$invalidate) {
let renderedIcon;
let { icon } = $$props;
let { onClick } = $$props;
@@ -33117,7 +33117,7 @@ class JugglButton extends SvelteComponent {
constructor(options) {
super();
- init(this, options, instance$k, create_fragment$k, safe_not_equal, {
+ init(this, options, instance$j, create_fragment$j, safe_not_equal, {
icon: 4,
onClick: 0,
disabled: 1,
@@ -33215,7 +33215,7 @@ function create_if_block$6(ctx) {
};
}
-function create_fragment$j(ctx) {
+function create_fragment$i(ctx) {
let if_block_anchor;
let current;
let if_block = /*visible*/ ctx[2] && create_if_block$6(ctx);
@@ -33270,7 +33270,7 @@ function create_fragment$j(ctx) {
};
}
-function instance$j($$self, $$props, $$invalidate) {
+function instance$i($$self, $$props, $$invalidate) {
let { maxDepth } = $$props;
let { onUpdateDepth } = $$props;
let { up } = $$props;
@@ -33301,7 +33301,7 @@ class JugglDepth extends SvelteComponent {
constructor(options) {
super();
- init(this, options, instance$j, create_fragment$j, safe_not_equal, {
+ init(this, options, instance$i, create_fragment$i, safe_not_equal, {
maxDepth: 0,
onUpdateDepth: 1,
up: 4,
@@ -34088,7 +34088,7 @@ async function refreshIndex(plugin) {
/* src\Components\MatrixButtons.svelte generated by Svelte v3.35.0 */
-function add_css$b() {
+function add_css$a() {
var style = element("style");
style.id = "svelte-barhym-style";
style.textContent = "button.svelte-barhym{padding:1px 6px 2px 6px;margin-right:6px}";
@@ -34125,7 +34125,7 @@ function create_if_block$5(ctx) {
};
}
-function create_fragment$i(ctx) {
+function create_fragment$h(ctx) {
let button;
let t1;
let if_block_anchor;
@@ -34170,7 +34170,7 @@ function create_fragment$i(ctx) {
};
}
-function instance$i($$self, $$props, $$invalidate) {
+function instance$h($$self, $$props, $$invalidate) {
let { matrixView } = $$props;
const { plugin } = matrixView;
@@ -34200,27 +34200,27 @@ function instance$i($$self, $$props, $$invalidate) {
class MatrixButtons extends SvelteComponent {
constructor(options) {
super();
- if (!document.getElementById("svelte-barhym-style")) add_css$b();
- init(this, options, instance$i, create_fragment$i, safe_not_equal, { matrixView: 0 });
+ if (!document.getElementById("svelte-barhym-style")) add_css$a();
+ init(this, options, instance$h, create_fragment$h, safe_not_equal, { matrixView: 0 });
}
}
/* src\Components\Matrix.svelte generated by Svelte v3.35.0 */
-function add_css$a() {
+function add_css$9() {
var style = element("style");
style.id = "svelte-s0mwjt-style";
style.textContent = ".BC-Matrix.svelte-s0mwjt.svelte-s0mwjt{padding:5px;font-variant-numeric:tabular-nums;line-height:1.5}.BC-Matrix.svelte-s0mwjt>div.svelte-s0mwjt{border:3px solid var(--background-modifier-border);border-radius:3px;margin:3px;position:relative;height:fit-content}.BC-Matrix-square.svelte-s0mwjt.svelte-s0mwjt{border:1px solid var(--background-modifier-border)}.BC-Matrix-headers.svelte-s0mwjt.svelte-s0mwjt{display:flex;justify-content:space-between;align-items:center}.BC-Matrix-header.svelte-s0mwjt.svelte-s0mwjt{margin:2px;padding:0px 10px}h4.BC-Matrix-header.svelte-s0mwjt.svelte-s0mwjt:first-letter{text-transform:capitalize}ol.svelte-s0mwjt.svelte-s0mwjt{margin:3px;padding-left:30px}.BC-Matrix.svelte-s0mwjt li.svelte-s0mwjt{margin:0.1em}.BC-Matrix.svelte-s0mwjt .BC-Link.overflow.svelte-s0mwjt{width:100%;padding-right:10px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}";
append(document.head, style);
}
-function get_each_context$7(ctx, list, i) {
+function get_each_context$6(ctx, list, i) {
const child_ctx = ctx.slice();
child_ctx[15] = list[i];
return child_ctx;
}
-function get_each_context_1$4(ctx, list, i) {
+function get_each_context_1$3(ctx, list, i) {
const child_ctx = ctx.slice();
child_ctx[18] = list[i].field;
child_ctx[19] = list[i].impliedItems;
@@ -34228,7 +34228,7 @@ function get_each_context_1$4(ctx, list, i) {
return child_ctx;
}
-function get_each_context_2$1(ctx, list, i) {
+function get_each_context_2(ctx, list, i) {
const child_ctx = ctx.slice();
child_ctx[23] = list[i].alt;
child_ctx[24] = list[i].cls;
@@ -34238,7 +34238,7 @@ function get_each_context_2$1(ctx, list, i) {
return child_ctx;
}
-function get_each_context_3$1(ctx, list, i) {
+function get_each_context_3(ctx, list, i) {
const child_ctx = ctx.slice();
child_ctx[23] = list[i].alt;
child_ctx[24] = list[i].cls;
@@ -34360,7 +34360,7 @@ function create_if_block_4(ctx) {
let each_blocks = [];
for (let i = 0; i < each_value_3.length; i += 1) {
- each_blocks[i] = create_each_block_3$1(get_each_context_3$1(ctx, each_value_3, i));
+ each_blocks[i] = create_each_block_3(get_each_context_3(ctx, each_value_3, i));
}
return {
@@ -34386,12 +34386,12 @@ function create_if_block_4(ctx) {
let i;
for (i = 0; i < each_value_3.length; i += 1) {
- const child_ctx = get_each_context_3$1(ctx, each_value_3, i);
+ const child_ctx = get_each_context_3(ctx, each_value_3, i);
if (each_blocks[i]) {
each_blocks[i].p(child_ctx, dirty);
} else {
- each_blocks[i] = create_each_block_3$1(child_ctx);
+ each_blocks[i] = create_each_block_3(child_ctx);
each_blocks[i].c();
each_blocks[i].m(ol, null);
}
@@ -34412,7 +34412,7 @@ function create_if_block_4(ctx) {
}
// (40:16) {#each realItems as { alt, cls, implied, to }}
-function create_each_block_3$1(ctx) {
+function create_each_block_3(ctx) {
let li;
let div;
let t0_value = (/*alt*/ ctx[23] ?? dropPathNDendron(/*to*/ ctx[26], /*settings*/ ctx[4])) + "";
@@ -34483,7 +34483,7 @@ function create_if_block_1$3(ctx) {
let each_blocks = [];
for (let i = 0; i < each_value_2.length; i += 1) {
- each_blocks[i] = create_each_block_2$1(get_each_context_2$1(ctx, each_value_2, i));
+ each_blocks[i] = create_each_block_2(get_each_context_2(ctx, each_value_2, i));
}
return {
@@ -34536,12 +34536,12 @@ function create_if_block_1$3(ctx) {
let i;
for (i = 0; i < each_value_2.length; i += 1) {
- const child_ctx = get_each_context_2$1(ctx, each_value_2, i);
+ const child_ctx = get_each_context_2(ctx, each_value_2, i);
if (each_blocks[i]) {
each_blocks[i].p(child_ctx, dirty);
} else {
- each_blocks[i] = create_each_block_2$1(child_ctx);
+ each_blocks[i] = create_each_block_2(child_ctx);
each_blocks[i].c();
each_blocks[i].m(ol, null);
}
@@ -34621,7 +34621,7 @@ function create_if_block_3$1(ctx) {
}
// (67:16) {#each impliedItems as { alt, cls, implied, to, parent }}
-function create_each_block_2$1(ctx) {
+function create_each_block_2(ctx) {
let li;
let div;
let t_value = (/*alt*/ ctx[23] ?? dropPathNDendron(/*to*/ ctx[26], /*settings*/ ctx[4])) + "";
@@ -34695,7 +34695,7 @@ function create_each_block_2$1(ctx) {
}
// (26:6) {#each squares as { field, impliedItems, realItems }}
-function create_each_block_1$4(ctx) {
+function create_each_block_1$3(ctx) {
let if_block_anchor;
let if_block = (/*realItems*/ ctx[20].length || /*showImpliedRelations*/ ctx[5] && /*impliedItems*/ ctx[19].length) && create_if_block$4(ctx);
@@ -34730,14 +34730,14 @@ function create_each_block_1$4(ctx) {
}
// (24:2) {#each hierSquares as squares}
-function create_each_block$7(ctx) {
+function create_each_block$6(ctx) {
let div;
let t;
let each_value_1 = /*squares*/ ctx[15];
let each_blocks = [];
for (let i = 0; i < each_value_1.length; i += 1) {
- each_blocks[i] = create_each_block_1$4(get_each_context_1$4(ctx, each_value_1, i));
+ each_blocks[i] = create_each_block_1$3(get_each_context_1$3(ctx, each_value_1, i));
}
return {
@@ -34766,12 +34766,12 @@ function create_each_block$7(ctx) {
let i;
for (i = 0; i < each_value_1.length; i += 1) {
- const child_ctx = get_each_context_1$4(ctx, each_value_1, i);
+ const child_ctx = get_each_context_1$3(ctx, each_value_1, i);
if (each_blocks[i]) {
each_blocks[i].p(child_ctx, dirty);
} else {
- each_blocks[i] = create_each_block_1$4(child_ctx);
+ each_blocks[i] = create_each_block_1$3(child_ctx);
each_blocks[i].c();
each_blocks[i].m(div, t);
}
@@ -34791,7 +34791,7 @@ function create_each_block$7(ctx) {
};
}
-function create_fragment$h(ctx) {
+function create_fragment$g(ctx) {
let div0;
let matrixbuttons;
let t;
@@ -34807,7 +34807,7 @@ function create_fragment$h(ctx) {
let each_blocks = [];
for (let i = 0; i < each_value.length; i += 1) {
- each_blocks[i] = create_each_block$7(get_each_context$7(ctx, each_value, i));
+ each_blocks[i] = create_each_block$6(get_each_context$6(ctx, each_value, i));
}
return {
@@ -34846,12 +34846,12 @@ function create_fragment$h(ctx) {
let i;
for (i = 0; i < each_value.length; i += 1) {
- const child_ctx = get_each_context$7(ctx, each_value, i);
+ const child_ctx = get_each_context$6(ctx, each_value, i);
if (each_blocks[i]) {
each_blocks[i].p(child_ctx, dirty);
} else {
- each_blocks[i] = create_each_block$7(child_ctx);
+ each_blocks[i] = create_each_block$6(child_ctx);
each_blocks[i].c();
each_blocks[i].m(div1, null);
}
@@ -34887,7 +34887,7 @@ function create_fragment$h(ctx) {
};
}
-function instance$h($$self, $$props, $$invalidate) {
+function instance$g($$self, $$props, $$invalidate) {
@@ -34929,13 +34929,13 @@ function instance$h($$self, $$props, $$invalidate) {
class Matrix extends SvelteComponent {
constructor(options) {
super();
- if (!document.getElementById("svelte-s0mwjt-style")) add_css$a();
+ if (!document.getElementById("svelte-s0mwjt-style")) add_css$9();
init(
this,
options,
- instance$h,
- create_fragment$h,
+ instance$g,
+ create_fragment$g,
safe_not_equal,
{
hierSquares: 0,
@@ -35198,7 +35198,7 @@ class BCAPI {
/* src\Components\ModifyHNItemComp.svelte generated by Svelte v3.35.0 */
-function add_css$9() {
+function add_css$8() {
var style = element("style");
style.id = "svelte-13g4k7i-style";
style.textContent = "pre.svelte-13g4k7i{display:inline}";
@@ -35349,7 +35349,7 @@ function create_if_block$3(ctx) {
};
}
-function create_fragment$g(ctx) {
+function create_fragment$f(ctx) {
let h5;
let t0;
let t1_value = ARROW_DIRECTIONS[/*rel*/ ctx[0]] + "";
@@ -35527,7 +35527,7 @@ function create_fragment$g(ctx) {
};
}
-function instance$g($$self, $$props, $$invalidate) {
+function instance$f($$self, $$props, $$invalidate) {
let { modal } = $$props;
@@ -35610,9 +35610,9 @@ function instance$g($$self, $$props, $$invalidate) {
class ModifyHNItemComp extends SvelteComponent {
constructor(options) {
super();
- if (!document.getElementById("svelte-13g4k7i-style")) add_css$9();
+ if (!document.getElementById("svelte-13g4k7i-style")) add_css$8();
- init(this, options, instance$g, create_fragment$g, safe_not_equal, {
+ init(this, options, instance$f, create_fragment$f, safe_not_equal, {
modal: 1,
settings: 7,
hnItem: 2,
@@ -35811,14 +35811,14 @@ class HierarchyNoteSelectorModal extends obsidian.FuzzySuggestModal {
/* src\Components\RenderMarkdown.svelte generated by Svelte v3.35.0 */
-function add_css$8() {
+function add_css$7() {
var style = element("style");
style.id = "svelte-7e9i10-style";
style.textContent = "div.BC-note-content.svelte-7e9i10{padding-left:20px}";
append(document.head, style);
}
-function create_fragment$f(ctx) {
+function create_fragment$e(ctx) {
let div;
return {
@@ -35840,7 +35840,7 @@ function create_fragment$f(ctx) {
};
}
-function instance$f($$self, $$props, $$invalidate) {
+function instance$e($$self, $$props, $$invalidate) {
var __awaiter = this && this.__awaiter || function (thisArg, _arguments, P, generator) {
function adopt(value) {
return value instanceof P
@@ -35911,21 +35911,21 @@ function instance$f($$self, $$props, $$invalidate) {
class RenderMarkdown extends SvelteComponent {
constructor(options) {
super();
- if (!document.getElementById("svelte-7e9i10-style")) add_css$8();
- init(this, options, instance$f, create_fragment$f, safe_not_equal, { path: 1, app: 2 });
+ if (!document.getElementById("svelte-7e9i10-style")) add_css$7();
+ init(this, options, instance$e, create_fragment$e, safe_not_equal, { path: 1, app: 2 });
}
}
/* src\Components\CBTree.svelte generated by Svelte v3.35.0 */
-function add_css$7() {
+function add_css$6() {
var style = element("style");
style.id = "svelte-1df5nr5-style";
style.textContent = ".BC-tree.svelte-1df5nr5{padding-left:5px}pre.indent.svelte-1df5nr5{display:inline;background-color:transparent;position:top}details.svelte-1df5nr5{display:inline-block}.is-unresolved.svelte-1df5nr5{color:var(--text-muted)}";
append(document.head, style);
}
-function get_each_context$6(ctx, list, i) {
+function get_each_context$5(ctx, list, i) {
const child_ctx = ctx.slice();
child_ctx[18] = list[i][0];
child_ctx[19] = list[i][1];
@@ -36207,7 +36207,7 @@ function create_if_block_1$1(ctx) {
}
// (24:2) {#each lines as [indent, link]}
-function create_each_block$6(ctx) {
+function create_each_block$5(ctx) {
let show_if = meetsConditions(/*indent*/ ctx[18], /*link*/ ctx[19], /*froms*/ ctx[1], /*min*/ ctx[2], /*max*/ ctx[3]);
let if_block_anchor;
let current;
@@ -36265,7 +36265,7 @@ function create_each_block$6(ctx) {
};
}
-function create_fragment$e(ctx) {
+function create_fragment$d(ctx) {
let t;
let div;
let current;
@@ -36274,7 +36274,7 @@ function create_fragment$e(ctx) {
let each_blocks = [];
for (let i = 0; i < each_value.length; i += 1) {
- each_blocks[i] = create_each_block$6(get_each_context$6(ctx, each_value, i));
+ each_blocks[i] = create_each_block$5(get_each_context$5(ctx, each_value, i));
}
const out = i => transition_out(each_blocks[i], 1, 1, () => {
@@ -36312,13 +36312,13 @@ function create_fragment$e(ctx) {
let i;
for (i = 0; i < each_value.length; i += 1) {
- const child_ctx = get_each_context$6(ctx, each_value, i);
+ const child_ctx = get_each_context$5(ctx, each_value, i);
if (each_blocks[i]) {
each_blocks[i].p(child_ctx, dirty);
transition_in(each_blocks[i], 1);
} else {
- each_blocks[i] = create_each_block$6(child_ctx);
+ each_blocks[i] = create_each_block$5(child_ctx);
each_blocks[i].c();
transition_in(each_blocks[i], 1);
each_blocks[i].m(div, null);
@@ -36361,7 +36361,7 @@ function create_fragment$e(ctx) {
};
}
-function instance$e($$self, $$props, $$invalidate) {
+function instance$d($$self, $$props, $$invalidate) {
let { plugin } = $$props;
@@ -36416,9 +36416,9 @@ function instance$e($$self, $$props, $$invalidate) {
class CBTree extends SvelteComponent {
constructor(options) {
super();
- if (!document.getElementById("svelte-1df5nr5-style")) add_css$7();
+ if (!document.getElementById("svelte-1df5nr5-style")) add_css$6();
- init(this, options, instance$e, create_fragment$e, safe_not_equal, {
+ init(this, options, instance$d, create_fragment$d, safe_not_equal, {
plugin: 11,
el: 12,
lines: 0,
@@ -36890,14 +36890,14 @@ function addDataviewSettings(plugin, alternativeHierarchyDetails) {
/* src\Components\KoFi.svelte generated by Svelte v3.35.0 */
-function add_css$6() {
+function add_css$5() {
var style = element("style");
style.id = "svelte-1j4tt4j-style";
style.textContent = ".BC-Kofi-button.svelte-1j4tt4j{margin-top:10px}";
append(document.head, style);
}
-function create_fragment$d(ctx) {
+function create_fragment$c(ctx) {
let script;
let script_src_value;
let t;
@@ -36939,7 +36939,7 @@ function create_fragment$d(ctx) {
};
}
-function instance$d($$self, $$props, $$invalidate) {
+function instance$c($$self, $$props, $$invalidate) {
let button;
const initializeKofi = () => {
@@ -36960,8 +36960,8 @@ function instance$d($$self, $$props, $$invalidate) {
class KoFi extends SvelteComponent {
constructor(options) {
super();
- if (!document.getElementById("svelte-1j4tt4j-style")) add_css$6();
- init(this, options, instance$d, create_fragment$d, safe_not_equal, {});
+ if (!document.getElementById("svelte-1j4tt4j-style")) add_css$5();
+ init(this, options, instance$c, create_fragment$c, safe_not_equal, {});
}
}
@@ -37075,13 +37075,6 @@ function addDendronSettings(plugin, alternativeHierarchyDetails) {
function addGeneralSettings(plugin, containerEl) {
const { settings } = plugin;
const generalDetails = details("General Options", containerEl);
- new obsidian.Setting(generalDetails)
- .setName("Show Refresh Index Notice")
- .setDesc("When Refreshing Index, should it show a notice once the operation is complete?")
- .addToggle((toggle) => toggle.setValue(settings.showRefreshNotice).onChange(async (value) => {
- settings.showRefreshNotice = value;
- await plugin.saveSettings();
- }));
new obsidian.Setting(generalDetails)
.setName("Open Views by Default")
.setDesc("Choose which of the views to open onload")
@@ -37094,15 +37087,15 @@ function addGeneralSettings(plugin, containerEl) {
await plugin.saveSettings();
});
})
- .addToggle((toggle) => {
- toggle
- .setTooltip("Stats View")
- .setValue(settings.openStatsOnLoad)
- .onChange(async (value) => {
- settings.openStatsOnLoad = value;
- await plugin.saveSettings();
- });
- })
+ // .addToggle((toggle) => {
+ // toggle
+ // .setTooltip("Stats View")
+ // .setValue(settings.openStatsOnLoad)
+ // .onChange(async (value) => {
+ // settings.openStatsOnLoad = value;
+ // await plugin.saveSettings();
+ // });
+ // })
.addToggle((toggle) => {
toggle
.setTooltip("Ducks View")
@@ -37134,6 +37127,13 @@ function addGeneralSettings(plugin, containerEl) {
settings.refreshOnNoteSave = value;
await plugin.saveSettings();
}));
+ new obsidian.Setting(generalDetails)
+ .setName("Show Refresh Index Notice")
+ .setDesc("When Refreshing Index, should it show a notice once the operation is complete?")
+ .addToggle((toggle) => toggle.setValue(settings.showRefreshNotice).onChange(async (value) => {
+ settings.showRefreshNotice = value;
+ await plugin.saveSettings();
+ }));
new obsidian.Setting(generalDetails)
.setName("Fields used for Alternative note names (Aliases)")
.setDesc(fragWithHTML("A comma-separated list of fields you use to specify note name aliases. These fields will be checked, in order, and be used to display an alternate note title in both the matrix view, and trail/grid view.This field will probably be alias
or aliases
, but it can be anything, like title
, for example."))
@@ -37247,7 +37247,7 @@ function addHierarchyNoteSettings(plugin, alternativeHierarchyDetails) {
/* node_modules\svelte-icons\components\IconBase.svelte generated by Svelte v3.35.0 */
-function add_css$5() {
+function add_css$4() {
var style = element("style");
style.id = "svelte-c8tyih-style";
style.textContent = "svg.svelte-c8tyih{stroke:currentColor;fill:currentColor;stroke-width:0;width:100%;height:auto;max-height:100%}";
@@ -37277,7 +37277,7 @@ function create_if_block$1(ctx) {
};
}
-function create_fragment$c(ctx) {
+function create_fragment$b(ctx) {
let svg;
let if_block_anchor;
let current;
@@ -37347,7 +37347,7 @@ function create_fragment$c(ctx) {
};
}
-function instance$c($$self, $$props, $$invalidate) {
+function instance$b($$self, $$props, $$invalidate) {
let { $$slots: slots = {}, $$scope } = $$props;
let { title = null } = $$props;
let { viewBox } = $$props;
@@ -37364,8 +37364,8 @@ function instance$c($$self, $$props, $$invalidate) {
class IconBase extends SvelteComponent {
constructor(options) {
super();
- if (!document.getElementById("svelte-c8tyih-style")) add_css$5();
- init(this, options, instance$c, create_fragment$c, safe_not_equal, { title: 0, viewBox: 1 });
+ if (!document.getElementById("svelte-c8tyih-style")) add_css$4();
+ init(this, options, instance$b, create_fragment$b, safe_not_equal, { title: 0, viewBox: 1 });
}
}
@@ -37388,7 +37388,7 @@ function create_default_slot$5(ctx) {
};
}
-function create_fragment$b(ctx) {
+function create_fragment$a(ctx) {
let iconbase;
let current;
const iconbase_spread_levels = [{ viewBox: "0 0 512 512" }, /*$$props*/ ctx[0]];
@@ -37438,7 +37438,7 @@ function create_fragment$b(ctx) {
};
}
-function instance$b($$self, $$props, $$invalidate) {
+function instance$a($$self, $$props, $$invalidate) {
$$self.$$set = $$new_props => {
$$invalidate(0, $$props = assign(assign({}, $$props), exclude_internal_props($$new_props)));
};
@@ -37450,7 +37450,7 @@ function instance$b($$self, $$props, $$invalidate) {
class FaListUl extends SvelteComponent {
constructor(options) {
super();
- init(this, options, instance$b, create_fragment$b, safe_not_equal, {});
+ init(this, options, instance$a, create_fragment$a, safe_not_equal, {});
}
}
@@ -37473,7 +37473,7 @@ function create_default_slot$4(ctx) {
};
}
-function create_fragment$a(ctx) {
+function create_fragment$9(ctx) {
let iconbase;
let current;
const iconbase_spread_levels = [{ viewBox: "0 0 448 512" }, /*$$props*/ ctx[0]];
@@ -37523,7 +37523,7 @@ function create_fragment$a(ctx) {
};
}
-function instance$a($$self, $$props, $$invalidate) {
+function instance$9($$self, $$props, $$invalidate) {
$$self.$$set = $$new_props => {
$$invalidate(0, $$props = assign(assign({}, $$props), exclude_internal_props($$new_props)));
};
@@ -37535,7 +37535,7 @@ function instance$a($$self, $$props, $$invalidate) {
class FaPlus extends SvelteComponent {
constructor(options) {
super();
- init(this, options, instance$a, create_fragment$a, safe_not_equal, {});
+ init(this, options, instance$9, create_fragment$9, safe_not_equal, {});
}
}
@@ -37558,7 +37558,7 @@ function create_default_slot$3(ctx) {
};
}
-function create_fragment$9(ctx) {
+function create_fragment$8(ctx) {
let iconbase;
let current;
const iconbase_spread_levels = [{ viewBox: "0 0 448 512" }, /*$$props*/ ctx[0]];
@@ -37608,7 +37608,7 @@ function create_fragment$9(ctx) {
};
}
-function instance$9($$self, $$props, $$invalidate) {
+function instance$8($$self, $$props, $$invalidate) {
$$self.$$set = $$new_props => {
$$invalidate(0, $$props = assign(assign({}, $$props), exclude_internal_props($$new_props)));
};
@@ -37620,34 +37620,34 @@ function instance$9($$self, $$props, $$invalidate) {
class FaRegTrashAlt extends SvelteComponent {
constructor(options) {
super();
- init(this, options, instance$9, create_fragment$9, safe_not_equal, {});
+ init(this, options, instance$8, create_fragment$8, safe_not_equal, {});
}
}
/* src\Components\UserHierarchies.svelte generated by Svelte v3.35.0 */
-function add_css$4() {
+function add_css$3() {
var style = element("style");
style.id = "svelte-1e9on6f-style";
style.textContent = "label.BC-Arrow-Label.svelte-1e9on6f.svelte-1e9on6f{display:inline-block;width:20px !important}div.BC-Buttons.svelte-1e9on6f.svelte-1e9on6f{padding-bottom:5px}details.BC-Hier-Details.svelte-1e9on6f.svelte-1e9on6f{border:1px solid var(--background-modifier-border);border-radius:10px;padding:10px 5px 10px 10px;margin-bottom:15px}.BC-Hier-Details.svelte-1e9on6f summary.svelte-1e9on6f::marker{font-size:10px}.BC-Hier-Details.svelte-1e9on6f summary button.svelte-1e9on6f{float:right}.icon.svelte-1e9on6f.svelte-1e9on6f{color:var(--text-normal);display:inline-block;padding-top:3px;width:17px;height:17px}";
append(document.head, style);
}
-function get_each_context$5(ctx, list, i) {
+function get_each_context$4(ctx, list, i) {
const child_ctx = ctx.slice();
child_ctx[13] = list[i];
child_ctx[15] = i;
return child_ctx;
}
-function get_each_context_1$3(ctx, list, i) {
+function get_each_context_1$2(ctx, list, i) {
const child_ctx = ctx.slice();
child_ctx[16] = list[i];
return child_ctx;
}
// (118:6) {#each DIRECTIONS as dir}
-function create_each_block_1$3(ctx) {
+function create_each_block_1$2(ctx) {
let div;
let label;
let t0_value = ARROW_DIRECTIONS[/*dir*/ ctx[16]] + "";
@@ -37706,7 +37706,7 @@ function create_each_block_1$3(ctx) {
}
// (63:2) {#each currHiers as hier, i}
-function create_each_block$5(ctx) {
+function create_each_block$4(ctx) {
let details;
let summary;
let t0_value = DIRECTIONS.map(func).map(func_1).join(" ") + "";
@@ -37743,7 +37743,7 @@ function create_each_block$5(ctx) {
let each_blocks = [];
for (let i = 0; i < each_value_1.length; i += 1) {
- each_blocks[i] = create_each_block_1$3(get_each_context_1$3(ctx, each_value_1, i));
+ each_blocks[i] = create_each_block_1$2(get_each_context_1$2(ctx, each_value_1, i));
}
return {
@@ -37816,12 +37816,12 @@ function create_each_block$5(ctx) {
let i;
for (i = 0; i < each_value_1.length; i += 1) {
- const child_ctx = get_each_context_1$3(ctx, each_value_1, i);
+ const child_ctx = get_each_context_1$2(ctx, each_value_1, i);
if (each_blocks[i]) {
each_blocks[i].p(child_ctx, dirty);
} else {
- each_blocks[i] = create_each_block_1$3(child_ctx);
+ each_blocks[i] = create_each_block_1$2(child_ctx);
each_blocks[i].c();
each_blocks[i].m(details, t8);
}
@@ -37843,7 +37843,7 @@ function create_each_block$5(ctx) {
};
}
-function create_fragment$8(ctx) {
+function create_fragment$7(ctx) {
let div4;
let div3;
let button0;
@@ -37868,7 +37868,7 @@ function create_fragment$8(ctx) {
let each_blocks = [];
for (let i = 0; i < each_value.length; i += 1) {
- each_blocks[i] = create_each_block$5(get_each_context$5(ctx, each_value, i));
+ each_blocks[i] = create_each_block$4(get_each_context$4(ctx, each_value, i));
}
return {
@@ -37938,12 +37938,12 @@ function create_fragment$8(ctx) {
let i;
for (i = 0; i < each_value.length; i += 1) {
- const child_ctx = get_each_context$5(ctx, each_value, i);
+ const child_ctx = get_each_context$4(ctx, each_value, i);
if (each_blocks[i]) {
each_blocks[i].p(child_ctx, dirty);
} else {
- each_blocks[i] = create_each_block$5(child_ctx);
+ each_blocks[i] = create_each_block$4(child_ctx);
each_blocks[i].c();
each_blocks[i].m(div4, null);
}
@@ -37983,7 +37983,7 @@ function create_fragment$8(ctx) {
const func_1 = dirFields => `(${dirFields})`;
-function instance$8($$self, $$props, $$invalidate) {
+function instance$7($$self, $$props, $$invalidate) {
var __awaiter = this && this.__awaiter || function (thisArg, _arguments, P, generator) {
function adopt(value) {
return value instanceof P
@@ -38114,8 +38114,8 @@ function instance$8($$self, $$props, $$invalidate) {
class UserHierarchies extends SvelteComponent {
constructor(options) {
super();
- if (!document.getElementById("svelte-1e9on6f-style")) add_css$4();
- init(this, options, instance$8, create_fragment$8, safe_not_equal, { plugin: 0 });
+ if (!document.getElementById("svelte-1e9on6f-style")) add_css$3();
+ init(this, options, instance$7, create_fragment$7, safe_not_equal, { plugin: 0 });
}
}
@@ -38135,21 +38135,21 @@ function addHierarchySettings(plugin, containerEl) {
/* src\Components\Checkboxes.svelte generated by Svelte v3.35.0 */
-function add_css$3() {
+function add_css$2() {
var style = element("style");
style.id = "svelte-d1my4i-style";
style.textContent = ".grid.svelte-d1my4i{display:grid;grid-template-columns:repeat(auto-fit, minmax(100px, 1fr))}";
append(document.head, style);
}
-function get_each_context$4(ctx, list, i) {
+function get_each_context$3(ctx, list, i) {
const child_ctx = ctx.slice();
child_ctx[12] = list[i];
return child_ctx;
}
// (43:2) {#each options as option}
-function create_each_block$4(ctx) {
+function create_each_block$3(ctx) {
let div;
let label;
let input;
@@ -38213,7 +38213,7 @@ function create_each_block$4(ctx) {
};
}
-function create_fragment$7(ctx) {
+function create_fragment$6(ctx) {
let div0;
let button;
let t0;
@@ -38227,7 +38227,7 @@ function create_fragment$7(ctx) {
let each_blocks = [];
for (let i = 0; i < each_value.length; i += 1) {
- each_blocks[i] = create_each_block$4(get_each_context$4(ctx, each_value, i));
+ each_blocks[i] = create_each_block$3(get_each_context$3(ctx, each_value, i));
}
return {
@@ -38270,12 +38270,12 @@ function create_fragment$7(ctx) {
let i;
for (i = 0; i < each_value.length; i += 1) {
- const child_ctx = get_each_context$4(ctx, each_value, i);
+ const child_ctx = get_each_context$3(ctx, each_value, i);
if (each_blocks[i]) {
each_blocks[i].p(child_ctx, dirty);
} else {
- each_blocks[i] = create_each_block$4(child_ctx);
+ each_blocks[i] = create_each_block$3(child_ctx);
each_blocks[i].c();
each_blocks[i].m(div1, null);
}
@@ -38301,7 +38301,7 @@ function create_fragment$7(ctx) {
};
}
-function instance$7($$self, $$props, $$invalidate) {
+function instance$6($$self, $$props, $$invalidate) {
let toNone;
var __awaiter = this && this.__awaiter || function (thisArg, _arguments, P, generator) {
@@ -38399,8 +38399,8 @@ function instance$7($$self, $$props, $$invalidate) {
class Checkboxes extends SvelteComponent {
constructor(options) {
super();
- if (!document.getElementById("svelte-d1my4i-style")) add_css$3();
- init(this, options, instance$7, create_fragment$7, safe_not_equal, { plugin: 4, settingName: 5, options: 0 });
+ if (!document.getElementById("svelte-d1my4i-style")) add_css$2();
+ init(this, options, instance$6, create_fragment$6, safe_not_equal, { plugin: 4, settingName: 5, options: 0 });
}
}
@@ -39221,7 +39221,7 @@ function create_default_slot$2(ctx) {
};
}
-function create_fragment$6(ctx) {
+function create_fragment$5(ctx) {
let iconbase;
let current;
const iconbase_spread_levels = [{ viewBox: "0 0 192 512" }, /*$$props*/ ctx[0]];
@@ -39271,7 +39271,7 @@ function create_fragment$6(ctx) {
};
}
-function instance$6($$self, $$props, $$invalidate) {
+function instance$5($$self, $$props, $$invalidate) {
$$self.$$set = $$new_props => {
$$invalidate(0, $$props = assign(assign({}, $$props), exclude_internal_props($$new_props)));
};
@@ -39283,27 +39283,27 @@ function instance$6($$self, $$props, $$invalidate) {
class FaInfo extends SvelteComponent {
constructor(options) {
super();
- init(this, options, instance$6, create_fragment$6, safe_not_equal, {});
+ init(this, options, instance$5, create_fragment$5, safe_not_equal, {});
}
}
/* src\Components\Ducks.svelte generated by Svelte v3.35.0 */
-function add_css$2() {
+function add_css$1() {
var style = element("style");
style.id = "svelte-gmdm3a-style";
style.textContent = ".icon.svelte-gmdm3a{color:var(--text-normal);display:inline-block;padding-top:5px !important;width:20px;height:20px}";
append(document.head, style);
}
-function get_each_context$3(ctx, list, i) {
+function get_each_context$2(ctx, list, i) {
const child_ctx = ctx.slice();
child_ctx[14] = list[i];
return child_ctx;
}
// (45:2) {#each ducks as duck}
-function create_each_block$3(ctx) {
+function create_each_block$2(ctx) {
let div;
let a;
let t0_value = /*duck*/ ctx[14] + "";
@@ -39355,7 +39355,7 @@ function create_each_block$3(ctx) {
};
}
-function create_fragment$5(ctx) {
+function create_fragment$4(ctx) {
let div;
let h6;
let t1;
@@ -39376,7 +39376,7 @@ function create_fragment$5(ctx) {
let each_blocks = [];
for (let i = 0; i < each_value.length; i += 1) {
- each_blocks[i] = create_each_block$3(get_each_context$3(ctx, each_value, i));
+ each_blocks[i] = create_each_block$2(get_each_context$2(ctx, each_value, i));
}
return {
@@ -39452,12 +39452,12 @@ function create_fragment$5(ctx) {
let i;
for (i = 0; i < each_value.length; i += 1) {
- const child_ctx = get_each_context$3(ctx, each_value, i);
+ const child_ctx = get_each_context$2(ctx, each_value, i);
if (each_blocks[i]) {
each_blocks[i].p(child_ctx, dirty);
} else {
- each_blocks[i] = create_each_block$3(child_ctx);
+ each_blocks[i] = create_each_block$2(child_ctx);
each_blocks[i].c();
each_blocks[i].m(div, null);
}
@@ -39489,7 +39489,7 @@ function create_fragment$5(ctx) {
};
}
-function instance$5($$self, $$props, $$invalidate) {
+function instance$4($$self, $$props, $$invalidate) {
let ducks;
@@ -39562,8 +39562,8 @@ function instance$5($$self, $$props, $$invalidate) {
class Ducks extends SvelteComponent {
constructor(options) {
super();
- if (!document.getElementById("svelte-gmdm3a-style")) add_css$2();
- init(this, options, instance$5, create_fragment$5, safe_not_equal, { plugin: 5, app: 0, ducksView: 1 });
+ if (!document.getElementById("svelte-gmdm3a-style")) add_css$1();
+ init(this, options, instance$4, create_fragment$4, safe_not_equal, { plugin: 5, app: 0, ducksView: 1 });
}
}
@@ -39602,1161 +39602,6 @@ class DucksView extends obsidian.ItemView {
}
}
-/* src\Components\Stats.svelte generated by Svelte v3.35.0 */
-
-function add_css$1() {
- var style = element("style");
- style.id = "svelte-cpnw44-style";
- style.textContent = "table.svelte-cpnw44{border-collapse:collapse}td.svelte-cpnw44:first-child{text-align:right}td.svelte-cpnw44,th.svelte-cpnw44{padding:3px;border:1px solid var(--background-modifier-border);white-space:pre-line}";
- append(document.head, style);
-}
-
-function get_each_context$2(ctx, list, i) {
- const child_ctx = ctx.slice();
- child_ctx[29] = list[i];
- return child_ctx;
-}
-
-function get_each_context_1$2(ctx, list, i) {
- const child_ctx = ctx.slice();
- child_ctx[29] = list[i];
- return child_ctx;
-}
-
-function get_each_context_2(ctx, list, i) {
- const child_ctx = ctx.slice();
- child_ctx[29] = list[i];
- return child_ctx;
-}
-
-function get_each_context_3(ctx, list, i) {
- const child_ctx = ctx.slice();
- child_ctx[36] = list[i];
- child_ctx[38] = i;
- return child_ctx;
-}
-
-function get_each_context_4(ctx, list, i) {
- const child_ctx = ctx.slice();
- child_ctx[29] = list[i];
- return child_ctx;
-}
-
-function get_each_context_5(ctx, list, i) {
- const child_ctx = ctx.slice();
- child_ctx[29] = list[i];
- return child_ctx;
-}
-
-function get_each_context_6(ctx, list, i) {
- const child_ctx = ctx.slice();
- child_ctx[29] = list[i];
- return child_ctx;
-}
-
-function get_each_context_7(ctx, list, i) {
- const child_ctx = ctx.slice();
- child_ctx[29] = list[i];
- return child_ctx;
-}
-
-// (87:6) {#each DIRECTIONS as dir}
-function create_each_block_7(ctx) {
- let td;
- let t_value = ARROW_DIRECTIONS[/*dir*/ ctx[29]] + "";
- let t;
-
- return {
- c() {
- td = element("td");
- t = text(t_value);
- attr(td, "class", "svelte-cpnw44");
- },
- m(target, anchor) {
- insert(target, td, anchor);
- append(td, t);
- },
- p: noop,
- d(detaching) {
- if (detaching) detach(td);
- }
- };
-}
-
-// (99:8) {#each DIRECTIONS as dir}
-function create_each_block_6(ctx) {
- let td;
- let t0_value = /*data*/ ctx[2][/*i*/ ctx[38]][/*dir*/ ctx[29]].Merged.nodes.length + "";
- let t0;
- let t1;
- let td_aria_label_value;
- let mounted;
- let dispose;
-
- function click_handler_1() {
- return /*click_handler_1*/ ctx[6](/*i*/ ctx[38], /*dir*/ ctx[29]);
- }
-
- return {
- c() {
- td = element("td");
- t0 = text(t0_value);
- t1 = space();
- attr(td, "aria-label-position", "left");
- attr(td, "aria-label", td_aria_label_value = /*data*/ ctx[2][/*i*/ ctx[38]][/*dir*/ ctx[29]].Merged.nodesStr);
- attr(td, "class", "svelte-cpnw44");
- },
- m(target, anchor) {
- insert(target, td, anchor);
- append(td, t0);
- append(td, t1);
-
- if (!mounted) {
- dispose = listen(td, "click", click_handler_1);
- mounted = true;
- }
- },
- p(new_ctx, dirty) {
- ctx = new_ctx;
- },
- d(detaching) {
- if (detaching) detach(td);
- mounted = false;
- dispose();
- }
- };
-}
-
-// (120:8) {#each DIRECTIONS as dir}
-function create_each_block_5(ctx) {
- let td;
- let t0_value = /*data*/ ctx[2][/*i*/ ctx[38]][/*dir*/ ctx[29]].Merged.edges.length + "";
- let t0;
- let t1;
- let td_aria_label_value;
- let mounted;
- let dispose;
-
- function click_handler_3() {
- return /*click_handler_3*/ ctx[9](/*i*/ ctx[38], /*dir*/ ctx[29]);
- }
-
- return {
- c() {
- td = element("td");
- t0 = text(t0_value);
- t1 = space();
- attr(td, "aria-label-position", "left");
- attr(td, "aria-label", td_aria_label_value = /*data*/ ctx[2][/*i*/ ctx[38]][/*dir*/ ctx[29]].Merged.edgesStr);
- attr(td, "class", "svelte-cpnw44");
- },
- m(target, anchor) {
- insert(target, td, anchor);
- append(td, t0);
- append(td, t1);
-
- if (!mounted) {
- dispose = listen(td, "click", click_handler_3);
- mounted = true;
- }
- },
- p(new_ctx, dirty) {
- ctx = new_ctx;
- },
- d(detaching) {
- if (detaching) detach(td);
- mounted = false;
- dispose();
- }
- };
-}
-
-// (141:8) {#each DIRECTIONS as dir}
-function create_each_block_4(ctx) {
- let td;
- let t0_value = /*data*/ ctx[2][/*i*/ ctx[38]][/*dir*/ ctx[29]].Implied.edges.length + "";
- let t0;
- let t1;
- let td_aria_label_value;
- let mounted;
- let dispose;
-
- function click_handler_5() {
- return /*click_handler_5*/ ctx[12](/*i*/ ctx[38], /*dir*/ ctx[29]);
- }
-
- return {
- c() {
- td = element("td");
- t0 = text(t0_value);
- t1 = space();
- attr(td, "aria-label-position", "left");
- attr(td, "aria-label", td_aria_label_value = /*data*/ ctx[2][/*i*/ ctx[38]][/*dir*/ ctx[29]].Implied.edgesStr);
- attr(td, "class", "svelte-cpnw44");
- },
- m(target, anchor) {
- insert(target, td, anchor);
- append(td, t0);
- append(td, t1);
-
- if (!mounted) {
- dispose = listen(td, "click", click_handler_5);
- mounted = true;
- }
- },
- p(new_ctx, dirty) {
- ctx = new_ctx;
- },
- d(detaching) {
- if (detaching) detach(td);
- mounted = false;
- dispose();
- }
- };
-}
-
-// (93:4) {#each userHiers as hier, i}
-function create_each_block_3(ctx) {
- let tr0;
- let td0;
- let t0_value = /*hierStrs*/ ctx[4][/*i*/ ctx[38]] + "";
- let t0;
- let t1;
- let td1;
- let t3;
- let t4;
- let td2;
- let t5_value = lodash.sum(DIRECTIONS.map(func)) + "";
- let t5;
- let td2_aria_label_value;
- let t6;
- let tr1;
- let td3;
- let t8;
- let t9;
- let td4;
- let t10_value = lodash.sum(DIRECTIONS.map(func_1)) + "";
- let t10;
- let td4_aria_label_value;
- let t11;
- let tr2;
- let td5;
- let t13;
- let t14;
- let td6;
- let t15_value = lodash.sum(DIRECTIONS.map(func_2)) + "";
- let t15;
- let td6_aria_label_value;
- let mounted;
- let dispose;
- let each_value_6 = DIRECTIONS;
- let each_blocks_2 = [];
-
- for (let i = 0; i < each_value_6.length; i += 1) {
- each_blocks_2[i] = create_each_block_6(get_each_context_6(ctx, each_value_6, i));
- }
-
- function func(...args) {
- return /*func*/ ctx[7](/*i*/ ctx[38], ...args);
- }
-
- function click_handler_2() {
- return /*click_handler_2*/ ctx[8](/*i*/ ctx[38]);
- }
-
- let each_value_5 = DIRECTIONS;
- let each_blocks_1 = [];
-
- for (let i = 0; i < each_value_5.length; i += 1) {
- each_blocks_1[i] = create_each_block_5(get_each_context_5(ctx, each_value_5, i));
- }
-
- function func_1(...args) {
- return /*func_1*/ ctx[10](/*i*/ ctx[38], ...args);
- }
-
- function click_handler_4() {
- return /*click_handler_4*/ ctx[11](/*i*/ ctx[38]);
- }
-
- let each_value_4 = DIRECTIONS;
- let each_blocks = [];
-
- for (let i = 0; i < each_value_4.length; i += 1) {
- each_blocks[i] = create_each_block_4(get_each_context_4(ctx, each_value_4, i));
- }
-
- function func_2(...args) {
- return /*func_2*/ ctx[13](/*i*/ ctx[38], ...args);
- }
-
- function click_handler_6() {
- return /*click_handler_6*/ ctx[14](/*i*/ ctx[38]);
- }
-
- return {
- c() {
- tr0 = element("tr");
- td0 = element("td");
- t0 = text(t0_value);
- t1 = space();
- td1 = element("td");
- td1.textContent = "Nodes";
- t3 = space();
-
- for (let i = 0; i < each_blocks_2.length; i += 1) {
- each_blocks_2[i].c();
- }
-
- t4 = space();
- td2 = element("td");
- t5 = text(t5_value);
- t6 = space();
- tr1 = element("tr");
- td3 = element("td");
- td3.textContent = "Real Edges";
- t8 = space();
-
- for (let i = 0; i < each_blocks_1.length; i += 1) {
- each_blocks_1[i].c();
- }
-
- t9 = space();
- td4 = element("td");
- t10 = text(t10_value);
- t11 = space();
- tr2 = element("tr");
- td5 = element("td");
- td5.textContent = "Implied Edges";
- t13 = space();
-
- for (let i = 0; i < each_blocks.length; i += 1) {
- each_blocks[i].c();
- }
-
- t14 = space();
- td6 = element("td");
- t15 = text(t15_value);
- attr(td0, "rowspan", "3");
- attr(td0, "class", "svelte-cpnw44");
- attr(td1, "class", "svelte-cpnw44");
- attr(td2, "aria-label-position", "left");
- attr(td2, "aria-label", td2_aria_label_value = /*cellStr*/ ctx[3](/*i*/ ctx[38], "Merged", "nodesStr"));
- attr(td2, "class", "svelte-cpnw44");
- attr(td3, "class", "svelte-cpnw44");
- attr(td4, "aria-label-position", "left");
- attr(td4, "aria-label", td4_aria_label_value = /*cellStr*/ ctx[3](/*i*/ ctx[38], "Merged", "edgesStr"));
- attr(td4, "class", "svelte-cpnw44");
- attr(td5, "class", "svelte-cpnw44");
- attr(td6, "aria-label-position", "left");
- attr(td6, "aria-label", td6_aria_label_value = /*cellStr*/ ctx[3](/*i*/ ctx[38], "Implied", "edgesStr"));
- attr(td6, "class", "svelte-cpnw44");
- },
- m(target, anchor) {
- insert(target, tr0, anchor);
- append(tr0, td0);
- append(td0, t0);
- append(tr0, t1);
- append(tr0, td1);
- append(tr0, t3);
-
- for (let i = 0; i < each_blocks_2.length; i += 1) {
- each_blocks_2[i].m(tr0, null);
- }
-
- append(tr0, t4);
- append(tr0, td2);
- append(td2, t5);
- insert(target, t6, anchor);
- insert(target, tr1, anchor);
- append(tr1, td3);
- append(tr1, t8);
-
- for (let i = 0; i < each_blocks_1.length; i += 1) {
- each_blocks_1[i].m(tr1, null);
- }
-
- append(tr1, t9);
- append(tr1, td4);
- append(td4, t10);
- insert(target, t11, anchor);
- insert(target, tr2, anchor);
- append(tr2, td5);
- append(tr2, t13);
-
- for (let i = 0; i < each_blocks.length; i += 1) {
- each_blocks[i].m(tr2, null);
- }
-
- append(tr2, t14);
- append(tr2, td6);
- append(td6, t15);
-
- if (!mounted) {
- dispose = [
- listen(td2, "click", click_handler_2),
- listen(td4, "click", click_handler_4),
- listen(td6, "click", click_handler_6)
- ];
-
- mounted = true;
- }
- },
- p(new_ctx, dirty) {
- ctx = new_ctx;
-
- if (dirty[0] & /*data*/ 4) {
- each_value_6 = DIRECTIONS;
- let i;
-
- for (i = 0; i < each_value_6.length; i += 1) {
- const child_ctx = get_each_context_6(ctx, each_value_6, i);
-
- if (each_blocks_2[i]) {
- each_blocks_2[i].p(child_ctx, dirty);
- } else {
- each_blocks_2[i] = create_each_block_6(child_ctx);
- each_blocks_2[i].c();
- each_blocks_2[i].m(tr0, t4);
- }
- }
-
- for (; i < each_blocks_2.length; i += 1) {
- each_blocks_2[i].d(1);
- }
-
- each_blocks_2.length = each_value_6.length;
- }
-
- if (dirty[0] & /*data*/ 4) {
- each_value_5 = DIRECTIONS;
- let i;
-
- for (i = 0; i < each_value_5.length; i += 1) {
- const child_ctx = get_each_context_5(ctx, each_value_5, i);
-
- if (each_blocks_1[i]) {
- each_blocks_1[i].p(child_ctx, dirty);
- } else {
- each_blocks_1[i] = create_each_block_5(child_ctx);
- each_blocks_1[i].c();
- each_blocks_1[i].m(tr1, t9);
- }
- }
-
- for (; i < each_blocks_1.length; i += 1) {
- each_blocks_1[i].d(1);
- }
-
- each_blocks_1.length = each_value_5.length;
- }
-
- if (dirty[0] & /*data*/ 4) {
- each_value_4 = DIRECTIONS;
- let i;
-
- for (i = 0; i < each_value_4.length; i += 1) {
- const child_ctx = get_each_context_4(ctx, each_value_4, i);
-
- if (each_blocks[i]) {
- each_blocks[i].p(child_ctx, dirty);
- } else {
- each_blocks[i] = create_each_block_4(child_ctx);
- each_blocks[i].c();
- each_blocks[i].m(tr2, t14);
- }
- }
-
- for (; i < each_blocks.length; i += 1) {
- each_blocks[i].d(1);
- }
-
- each_blocks.length = each_value_4.length;
- }
- },
- d(detaching) {
- if (detaching) detach(tr0);
- destroy_each(each_blocks_2, detaching);
- if (detaching) detach(t6);
- if (detaching) detach(tr1);
- destroy_each(each_blocks_1, detaching);
- if (detaching) detach(t11);
- if (detaching) detach(tr2);
- destroy_each(each_blocks, detaching);
- mounted = false;
- run_all(dispose);
- }
- };
-}
-
-// (164:6) {#each DIRECTIONS as dir}
-function create_each_block_2(ctx) {
- let td;
- let t0_value = lodash.sum(/*data*/ ctx[2].map(func_3)) + "";
- let t0;
- let t1;
- let td_aria_label_value;
- let mounted;
- let dispose;
-
- function func_3(...args) {
- return /*func_3*/ ctx[15](/*dir*/ ctx[29], ...args);
- }
-
- function func_4(...args) {
- return /*func_4*/ ctx[16](/*dir*/ ctx[29], ...args);
- }
-
- function click_handler_7() {
- return /*click_handler_7*/ ctx[17](/*dir*/ ctx[29]);
- }
-
- return {
- c() {
- td = element("td");
- t0 = text(t0_value);
- t1 = space();
- attr(td, "aria-label-position", "left");
- attr(td, "aria-label", td_aria_label_value = /*data*/ ctx[2].map(func_4).join("\n"));
- attr(td, "class", "svelte-cpnw44");
- },
- m(target, anchor) {
- insert(target, td, anchor);
- append(td, t0);
- append(td, t1);
-
- if (!mounted) {
- dispose = listen(td, "click", click_handler_7);
- mounted = true;
- }
- },
- p(new_ctx, dirty) {
- ctx = new_ctx;
- },
- d(detaching) {
- if (detaching) detach(td);
- mounted = false;
- dispose();
- }
- };
-}
-
-// (182:6) {#each DIRECTIONS as dir}
-function create_each_block_1$2(ctx) {
- let td;
- let t0_value = lodash.sum(/*data*/ ctx[2].map(func_5)) + "";
- let t0;
- let t1;
- let td_aria_label_value;
- let mounted;
- let dispose;
-
- function func_5(...args) {
- return /*func_5*/ ctx[18](/*dir*/ ctx[29], ...args);
- }
-
- function func_6(...args) {
- return /*func_6*/ ctx[19](/*dir*/ ctx[29], ...args);
- }
-
- function click_handler_8() {
- return /*click_handler_8*/ ctx[20](/*dir*/ ctx[29]);
- }
-
- return {
- c() {
- td = element("td");
- t0 = text(t0_value);
- t1 = space();
- attr(td, "aria-label-position", "left");
- attr(td, "aria-label", td_aria_label_value = /*data*/ ctx[2].map(func_6).join("\n"));
- attr(td, "class", "svelte-cpnw44");
- },
- m(target, anchor) {
- insert(target, td, anchor);
- append(td, t0);
- append(td, t1);
-
- if (!mounted) {
- dispose = listen(td, "click", click_handler_8);
- mounted = true;
- }
- },
- p(new_ctx, dirty) {
- ctx = new_ctx;
- },
- d(detaching) {
- if (detaching) detach(td);
- mounted = false;
- dispose();
- }
- };
-}
-
-// (200:6) {#each DIRECTIONS as dir}
-function create_each_block$2(ctx) {
- let td;
- let t0_value = lodash.sum(/*data*/ ctx[2].map(func_7)) + "";
- let t0;
- let t1;
- let td_aria_label_value;
- let mounted;
- let dispose;
-
- function func_7(...args) {
- return /*func_7*/ ctx[21](/*dir*/ ctx[29], ...args);
- }
-
- function func_8(...args) {
- return /*func_8*/ ctx[22](/*dir*/ ctx[29], ...args);
- }
-
- function click_handler_9() {
- return /*click_handler_9*/ ctx[23](/*dir*/ ctx[29]);
- }
-
- return {
- c() {
- td = element("td");
- t0 = text(t0_value);
- t1 = space();
- attr(td, "aria-label-position", "left");
- attr(td, "aria-label", td_aria_label_value = /*data*/ ctx[2].map(func_8).join("\n"));
- attr(td, "class", "svelte-cpnw44");
- },
- m(target, anchor) {
- insert(target, td, anchor);
- append(td, t0);
- append(td, t1);
-
- if (!mounted) {
- dispose = listen(td, "click", click_handler_9);
- mounted = true;
- }
- },
- p(new_ctx, dirty) {
- ctx = new_ctx;
- },
- d(detaching) {
- if (detaching) detach(td);
- mounted = false;
- dispose();
- }
- };
-}
-
-function create_fragment$4(ctx) {
- let table;
- let thead;
- let tr0;
- let th0;
- let t1;
- let th1;
- let t2;
- let t3;
- let tbody;
- let tr1;
- let td0;
- let button;
- let t5;
- let td1;
- let t7;
- let t8;
- let td2;
- let t10;
- let t11;
- let tr2;
- let td3;
- let t13;
- let td4;
- let t15;
- let t16;
- let tr3;
- let td5;
- let t18;
- let t19;
- let tr4;
- let td6;
- let t21;
- let mounted;
- let dispose;
- let each_value_7 = DIRECTIONS;
- let each_blocks_4 = [];
-
- for (let i = 0; i < each_value_7.length; i += 1) {
- each_blocks_4[i] = create_each_block_7(get_each_context_7(ctx, each_value_7, i));
- }
-
- let each_value_3 = /*userHiers*/ ctx[1];
- let each_blocks_3 = [];
-
- for (let i = 0; i < each_value_3.length; i += 1) {
- each_blocks_3[i] = create_each_block_3(get_each_context_3(ctx, each_value_3, i));
- }
-
- let each_value_2 = DIRECTIONS;
- let each_blocks_2 = [];
-
- for (let i = 0; i < each_value_2.length; i += 1) {
- each_blocks_2[i] = create_each_block_2(get_each_context_2(ctx, each_value_2, i));
- }
-
- let each_value_1 = DIRECTIONS;
- let each_blocks_1 = [];
-
- for (let i = 0; i < each_value_1.length; i += 1) {
- each_blocks_1[i] = create_each_block_1$2(get_each_context_1$2(ctx, each_value_1, i));
- }
-
- let each_value = DIRECTIONS;
- let each_blocks = [];
-
- for (let i = 0; i < each_value.length; i += 1) {
- each_blocks[i] = create_each_block$2(get_each_context$2(ctx, each_value, i));
- }
-
- return {
- c() {
- table = element("table");
- thead = element("thead");
- tr0 = element("tr");
- th0 = element("th");
- th0.textContent = "Hierarchy";
- t1 = space();
- th1 = element("th");
- t2 = text("Count");
- t3 = space();
- tbody = element("tbody");
- tr1 = element("tr");
- td0 = element("td");
- button = element("button");
- button.textContent = "↻";
- t5 = space();
- td1 = element("td");
- td1.textContent = "Measure";
- t7 = space();
-
- for (let i = 0; i < each_blocks_4.length; i += 1) {
- each_blocks_4[i].c();
- }
-
- t8 = space();
- td2 = element("td");
- td2.textContent = "Total";
- t10 = space();
-
- for (let i = 0; i < each_blocks_3.length; i += 1) {
- each_blocks_3[i].c();
- }
-
- t11 = space();
- tr2 = element("tr");
- td3 = element("td");
- td3.textContent = "Totals";
- t13 = space();
- td4 = element("td");
- td4.textContent = "Nodes";
- t15 = space();
-
- for (let i = 0; i < each_blocks_2.length; i += 1) {
- each_blocks_2[i].c();
- }
-
- t16 = space();
- tr3 = element("tr");
- td5 = element("td");
- td5.textContent = "Real Edges";
- t18 = space();
-
- for (let i = 0; i < each_blocks_1.length; i += 1) {
- each_blocks_1[i].c();
- }
-
- t19 = space();
- tr4 = element("tr");
- td6 = element("td");
- td6.textContent = "Implied Edges";
- t21 = space();
-
- for (let i = 0; i < each_blocks.length; i += 1) {
- each_blocks[i].c();
- }
-
- attr(th0, "scope", "col");
- attr(th0, "class", "svelte-cpnw44");
- attr(th1, "scope", "col");
- attr(th1, "colspan", DIRECTIONS.length + 2);
- attr(th1, "class", "svelte-cpnw44");
- attr(button, "class", "icon");
- attr(button, "aria-label", "Refresh Stats View (also refreshes Breadcrumbs Index)");
- attr(td0, "class", "svelte-cpnw44");
- attr(td1, "class", "svelte-cpnw44");
- attr(td2, "class", "svelte-cpnw44");
- attr(td3, "rowspan", "3");
- attr(td3, "class", "svelte-cpnw44");
- attr(td4, "class", "svelte-cpnw44");
- attr(td5, "class", "svelte-cpnw44");
- attr(td6, "class", "svelte-cpnw44");
- attr(table, "class", "svelte-cpnw44");
- },
- m(target, anchor) {
- insert(target, table, anchor);
- append(table, thead);
- append(thead, tr0);
- append(tr0, th0);
- append(tr0, t1);
- append(tr0, th1);
- append(th1, t2);
- append(table, t3);
- append(table, tbody);
- append(tbody, tr1);
- append(tr1, td0);
- append(td0, button);
- append(tr1, t5);
- append(tr1, td1);
- append(tr1, t7);
-
- for (let i = 0; i < each_blocks_4.length; i += 1) {
- each_blocks_4[i].m(tr1, null);
- }
-
- append(tr1, t8);
- append(tr1, td2);
- append(tbody, t10);
-
- for (let i = 0; i < each_blocks_3.length; i += 1) {
- each_blocks_3[i].m(tbody, null);
- }
-
- append(tbody, t11);
- append(tbody, tr2);
- append(tr2, td3);
- append(tr2, t13);
- append(tr2, td4);
- append(tr2, t15);
-
- for (let i = 0; i < each_blocks_2.length; i += 1) {
- each_blocks_2[i].m(tr2, null);
- }
-
- append(tbody, t16);
- append(tbody, tr3);
- append(tr3, td5);
- append(tr3, t18);
-
- for (let i = 0; i < each_blocks_1.length; i += 1) {
- each_blocks_1[i].m(tr3, null);
- }
-
- append(tbody, t19);
- append(tbody, tr4);
- append(tr4, td6);
- append(tr4, t21);
-
- for (let i = 0; i < each_blocks.length; i += 1) {
- each_blocks[i].m(tr4, null);
- }
-
- if (!mounted) {
- dispose = listen(button, "click", /*click_handler*/ ctx[5]);
- mounted = true;
- }
- },
- p(ctx, dirty) {
- if (dirty & /*ARROW_DIRECTIONS, DIRECTIONS*/ 0) {
- each_value_7 = DIRECTIONS;
- let i;
-
- for (i = 0; i < each_value_7.length; i += 1) {
- const child_ctx = get_each_context_7(ctx, each_value_7, i);
-
- if (each_blocks_4[i]) {
- each_blocks_4[i].p(child_ctx, dirty);
- } else {
- each_blocks_4[i] = create_each_block_7(child_ctx);
- each_blocks_4[i].c();
- each_blocks_4[i].m(tr1, t8);
- }
- }
-
- for (; i < each_blocks_4.length; i += 1) {
- each_blocks_4[i].d(1);
- }
-
- each_blocks_4.length = each_value_7.length;
- }
-
- if (dirty[0] & /*cellStr, data, hierStrs*/ 28) {
- each_value_3 = /*userHiers*/ ctx[1];
- let i;
-
- for (i = 0; i < each_value_3.length; i += 1) {
- const child_ctx = get_each_context_3(ctx, each_value_3, i);
-
- if (each_blocks_3[i]) {
- each_blocks_3[i].p(child_ctx, dirty);
- } else {
- each_blocks_3[i] = create_each_block_3(child_ctx);
- each_blocks_3[i].c();
- each_blocks_3[i].m(tbody, t11);
- }
- }
-
- for (; i < each_blocks_3.length; i += 1) {
- each_blocks_3[i].d(1);
- }
-
- each_blocks_3.length = each_value_3.length;
- }
-
- if (dirty[0] & /*data*/ 4) {
- each_value_2 = DIRECTIONS;
- let i;
-
- for (i = 0; i < each_value_2.length; i += 1) {
- const child_ctx = get_each_context_2(ctx, each_value_2, i);
-
- if (each_blocks_2[i]) {
- each_blocks_2[i].p(child_ctx, dirty);
- } else {
- each_blocks_2[i] = create_each_block_2(child_ctx);
- each_blocks_2[i].c();
- each_blocks_2[i].m(tr2, null);
- }
- }
-
- for (; i < each_blocks_2.length; i += 1) {
- each_blocks_2[i].d(1);
- }
-
- each_blocks_2.length = each_value_2.length;
- }
-
- if (dirty[0] & /*data*/ 4) {
- each_value_1 = DIRECTIONS;
- let i;
-
- for (i = 0; i < each_value_1.length; i += 1) {
- const child_ctx = get_each_context_1$2(ctx, each_value_1, i);
-
- if (each_blocks_1[i]) {
- each_blocks_1[i].p(child_ctx, dirty);
- } else {
- each_blocks_1[i] = create_each_block_1$2(child_ctx);
- each_blocks_1[i].c();
- each_blocks_1[i].m(tr3, null);
- }
- }
-
- for (; i < each_blocks_1.length; i += 1) {
- each_blocks_1[i].d(1);
- }
-
- each_blocks_1.length = each_value_1.length;
- }
-
- if (dirty[0] & /*data*/ 4) {
- each_value = DIRECTIONS;
- let i;
-
- for (i = 0; i < each_value.length; i += 1) {
- const child_ctx = get_each_context$2(ctx, each_value, i);
-
- if (each_blocks[i]) {
- each_blocks[i].p(child_ctx, dirty);
- } else {
- each_blocks[i] = create_each_block$2(child_ctx);
- each_blocks[i].c();
- each_blocks[i].m(tr4, null);
- }
- }
-
- for (; i < each_blocks.length; i += 1) {
- each_blocks[i].d(1);
- }
-
- each_blocks.length = each_value.length;
- }
- },
- i: noop,
- o: noop,
- d(detaching) {
- if (detaching) detach(table);
- destroy_each(each_blocks_4, detaching);
- destroy_each(each_blocks_3, detaching);
- destroy_each(each_blocks_2, detaching);
- destroy_each(each_blocks_1, detaching);
- destroy_each(each_blocks, detaching);
- mounted = false;
- dispose();
- }
- };
-}
-
-function instance$4($$self, $$props, $$invalidate) {
-
-
- let { plugin } = $$props;
- const { settings, mainG, db } = plugin;
- const { userHiers, wikilinkIndex } = settings;
- db.start2G("StatsView");
-
- function fillInInfo(dir, gType, hierData, nodesToo = true) {
- const gInfo = hierData[dir][gType];
-
- if (nodesToo) {
- gInfo.nodes = gInfo.graph.nodes();
- gInfo.nodesStr = gInfo.nodes.map(n => makeWiki(n, wikilinkIndex)).join("\n");
- }
-
- gInfo.edges = gInfo.graph.edges();
- const edgeStrArr = gInfo.graph.mapEdges((k, a, s, t) => `${makeWiki(nodesToo ? s : t, wikilinkIndex)} ${ARROW_DIRECTIONS[dir]} ${makeWiki(nodesToo ? t : s, wikilinkIndex)}`);
- gInfo.edgesStr = edgeStrArr.join("\n");
- }
-
- const data = settings.userHiers.map(hier => {
- const hierData = {
- //@ts-ignore
- up: { Merged: {}, Closed: {}, Implied: {} },
- //@ts-ignore
- same: { Merged: {}, Closed: {}, Implied: {} },
- //@ts-ignore
- down: { Merged: {}, Closed: {}, Implied: {} },
- //@ts-ignore
- next: { Merged: {}, Closed: {}, Implied: {} },
- //@ts-ignore
- prev: { Merged: {}, Closed: {}, Implied: {} }
- };
-
- DIRECTIONS.forEach(dir => {
- // Merged Graphs
- /// Smoosh all fieldGs from one dir into a merged graph for that direction as a whole
- const mergedInDir = getSubForFields(mainG, hier[dir]);
-
- const mergedInOppDir = getSubForFields(mainG, hier[getOppDir(dir)]);
- hierData[dir].Merged.graph = mergedInDir;
- fillInInfo(dir, "Merged", hierData);
-
- // Closed graphs
- hierData[dir].Closed.graph = closeImpliedLinks(mergedInDir, dir === "same" ? mergedInDir : mergedInOppDir);
-
- fillInInfo(dir, "Closed", hierData);
-
- hierData[dir].Implied.graph = dir === "same"
- ? closeImpliedLinks(mergedInDir, mergedInDir)
- : mergedInOppDir;
-
- fillInInfo(dir, "Implied", hierData, false);
- });
-
- return hierData;
- });
-
- loglevel.debug({ data });
- const cellStr = (i, type, info) => DIRECTIONS.map(dir => data[i][dir][type][info]).join("\n");
- let hierStrs = userHiers.map(hierToStr);
- db.end2G();
-
- const click_handler = async () => {
- await refreshIndex(plugin);
- await plugin.getActiveTYPEView(STATS_VIEW)?.draw();
- };
-
- const click_handler_1 = async (i, dir) => await copy(data[i][dir].Merged.nodesStr);
- const func = (i, dir) => data[i][dir].Merged.nodes.length;
- const click_handler_2 = async i => await copy(cellStr(i, "Merged", "nodesStr"));
- const click_handler_3 = async (i, dir) => await copy(data[i][dir].Merged.edgesStr);
- const func_1 = (i, dir) => data[i][dir].Merged.edges.length;
- const click_handler_4 = async i => await copy(cellStr(i, "Merged", "edgesStr"));
- const click_handler_5 = async (i, dir) => await copy(data[i][dir].Implied.edgesStr);
- const func_2 = (i, dir) => data[i][dir].Implied.edges.length;
- const click_handler_6 = async i => await copy(cellStr(i, "Implied", "edgesStr"));
- const func_3 = (dir, datum) => datum[dir].Merged.nodes.length;
- const func_4 = (dir, datum) => datum[dir].Merged.nodesStr;
- const click_handler_7 = async dir => await copy(data.map(datum => datum[dir].Merged.nodesStr).join("\n"));
- const func_5 = (dir, datum) => datum[dir].Merged.edges.length;
- const func_6 = (dir, datum) => datum[dir].Merged.edgesStr;
- const click_handler_8 = async dir => await copy(data.map(datum => datum[dir].Merged.edgesStr).join("\n"));
- const func_7 = (dir, datum) => datum[dir].Implied.edges.length;
- const func_8 = (dir, datum) => datum[dir].Implied.edgesStr;
- const click_handler_9 = async dir => await copy(data.map(datum => datum[dir].Implied.edgesStr).join("\n"));
-
- $$self.$$set = $$props => {
- if ("plugin" in $$props) $$invalidate(0, plugin = $$props.plugin);
- };
-
- return [
- plugin,
- userHiers,
- data,
- cellStr,
- hierStrs,
- click_handler,
- click_handler_1,
- func,
- click_handler_2,
- click_handler_3,
- func_1,
- click_handler_4,
- click_handler_5,
- func_2,
- click_handler_6,
- func_3,
- func_4,
- click_handler_7,
- func_5,
- func_6,
- click_handler_8,
- func_7,
- func_8,
- click_handler_9
- ];
-}
-
-class Stats extends SvelteComponent {
- constructor(options) {
- super();
- if (!document.getElementById("svelte-cpnw44-style")) add_css$1();
- init(this, options, instance$4, create_fragment$4, safe_not_equal, { plugin: 0 }, [-1, -1]);
- }
-}
-
-class StatsView extends obsidian.ItemView {
- constructor(leaf, plugin) {
- super(leaf);
- this.icon = "info";
- this.plugin = plugin;
- }
- async onload() {
- super.onload();
- this.app.workspace.onLayoutReady(() => {
- setTimeout(async () => await this.draw(), this.plugin.settings.dvWaitTime);
- });
- }
- getViewType() {
- return STATS_VIEW;
- }
- getDisplayText() {
- return "Breadcrumbs Stats";
- }
- async onOpen() {
- await this.plugin.saveSettings();
- }
- onClose() {
- var _a;
- (_a = this.view) === null || _a === void 0 ? void 0 : _a.$destroy();
- return Promise.resolve();
- }
- async draw() {
- const { contentEl, plugin } = this;
- contentEl.empty();
- this.view = new Stats({
- target: contentEl,
- props: { plugin },
- });
- }
-}
-
/* node_modules\svelte-icons\fa\FaFire.svelte generated by Svelte v3.35.0 */
function create_default_slot$1(ctx) {
@@ -63510,7 +62355,9 @@ class BCPlugin extends obsidian.Plugin {
if (settings.limitTrailCheckboxes.length === 0) {
settings.limitTrailCheckboxes = getFields(settings.userHiers);
}
- const { openMatrixOnLoad, openStatsOnLoad, openDuckOnLoad, openDownOnLoad, showBCs, userHiers, } = settings;
+ const { openMatrixOnLoad,
+ // openStatsOnLoad,
+ openDuckOnLoad, openDownOnLoad, showBCs, userHiers, } = settings;
this.VIEWS = [
{
plain: "Matrix",
@@ -63518,12 +62365,12 @@ class BCPlugin extends obsidian.Plugin {
constructor: MatrixView,
openOnLoad: openMatrixOnLoad,
},
- {
- plain: "Stats",
- type: STATS_VIEW,
- constructor: StatsView,
- openOnLoad: openStatsOnLoad,
- },
+ // {
+ // plain: "Stats",
+ // type: STATS_VIEW,
+ // constructor: StatsView,
+ // openOnLoad: openStatsOnLoad,
+ // },
{
plain: "Duck",
type: DUCK_VIEW,
diff --git a/src/Components/Stats.svelte b/src/Components/Stats.svelte
index 5d2533e0..8f15a3c1 100644
--- a/src/Components/Stats.svelte
+++ b/src/Components/Stats.svelte
@@ -1,4 +1,4 @@
-