@genome-spy/app 0.74.0 → 0.76.0

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.
Files changed (66) hide show
  1. package/dist/AbortablePromiseCache-beUIcZcW.js +96 -0
  2. package/dist/agentApi-CzdacisO.js +25226 -0
  3. package/dist/agentApi.es.js +9460 -0
  4. package/dist/agentShared.es.js +4742 -0
  5. package/dist/{blosc-oa0DlI6G.js → blosc-BX4BJ8sR.js} +1 -1
  6. package/dist/componentStyles-CIXoKEp0.js +2182 -0
  7. package/dist/dialog.es.js +377 -0
  8. package/dist/{esm-n0auOe11.js → esm-BH0wx5y-.js} +1 -1
  9. package/dist/esm-BLfLaJtE.js +121 -0
  10. package/dist/{esm-D-WfYOx7.js → esm-BWsx1OJ2.js} +25 -25
  11. package/dist/{browser-Dvlo92rx.js → esm-BY4T8YoD.js} +38 -22
  12. package/dist/esm-CZvS2Ldm.js +155 -0
  13. package/dist/esm-CdIesJ1z.js +461 -0
  14. package/dist/{esm-DCCYNvaz.js → esm-Cr7pLUfG.js} +50 -50
  15. package/dist/esm-D-y0Ce1M.js +573 -0
  16. package/dist/esm-DHOMWRoL.js +1426 -0
  17. package/dist/{esm-Cmo4qEPr.js → esm-DJUb6vy0.js} +5 -5
  18. package/dist/esm-DPS6pYKF.js +1248 -0
  19. package/dist/esm-DRZ5LLNH.js +142 -0
  20. package/dist/esm-DjF6pKy5.js +369 -0
  21. package/dist/esm-PDPkTR1_.js +1015 -0
  22. package/dist/esm-s_SlArJ8.js +298 -0
  23. package/dist/index.es.js +7910 -28759
  24. package/dist/index.js +1135 -736
  25. package/dist/lit-ymUSmGBw.js +510 -0
  26. package/dist/{lz4-jZ0zyLBa.js → lz4-BSYl80V8.js} +1 -1
  27. package/dist/parquetRead-m8-8_SpH.js +1609 -0
  28. package/dist/schema.json +665 -97
  29. package/dist/style.css +1 -1
  30. package/dist/viewUtils-C5htqZCm.js +14147 -0
  31. package/dist/{zstd-C6ksIG9r.js → zstd-BAfRM3IH.js} +1 -1
  32. package/package.json +30 -5
  33. package/src/agentApi/index.d.ts +123 -0
  34. package/src/agentShared/index.d.ts +97 -0
  35. package/src/agentShared/types.d.ts +8 -0
  36. package/src/appTypes.d.ts +75 -0
  37. package/src/bookmark/databaseSchema.d.ts +33 -0
  38. package/src/charts/boxplotTypes.d.ts +15 -0
  39. package/src/charts/sampleAttributePlotTypes.d.ts +149 -0
  40. package/src/coreSpecAugmentation.d.ts +29 -0
  41. package/src/dialog/index.d.ts +5 -0
  42. package/src/embedTypes.d.ts +9 -0
  43. package/src/index.d.ts +16 -0
  44. package/src/sampleView/sampleViewTypes.d.ts +174 -0
  45. package/src/sampleView/state/payloadTypes.d.ts +400 -0
  46. package/src/sampleView/state/sampleState.d.ts +76 -0
  47. package/src/sampleView/types.d.ts +125 -0
  48. package/src/spec/appSpec.d.ts +54 -0
  49. package/src/spec/sampleView.d.ts +487 -0
  50. package/src/spec/view.d.ts +124 -0
  51. package/src/state/paramProvenanceTypes.d.ts +215 -0
  52. package/src/state/selectionExpansionTypes.d.ts +77 -0
  53. package/src/state.d.ts +97 -0
  54. package/src/types/lz-string.d.ts +24 -0
  55. package/src/types/vega-loader.d.ts +1 -0
  56. package/src/utils/colorScaleSummary.d.ts +15 -0
  57. package/src/utils/statistics/fieldSummary.d.ts +49 -0
  58. package/src/vite-env.d.ts +6 -0
  59. package/LICENSE +0 -21
  60. /package/dist/{AbortablePromiseCache-3gHJdF3E.js → AbortablePromiseCache-BDH1cqFl.js} +0 -0
  61. /package/dist/{chunk-INHXZS53-fPMmEwMt.js → chunk-INHXZS53-DwEV9sMh.js} +0 -0
  62. /package/dist/{esm-BygJiwh0.js → esm-BL9SNSnj.js} +0 -0
  63. /package/dist/{esm-B8-vSu-c.js → esm-BwW--bVV.js} +0 -0
  64. /package/dist/{esm-CGX-qz1d.js → esm-Bz_92nH0.js} +0 -0
  65. /package/dist/{esm-CuMSzCHy.js → esm-D2_c7lXY.js} +0 -0
  66. /package/dist/{parquetRead-CJe1UPsz.js → parquetRead-BuEN-6yG.js} +0 -0
@@ -1,6 +1,6 @@
1
- import { n as e } from "./chunk-CPXzm0be.js";
1
+ import { n as e, t } from "./chunk-CPXzm0be.js";
2
2
  //#region ../../node_modules/generic-filehandle2/esm/blobFile.js
3
- var t = class {
3
+ var n = class {
4
4
  constructor(e) {
5
5
  this.blob = e;
6
6
  }
@@ -22,21 +22,21 @@ var t = class {
22
22
  };
23
23
  //#endregion
24
24
  //#region ../../node_modules/generic-filehandle2/esm/remoteFile.js
25
- function n(e) {
25
+ function r(e) {
26
26
  return (typeof e == "object" && e && "message" in e ? e.message : `${e}`).replace(/\.$/, "");
27
27
  }
28
- var r = class {
28
+ var i = class {
29
29
  constructor(e, t = {}) {
30
30
  this.baseOverrides = {}, this.url = e;
31
31
  let n = t.fetch || globalThis.fetch.bind(globalThis);
32
32
  t.overrides && (this.baseOverrides = t.overrides), this.fetchImplementation = n;
33
33
  }
34
34
  async fetch(e, t) {
35
- let r = (t) => Error(`${n(t)} fetching ${e}`, { cause: t }), i;
35
+ let n = (t) => Error(`${r(t)} fetching ${e}`, { cause: t }), i;
36
36
  try {
37
37
  i = await this.fetchImplementation(e, t);
38
- } catch (n) {
39
- if (`${n}`.includes("Failed to fetch")) {
38
+ } catch (r) {
39
+ if (`${r}`.includes("Failed to fetch")) {
40
40
  console.warn(`generic-filehandle: refetching ${e} to attempt to work around chrome CORS header caching bug`);
41
41
  try {
42
42
  i = await this.fetchImplementation(e, {
@@ -44,9 +44,9 @@ var r = class {
44
44
  cache: "reload"
45
45
  });
46
46
  } catch (e) {
47
- throw r(e);
47
+ throw n(e);
48
48
  }
49
- } else throw r(n);
49
+ } else throw n(r);
50
50
  }
51
51
  return i;
52
52
  }
@@ -107,20 +107,36 @@ var r = class {
107
107
  return this._stat;
108
108
  }
109
109
  async close() {}
110
- }, i = /* @__PURE__ */ e({
111
- BlobFile: () => t,
112
- LocalFile: () => a,
113
- RemoteFile: () => r
114
- }), a = class {
115
- readFile() {
116
- throw Error("unimplemented");
110
+ }, a = (/* @__PURE__ */ t(((e, t) => {
111
+ t.exports = {};
112
+ })))(), o = class {
113
+ constructor(e, t = {}) {
114
+ this.filename = e;
115
+ }
116
+ async read(e, t = 0) {
117
+ if (e === 0) return new Uint8Array();
118
+ let n = new Uint8Array(e), r;
119
+ try {
120
+ r = await (0, a.open)(this.filename, "r");
121
+ let i = await r.read(n, 0, e, t);
122
+ return i.buffer.subarray(0, i.bytesRead);
123
+ } finally {
124
+ if (r) try {
125
+ await r.close();
126
+ } catch {}
127
+ }
117
128
  }
118
- read() {
119
- throw Error("unimplemented");
129
+ async readFile(e) {
130
+ return (0, a.readFile)(this.filename, e);
120
131
  }
121
- close() {
122
- throw Error("unimplemented");
132
+ async stat() {
133
+ return (0, a.stat)(this.filename);
123
134
  }
124
- };
135
+ async close() {}
136
+ }, s = /* @__PURE__ */ e({
137
+ BlobFile: () => n,
138
+ LocalFile: () => o,
139
+ RemoteFile: () => i
140
+ });
125
141
  //#endregion
126
- export { i as n, r, a as t };
142
+ export { o as n, i as r, s as t };
@@ -0,0 +1,155 @@
1
+ //#region ../../node_modules/@jbrowse/quick-lru/esm/index.js
2
+ var e = function(e, t, n, r, i) {
3
+ if (r === "m") throw TypeError("Private method is not writable");
4
+ if (r === "a" && !i) throw TypeError("Private accessor was defined without a setter");
5
+ if (typeof t == "function" ? e !== t || !i : !t.has(e)) throw TypeError("Cannot write private member to an object whose class did not declare it");
6
+ return r === "a" ? i.call(e, n) : i ? i.value = n : t.set(e, n), n;
7
+ }, t = function(e, t, n, r) {
8
+ if (n === "a" && !r) throw TypeError("Private accessor was defined without a getter");
9
+ if (typeof t == "function" ? e !== t || !r : !t.has(e)) throw TypeError("Cannot read private member from an object whose class did not declare it");
10
+ return n === "m" ? r : n === "a" ? r.call(e) : r ? r.value : t.get(e);
11
+ }, n, r, i, a, o, s, c, l, u, d, f, p, m, h, g, _ = class extends Map {
12
+ constructor(t = {}) {
13
+ if (super(), n.add(this), r.set(this, 0), i.set(this, /* @__PURE__ */ new Map()), a.set(this, /* @__PURE__ */ new Map()), o.set(this, void 0), s.set(this, void 0), c.set(this, void 0), !(t.maxSize && t.maxSize > 0)) throw TypeError("`maxSize` must be a number greater than 0");
14
+ if (typeof t.maxAge == "number" && t.maxAge === 0) throw TypeError("`maxAge` must be a number greater than 0");
15
+ e(this, o, t.maxSize, "f"), e(this, s, t.maxAge || Infinity, "f"), e(this, c, t.onEviction, "f");
16
+ }
17
+ get __oldCache() {
18
+ return t(this, a, "f");
19
+ }
20
+ get(e) {
21
+ if (t(this, i, "f").has(e)) {
22
+ let r = t(this, i, "f").get(e);
23
+ return t(this, n, "m", f).call(this, e, r);
24
+ }
25
+ if (t(this, a, "f").has(e)) {
26
+ let r = t(this, a, "f").get(e);
27
+ if (!t(this, n, "m", u).call(this, e, r)) return t(this, n, "m", h).call(this, e, r), r.value;
28
+ }
29
+ }
30
+ set(e, r, { maxAge: a = t(this, s, "f") } = {}) {
31
+ let o = typeof a == "number" && a !== Infinity ? Date.now() + a : void 0;
32
+ return t(this, i, "f").has(e) ? t(this, i, "f").set(e, {
33
+ value: r,
34
+ expiry: o
35
+ }) : t(this, n, "m", m).call(this, e, {
36
+ value: r,
37
+ expiry: o
38
+ }), this;
39
+ }
40
+ has(e) {
41
+ return t(this, i, "f").has(e) ? !t(this, n, "m", u).call(this, e, t(this, i, "f").get(e)) : t(this, a, "f").has(e) ? !t(this, n, "m", u).call(this, e, t(this, a, "f").get(e)) : !1;
42
+ }
43
+ peek(e) {
44
+ if (t(this, i, "f").has(e)) return t(this, n, "m", p).call(this, e, t(this, i, "f"));
45
+ if (t(this, a, "f").has(e)) return t(this, n, "m", p).call(this, e, t(this, a, "f"));
46
+ }
47
+ expiresIn(e) {
48
+ let n = t(this, i, "f").get(e) ?? t(this, a, "f").get(e);
49
+ if (n) return n.expiry ? n.expiry - Date.now() : Infinity;
50
+ }
51
+ delete(n) {
52
+ var o;
53
+ let s = t(this, i, "f").delete(n);
54
+ return s && e(this, r, (o = t(this, r, "f"), o--, o), "f"), t(this, a, "f").delete(n) || s;
55
+ }
56
+ clear() {
57
+ t(this, i, "f").clear(), t(this, a, "f").clear(), e(this, r, 0, "f");
58
+ }
59
+ resize(s) {
60
+ if (!(s && s > 0)) throw TypeError("`maxSize` must be a number greater than 0");
61
+ let c = [...t(this, n, "m", g).call(this)], u = c.length - s;
62
+ u < 0 ? (e(this, i, new Map(c), "f"), e(this, a, /* @__PURE__ */ new Map(), "f"), e(this, r, c.length, "f")) : (u > 0 && t(this, n, "m", l).call(this, c.slice(0, u)), e(this, a, new Map(c.slice(u)), "f"), e(this, i, /* @__PURE__ */ new Map(), "f"), e(this, r, 0, "f")), e(this, o, s, "f");
63
+ }
64
+ evict(o = 1) {
65
+ let s = o;
66
+ if (!s || s <= 0) return;
67
+ let c = [...t(this, n, "m", g).call(this)], u = Math.trunc(Math.min(s, Math.max(c.length - 1, 0)));
68
+ u <= 0 || (t(this, n, "m", l).call(this, c.slice(0, u)), e(this, a, new Map(c.slice(u)), "f"), e(this, i, /* @__PURE__ */ new Map(), "f"), e(this, r, 0, "f"));
69
+ }
70
+ *keys() {
71
+ for (let [e] of this) yield e;
72
+ }
73
+ *values() {
74
+ for (let [, e] of this) yield e;
75
+ }
76
+ *[(r = /* @__PURE__ */ new WeakMap(), i = /* @__PURE__ */ new WeakMap(), a = /* @__PURE__ */ new WeakMap(), o = /* @__PURE__ */ new WeakMap(), s = /* @__PURE__ */ new WeakMap(), c = /* @__PURE__ */ new WeakMap(), n = /* @__PURE__ */ new WeakSet(), l = function(e) {
77
+ if (typeof t(this, c, "f") == "function") for (let [n, r] of e) t(this, c, "f").call(this, n, r.value);
78
+ }, u = function(e, n) {
79
+ return typeof n.expiry == "number" && n.expiry <= Date.now() ? (typeof t(this, c, "f") == "function" && t(this, c, "f").call(this, e, n.value), this.delete(e)) : !1;
80
+ }, d = function(e, r) {
81
+ if (!t(this, n, "m", u).call(this, e, r)) return r.value;
82
+ }, f = function(e, r) {
83
+ return r.expiry ? t(this, n, "m", d).call(this, e, r) : r.value;
84
+ }, p = function(e, r) {
85
+ let i = r.get(e);
86
+ return t(this, n, "m", f).call(this, e, i);
87
+ }, m = function(s, c) {
88
+ var u;
89
+ t(this, i, "f").set(s, c), e(this, r, (u = t(this, r, "f"), u++, u), "f"), t(this, r, "f") >= t(this, o, "f") && (e(this, r, 0, "f"), t(this, n, "m", l).call(this, t(this, a, "f")), e(this, a, t(this, i, "f"), "f"), e(this, i, /* @__PURE__ */ new Map(), "f"));
90
+ }, h = function(e, r) {
91
+ t(this, a, "f").delete(e), t(this, n, "m", m).call(this, e, r);
92
+ }, g = function* () {
93
+ for (let e of t(this, a, "f")) {
94
+ let [r, a] = e;
95
+ t(this, i, "f").has(r) || t(this, n, "m", u).call(this, r, a) || (yield e);
96
+ }
97
+ for (let e of t(this, i, "f")) {
98
+ let [r, i] = e;
99
+ t(this, n, "m", u).call(this, r, i) || (yield e);
100
+ }
101
+ }, Symbol.iterator)]() {
102
+ for (let e of t(this, i, "f")) {
103
+ let [r, i] = e;
104
+ t(this, n, "m", u).call(this, r, i) || (yield [r, i.value]);
105
+ }
106
+ for (let e of t(this, a, "f")) {
107
+ let [r, a] = e;
108
+ t(this, i, "f").has(r) || t(this, n, "m", u).call(this, r, a) || (yield [r, a.value]);
109
+ }
110
+ }
111
+ *entriesDescending() {
112
+ let e = [...t(this, i, "f")];
113
+ for (let r = e.length - 1; r >= 0; --r) {
114
+ let [i, a] = e[r];
115
+ t(this, n, "m", u).call(this, i, a) || (yield [i, a.value]);
116
+ }
117
+ e = [...t(this, a, "f")];
118
+ for (let r = e.length - 1; r >= 0; --r) {
119
+ let [a, o] = e[r];
120
+ t(this, i, "f").has(a) || t(this, n, "m", u).call(this, a, o) || (yield [a, o.value]);
121
+ }
122
+ }
123
+ *entriesAscending() {
124
+ for (let [e, r] of t(this, n, "m", g).call(this)) yield [e, r.value];
125
+ }
126
+ get size() {
127
+ if (!t(this, r, "f")) return t(this, a, "f").size;
128
+ let e = 0;
129
+ for (let n of t(this, a, "f").keys()) t(this, i, "f").has(n) || e++;
130
+ return Math.min(t(this, r, "f") + e, t(this, o, "f"));
131
+ }
132
+ get maxSize() {
133
+ return t(this, o, "f");
134
+ }
135
+ get maxAge() {
136
+ return t(this, s, "f");
137
+ }
138
+ entries() {
139
+ return this.entriesAscending();
140
+ }
141
+ forEach(e, t = this) {
142
+ for (let [n, r] of this.entriesAscending()) e.call(t, r, n, this);
143
+ }
144
+ get [Symbol.toStringTag]() {
145
+ return "QuickLRU";
146
+ }
147
+ toString() {
148
+ return `QuickLRU(${this.size}/${this.maxSize})`;
149
+ }
150
+ [Symbol.for("nodejs.util.inspect.custom")]() {
151
+ return this.toString();
152
+ }
153
+ };
154
+ //#endregion
155
+ export { _ as t };