@genome-spy/app 0.76.0 → 0.77.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.
- package/LICENSE +21 -0
- package/dist/{agentApi-CzdacisO.js → agentApi-ClsLtELB.js} +7006 -5238
- package/dist/agentApi.es.js +3127 -1442
- package/dist/agentShared.es.js +20 -20
- package/dist/blosc-DL1kZHdE.js +692 -0
- package/dist/chunk-INHXZS53-Dx2aFznx.js +13 -0
- package/dist/esm-CHVYSGF2.js +1084 -0
- package/dist/esm-C_XrKaCY.js +137 -0
- package/dist/{esm-Cr7pLUfG.js → esm-CqrZuhTF.js} +1 -1
- package/dist/{esm-BWsx1OJ2.js → esm-Cz4iCfzF.js} +1 -1
- package/dist/esm-D2-C5ZzN.js +1084 -0
- package/dist/{esm-CdIesJ1z.js → esm-Dfo2M18m.js} +1 -1
- package/dist/{esm-BH0wx5y-.js → esm-Q6nrd9vJ.js} +1 -1
- package/dist/{esm-BLfLaJtE.js → esm-aOLxLL7A.js} +1 -1
- package/dist/esm-id9DWBZW.js +137 -0
- package/dist/{esm-DHOMWRoL.js → esm-kXhrPIYy.js} +1 -1
- package/dist/index.es.js +3768 -4997
- package/dist/index.js +420 -357
- package/dist/lz4-Csz5aoFA.js +626 -0
- package/dist/schema.json +44 -0
- package/dist/{viewUtils-C5htqZCm.js → viewUtils-3_xHIxmy.js} +2316 -2171
- package/dist/zstd-dJuUp1fl.js +583 -0
- package/package.json +4 -4
- package/src/agentApi/index.d.ts +24 -0
- package/src/sampleView/sampleViewTypes.d.ts +2 -0
- package/src/sampleView/state/payloadTypes.d.ts +84 -0
- package/src/sampleView/types.d.ts +3 -0
- package/src/spec/sampleView.d.ts +58 -0
- package/dist/esm-BY4T8YoD.js +0 -142
- package/dist/esm-DJUb6vy0.js +0 -1015
- package/dist/esm-DRZ5LLNH.js +0 -142
- package/dist/esm-PDPkTR1_.js +0 -1015
- /package/dist/{parquetRead-BuEN-6yG.js → parquetRead-C33mgLEo.js} +0 -0
package/dist/esm-DRZ5LLNH.js
DELETED
|
@@ -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 };
|