@genome-spy/app 1.1.1 → 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 (96) 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-sPuuT0KS.js → agentApi-BclFF9zB.js} +9981 -8914
  4. package/dist/agentApi.es.js +6783 -5135
  5. package/dist/agentShared.es.js +433 -460
  6. package/dist/arrayUtils-Bm7QnzhN.js +1306 -0
  7. package/dist/{blosc-JROzDOnd.js → blosc-C-W97QwH.js} +3 -3
  8. package/dist/{canvas2d-iDK4BC5j.js → canvas2d-8MSf70d4.js} +141 -134
  9. package/dist/{canvas2d-MXaFeZnP.js → canvas2d-BwGNI_Rx.js} +147 -141
  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/{viewIdentityRegistry-BIYd4TE0.js → containerView-BItRtKqu.js} +28 -31
  16. package/dist/{viewIdentityRegistry-BDKkEjXl.js → containerView-CWa6ZIJW.js} +28 -31
  17. package/dist/{debug-DbigmdrK.js → debug-23s-jja_.js} +10 -9
  18. package/dist/{debug-BlqDxTw3.js → debug-CWRxvAss.js} +9 -10
  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 +4766 -5522
  39. package/dist/index.js +1089 -685
  40. package/dist/inflate-BdC5KvHn.js +886 -0
  41. package/dist/{lz4-CUYSbVey.js → lz4-BLPgBOlE.js} +1 -1
  42. package/dist/markUtils-RaatLEa-.js +78 -0
  43. package/dist/{metadataChannels-DV62inJh.js → metadataChannels-DLSmx7kU.js} +6 -3
  44. package/dist/metadataUtils-DxEPe0vj.js +879 -0
  45. package/dist/order-BnKzKjt4.js +1151 -0
  46. package/dist/order-BpJnq_nV.js +1150 -0
  47. package/dist/{parquetRead-0hFIa3Cc.js → parquetRead-D-yY8njE.js} +3 -11
  48. package/dist/{rasterExport-B62RmAK1.js → rasterExport-B-WrX1pa.js} +5 -5
  49. package/dist/{rasterExport-DQH3hVg_.js → rasterExport-C_vx4Jwd.js} +4 -4
  50. package/dist/{rasterization-B05bDo5e.js → rasterization-QktH8Sn2.js} +26 -19
  51. package/dist/rectangle-BAdoDPXu.js +194 -0
  52. package/dist/{rectangle-DE98gIxF.js → rectangle-DZTR6NFQ.js} +10 -1
  53. package/dist/renderCanvas2D-CsRO78Pq.js +291 -0
  54. package/dist/{renderCanvas2D-Bdv-B4wj.js → renderCanvas2D-Y7pkRzbC.js} +98 -92
  55. package/dist/{rolldown-runtime-DF993M8W.js → rolldown-runtime-DeIk2rA4.js} +1 -1
  56. package/dist/{indexer-DbFTKGlm.js → scaleNull-CVzag4z8.js} +2 -12
  57. package/dist/{indexer-En7gpvLN.js → scaleNull-Pbz7QGnl.js} +2 -12
  58. package/dist/{scalePosition-ByvlXaML.js → scalePosition-CRXa0rCC.js} +8 -1
  59. package/dist/schema.json +33403 -16929
  60. package/dist/style.css +1 -1
  61. package/dist/{svg-N3tj05-e.js → svg-BBMtLgtM.js} +445 -362
  62. package/dist/{svg-DHsq1RpV.js → svg-JjWL6U-T.js} +464 -381
  63. package/dist/{svgRasterizer-CYVDlt5z.js → svgRasterizer-6OcftuoI.js} +3 -3
  64. package/dist/{svgRasterizer-CvCBlxLj.js → svgRasterizer-DkNRaCPs.js} +4 -4
  65. package/dist/tableMetadataSourceAdapter-CUNwLsdi.js +291 -0
  66. package/dist/tableMetadataSourceAdapter-DQrEXCo6.js +1283 -0
  67. package/dist/url-DeOdSRrv.js +183 -0
  68. package/dist/viewError-B0TMfOpB.js +33 -0
  69. package/dist/viewError-D9aO90cI.js +33 -0
  70. package/dist/{viewSelectors-DDLW-byr.js → viewSelectors-DkFvo33d.js} +914 -752
  71. package/dist/{viewSelectors-j-F9XwsE.js → viewSelectors-lM93fHAq.js} +942 -780
  72. package/dist/viewUtils-0SJOewM6.js +6195 -0
  73. package/dist/webgl-CXIO3OQz.js +5782 -0
  74. package/dist/webgl-Pdvfhio5.js +5783 -0
  75. package/package.json +7 -5
  76. package/src/agentApi/index.d.ts +3 -2
  77. package/src/agentShared/index.d.ts +2 -0
  78. package/src/appTypes.d.ts +1 -6
  79. package/src/embedTypes.d.ts +36 -1
  80. package/src/index.d.ts +6 -0
  81. package/src/spec/sampleView.d.ts +68 -13
  82. package/src/spec/view.d.ts +44 -5
  83. package/src/state/paramProvenanceTypes.d.ts +25 -2
  84. package/src/state.d.ts +14 -52
  85. package/dist/clipOptions-B5PibDq3.js +0 -2923
  86. package/dist/clipOptions-Cba4I0AO.js +0 -2903
  87. package/dist/esm-Dndm-NaA.js +0 -1193
  88. package/dist/order-B4uR9Q04.js +0 -1062
  89. package/dist/order-BSPy5DI8.js +0 -1062
  90. package/dist/renderCanvas2D-ChdoHGrU.js +0 -285
  91. package/dist/vega-scale-Byaw1K8O.js +0 -2446
  92. package/dist/vega-scale-Ctz_wa3z.js +0 -2443
  93. package/dist/viewError-BiR9VCgL.js +0 -29
  94. package/dist/viewUtils-JX6CMEYH.js +0 -6664
  95. package/dist/webgl-DdmOwEH0.js +0 -5544
  96. package/dist/webgl-Dw8xqZpX.js +0 -5544
@@ -0,0 +1,183 @@
1
+ import { g as e, i as t } from "./arrayUtils-Bm7QnzhN.js";
2
+ //#region ../core/src/utils/url.js
3
+ var n = /^([A-Za-z]+:)?\/\//;
4
+ function r(e, t) {
5
+ if (t && n.test(t)) return t;
6
+ let r = typeof e == "function" ? e() : e;
7
+ if (!r) return t;
8
+ if (!t) return r;
9
+ if (/[#?]/.test(r)) throw Error(`Cannot append to a url with query or hash. Append: ${t}, base: ${r}`);
10
+ return a(r) + t;
11
+ }
12
+ function i(e, t, n = o()) {
13
+ let i = typeof e == "function" ? e() : e;
14
+ if (!t) return i;
15
+ try {
16
+ if (i) {
17
+ let e = n ? new URL(i, n).href : new URL(i).href;
18
+ return new URL(t, e).href;
19
+ }
20
+ if (n) return new URL(t, n).href;
21
+ } catch {}
22
+ return r(i, t);
23
+ }
24
+ function a(e) {
25
+ let t = e.replace(/[^/]*$/, "");
26
+ return t === "" ? void 0 : t.endsWith("://") ? e + "/" : t;
27
+ }
28
+ function o() {
29
+ if (typeof document < "u" && document.baseURI) return document.baseURI;
30
+ if (typeof window < "u" && window.location?.href) return window.location.href;
31
+ }
32
+ //#endregion
33
+ //#region ../../node_modules/flatqueue/index.js
34
+ var s = class {
35
+ constructor(e = Infinity, t = Float64Array, n = Uint32Array) {
36
+ let r = e !== Infinity;
37
+ this.ids = r ? new n(e) : [], this.values = r ? new t(e) : [], this.capacity = e, this.length = 0;
38
+ }
39
+ clear() {
40
+ this.length = 0;
41
+ }
42
+ push(e, t) {
43
+ if (this.length === this.capacity) throw RangeError("Queue is at capacity.");
44
+ let n = this.length++;
45
+ for (; n > 0;) {
46
+ let e = n - 1 >> 1, r = this.values[e];
47
+ if (t >= r) break;
48
+ this.ids[n] = this.ids[e], this.values[n] = r, n = e;
49
+ }
50
+ this.ids[n] = e, this.values[n] = t;
51
+ }
52
+ pop() {
53
+ if (this.length === 0) return;
54
+ let e = this.ids, t = this.values, n = e[0], r = --this.length;
55
+ if (r > 0) {
56
+ let n = e[r], i = t[r], a = 0, o = r >> 1;
57
+ for (; a < o;) {
58
+ let n = (a << 1) + 1, o = n + 1, s = n + (+(o < r) & t[o] < t[n]);
59
+ if (t[s] >= i) break;
60
+ e[a] = e[s], t[a] = t[s], a = s;
61
+ }
62
+ e[a] = n, t[a] = i;
63
+ }
64
+ return n;
65
+ }
66
+ peek() {
67
+ return this.length > 0 ? this.ids[0] : void 0;
68
+ }
69
+ peekValue() {
70
+ return this.length > 0 ? this.values[0] : void 0;
71
+ }
72
+ shrink() {
73
+ Array.isArray(this.ids) && (this.ids.length = this.length), Array.isArray(this.values) && (this.values.length = this.length);
74
+ }
75
+ };
76
+ //#endregion
77
+ //#region ../core/src/utils/deepEqual.js
78
+ function c(e, t) {
79
+ if (Object.is(e, t)) return !0;
80
+ if (Array.isArray(e) || Array.isArray(t)) {
81
+ if (!Array.isArray(e) || !Array.isArray(t) || e.length !== t.length) return !1;
82
+ for (let n = 0; n < e.length; n++) if (!c(e[n], t[n])) return !1;
83
+ return !0;
84
+ }
85
+ if (!l(e) || !l(t)) return !1;
86
+ let n = Object.keys(e), r = Object.keys(t);
87
+ if (n.length !== r.length) return !1;
88
+ for (let r of n) if (!Object.prototype.hasOwnProperty.call(t, r) || !c(e[r], t[r])) return !1;
89
+ return !0;
90
+ }
91
+ function l(e) {
92
+ if (typeof e != "object" || !e || Array.isArray(e)) return !1;
93
+ let t = Object.getPrototypeOf(e);
94
+ return t === Object.prototype || t === null;
95
+ }
96
+ //#endregion
97
+ //#region ../core/src/data/dataReadiness.js
98
+ function* u(e) {
99
+ let t = [e], n = /* @__PURE__ */ new Set();
100
+ for (; t.length;) {
101
+ let e = t.pop();
102
+ n.has(e) || (n.add(e), yield e, e.parent && t.push(e.parent), t.push(...e.dataDependencies));
103
+ }
104
+ }
105
+ function d(e, t) {
106
+ for (let n of u(e)) if (!n.isDataReady() || t && "isDataReadyForDomain" in n && !n.isDataReadyForDomain(t)) return !1;
107
+ return !0;
108
+ }
109
+ //#endregion
110
+ //#region ../core/src/data/sources/dataSource.js
111
+ var f = class extends e {
112
+ resultSuccessful = !1;
113
+ view;
114
+ origin;
115
+ constructor(e) {
116
+ super(), this.view = e;
117
+ }
118
+ get identifier() {}
119
+ get shareKey() {
120
+ return this.identifier;
121
+ }
122
+ setLoadingStatus(e, t, n, r) {
123
+ this.view.context.dataFlow.loadingStatusRegistry.setSource(this, e, t, n, r);
124
+ }
125
+ get paramRuntime() {
126
+ return this.view.paramRuntime;
127
+ }
128
+ handle(e) {
129
+ throw Error("Source does not handle incoming data!");
130
+ }
131
+ async load() {}
132
+ complete(e = !0) {
133
+ let t = this.view?.paramRuntime;
134
+ this.resultSuccessful = !1, m(this, () => {
135
+ super.complete(), this.resultSuccessful = e;
136
+ }, t, e);
137
+ }
138
+ reset() {
139
+ this.resultSuccessful = !1, super.reset();
140
+ }
141
+ activate() {}
142
+ get replaySource() {
143
+ return this;
144
+ }
145
+ get replaysSynchronously() {
146
+ return "loadSynchronously" in this;
147
+ }
148
+ repropagate() {
149
+ this.activate(), "loadSynchronously" in this && typeof this.loadSynchronously == "function" ? this.loadSynchronously() : this.load();
150
+ }
151
+ }, p = class {
152
+ owner;
153
+ producerView;
154
+ producer;
155
+ candidate;
156
+ constructor(e) {
157
+ this.value = e;
158
+ }
159
+ publish() {
160
+ if (!(this.candidate === void 0 || this.producer.disposed)) {
161
+ for (let e of u(this.producer)) if (!e.isDataReady() || e instanceof f && !e.resultSuccessful) return;
162
+ t(this.value.get(), this.candidate) || this.value.set(this.candidate);
163
+ }
164
+ }
165
+ };
166
+ function m(e, t, n, r = !0) {
167
+ let i = [];
168
+ e.visit((e) => {
169
+ e.output && i.push(e.output);
170
+ });
171
+ let a = () => {
172
+ try {
173
+ let e = t();
174
+ if (r) for (let e of i) e.publish();
175
+ return e;
176
+ } finally {
177
+ for (let e of i) e.candidate = void 0;
178
+ }
179
+ };
180
+ return n ? n.runInTransaction(a) : a();
181
+ }
182
+ //#endregion
183
+ export { u as a, r as c, d as i, a as l, m as n, c as o, f as r, s, p as t, i as u };