@abi-software/flatmapvuer 1.1.0 → 1.1.1

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.
@@ -11665,7 +11665,7 @@ const SI = /* @__PURE__ */ aa(Bet, [["render", Zet], ["__scopeId", "data-v-75b24
11665
11665
  return "colour" in t ? { background: t.colour } : {};
11666
11666
  }
11667
11667
  }
11668
- }, qet = (t) => (W4("data-v-df242013"), t = t(), X4(), t), Wet = { class: "container" }, Xet = /* @__PURE__ */ qet(() => /* @__PURE__ */ Yt("div", { class: "title-text" }, "Systems", -1)), Ket = { class: "tree-container" }, Yet = ["onClick", "onMouseover"];
11668
+ }, qet = (t) => (W4("data-v-9349be48"), t = t(), X4(), t), Wet = { class: "selections-container" }, Xet = /* @__PURE__ */ qet(() => /* @__PURE__ */ Yt("div", { class: "title-text" }, "Systems", -1)), Ket = { class: "tree-container" }, Yet = ["onClick", "onMouseover"];
11669
11669
  function Jet(t, e, r, n, i, o) {
11670
11670
  const a = Ss, s = Da, h = xI;
11671
11671
  return wt(), ee("div", Wet, [
@@ -11710,7 +11710,7 @@ function Jet(t, e, r, n, i, o) {
11710
11710
  ])
11711
11711
  ]);
11712
11712
  }
11713
- const AI = /* @__PURE__ */ aa($et, [["render", Jet], ["__scopeId", "data-v-df242013"]]), trt = {
11713
+ const AI = /* @__PURE__ */ aa($et, [["render", Jet], ["__scopeId", "data-v-9349be48"]]), trt = {
11714
11714
  name: "SvgLegends"
11715
11715
  }, ert = (t) => (W4("data-v-88079d87"), t = t(), X4(), t), rrt = { class: "legends-container" }, nrt = {
11716
11716
  version: "1.1",
@@ -12328,9 +12328,12 @@ let vrt = function() {
12328
12328
  });
12329
12329
  }, this.connectivityExists = function(t) {
12330
12330
  return !!(t.values && t.values.length > 0 && JSON.parse(t.values[0][0]).connectivity && JSON.parse(t.values[0][0]).connectivity.length > 0);
12331
- }, this.createLabelFromNeuralNode = function(t, e, r = !0) {
12331
+ }, this.findIfNodeIsSingle = function(t) {
12332
+ return t.length === 1 ? (console.error("Server returns a single node", t), t[0]) : t.length === 2 && t[1].length === 0 ? t[0] : !1;
12333
+ }, this.createLabelFromNeuralNode = function(t, e) {
12334
+ let r = this.findIfNodeIsSingle(t);
12332
12335
  if (r)
12333
- return e[t];
12336
+ return e[r];
12334
12337
  let n = e[t[0]];
12335
12338
  return t.length === 2 && t[1].length > 0 && t[1].forEach((i) => {
12336
12339
  e[i] == null ? n += `, ${i}` : n += `, ${e[i]}`;
@@ -12351,9 +12354,9 @@ let vrt = function() {
12351
12354
  this.destinations = n.map(
12352
12355
  (s) => this.createLabelFromNeuralNode(s, a)
12353
12356
  ), this.origins = i.map(
12354
- (s) => this.createLabelFromNeuralNode(s, a, !0)
12357
+ (s) => this.createLabelFromNeuralNode(s, a)
12355
12358
  ), this.components = r.map(
12356
- (s) => this.createLabelFromNeuralNode(s, a, !1)
12359
+ (s) => this.createLabelFromNeuralNode(s, a)
12357
12360
  ), this.flattenAndFindDatasets(r, n, i), e({
12358
12361
  ids: {
12359
12362
  axons: n,