@genome-spy/app 0.76.0 → 0.78.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 (39) hide show
  1. package/LICENSE +21 -0
  2. package/dist/{agentApi-CzdacisO.js → agentApi-BwbEWjvl.js} +6362 -4470
  3. package/dist/agentApi.es.js +3315 -1561
  4. package/dist/agentShared.es.js +20 -20
  5. package/dist/blosc-DL1kZHdE.js +692 -0
  6. package/dist/chunk-INHXZS53-Dx2aFznx.js +13 -0
  7. package/dist/{esm-Cr7pLUfG.js → esm-BHjeb8gt.js} +2 -2
  8. package/dist/{esm-BH0wx5y-.js → esm-BI-plmf6.js} +2 -2
  9. package/dist/esm-BgpwI2cq.js +1221 -0
  10. package/dist/{esm-BWsx1OJ2.js → esm-BkagIzhP.js} +2 -2
  11. package/dist/esm-CHVYSGF2.js +1084 -0
  12. package/dist/esm-COzpU5N8.js +1221 -0
  13. package/dist/{esm-CdIesJ1z.js → esm-CPufCnsG.js} +2 -2
  14. package/dist/esm-C_XrKaCY.js +137 -0
  15. package/dist/esm-D2-C5ZzN.js +1084 -0
  16. package/dist/{esm-BLfLaJtE.js → esm-Daho46bY.js} +2 -2
  17. package/dist/esm-id9DWBZW.js +137 -0
  18. package/dist/{esm-DHOMWRoL.js → esm-sPWfZg9X.js} +2 -2
  19. package/dist/index.es.js +14184 -15233
  20. package/dist/index.js +598 -485
  21. package/dist/lz4-Csz5aoFA.js +626 -0
  22. package/dist/schema.json +1008 -137
  23. package/dist/{viewUtils-C5htqZCm.js → viewUtils-B7-F_Ae-.js} +2516 -2314
  24. package/dist/zstd-dJuUp1fl.js +583 -0
  25. package/package.json +4 -4
  26. package/src/agentApi/index.d.ts +24 -0
  27. package/src/bookmark/databaseSchema.d.ts +11 -1
  28. package/src/charts/sampleAttributePlotTypes.d.ts +26 -1
  29. package/src/sampleView/sampleViewTypes.d.ts +2 -0
  30. package/src/sampleView/state/payloadTypes.d.ts +84 -0
  31. package/src/sampleView/types.d.ts +3 -0
  32. package/src/spec/sampleView.d.ts +58 -0
  33. package/dist/esm-BDFRLEuD.js +0 -1248
  34. package/dist/esm-BY4T8YoD.js +0 -142
  35. package/dist/esm-DJUb6vy0.js +0 -1015
  36. package/dist/esm-DPS6pYKF.js +0 -1248
  37. package/dist/esm-DRZ5LLNH.js +0 -142
  38. package/dist/esm-PDPkTR1_.js +0 -1015
  39. /package/dist/{parquetRead-BuEN-6yG.js → parquetRead-C33mgLEo.js} +0 -0
@@ -1,142 +0,0 @@
1
- import { n as e, t } from "./chunk-CPXzm0be.js";
2
- //#region ../../node_modules/generic-filehandle2/esm/blobFile.js
3
- var n = class {
4
- constructor(e) {
5
- this.blob = e;
6
- }
7
- async read(e, t = 0) {
8
- if (!e) return new Uint8Array();
9
- let n = t, r = n + e, i = this.blob.slice(n, r);
10
- return i.bytes ? i.bytes() : new Uint8Array(await i.arrayBuffer());
11
- }
12
- async readFile(e) {
13
- let t = typeof e == "string" ? e : e?.encoding;
14
- if (t === "utf8") return this.blob.text();
15
- if (t) throw Error(`unsupported encoding: ${t}`);
16
- return this.blob.bytes ? this.blob.bytes() : new Uint8Array(await this.blob.arrayBuffer());
17
- }
18
- async stat() {
19
- return { size: this.blob.size };
20
- }
21
- async close() {}
22
- };
23
- //#endregion
24
- //#region ../../node_modules/generic-filehandle2/esm/remoteFile.js
25
- function r(e) {
26
- return (typeof e == "object" && e && "message" in e ? e.message : `${e}`).replace(/\.$/, "");
27
- }
28
- var i = class {
29
- constructor(e, t = {}) {
30
- this.baseOverrides = {}, this.url = e;
31
- let n = t.fetch || globalThis.fetch.bind(globalThis);
32
- t.overrides && (this.baseOverrides = t.overrides), this.fetchImplementation = n;
33
- }
34
- async fetch(e, t) {
35
- let n = (t) => Error(`${r(t)} fetching ${e}`, { cause: t }), i;
36
- try {
37
- i = await this.fetchImplementation(e, t);
38
- } catch (r) {
39
- if (`${r}`.includes("Failed to fetch")) {
40
- console.warn(`generic-filehandle: refetching ${e} to attempt to work around chrome CORS header caching bug`);
41
- try {
42
- i = await this.fetchImplementation(e, {
43
- ...t,
44
- cache: "reload"
45
- });
46
- } catch (e) {
47
- throw n(e);
48
- }
49
- } else throw n(r);
50
- }
51
- return i;
52
- }
53
- async read(e, t, n = {}) {
54
- if (e === 0) return new Uint8Array();
55
- let { headers: r = {}, signal: i, overrides: a = {} } = n;
56
- e < Infinity ? r.range = `bytes=${t}-${t + e - 1}` : e === Infinity && t !== 0 && (r.range = `bytes=${t}-`);
57
- let o = await this.fetch(this.url, {
58
- ...this.baseOverrides,
59
- ...a,
60
- headers: {
61
- ...this.baseOverrides.headers,
62
- ...a.headers,
63
- ...r
64
- },
65
- method: "GET",
66
- redirect: "follow",
67
- mode: "cors",
68
- signal: i
69
- });
70
- if (!o.ok) throw Error(`HTTP ${o.status} fetching ${this.url}`);
71
- if (o.status === 200 && t === 0 || o.status === 206) {
72
- let t = o.headers.get("content-range"), n = /\/(\d+)$/.exec(t || "");
73
- n?.[1] && (this._stat = { size: parseInt(n[1], 10) });
74
- let r = o.bytes ? await o.bytes() : new Uint8Array(await o.arrayBuffer());
75
- return r.byteLength <= e ? r : r.subarray(0, e);
76
- }
77
- throw Error(o.status === 200 ? `${this.url} fetch returned status 200, expected 206` : `HTTP ${o.status} fetching ${this.url}`);
78
- }
79
- async readFile(e = {}) {
80
- let t, n;
81
- if (typeof e == "string") t = e, n = {};
82
- else {
83
- t = e.encoding;
84
- let { encoding: r, ...i } = e;
85
- n = i;
86
- }
87
- let { headers: r = {}, signal: i, overrides: a = {} } = n, o = await this.fetch(this.url, {
88
- ...this.baseOverrides,
89
- ...a,
90
- headers: {
91
- ...this.baseOverrides.headers,
92
- ...a.headers,
93
- ...r
94
- },
95
- method: "GET",
96
- redirect: "follow",
97
- mode: "cors",
98
- signal: i
99
- });
100
- if (!o.ok) throw Error(`HTTP ${o.status} fetching ${this.url}`);
101
- if (t === "utf8") return o.text();
102
- if (t) throw Error(`unsupported encoding: ${t}`);
103
- return o.bytes ? o.bytes() : new Uint8Array(await o.arrayBuffer());
104
- }
105
- async stat() {
106
- if (!this._stat && (await this.read(10, 0), !this._stat)) throw Error(`unable to determine size of file at ${this.url}`);
107
- return this._stat;
108
- }
109
- async close() {}
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
- }
128
- }
129
- async readFile(e) {
130
- return (0, a.readFile)(this.filename, e);
131
- }
132
- async stat() {
133
- return (0, a.stat)(this.filename);
134
- }
135
- async close() {}
136
- }, s = /* @__PURE__ */ e({
137
- BlobFile: () => n,
138
- LocalFile: () => o,
139
- RemoteFile: () => i
140
- });
141
- //#endregion
142
- export { o as n, i as r, s as t };