@abi-software/map-utilities 1.1.3-beta.5 → 1.1.3-beta.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/map-utilities.js
CHANGED
|
@@ -28675,15 +28675,19 @@ const eF = 1.3, tF = 24 * 60 * 60 * 1e3, rF = "Reset position", fv = "Lock zoom
|
|
|
28675
28675
|
getCachedTermLabels: async function() {
|
|
28676
28676
|
if (this.labelledTerms.size) {
|
|
28677
28677
|
const t = await this.query(
|
|
28678
|
-
`
|
|
28679
|
-
|
|
28680
|
-
|
|
28678
|
+
`select entity, knowledge from knowledge
|
|
28679
|
+
where entity in (?${", ?".repeat(this.labelledTerms.size - 1)})
|
|
28680
|
+
order by source desc`,
|
|
28681
28681
|
[...this.labelledTerms.values()]
|
|
28682
28682
|
);
|
|
28683
|
-
|
|
28684
|
-
|
|
28685
|
-
|
|
28686
|
-
|
|
28683
|
+
let e = null;
|
|
28684
|
+
for (const [n, a] of t.values)
|
|
28685
|
+
if (n !== e) {
|
|
28686
|
+
const i = JSON.parse(a);
|
|
28687
|
+
this.labelCache.set(n, i.label || n), e = n;
|
|
28688
|
+
}
|
|
28689
|
+
const r = Object.fromEntries(this.labelCache);
|
|
28690
|
+
sessionStorage.setItem("connectivity-graph-labels", JSON.stringify(r)), this.updateCacheExpiry();
|
|
28687
28691
|
}
|
|
28688
28692
|
},
|
|
28689
28693
|
cacheNodeLabels: function(t) {
|
|
@@ -28713,7 +28717,7 @@ const eF = 1.3, tF = 24 * 60 * 60 * 1e3, rF = "Reset position", fv = "Lock zoom
|
|
|
28713
28717
|
}, oF = { class: "connectivity-graph" }, sF = {
|
|
28714
28718
|
ref: "graphCanvas",
|
|
28715
28719
|
class: "graph-canvas"
|
|
28716
|
-
}, lF = { class: "control-panel" }, uF = /* @__PURE__ */ P0('<div class="node-key" data-v-
|
|
28720
|
+
}, lF = { class: "control-panel" }, uF = /* @__PURE__ */ P0('<div class="node-key" data-v-528570f4><div class="key-head" data-v-528570f4>Node type:</div><div data-v-528570f4><div data-v-528570f4><span data-v-528570f4>Node:</span><span class="key-box" style="background:#80F0F0;" data-v-528570f4></span></div><div data-v-528570f4><span data-v-528570f4>Axon:</span><span class="key-box" style="background:green;" data-v-528570f4></span></div><div data-v-528570f4><span data-v-528570f4>Dendrite:</span><span class="key-box" style="background:red;" data-v-528570f4></span></div><div data-v-528570f4><span data-v-528570f4>Both:</span><span class="key-box" style="background:gray;" data-v-528570f4></span></div></div></div>', 1), cF = { class: "tools" }, dF = { class: "visually-hidden" }, fF = { class: "visually-hidden" };
|
|
28717
28721
|
function vF(t, e, r, n, a, i) {
|
|
28718
28722
|
const o = Xb, s = Vt, u = pn, l = xo, c = g2, d = w2, v = tc;
|
|
28719
28723
|
return je(($(), Z("div", oF, [
|
|
@@ -28777,7 +28781,7 @@ function vF(t, e, r, n, a, i) {
|
|
|
28777
28781
|
[v, t.loading]
|
|
28778
28782
|
]);
|
|
28779
28783
|
}
|
|
28780
|
-
const CF = /* @__PURE__ */ rn(iF, [["render", vF], ["__scopeId", "data-v-
|
|
28784
|
+
const CF = /* @__PURE__ */ rn(iF, [["render", vF], ["__scopeId", "data-v-528570f4"]]);
|
|
28781
28785
|
export {
|
|
28782
28786
|
CF as ConnectivityGraph,
|
|
28783
28787
|
wF as CopyToClipboard,
|