@celldl/viewer 0.20260807.0 → 0.20260807.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.
@@ -890,7 +890,7 @@ const wA = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
890
890
  },
891
891
  emits: ["error", "event"],
892
892
  setup(C, { emit: A }) {
893
- const I = P.defineAsyncComponent(async () => (await V(), globalThis.oxigraph = wA, import("./WrappedViewer-6J7YBQqi.js"))), g = A;
893
+ const I = P.defineAsyncComponent(async () => (await V(), globalThis.oxigraph = wA, import("./WrappedViewer-CcH9JaZs.js"))), g = A;
894
894
  function Q(E) {
895
895
  g("error", E);
896
896
  }
@@ -11648,7 +11648,7 @@ class co {
11648
11648
  #u = /* @__PURE__ */ new Map();
11649
11649
  #o = void 0;
11650
11650
  constructor(e, t = "", n = {}, i = void 0) {
11651
- this.#r = e, this.#n = Zr(fo), this.#l = new Ri(`${fo}#`), t !== "" && (this.#a(t), this.#s(n), this.#o = i?.tooltip);
11651
+ this.#r = e, this.#n = Zr(fo), this.#l = new Ri(`${fo}#`), this.#i = new Map(Object.entries(n)), t !== "" && (this.#a(t), this.#s(), this.#o = i?.tooltip);
11652
11652
  }
11653
11653
  finishSetup() {
11654
11654
  this.#w(), this.#b(), this.#m(), this.#v(), this.#_(), this.#y(), this.#d();
@@ -11692,22 +11692,22 @@ class co {
11692
11692
  s[a].setAttribute("stroke", Hf);
11693
11693
  this.#e = i;
11694
11694
  }
11695
- #s(e) {
11696
- const t = this.#e?.getElementById(sc);
11697
- if (t && (!("contentType" in t.dataset) || t.dataset.contentType === mr)) {
11698
- const n = t.childNodes;
11699
- for (let i = 0; i < n.length; ++i) {
11700
- const s = n[i];
11701
- if (s.nodeName === "#cdata-section") {
11702
- this.#t.load(this.#n.uri, s.data, mr);
11695
+ #s() {
11696
+ const e = this.#e?.getElementById(sc);
11697
+ if (e && (!("contentType" in e.dataset) || e.dataset.contentType === mr)) {
11698
+ const t = e.childNodes;
11699
+ for (let n = 0; n < t.length; ++n) {
11700
+ const i = t[n];
11701
+ if (i.nodeName === "#cdata-section") {
11702
+ this.#t.load(this.#n.uri, i.data, mr);
11703
11703
  break;
11704
11704
  }
11705
11705
  }
11706
11706
  } else
11707
- for (const [n, i] of Object.entries(e))
11708
- if (this.#e?.getElementById(n)) {
11709
- const s = "type" in i ? String(i.type) : "Component";
11710
- this.#t.add(Zr(`${this.#n.uri}#${n}`), Ye.uri("type"), pt.uri(s));
11707
+ for (const [t, n] of this.#i.entries())
11708
+ if (this.#e?.getElementById(t)) {
11709
+ const i = "type" in n ? String(n.type) : "Component";
11710
+ this.#t.add(Zr(`${this.#n.uri}#${t}`), Ye.uri("type"), pt.uri(i));
11711
11711
  }
11712
11712
  }
11713
11713
  #f(e) {
@@ -11715,11 +11715,10 @@ class co {
11715
11715
  return t ? (e.assignSvgElement(t), !0) : (console.error(`Missing SVG element for ${e.id}`), !1);
11716
11716
  }
11717
11717
  #d() {
11718
- for (const e of this.#u.values())
11719
- if (e.id in annotations) {
11720
- const t = annotations[e.id];
11721
- this.#i.set(e.id, t), this.#o && this.#o in t && (e.tooltip = String(t[this.#o]));
11722
- }
11718
+ for (const e of this.#u.values()) {
11719
+ const t = this.#i.get(e.id);
11720
+ t && this.#o && this.#o in t && (e.tooltip = String(t[this.#o]));
11721
+ }
11723
11722
  }
11724
11723
  #c(e, t) {
11725
11724
  const n = this.#t.metadataPropertiesForSubject(t);
@@ -12046,4 +12045,4 @@ const uc = /* @__PURE__ */ ai({
12046
12045
  export {
12047
12046
  Tc as default
12048
12047
  };
12049
- //# sourceMappingURL=WrappedViewer-6J7YBQqi.js.map
12048
+ //# sourceMappingURL=WrappedViewer-CcH9JaZs.js.map