@genome-spy/app 1.2.0 → 1.3.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 (87) hide show
  1. package/dist/{SharedReadCache-Ey5QIiPM.js → SharedReadCache-9sT2aIxW.js} +6 -12
  2. package/dist/__vite-browser-external-Dgu_Ldik.js +7 -0
  3. package/dist/{agentApi-8hMSlqAQ.js → agentApi-BclFF9zB.js} +7130 -7509
  4. package/dist/agentApi.es.js +4344 -4015
  5. package/dist/agentShared.es.js +431 -458
  6. package/dist/arrayUtils-Bm7QnzhN.js +1306 -0
  7. package/dist/{blosc-JROzDOnd.js → blosc-C-W97QwH.js} +3 -3
  8. package/dist/{canvas2d-Bd8H8MMo.js → canvas2d-8MSf70d4.js} +78 -86
  9. package/dist/{canvas2d-D6VYooRf.js → canvas2d-BwGNI_Rx.js} +83 -91
  10. package/dist/clipOptions-SrrxeAEU.js +4316 -0
  11. package/dist/clipOptions-clBEbkjv.js +4326 -0
  12. package/dist/{layoutResult-D50MSHXR.js → color-jETn8xK_.js} +29 -10
  13. package/dist/color-uTRRsy8i.js +116 -0
  14. package/dist/{componentStyles-DGtQXvwc.js → componentStyles-C7FbjS-a.js} +1 -1
  15. package/dist/{containerView-aEVmYmkA.js → containerView-BItRtKqu.js} +5 -1
  16. package/dist/{containerView-CRJSc4bM.js → containerView-CWa6ZIJW.js} +5 -1
  17. package/dist/{debug-CQ0agCrd.js → debug-23s-jja_.js} +3 -2
  18. package/dist/{debug-DkIMiGdW.js → debug-CWRxvAss.js} +2 -3
  19. package/dist/dialog.es.js +1 -1
  20. package/dist/dist-CmY6iewb.js +1501 -0
  21. package/dist/dist-D6xbz5Ks.js +1501 -0
  22. package/dist/{esm-CjkeZi__.js → esm-BFwBAnbO.js} +25 -25
  23. package/dist/esm-BUkWqSr2.js +299 -0
  24. package/dist/{esm-C-6g-SkZ.js → esm-C0xXMLsR.js} +37 -41
  25. package/dist/{esm-CJeszW-t.js → esm-C2xhhXs0.js} +7 -7
  26. package/dist/esm-C6erfjPM.js +252 -0
  27. package/dist/{esm-DFHFX1sH.js → esm-CVjC7qA4.js} +34 -38
  28. package/dist/esm-CqY5ezGz.js +1249 -0
  29. package/dist/esm-DfMIJ_N2.js +1522 -0
  30. package/dist/esm-Dls41IbZ.js +787 -0
  31. package/dist/{esm-Bv7Frz7C.js → esm-DzQDfrsZ.js} +7 -10
  32. package/dist/esm-aGLCvYRP.js +238 -0
  33. package/dist/{esm-VFJeyk9i.js → esm-nzwgJFGz.js} +40 -36
  34. package/dist/figWigMetadataSourceAdapter-8Kf_vZRf.js +36 -0
  35. package/dist/figWigMetadataSourceAdapter-DdDMZpYO.js +36 -0
  36. package/dist/flowNode-BSjy0Wz3.js +1306 -0
  37. package/dist/flowOutput-D5qpxWe0.js +183 -0
  38. package/dist/index.es.js +4756 -5528
  39. package/dist/index.js +707 -547
  40. package/dist/inflate-BdC5KvHn.js +886 -0
  41. package/dist/{lz4-CUYSbVey.js → lz4-BLPgBOlE.js} +1 -1
  42. package/dist/{markUtils-CvLDz744.js → markUtils-RaatLEa-.js} +9 -6
  43. package/dist/metadataUtils-DxEPe0vj.js +879 -0
  44. package/dist/{order-BVvkjDRT.js → order-BnKzKjt4.js} +383 -347
  45. package/dist/{order-DmMoZsi1.js → order-BpJnq_nV.js} +375 -339
  46. package/dist/{parquetRead-0hFIa3Cc.js → parquetRead-D-yY8njE.js} +3 -11
  47. package/dist/{rasterExport-jeRVq6kY.js → rasterExport-B-WrX1pa.js} +5 -5
  48. package/dist/{rasterExport-DxvowWjH.js → rasterExport-C_vx4Jwd.js} +3 -3
  49. package/dist/{rasterization-DFj3Cvx4.js → rasterization-QktH8Sn2.js} +1 -1
  50. package/dist/{rectangle-Dl4Dy0hS.js → rectangle-BAdoDPXu.js} +34 -31
  51. package/dist/{renderCanvas2D-Bfm1NHFu.js → renderCanvas2D-CsRO78Pq.js} +88 -87
  52. package/dist/{renderCanvas2D-DVjhp834.js → renderCanvas2D-Y7pkRzbC.js} +93 -92
  53. package/dist/{rolldown-runtime-DF993M8W.js → rolldown-runtime-DeIk2rA4.js} +1 -1
  54. package/dist/{indexer-DOYMJ-Md.js → scaleNull-CVzag4z8.js} +2 -12
  55. package/dist/{indexer-DDC0YRGn.js → scaleNull-Pbz7QGnl.js} +2 -12
  56. package/dist/{scalePosition-0aeqp_kz.js → scalePosition-CRXa0rCC.js} +1 -1
  57. package/dist/schema.json +3801 -816
  58. package/dist/{svg-Bm2zxBPu.js → svg-BBMtLgtM.js} +369 -285
  59. package/dist/{svg-CkfuhONt.js → svg-JjWL6U-T.js} +371 -287
  60. package/dist/{svgRasterizer-DoRQEqFA.js → svgRasterizer-6OcftuoI.js} +2 -2
  61. package/dist/{svgRasterizer-raDDhBF-.js → svgRasterizer-DkNRaCPs.js} +4 -4
  62. package/dist/tableMetadataSourceAdapter-CUNwLsdi.js +291 -0
  63. package/dist/tableMetadataSourceAdapter-DQrEXCo6.js +1283 -0
  64. package/dist/url-DeOdSRrv.js +183 -0
  65. package/dist/{viewError-BkJeVYXA.js → viewError-B0TMfOpB.js} +1 -1
  66. package/dist/{viewError-IYqyluc7.js → viewError-D9aO90cI.js} +1 -1
  67. package/dist/{viewSelectors-7LyasQN-.js → viewSelectors-DkFvo33d.js} +832 -734
  68. package/dist/{viewSelectors-CbmkSQRT.js → viewSelectors-lM93fHAq.js} +900 -802
  69. package/dist/{viewUtils-DuddMNNw.js → viewUtils-0SJOewM6.js} +1861 -2459
  70. package/dist/webgl-CXIO3OQz.js +5782 -0
  71. package/dist/webgl-Pdvfhio5.js +5783 -0
  72. package/package.json +7 -5
  73. package/src/agentApi/index.d.ts +3 -2
  74. package/src/agentShared/index.d.ts +2 -0
  75. package/src/appTypes.d.ts +1 -6
  76. package/src/embedTypes.d.ts +36 -1
  77. package/src/index.d.ts +6 -0
  78. package/src/spec/sampleView.d.ts +68 -13
  79. package/src/state/paramProvenanceTypes.d.ts +25 -2
  80. package/src/state.d.ts +14 -52
  81. package/dist/clipOptions-DElJ8dTZ.js +0 -3097
  82. package/dist/clipOptions-D_wBNhzs.js +0 -3087
  83. package/dist/esm-Dndm-NaA.js +0 -1193
  84. package/dist/vega-scale-BoGHANI7.js +0 -2446
  85. package/dist/vega-scale-o9TRyzYH.js +0 -2443
  86. package/dist/webgl-CQfvgnxo.js +0 -5633
  87. package/dist/webgl-DVYkXtiZ.js +0 -5632
@@ -0,0 +1,183 @@
1
+ import { c as e, t } from "./flowNode-BSjy0Wz3.js";
2
+ //#region ../../node_modules/flatqueue/index.js
3
+ var n = class {
4
+ constructor(e = Infinity, t = Float64Array, n = Uint32Array) {
5
+ let r = e !== Infinity;
6
+ this.ids = r ? new n(e) : [], this.values = r ? new t(e) : [], this.capacity = e, this.length = 0;
7
+ }
8
+ clear() {
9
+ this.length = 0;
10
+ }
11
+ push(e, t) {
12
+ if (this.length === this.capacity) throw RangeError("Queue is at capacity.");
13
+ let n = this.length++;
14
+ for (; n > 0;) {
15
+ let e = n - 1 >> 1, r = this.values[e];
16
+ if (t >= r) break;
17
+ this.ids[n] = this.ids[e], this.values[n] = r, n = e;
18
+ }
19
+ this.ids[n] = e, this.values[n] = t;
20
+ }
21
+ pop() {
22
+ if (this.length === 0) return;
23
+ let e = this.ids, t = this.values, n = e[0], r = --this.length;
24
+ if (r > 0) {
25
+ let n = e[r], i = t[r], a = 0, o = r >> 1;
26
+ for (; a < o;) {
27
+ let n = (a << 1) + 1, o = n + 1, s = n + (+(o < r) & t[o] < t[n]);
28
+ if (t[s] >= i) break;
29
+ e[a] = e[s], t[a] = t[s], a = s;
30
+ }
31
+ e[a] = n, t[a] = i;
32
+ }
33
+ return n;
34
+ }
35
+ peek() {
36
+ return this.length > 0 ? this.ids[0] : void 0;
37
+ }
38
+ peekValue() {
39
+ return this.length > 0 ? this.values[0] : void 0;
40
+ }
41
+ shrink() {
42
+ Array.isArray(this.ids) && (this.ids.length = this.length), Array.isArray(this.values) && (this.values.length = this.length);
43
+ }
44
+ };
45
+ //#endregion
46
+ //#region ../core/src/utils/deepEqual.js
47
+ function r(e, t) {
48
+ if (Object.is(e, t)) return !0;
49
+ if (Array.isArray(e) || Array.isArray(t)) {
50
+ if (!Array.isArray(e) || !Array.isArray(t) || e.length !== t.length) return !1;
51
+ for (let n = 0; n < e.length; n++) if (!r(e[n], t[n])) return !1;
52
+ return !0;
53
+ }
54
+ if (!i(e) || !i(t)) return !1;
55
+ let n = Object.keys(e), a = Object.keys(t);
56
+ if (n.length !== a.length) return !1;
57
+ for (let i of n) if (!Object.prototype.hasOwnProperty.call(t, i) || !r(e[i], t[i])) return !1;
58
+ return !0;
59
+ }
60
+ function i(e) {
61
+ if (typeof e != "object" || !e || Array.isArray(e)) return !1;
62
+ let t = Object.getPrototypeOf(e);
63
+ return t === Object.prototype || t === null;
64
+ }
65
+ //#endregion
66
+ //#region ../core/src/data/dataReadiness.js
67
+ function* a(e) {
68
+ let t = [e], n = /* @__PURE__ */ new Set();
69
+ for (; t.length;) {
70
+ let e = t.pop();
71
+ n.has(e) || (n.add(e), yield e, e.parent && t.push(e.parent), t.push(...e.dataDependencies));
72
+ }
73
+ }
74
+ function o(e, t) {
75
+ for (let n of a(e)) if (!n.isDataReady() || t && "isDataReadyForDomain" in n && !n.isDataReadyForDomain(t)) return !1;
76
+ return !0;
77
+ }
78
+ //#endregion
79
+ //#region ../core/src/data/sources/dataSource.js
80
+ var s = class extends t {
81
+ resultSuccessful = !1;
82
+ view;
83
+ origin;
84
+ constructor(e) {
85
+ super(), this.view = e;
86
+ }
87
+ get identifier() {}
88
+ get shareKey() {
89
+ return this.identifier;
90
+ }
91
+ setLoadingStatus(e, t, n, r) {
92
+ this.view.context.dataFlow.loadingStatusRegistry.setSource(this, e, t, n, r);
93
+ }
94
+ get paramRuntime() {
95
+ return this.view.paramRuntime;
96
+ }
97
+ handle(e) {
98
+ throw Error("Source does not handle incoming data!");
99
+ }
100
+ async load() {}
101
+ complete(e = !0) {
102
+ let t = this.view?.paramRuntime;
103
+ this.resultSuccessful = !1, l(this, () => {
104
+ super.complete(), this.resultSuccessful = e;
105
+ }, t, e);
106
+ }
107
+ reset() {
108
+ this.resultSuccessful = !1, super.reset();
109
+ }
110
+ activate() {}
111
+ get replaySource() {
112
+ return this;
113
+ }
114
+ get replaysSynchronously() {
115
+ return "loadSynchronously" in this;
116
+ }
117
+ repropagate() {
118
+ this.activate(), "loadSynchronously" in this && typeof this.loadSynchronously == "function" ? this.loadSynchronously() : this.load();
119
+ }
120
+ }, c = class {
121
+ owner;
122
+ producerView;
123
+ producer;
124
+ candidate;
125
+ constructor(e) {
126
+ this.value = e;
127
+ }
128
+ publish() {
129
+ if (!(this.candidate === void 0 || this.producer.disposed)) {
130
+ for (let e of a(this.producer)) if (!e.isDataReady() || e instanceof s && !e.resultSuccessful) return;
131
+ e(this.value.get(), this.candidate) || this.value.set(this.candidate);
132
+ }
133
+ }
134
+ };
135
+ function l(e, t, n, r = !0) {
136
+ let i = [];
137
+ e.visit((e) => {
138
+ e.output && i.push(e.output);
139
+ });
140
+ let a = () => {
141
+ try {
142
+ let e = t();
143
+ if (r) for (let e of i) e.publish();
144
+ return e;
145
+ } finally {
146
+ for (let e of i) e.candidate = void 0;
147
+ }
148
+ };
149
+ return n ? n.runInTransaction(a) : a();
150
+ }
151
+ //#endregion
152
+ //#region ../core/src/utils/url.js
153
+ var u = /^([A-Za-z]+:)?\/\//;
154
+ function d(e, t) {
155
+ if (t && u.test(t)) return t;
156
+ let n = typeof e == "function" ? e() : e;
157
+ if (!n) return t;
158
+ if (!t) return n;
159
+ if (/[#?]/.test(n)) throw Error(`Cannot append to a url with query or hash. Append: ${t}, base: ${n}`);
160
+ return p(n) + t;
161
+ }
162
+ function f(e, t, n = m()) {
163
+ let r = typeof e == "function" ? e() : e;
164
+ if (!t) return r;
165
+ try {
166
+ if (r) {
167
+ let e = n ? new URL(r, n).href : new URL(r).href;
168
+ return new URL(t, e).href;
169
+ }
170
+ if (n) return new URL(t, n).href;
171
+ } catch {}
172
+ return d(r, t);
173
+ }
174
+ function p(e) {
175
+ let t = e.replace(/[^/]*$/, "");
176
+ return t === "" ? void 0 : t.endsWith("://") ? e + "/" : t;
177
+ }
178
+ function m() {
179
+ if (typeof document < "u" && document.baseURI) return document.baseURI;
180
+ if (typeof window < "u" && window.location?.href) return window.location.href;
181
+ }
182
+ //#endregion
183
+ export { l as a, a as c, c as i, r as l, p as n, s as o, f as r, o as s, d as t, n as u };
@@ -1,4 +1,4 @@
1
- import { Xt as e } from "./clipOptions-DElJ8dTZ.js";
1
+ import { jt as e } from "./clipOptions-SrrxeAEU.js";
2
2
  //#region ../core/src/utils/propertyCacher.js
3
3
  var t = Symbol("cacheMap");
4
4
  function n(e, t, n) {
@@ -1,4 +1,4 @@
1
- import { At as e } from "./clipOptions-D_wBNhzs.js";
1
+ import { On as e } from "./clipOptions-clBEbkjv.js";
2
2
  //#region ../core/src/utils/propertyCacher.js
3
3
  var t = Symbol("cacheMap");
4
4
  function n(e, t, n) {