@genome-spy/app 1.1.1 → 1.2.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/{agentApi-sPuuT0KS.js → agentApi-8hMSlqAQ.js} +8307 -6861
- package/dist/agentApi.es.js +5569 -4250
- package/dist/agentShared.es.js +9 -9
- package/dist/{canvas2d-iDK4BC5j.js → canvas2d-Bd8H8MMo.js} +149 -134
- package/dist/{canvas2d-MXaFeZnP.js → canvas2d-D6VYooRf.js} +136 -122
- package/dist/{clipOptions-Cba4I0AO.js → clipOptions-DElJ8dTZ.js} +2274 -2080
- package/dist/{clipOptions-B5PibDq3.js → clipOptions-D_wBNhzs.js} +2121 -1957
- package/dist/{viewIdentityRegistry-BDKkEjXl.js → containerView-CRJSc4bM.js} +24 -31
- package/dist/{viewIdentityRegistry-BIYd4TE0.js → containerView-aEVmYmkA.js} +24 -31
- package/dist/{debug-DbigmdrK.js → debug-CQ0agCrd.js} +9 -9
- package/dist/{debug-BlqDxTw3.js → debug-DkIMiGdW.js} +10 -10
- package/dist/index.es.js +3582 -3566
- package/dist/index.js +698 -454
- package/dist/{indexer-En7gpvLN.js → indexer-DDC0YRGn.js} +1 -1
- package/dist/{indexer-DbFTKGlm.js → indexer-DOYMJ-Md.js} +1 -1
- package/dist/markUtils-CvLDz744.js +75 -0
- package/dist/{metadataChannels-DV62inJh.js → metadataChannels-DLSmx7kU.js} +6 -3
- package/dist/{order-B4uR9Q04.js → order-BVvkjDRT.js} +369 -316
- package/dist/{order-BSPy5DI8.js → order-DmMoZsi1.js} +360 -308
- package/dist/{rasterExport-DQH3hVg_.js → rasterExport-DxvowWjH.js} +3 -3
- package/dist/{rasterExport-B62RmAK1.js → rasterExport-jeRVq6kY.js} +4 -4
- package/dist/{rasterization-B05bDo5e.js → rasterization-DFj3Cvx4.js} +26 -19
- package/dist/{rectangle-DE98gIxF.js → rectangle-DZTR6NFQ.js} +10 -1
- package/dist/rectangle-Dl4Dy0hS.js +191 -0
- package/dist/{renderCanvas2D-Bdv-B4wj.js → renderCanvas2D-Bfm1NHFu.js} +96 -91
- package/dist/{renderCanvas2D-ChdoHGrU.js → renderCanvas2D-DVjhp834.js} +98 -93
- package/dist/{scalePosition-ByvlXaML.js → scalePosition-0aeqp_kz.js} +8 -1
- package/dist/schema.json +27198 -13709
- package/dist/style.css +1 -1
- package/dist/{svg-N3tj05-e.js → svg-Bm2zxBPu.js} +315 -316
- package/dist/{svg-DHsq1RpV.js → svg-CkfuhONt.js} +290 -291
- package/dist/{svgRasterizer-CYVDlt5z.js → svgRasterizer-DoRQEqFA.js} +2 -2
- package/dist/{svgRasterizer-CvCBlxLj.js → svgRasterizer-raDDhBF-.js} +3 -3
- package/dist/{vega-scale-Byaw1K8O.js → vega-scale-BoGHANI7.js} +90 -90
- package/dist/{vega-scale-Ctz_wa3z.js → vega-scale-o9TRyzYH.js} +699 -699
- package/dist/viewError-BkJeVYXA.js +33 -0
- package/dist/viewError-IYqyluc7.js +33 -0
- package/dist/{viewSelectors-DDLW-byr.js → viewSelectors-7LyasQN-.js} +498 -434
- package/dist/{viewSelectors-j-F9XwsE.js → viewSelectors-CbmkSQRT.js} +549 -485
- package/dist/{viewUtils-JX6CMEYH.js → viewUtils-DuddMNNw.js} +2138 -2009
- package/dist/{webgl-Dw8xqZpX.js → webgl-CQfvgnxo.js} +1229 -1140
- package/dist/{webgl-DdmOwEH0.js → webgl-DVYkXtiZ.js} +1477 -1389
- package/package.json +4 -4
- package/src/spec/view.d.ts +44 -5
- package/dist/viewError-BiR9VCgL.js +0 -29
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
import { P as e, b as t, c as n, p as r, u as i, x as a } from "./clipOptions-D_wBNhzs.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(t, r) {
|
|
66
|
+
t.stroke || (r ? t.stroke = { value: null } : (t.stroke = n(t.color), f(t.stroke, "color"))), e(t.stroke) && t.stroke.value === null && (t.strokeWidth = { value: 0 }), t.strokeOpacity || (t.strokeOpacity = n(t.opacity), f(t.strokeOpacity, "opacity"));
|
|
67
|
+
}
|
|
68
|
+
function m(t, r) {
|
|
69
|
+
e(t.fill) && t.fill.value === null ? t.fillOpacity = { value: 0 } : t.fill || (t.fill = n(t.color), f(t.fill, "color"), !r && !t.fillOpacity && (t.fillOpacity = { value: 0 })), t.fillOpacity || (r ? (t.fillOpacity = n(t.opacity), f(t.fillOpacity, "opacity")) : t.fillOpacity = { value: 0 });
|
|
70
|
+
}
|
|
71
|
+
function h(e, t) {
|
|
72
|
+
return e.properties.clamp === !0 || e.properties.clamp === t;
|
|
73
|
+
}
|
|
74
|
+
//#endregion
|
|
75
|
+
export { d as a, h as c, m as i, l, c as n, p as o, u as r, s, o as t };
|
|
@@ -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 };
|