@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.
- package/dist/{SharedReadCache-Ey5QIiPM.js → SharedReadCache-9sT2aIxW.js} +6 -12
- package/dist/__vite-browser-external-Dgu_Ldik.js +7 -0
- package/dist/{agentApi-sPuuT0KS.js → agentApi-BclFF9zB.js} +9981 -8914
- package/dist/agentApi.es.js +6783 -5135
- package/dist/agentShared.es.js +433 -460
- package/dist/arrayUtils-Bm7QnzhN.js +1306 -0
- package/dist/{blosc-JROzDOnd.js → blosc-C-W97QwH.js} +3 -3
- package/dist/{canvas2d-iDK4BC5j.js → canvas2d-8MSf70d4.js} +141 -134
- package/dist/{canvas2d-MXaFeZnP.js → canvas2d-BwGNI_Rx.js} +147 -141
- package/dist/clipOptions-SrrxeAEU.js +4316 -0
- package/dist/clipOptions-clBEbkjv.js +4326 -0
- package/dist/{layoutResult-D50MSHXR.js → color-jETn8xK_.js} +29 -10
- package/dist/color-uTRRsy8i.js +116 -0
- package/dist/{componentStyles-DGtQXvwc.js → componentStyles-C7FbjS-a.js} +1 -1
- package/dist/{viewIdentityRegistry-BIYd4TE0.js → containerView-BItRtKqu.js} +28 -31
- package/dist/{viewIdentityRegistry-BDKkEjXl.js → containerView-CWa6ZIJW.js} +28 -31
- package/dist/{debug-DbigmdrK.js → debug-23s-jja_.js} +10 -9
- package/dist/{debug-BlqDxTw3.js → debug-CWRxvAss.js} +9 -10
- package/dist/dialog.es.js +1 -1
- package/dist/dist-CmY6iewb.js +1501 -0
- package/dist/dist-D6xbz5Ks.js +1501 -0
- package/dist/{esm-CjkeZi__.js → esm-BFwBAnbO.js} +25 -25
- package/dist/esm-BUkWqSr2.js +299 -0
- package/dist/{esm-C-6g-SkZ.js → esm-C0xXMLsR.js} +37 -41
- package/dist/{esm-CJeszW-t.js → esm-C2xhhXs0.js} +7 -7
- package/dist/esm-C6erfjPM.js +252 -0
- package/dist/{esm-DFHFX1sH.js → esm-CVjC7qA4.js} +34 -38
- package/dist/esm-CqY5ezGz.js +1249 -0
- package/dist/esm-DfMIJ_N2.js +1522 -0
- package/dist/esm-Dls41IbZ.js +787 -0
- package/dist/{esm-Bv7Frz7C.js → esm-DzQDfrsZ.js} +7 -10
- package/dist/esm-aGLCvYRP.js +238 -0
- package/dist/{esm-VFJeyk9i.js → esm-nzwgJFGz.js} +40 -36
- package/dist/figWigMetadataSourceAdapter-8Kf_vZRf.js +36 -0
- package/dist/figWigMetadataSourceAdapter-DdDMZpYO.js +36 -0
- package/dist/flowNode-BSjy0Wz3.js +1306 -0
- package/dist/flowOutput-D5qpxWe0.js +183 -0
- package/dist/index.es.js +4766 -5522
- package/dist/index.js +1089 -685
- package/dist/inflate-BdC5KvHn.js +886 -0
- package/dist/{lz4-CUYSbVey.js → lz4-BLPgBOlE.js} +1 -1
- package/dist/markUtils-RaatLEa-.js +78 -0
- package/dist/{metadataChannels-DV62inJh.js → metadataChannels-DLSmx7kU.js} +6 -3
- package/dist/metadataUtils-DxEPe0vj.js +879 -0
- package/dist/order-BnKzKjt4.js +1151 -0
- package/dist/order-BpJnq_nV.js +1150 -0
- package/dist/{parquetRead-0hFIa3Cc.js → parquetRead-D-yY8njE.js} +3 -11
- package/dist/{rasterExport-B62RmAK1.js → rasterExport-B-WrX1pa.js} +5 -5
- package/dist/{rasterExport-DQH3hVg_.js → rasterExport-C_vx4Jwd.js} +4 -4
- package/dist/{rasterization-B05bDo5e.js → rasterization-QktH8Sn2.js} +26 -19
- package/dist/rectangle-BAdoDPXu.js +194 -0
- package/dist/{rectangle-DE98gIxF.js → rectangle-DZTR6NFQ.js} +10 -1
- package/dist/renderCanvas2D-CsRO78Pq.js +291 -0
- package/dist/{renderCanvas2D-Bdv-B4wj.js → renderCanvas2D-Y7pkRzbC.js} +98 -92
- package/dist/{rolldown-runtime-DF993M8W.js → rolldown-runtime-DeIk2rA4.js} +1 -1
- package/dist/{indexer-DbFTKGlm.js → scaleNull-CVzag4z8.js} +2 -12
- package/dist/{indexer-En7gpvLN.js → scaleNull-Pbz7QGnl.js} +2 -12
- package/dist/{scalePosition-ByvlXaML.js → scalePosition-CRXa0rCC.js} +8 -1
- package/dist/schema.json +33403 -16929
- package/dist/style.css +1 -1
- package/dist/{svg-N3tj05-e.js → svg-BBMtLgtM.js} +445 -362
- package/dist/{svg-DHsq1RpV.js → svg-JjWL6U-T.js} +464 -381
- package/dist/{svgRasterizer-CYVDlt5z.js → svgRasterizer-6OcftuoI.js} +3 -3
- package/dist/{svgRasterizer-CvCBlxLj.js → svgRasterizer-DkNRaCPs.js} +4 -4
- package/dist/tableMetadataSourceAdapter-CUNwLsdi.js +291 -0
- package/dist/tableMetadataSourceAdapter-DQrEXCo6.js +1283 -0
- package/dist/url-DeOdSRrv.js +183 -0
- package/dist/viewError-B0TMfOpB.js +33 -0
- package/dist/viewError-D9aO90cI.js +33 -0
- package/dist/{viewSelectors-DDLW-byr.js → viewSelectors-DkFvo33d.js} +914 -752
- package/dist/{viewSelectors-j-F9XwsE.js → viewSelectors-lM93fHAq.js} +942 -780
- package/dist/viewUtils-0SJOewM6.js +6195 -0
- package/dist/webgl-CXIO3OQz.js +5782 -0
- package/dist/webgl-Pdvfhio5.js +5783 -0
- package/package.json +7 -5
- package/src/agentApi/index.d.ts +3 -2
- package/src/agentShared/index.d.ts +2 -0
- package/src/appTypes.d.ts +1 -6
- package/src/embedTypes.d.ts +36 -1
- package/src/index.d.ts +6 -0
- package/src/spec/sampleView.d.ts +68 -13
- package/src/spec/view.d.ts +44 -5
- package/src/state/paramProvenanceTypes.d.ts +25 -2
- package/src/state.d.ts +14 -52
- package/dist/clipOptions-B5PibDq3.js +0 -2923
- package/dist/clipOptions-Cba4I0AO.js +0 -2903
- package/dist/esm-Dndm-NaA.js +0 -1193
- package/dist/order-B4uR9Q04.js +0 -1062
- package/dist/order-BSPy5DI8.js +0 -1062
- package/dist/renderCanvas2D-ChdoHGrU.js +0 -285
- package/dist/vega-scale-Byaw1K8O.js +0 -2446
- package/dist/vega-scale-Ctz_wa3z.js +0 -2443
- package/dist/viewError-BiR9VCgL.js +0 -29
- package/dist/viewUtils-JX6CMEYH.js +0 -6664
- package/dist/webgl-DdmOwEH0.js +0 -5544
- package/dist/webgl-Dw8xqZpX.js +0 -5544
|
@@ -187,7 +187,7 @@ var t = (typeof document < "u" && document.currentScript && document.currentScri
|
|
|
187
187
|
return t === -1 ? e : e.substr(0, t);
|
|
188
188
|
}, Se = (e, t, n) => {
|
|
189
189
|
switch (t) {
|
|
190
|
-
case 1: return n ? (e) => l[e
|
|
190
|
+
case 1: return n ? (e) => l[e | 0] : (e) => u[e | 0];
|
|
191
191
|
case 2: return n ? (e) => d[e >> 1] : (e) => f[e >> 1];
|
|
192
192
|
case 4: return n ? (e) => p[e >> 2] : (e) => m[e >> 2];
|
|
193
193
|
default: throw TypeError(`invalid integer width (${t}): ${e}`);
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
import { P as e, b as t, c as n, p as r, u as i, x as a } from "./clipOptions-SrrxeAEU.js";
|
|
2
|
+
//#region ../core/src/marks/markUtils.js
|
|
3
|
+
var o = Symbol("half-open interval peer");
|
|
4
|
+
function s(e) {
|
|
5
|
+
return e?.[o];
|
|
6
|
+
}
|
|
7
|
+
function c(e, n) {
|
|
8
|
+
let a = t(n), s = r(e[n]), c = r(e[a]);
|
|
9
|
+
s && c && ["index", "locus"].includes(s.type) && (e[n] = i(e[n], {
|
|
10
|
+
...e[n],
|
|
11
|
+
[o]: a
|
|
12
|
+
}), e[a] = i(e[a], {
|
|
13
|
+
...e[a],
|
|
14
|
+
[o]: n
|
|
15
|
+
}));
|
|
16
|
+
}
|
|
17
|
+
function l(n) {
|
|
18
|
+
for (let i of ["x", "y"]) {
|
|
19
|
+
let a = t(i), o = n[i], s = n[a];
|
|
20
|
+
if (o && s && e(o) && !r(o) && r(s)) throw Error(`Cannot combine encoding.${i}.value with scale-backed encoding.${a}. Use encoding.${i}.datum for a constant data-domain endpoint, or use encoding.${a}.value for a visual-domain endpoint.`);
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
function u(n, r, o = !1) {
|
|
24
|
+
let s = t(r);
|
|
25
|
+
c(n, r);
|
|
26
|
+
let l = n[r] && i(n[r], { ...n[r] }), u = n[s] && i(n[s], { ...n[s] });
|
|
27
|
+
if (!(e(l) || e(u))) {
|
|
28
|
+
if (l) {
|
|
29
|
+
if (!a(n[r])) return;
|
|
30
|
+
if (!u) {
|
|
31
|
+
if (l.type == "quantitative") u = {
|
|
32
|
+
datum: 0,
|
|
33
|
+
domainInert: !0
|
|
34
|
+
};
|
|
35
|
+
else {
|
|
36
|
+
u = i(l, { ...l });
|
|
37
|
+
let e = (1 - (l.band ?? 1)) / 2;
|
|
38
|
+
l.band = 0 + e, u.band = o ? l.band : 1 - e;
|
|
39
|
+
}
|
|
40
|
+
} else if (l.type != "quantitative") {
|
|
41
|
+
let e = (1 - (l.band || 1)) / 2;
|
|
42
|
+
l.band = e, u.band = -e;
|
|
43
|
+
}
|
|
44
|
+
} else l = { value: 0 }, u = { value: 1 };
|
|
45
|
+
n[r] = l, n[s] = u;
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
function d(n, r) {
|
|
49
|
+
c(n, r);
|
|
50
|
+
let o = t(r), s = n[r], l = n[o];
|
|
51
|
+
if (!s || !l || e(s) || e(l) || !a(s) || !a(l) || !["index", "locus"].includes(s.type)) return;
|
|
52
|
+
let u = s.band, d = l.band, f = u ?? d ?? 0;
|
|
53
|
+
n[r] = i(s, {
|
|
54
|
+
...s,
|
|
55
|
+
band: f
|
|
56
|
+
}), n[o] = i(l, {
|
|
57
|
+
...l,
|
|
58
|
+
band: d ?? f
|
|
59
|
+
});
|
|
60
|
+
}
|
|
61
|
+
function f(e, t) {
|
|
62
|
+
let n = r(e);
|
|
63
|
+
n && (n.resolutionChannel = t);
|
|
64
|
+
}
|
|
65
|
+
function p(e, t) {
|
|
66
|
+
e[t] = n(e.color), f(e[t], "color");
|
|
67
|
+
}
|
|
68
|
+
function m(t, r) {
|
|
69
|
+
t.stroke || (r ? t.stroke = { value: null } : p(t, "stroke")), e(t.stroke) && t.stroke.value === null && (t.strokeWidth = { value: 0 }), t.strokeOpacity || (t.strokeOpacity = n(t.opacity), f(t.strokeOpacity, "opacity"));
|
|
70
|
+
}
|
|
71
|
+
function h(t, r) {
|
|
72
|
+
e(t.fill) && t.fill.value === null ? t.fillOpacity = { value: 0 } : t.fill || (p(t, "fill"), !r && !t.fillOpacity && (t.fillOpacity = { value: 0 })), t.fillOpacity || (r ? (t.fillOpacity = n(t.opacity), f(t.fillOpacity, "opacity")) : t.fillOpacity = { value: 0 });
|
|
73
|
+
}
|
|
74
|
+
function g(e, t) {
|
|
75
|
+
return e.properties.clamp === !0 || e.properties.clamp === t;
|
|
76
|
+
}
|
|
77
|
+
//#endregion
|
|
78
|
+
export { h as a, s as c, u as i, g as l, c as n, d as o, p as r, m as s, o as t, l as u };
|
|
@@ -1,8 +1,11 @@
|
|
|
1
1
|
//#region ../core/src/encoder/metadataChannels.js
|
|
2
2
|
function e(e) {
|
|
3
|
-
return
|
|
3
|
+
return n(e?.key, "key");
|
|
4
4
|
}
|
|
5
|
-
function t(e
|
|
5
|
+
function t(e) {
|
|
6
|
+
return n(e?.search, "search");
|
|
7
|
+
}
|
|
8
|
+
function n(e, t) {
|
|
6
9
|
if (!e) return;
|
|
7
10
|
let n = Array.isArray(e) ? e : [e];
|
|
8
11
|
if (n.length === 0) throw Error("The " + t + " channel array must not be empty.");
|
|
@@ -16,4 +19,4 @@ function t(e, t) {
|
|
|
16
19
|
return r;
|
|
17
20
|
}
|
|
18
21
|
//#endregion
|
|
19
|
-
export { e as t };
|
|
22
|
+
export { t as n, e as t };
|