@genome-spy/app 0.89.0 → 0.90.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 (57) hide show
  1. package/dist/{agentApi-BUcXm-JC.js → agentApi-Z65dw-sD.js} +2808 -2638
  2. package/dist/agentApi.es.js +1607 -1570
  3. package/dist/agentShared.es.js +737 -678
  4. package/dist/{canvas2d-CGuVGvQk.js → canvas2d-DiPQvNtZ.js} +11 -9
  5. package/dist/{canvas2d-DgF0kstG.js → canvas2d-t_N10CeW.js} +24 -22
  6. package/dist/{clipOptions-DBJX_W31.js → clipOptions-B5PibDq3.js} +890 -900
  7. package/dist/{clipOptions-8BPf0WMZ.js → clipOptions-Cba4I0AO.js} +544 -554
  8. package/dist/{componentStyles-FsNmIb22.js → componentStyles-DGtQXvwc.js} +17 -15
  9. package/dist/{debug-BEWbYuZD.js → debug-CVAlrcZt.js} +2 -2
  10. package/dist/{debug-DQj_7mFm.js → debug-DP4WzTNo.js} +2 -2
  11. package/dist/dialog.es.js +4 -3
  12. package/dist/esm-BiqrFjMh.js +443 -0
  13. package/dist/{esm-lwYrRdbg.js → esm-Bv7Frz7C.js} +142 -79
  14. package/dist/{esm-VvpZ9hsq.js → esm-C3A-AuRi.js} +1 -1
  15. package/dist/esm-CvpR1OcU.js +322 -0
  16. package/dist/esm-DFHFX1sH.js +1526 -0
  17. package/dist/esm-Dndm-NaA.js +1193 -0
  18. package/dist/{esm-CcDLRSvC.js → esm-DtNElqRr.js} +64 -63
  19. package/dist/esm-L53qjcYH.js +1155 -0
  20. package/dist/esm-VFJeyk9i.js +249 -0
  21. package/dist/{esm-BdLYkz-m.js → esm-_xCtpDwm.js} +1 -1
  22. package/dist/index.es.js +4203 -3910
  23. package/dist/index.js +900 -455
  24. package/dist/{indexer-D8Bgkkb8.js → indexer-DbFTKGlm.js} +1 -1
  25. package/dist/{indexer-Cdt_U05k.js → indexer-En7gpvLN.js} +1 -1
  26. package/dist/{lit-ByuJ0FJ4.js → lit-CoXp9NFX.js} +12 -10
  27. package/dist/{order-DIxlclRN.js → order-BkYCnwD7.js} +36 -30
  28. package/dist/{order-BPOzLe80.js → order-R043xTpC.js} +47 -41
  29. package/dist/{parquetRead-Cs2xRrvz.js → parquetRead-0hFIa3Cc.js} +532 -350
  30. package/dist/{rasterExport-Bl6w9t3J.js → rasterExport-C_FcNBkC.js} +8 -7
  31. package/dist/{rasterExport-DRvNAH-r.js → rasterExport-Z7gs5346.js} +8 -7
  32. package/dist/{rasterization-D0tOoKu_.js → rasterization-_-9JmSas.js} +3 -2
  33. package/dist/{renderCanvas2D-LdEYFnRo.js → renderCanvas2D-DK1c9TFK.js} +10 -10
  34. package/dist/{renderCanvas2D-Ct95auF3.js → renderCanvas2D-IM-A9DYG.js} +16 -16
  35. package/dist/schema.json +11 -0
  36. package/dist/{src-DjOlFqSn.js → src-DJtvThVC.js} +3 -5
  37. package/dist/style.css +1 -1
  38. package/dist/{svg-pkTPD4bv.js → svg-DW3tfUmm.js} +233 -232
  39. package/dist/{svg-Ag36-h_I.js → svg-PabUdcDi.js} +233 -232
  40. package/dist/{svgRasterizer-DrtJ9nLk.js → svgRasterizer-B6YtWLJs.js} +2 -2
  41. package/dist/{svgRasterizer-CksK4QTB.js → svgRasterizer-BEVDyyS3.js} +2 -2
  42. package/dist/{vega-scale-BWBFykuI.js → vega-scale-Byaw1K8O.js} +837 -726
  43. package/dist/{vega-scale-BJaDSHBJ.js → vega-scale-Ctz_wa3z.js} +942 -834
  44. package/dist/{viewIdentityRegistry-BvCJajXG.js → viewIdentityRegistry-BW415b3o.js} +1 -1
  45. package/dist/{viewIdentityRegistry-B-snqI3y.js → viewIdentityRegistry-_F0E7nkA.js} +1 -1
  46. package/dist/{viewSelectors-BlvzvG-z.js → viewSelectors-DYz-PhTO.js} +245 -243
  47. package/dist/{viewSelectors-C5q3qBiR.js → viewSelectors-KtD-QSN0.js} +106 -104
  48. package/dist/{viewUtils-C3vBtSvE.js → viewUtils-BZGPseMx.js} +1833 -1677
  49. package/dist/{webgl-CZX2pe5v.js → webgl-BKSGqHaz.js} +964 -951
  50. package/dist/{webgl-CexXSw_I.js → webgl-tdKf9SlZ.js} +239 -226
  51. package/package.json +5 -5
  52. package/dist/esm-80V4xF_D.js +0 -1098
  53. package/dist/esm-BA6yMcc-.js +0 -1222
  54. package/dist/esm-BdT7qUL-.js +0 -157
  55. package/dist/esm-CfYZhLHN.js +0 -1367
  56. package/dist/esm-D-iG_TIX.js +0 -441
  57. package/dist/esm-JAiZmFIS.js +0 -128
@@ -1,157 +0,0 @@
1
- import { n as e, t } from "./rolldown-runtime-DF993M8W.js";
2
- //#region ../../node_modules/generic-filehandle2/esm/util.js
3
- async function n(e) {
4
- return e.bytes ? e.bytes() : new Uint8Array(await e.arrayBuffer());
5
- }
6
- var r = 50;
7
- async function i(e, t) {
8
- let i = e.headers.get("content-length"), a = i ? parseInt(i, 10) : void 0, o = e.body;
9
- if (!o || a === void 0) {
10
- let r = await n(e);
11
- return t(r.byteLength, a ?? r.byteLength), r;
12
- }
13
- let s = o.getReader(), c = new Uint8Array(a), l = 0, u = 0;
14
- t(0, a);
15
- for (let e = await s.read(); !e.done; e = await s.read()) {
16
- if (l + e.value.byteLength > c.length) {
17
- let t = new Uint8Array(Math.max(l + e.value.byteLength, c.length * 2));
18
- t.set(c.subarray(0, l)), c = t;
19
- }
20
- c.set(e.value, l), l += e.value.byteLength;
21
- let n = Date.now();
22
- n - u >= r && (u = n, t(l, a));
23
- }
24
- return t(l, a), l === c.length ? c : c.subarray(0, l);
25
- }
26
- //#endregion
27
- //#region ../../node_modules/generic-filehandle2/esm/blobFile.js
28
- var a = class {
29
- blob;
30
- constructor(e) {
31
- this.blob = e;
32
- }
33
- async read(e, t = 0) {
34
- return e === 0 ? /* @__PURE__ */ new Uint8Array() : n(this.blob.slice(t, t + e));
35
- }
36
- async readFile(e) {
37
- let t = typeof e == "string" ? e : e?.encoding;
38
- if (t === "utf8") return this.blob.text();
39
- if (t) throw Error(`unsupported encoding: ${t}`);
40
- return n(this.blob);
41
- }
42
- stat() {
43
- return Promise.resolve({ size: this.blob.size });
44
- }
45
- close() {
46
- return Promise.resolve();
47
- }
48
- };
49
- //#endregion
50
- //#region ../../node_modules/generic-filehandle2/esm/remoteFile.js
51
- function o(e) {
52
- return (typeof e == "object" && e && "message" in e && typeof e.message == "string" ? e.message : `${e}`).replace(/\.$/, "");
53
- }
54
- var s = class {
55
- url;
56
- _stat;
57
- fetchImplementation;
58
- baseHeaders;
59
- baseOverrides;
60
- constructor(e, t = {}) {
61
- this.url = e, this.baseHeaders = t.headers ?? {}, this.baseOverrides = t.overrides ?? {}, this.fetchImplementation = t.fetch ?? globalThis.fetch.bind(globalThis);
62
- }
63
- buildRequest(e, t) {
64
- return {
65
- ...this.baseOverrides,
66
- ...e.overrides,
67
- headers: {
68
- ...this.baseHeaders,
69
- ...e.headers,
70
- ...t
71
- },
72
- method: "GET",
73
- redirect: "follow",
74
- mode: "cors",
75
- signal: e.signal
76
- };
77
- }
78
- async fetch(e, t) {
79
- let n = (t) => Error(`${o(t)} fetching ${e}`, { cause: t }), r;
80
- try {
81
- r = await this.fetchImplementation(e, t);
82
- } catch (i) {
83
- if (`${i}`.includes("Failed to fetch")) {
84
- console.warn(`generic-filehandle: refetching ${e} to attempt to work around chrome CORS header caching bug`);
85
- try {
86
- r = await this.fetchImplementation(e, {
87
- ...t,
88
- cache: "reload"
89
- });
90
- } catch (e) {
91
- throw n(e);
92
- }
93
- } else throw n(i);
94
- }
95
- return r;
96
- }
97
- async read(e, t, r = {}) {
98
- if (e === 0) return /* @__PURE__ */ new Uint8Array();
99
- if (Number.isNaN(e) || Number.isNaN(t)) throw TypeError(`read() called with NaN length or position (length=${e}, position=${t}). The index file may be corrupt.`);
100
- let a = await this.fetch(this.url, this.buildRequest(r, { range: `bytes=${t}-${t + e - 1}` }));
101
- if (a.status === 416) return /* @__PURE__ */ new Uint8Array();
102
- if (!a.ok) throw Error(`HTTP ${a.status} fetching ${this.url}`);
103
- if (a.status === 200 && t === 0 || a.status === 206) {
104
- let t = a.headers.get("content-range"), o = /\/(\d+)$/.exec(t ?? "");
105
- o?.[1] && (this._stat = { size: parseInt(o[1], 10) });
106
- let s = r.onProgress ? await i(a, r.onProgress) : await n(a);
107
- return !this._stat && a.status === 200 && (this._stat = { size: s.byteLength }), s.byteLength <= e ? s : s.subarray(0, e);
108
- }
109
- throw Error(a.status === 200 ? `${this.url} fetch returned status 200, expected 206` : `HTTP ${a.status} fetching ${this.url}`);
110
- }
111
- async readFile(e = {}) {
112
- let t = typeof e == "string" ? e : e.encoding, r = typeof e == "string" ? {} : e, a = await this.fetch(this.url, this.buildRequest(r));
113
- if (!a.ok) throw Error(`HTTP ${a.status} fetching ${this.url}`);
114
- if (t === "utf8") return a.text();
115
- if (t) throw Error(`unsupported encoding: ${t}`);
116
- return r.onProgress ? i(a, r.onProgress) : n(a);
117
- }
118
- async stat() {
119
- return this._stat || await this.read(10, 0), this._stat ?? { size: 0 };
120
- }
121
- close() {
122
- return Promise.resolve();
123
- }
124
- }, c = (/* @__PURE__ */ t(((e, t) => {
125
- t.exports = {};
126
- })))(), l = class {
127
- filename;
128
- constructor(e) {
129
- this.filename = e;
130
- }
131
- async read(e, t = 0) {
132
- if (e === 0) return /* @__PURE__ */ new Uint8Array();
133
- let n = new Uint8Array(e), r;
134
- try {
135
- r = await (0, c.open)(this.filename, "r");
136
- let i = await r.read(n, 0, e, t);
137
- return i.buffer.subarray(0, i.bytesRead);
138
- } finally {
139
- if (r) try {
140
- await r.close();
141
- } catch {}
142
- }
143
- }
144
- async readFile(e) {
145
- return (0, c.readFile)(this.filename, e);
146
- }
147
- async stat() {
148
- return (0, c.stat)(this.filename);
149
- }
150
- async close() {}
151
- }, u = /* @__PURE__ */ e({
152
- BlobFile: () => a,
153
- LocalFile: () => l,
154
- RemoteFile: () => s
155
- });
156
- //#endregion
157
- export { l as n, s as r, u as t };