@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,8 +1,8 @@
1
- import { t as e } from "./esm-VvpZ9hsq.js";
2
- import { i as t, r as n } from "./esm-BA6yMcc-.js";
3
- import { n as r, r as i } from "./esm-BdT7qUL-.js";
1
+ import { t as e } from "./esm-C3A-AuRi.js";
2
+ import { n as t, r as n } from "./esm-Dndm-NaA.js";
3
+ import { n as r, r as i } from "./esm-VFJeyk9i.js";
4
4
  import { t as a } from "./AbortablePromiseCache-BTmAcN-t.js";
5
- //#region ../core/node_modules/@gmod/tabix/esm/chunk.js
5
+ //#region ../../node_modules/@gmod/tabix/esm/chunk.js
6
6
  var o = class {
7
7
  constructor(e, t, n, r) {
8
8
  this.minv = e, this.maxv = t, this.bin = n, this._fetchedSize = r;
@@ -58,7 +58,7 @@ function u(e, t = 0) {
58
58
  return ((e[t + 4] | e[t + 5] << 8 | e[t + 6] << 16 | e[t + 7] << 24) >>> 0) * l + (n >>> 0);
59
59
  }
60
60
  //#endregion
61
- //#region ../core/node_modules/@gmod/tabix/esm/util.js
61
+ //#region ../../node_modules/@gmod/tabix/esm/util.js
62
62
  function d(e, t) {
63
63
  return t.minv.blockPosition - e.maxv.blockPosition < 65e3 && t.maxv.blockPosition - e.minv.blockPosition < 5e6;
64
64
  }
@@ -73,7 +73,7 @@ function f(e, t) {
73
73
  return n;
74
74
  }
75
75
  //#endregion
76
- //#region ../core/node_modules/@gmod/tabix/esm/virtualOffset.js
76
+ //#region ../../node_modules/@gmod/tabix/esm/virtualOffset.js
77
77
  var p = class {
78
78
  constructor(e, t) {
79
79
  this.blockPosition = e, this.dataPosition = t;
@@ -89,7 +89,7 @@ function m(e, t = 0) {
89
89
  return new p(e[t + 7] * 1099511627776 + e[t + 6] * 4294967296 + e[t + 5] * 16777216 + e[t + 4] * 65536 + e[t + 3] * 256 + e[t + 2], e[t + 1] << 8 | e[t]);
90
90
  }
91
91
  //#endregion
92
- //#region ../core/node_modules/@gmod/tabix/esm/csi.js
92
+ //#region ../../node_modules/@gmod/tabix/esm/csi.js
93
93
  var h = 21582659, g = 38359875, _ = {
94
94
  0: "generic",
95
95
  1: "SAM",
@@ -133,12 +133,12 @@ var b = class extends s {
133
133
  };
134
134
  }
135
135
  async _parse(e = {}) {
136
- let t = await n(await this.filehandle.readFile(e)), r = new DataView(t.buffer), i;
136
+ let n = await t(await this.filehandle.readFile(e)), r = new DataView(n.buffer), i;
137
137
  if (r.getUint32(0, !0) === h) i = 1;
138
138
  else if (r.getUint32(0, !0) === g) i = 2;
139
139
  else throw Error("Not a CSI file");
140
140
  this.minShift = r.getInt32(4, !0), this.depth = r.getInt32(8, !0), this.maxBinNumber = ((1 << (this.depth + 1) * 3) - 1) / 7;
141
- let a = 2 ** (this.minShift + this.depth * 3), s = r.getInt32(12, !0), c = s && s >= 30 ? this.parseAuxData(t, 16) : {
141
+ let a = 2 ** (this.minShift + this.depth * 3), s = r.getInt32(12, !0), c = s && s >= 30 ? this.parseAuxData(n, 16) : {
142
142
  refIdToName: [],
143
143
  refNameToId: {},
144
144
  metaChar: void 0,
@@ -152,25 +152,25 @@ var b = class extends s {
152
152
  }, l = r.getInt32(16 + s, !0), u, d = 16 + s + 4, f = Array(l).fill(0).map(() => {
153
153
  let e = r.getInt32(d, !0);
154
154
  d += 4;
155
- let n = {}, i;
155
+ let t = {}, i;
156
156
  for (let a = 0; a < e; a += 1) {
157
157
  let e = r.getUint32(d, !0);
158
- if (e > this.maxBinNumber) i = this.parsePseudoBin(t, d + 4), d += 48;
158
+ if (e > this.maxBinNumber) i = this.parsePseudoBin(n, d + 4), d += 48;
159
159
  else {
160
- let i = m(t, d + 4);
160
+ let i = m(n, d + 4);
161
161
  u = this._findFirstData(u, i);
162
162
  let a = r.getInt32(d + 12, !0);
163
163
  d += 16;
164
164
  let s = Array(a);
165
- for (let n = 0; n < a; n += 1) {
166
- let r = m(t, d), i = m(t, d + 8);
167
- d += 16, s[n] = new o(r, i, e);
165
+ for (let t = 0; t < a; t += 1) {
166
+ let r = m(n, d), i = m(n, d + 8);
167
+ d += 16, s[t] = new o(r, i, e);
168
168
  }
169
- n[e] = s;
169
+ t[e] = s;
170
170
  }
171
171
  }
172
172
  return {
173
- binIndex: n,
173
+ binIndex: t,
174
174
  stats: i
175
175
  };
176
176
  });
@@ -227,61 +227,61 @@ var w = class extends s {
227
227
  return r === void 0 || !n.indices[r] ? -1 : n.indices[r].stats?.lineCount ?? -1;
228
228
  }
229
229
  async _parse(e = {}) {
230
- let t = await n(await this.filehandle.readFile(e)), r = new DataView(t.buffer);
231
- if (r.getUint32(0, !0) !== x) throw Error("Not a TBI file");
232
- let i = r.getUint32(4, !0), a = r.getUint32(8, !0), s = a & 65536 ? "zero-based-half-open" : "1-based-closed", c = {
230
+ let n = await this.filehandle.readFile(e), r = await t(n), i = new DataView(r.buffer);
231
+ if (i.getUint32(0, !0) !== x) throw Error("Not a TBI file");
232
+ let a = i.getUint32(4, !0), s = i.getUint32(8, !0), c = s & 65536 ? "zero-based-half-open" : "1-based-closed", l = {
233
233
  0: "generic",
234
234
  1: "SAM",
235
235
  2: "VCF"
236
- }[a & 15];
237
- if (!c) throw Error(`invalid Tabix preset format flags ${a}`);
238
- let l = {
239
- ref: r.getInt32(12, !0),
240
- start: r.getInt32(16, !0),
241
- end: r.getInt32(20, !0)
242
- }, u = r.getInt32(24, !0), d = 2 ** 29, f = u ? String.fromCharCode(u) : void 0, p = r.getInt32(28, !0), h = r.getInt32(32, !0), { refNameToId: g, refIdToName: _ } = this._parseNameBytes(t.slice(36, 36 + h)), v = 36 + h, y;
236
+ }[s & 15];
237
+ if (!l) throw Error(`invalid Tabix preset format flags ${s}`);
238
+ let u = {
239
+ ref: i.getInt32(12, !0),
240
+ start: i.getInt32(16, !0),
241
+ end: i.getInt32(20, !0)
242
+ }, d = i.getInt32(24, !0), f = 2 ** 29, p = d ? String.fromCharCode(d) : void 0, h = i.getInt32(28, !0), g = i.getInt32(32, !0), { refNameToId: _, refIdToName: v } = this._parseNameBytes(r.slice(36, 36 + g)), y = 36 + g, b;
243
243
  return {
244
- indices: Array(i).fill(0).map(() => {
245
- let e = r.getInt32(v, !0);
246
- v += 4;
247
- let n = {}, i;
244
+ indices: Array(a).fill(0).map(() => {
245
+ let e = i.getInt32(y, !0);
246
+ y += 4;
247
+ let t = {}, n;
248
248
  for (let a = 0; a < e; a += 1) {
249
- let e = r.getUint32(v, !0);
250
- if (v += 4, e > 37450) throw Error("tabix index contains too many bins, please use a CSI index");
249
+ let e = i.getUint32(y, !0);
250
+ if (y += 4, e > 37450) throw Error("tabix index contains too many bins, please use a CSI index");
251
251
  if (e === 37450) {
252
- let e = r.getInt32(v, !0);
253
- v += 4, e === 2 && (i = this.parsePseudoBin(t, v)), v += 16 * e;
252
+ let e = i.getInt32(y, !0);
253
+ y += 4, e === 2 && (n = this.parsePseudoBin(r, y)), y += 16 * e;
254
254
  } else {
255
- let i = r.getInt32(v, !0);
256
- v += 4;
257
- let a = Array(i);
258
- for (let n = 0; n < i; n += 1) {
259
- let r = m(t, v), i = m(t, v + 8);
260
- v += 16, y = this._findFirstData(y, r), a[n] = new o(r, i, e);
255
+ let n = i.getInt32(y, !0);
256
+ y += 4;
257
+ let a = Array(n);
258
+ for (let t = 0; t < n; t += 1) {
259
+ let n = m(r, y), i = m(r, y + 8);
260
+ y += 16, b = this._findFirstData(b, n), a[t] = new o(n, i, e);
261
261
  }
262
- n[e] = a;
262
+ t[e] = a;
263
263
  }
264
264
  }
265
- let a = r.getInt32(v, !0);
266
- v += 4;
265
+ let a = i.getInt32(y, !0);
266
+ y += 4;
267
267
  let s = Array(a);
268
- for (let e = 0; e < a; e += 1) s[e] = m(t, v), v += 8, y = this._findFirstData(y, s[e]);
268
+ for (let e = 0; e < a; e += 1) s[e] = m(r, y), y += 8, b = this._findFirstData(b, s[e]);
269
269
  return {
270
- binIndex: n,
270
+ binIndex: t,
271
271
  linearIndex: s,
272
- stats: i
272
+ stats: n
273
273
  };
274
274
  }),
275
- metaChar: f,
275
+ metaChar: p,
276
276
  maxBinNumber: 37449,
277
- maxRefLength: d,
278
- skipLines: p,
279
- firstDataLine: y,
280
- columnNumbers: l,
281
- coordinateType: s,
282
- format: c,
283
- refIdToName: _,
284
- refNameToId: g,
277
+ maxRefLength: f,
278
+ skipLines: h,
279
+ firstDataLine: b,
280
+ columnNumbers: u,
281
+ coordinateType: c,
282
+ format: l,
283
+ refIdToName: v,
284
+ refNameToId: _,
285
285
  maxBlockSize: 65536
286
286
  };
287
287
  }
@@ -387,17 +387,17 @@ var w = class extends s {
387
387
  return this.index.getMetadata(e);
388
388
  }
389
389
  async getHeaderBuffer(e = {}) {
390
- let { firstDataLine: t, metaChar: r, maxBlockSize: i } = await this.getMetadata(e), a = (t?.blockPosition || 0) + i, o = await n(await this.filehandle.read(a, 0, e));
390
+ let { firstDataLine: n, metaChar: r, maxBlockSize: i } = await this.getMetadata(e), a = (n?.blockPosition || 0) + i, o = await this.filehandle.read(a, 0, e), s = await t(o);
391
391
  if (r) {
392
392
  let e = -1, t = r.charCodeAt(0);
393
- for (let n = 0, r = o.length; n < r; n++) {
394
- let r = o[n];
393
+ for (let n = 0, r = s.length; n < r; n++) {
394
+ let r = s[n];
395
395
  if (n === e + 1 && r !== t) break;
396
396
  r === 10 && (e = n);
397
397
  }
398
- return o.subarray(0, e + 1);
398
+ return s.subarray(0, e + 1);
399
399
  }
400
- return o;
400
+ return s;
401
401
  }
402
402
  async getHeader(e = {}) {
403
403
  let t = new TextDecoder("utf8"), n = await this.getHeaderBuffer(e);
@@ -453,8 +453,9 @@ var w = class extends s {
453
453
  async lineCount(e, t = {}) {
454
454
  return this.index.lineCount(e, t);
455
455
  }
456
- async readChunk(e, n = {}) {
457
- return t(await this.filehandle.read(e.fetchedSize(), e.minv.blockPosition, n), e, this.cache);
456
+ async readChunk(e, t = {}) {
457
+ let r = await this.filehandle.read(e.fetchedSize(), e.minv.blockPosition, t);
458
+ return n(r, e, this.cache);
458
459
  }
459
460
  };
460
461
  //#endregion