@genome-spy/app 0.84.0 → 0.86.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/README.md +28 -0
- package/dist/{agentApi-DHXYZVvQ.js → agentApi-DgopQbMV.js} +5804 -7009
- package/dist/agentApi.es.js +2823 -2594
- package/dist/agentShared.es.js +15 -14
- package/dist/canvas2d-8uxuN_vx.js +619 -0
- package/dist/canvas2d-BtQC7Xr8.js +619 -0
- package/dist/canvasSizeHelper-7h_8rOcx.js +56 -0
- package/dist/clipOptions-BQfNhxgP.js +2239 -0
- package/dist/clipOptions-taFzEljc.js +2259 -0
- package/dist/{debug-aHQsa6hU.js → debug-Bzc3SoRg.js} +8 -8
- package/dist/{debug-D6FqxKEj.js → debug-D_VtWQ6l.js} +8 -8
- package/dist/{esm-CGLz7idZ.js → esm-BA6yMcc-.js} +438 -434
- package/dist/{esm-D8vvQAP3.js → esm-CcDLRSvC.js} +33 -33
- package/dist/{esm-BeV56E_5.js → esm-CfYZhLHN.js} +33 -33
- package/dist/{esm-DQ3lJSQN.js → esm-JAiZmFIS.js} +1 -1
- package/dist/index.es.js +3067 -2987
- package/dist/index.js +2030 -2022
- package/dist/indexer-qiFctgR3.js +72 -0
- package/dist/indexer-qy_dq5l5.js +72 -0
- package/dist/layoutResult-D50MSHXR.js +97 -0
- package/dist/nativeText-DFV5XIx8.js +860 -0
- package/dist/nativeText-vT3AWE14.js +860 -0
- package/dist/performanceProfiler-CPLEjApa.js +20 -0
- package/dist/rasterExport-B8pVoOsj.js +44 -0
- package/dist/rasterExport-C4r4xjQT.js +44 -0
- package/dist/rasterImage-B4rPLaW9.js +18 -0
- package/dist/rasterization-CFogVB3B.js +50 -0
- package/dist/rectangle-DKnrAmKs.js +142 -0
- package/dist/renderCanvas2D-BQrRWp2Z.js +271 -0
- package/dist/renderCanvas2D-CHVNfIUz.js +271 -0
- package/dist/schema.json +1559 -219
- package/dist/style.css +1 -1
- package/dist/svg-C-Sw6E6G.js +1167 -0
- package/dist/svg-CKHwwKRt.js +1167 -0
- package/dist/{svgNumber-C6aRPc8Z.js → svgNumber-DNxESJQB.js} +1 -1
- package/dist/svgRasterizer-BgD72AmG.js +40 -0
- package/dist/svgRasterizer-BgSNqI3L.js +40 -0
- package/dist/vega-scale-CK0_al6O.js +2700 -0
- package/dist/vega-scale-D46-iCaL.js +2700 -0
- package/dist/viewError-BiR9VCgL.js +29 -0
- package/dist/{viewIdentityRegistry-Dl7rR4Ay.js → viewIdentityRegistry-B-VGlez1.js} +1 -1
- package/dist/{viewIdentityRegistry-AEQpJTDm.js → viewIdentityRegistry-CDtVktJD.js} +1 -1
- package/dist/viewSelectors-CKfxF_LM.js +1817 -0
- package/dist/viewSelectors-D_imtq5Z.js +1817 -0
- package/dist/viewUtils-nCJ7AoaI.js +5782 -0
- package/dist/warning-CpIIpk8e.js +7 -0
- package/dist/webgl-BaA3jSa2.js +4128 -0
- package/dist/webgl-FP-4EsBL.js +4128 -0
- package/package.json +7 -6
- package/dist/bmFontMetrics-CuNB-kNN.js +0 -31
- package/dist/clipOptions-Dqco1p8b.js +0 -377
- package/dist/framebufferReadback-Bje9lHb7.js +0 -1993
- package/dist/framebufferReadback-CC0D6Haw.js +0 -147
- package/dist/raster-9uKYMjHZ.js +0 -53
- package/dist/raster-BofBWXbe.js +0 -54
- package/dist/svg-CvsT1Y2V.js +0 -1793
- package/dist/svg-DRgWfcsL.js +0 -1793
- package/dist/twgl-full.module-BNEMlXRV.js +0 -1849
- package/dist/viewRenderingContext-HtpqwS_x.js +0 -120
- package/dist/viewSelectors-BhW4mTR1.js +0 -6386
- package/dist/viewSelectors-Bwzj10Qz.js +0 -6363
- package/dist/viewUtils-DMNiWslc.js +0 -7228
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
import { at as e } from "./vega-scale-D46-iCaL.js";
|
|
2
|
+
//#region ../../node_modules/d3-array/src/identity.js
|
|
3
|
+
function t(e) {
|
|
4
|
+
return e;
|
|
5
|
+
}
|
|
6
|
+
//#endregion
|
|
7
|
+
//#region ../../node_modules/d3-array/src/group.js
|
|
8
|
+
function n(e, ...n) {
|
|
9
|
+
return i(e, t, t, n);
|
|
10
|
+
}
|
|
11
|
+
function r(e, ...n) {
|
|
12
|
+
return i(e, Array.from, t, n);
|
|
13
|
+
}
|
|
14
|
+
function i(t, n, r, i) {
|
|
15
|
+
return (function t(a, o) {
|
|
16
|
+
if (o >= i.length) return r(a);
|
|
17
|
+
let s = new e(), c = i[o++], l = -1;
|
|
18
|
+
for (let e of a) {
|
|
19
|
+
let t = c(e, ++l, a), n = s.get(t);
|
|
20
|
+
n ? n.push(e) : s.set(t, [e]);
|
|
21
|
+
}
|
|
22
|
+
for (let [e, n] of s) s.set(e, t(n, o));
|
|
23
|
+
return n(s);
|
|
24
|
+
})(t, 0);
|
|
25
|
+
}
|
|
26
|
+
//#endregion
|
|
27
|
+
//#region ../core/src/scales/scaleResolutionConstants.js
|
|
28
|
+
var a = "quantitative", o = "ordinal", s = "nominal", c = "locus", l = "index";
|
|
29
|
+
//#endregion
|
|
30
|
+
//#region ../core/src/scales/indexLikeDomainUtils.js
|
|
31
|
+
function u(e) {
|
|
32
|
+
return e === "index" || e === "locus";
|
|
33
|
+
}
|
|
34
|
+
function d(e) {
|
|
35
|
+
return e[1] > 2 ** 32;
|
|
36
|
+
}
|
|
37
|
+
function f(e, t) {
|
|
38
|
+
return u(e) ? h(t) : t;
|
|
39
|
+
}
|
|
40
|
+
function p(e, t) {
|
|
41
|
+
return u(e) ? g(t) : t;
|
|
42
|
+
}
|
|
43
|
+
function m(e, t) {
|
|
44
|
+
return t && u(e) ? h(t) : t;
|
|
45
|
+
}
|
|
46
|
+
function h(e) {
|
|
47
|
+
return [e[0], e[1] + _(e)];
|
|
48
|
+
}
|
|
49
|
+
function g(e) {
|
|
50
|
+
return [e[0], e[1] - _(e)];
|
|
51
|
+
}
|
|
52
|
+
function _(e) {
|
|
53
|
+
return e[1] >= e[0] ? 1 : -1;
|
|
54
|
+
}
|
|
55
|
+
//#endregion
|
|
56
|
+
//#region ../core/src/utils/scaleNull.js
|
|
57
|
+
function v() {
|
|
58
|
+
let e = (e) => e;
|
|
59
|
+
return e.invert = (e) => e, e.copy = v, e.invertRange = () => {}, e.type = "null", e;
|
|
60
|
+
}
|
|
61
|
+
//#endregion
|
|
62
|
+
//#region ../core/src/utils/indexer.js
|
|
63
|
+
function y() {
|
|
64
|
+
let e = 0, t, n = 0, r = /* @__PURE__ */ new Map(), i = (i) => i === t ? n : (n = r.get(i), n === void 0 && (n = e++, r.set(i, n)), t = i, n);
|
|
65
|
+
return i.addAll = (e) => {
|
|
66
|
+
for (let t of e) i(t);
|
|
67
|
+
}, i.invert = (e) => {
|
|
68
|
+
for (let t of r.entries()) if (t[1] == e) return t[0];
|
|
69
|
+
}, i.domain = () => [...r.keys()], i;
|
|
70
|
+
}
|
|
71
|
+
//#endregion
|
|
72
|
+
export { p as a, l as c, o as d, a as f, t as h, d as i, c as l, r as m, v as n, m as o, n as p, u as r, f as s, y as t, s as u };
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
import { it as e } from "./vega-scale-CK0_al6O.js";
|
|
2
|
+
//#region ../../node_modules/d3-array/src/identity.js
|
|
3
|
+
function t(e) {
|
|
4
|
+
return e;
|
|
5
|
+
}
|
|
6
|
+
//#endregion
|
|
7
|
+
//#region ../../node_modules/d3-array/src/group.js
|
|
8
|
+
function n(e, ...n) {
|
|
9
|
+
return i(e, t, t, n);
|
|
10
|
+
}
|
|
11
|
+
function r(e, ...n) {
|
|
12
|
+
return i(e, Array.from, t, n);
|
|
13
|
+
}
|
|
14
|
+
function i(t, n, r, i) {
|
|
15
|
+
return (function t(a, o) {
|
|
16
|
+
if (o >= i.length) return r(a);
|
|
17
|
+
let s = new e(), c = i[o++], l = -1;
|
|
18
|
+
for (let e of a) {
|
|
19
|
+
let t = c(e, ++l, a), n = s.get(t);
|
|
20
|
+
n ? n.push(e) : s.set(t, [e]);
|
|
21
|
+
}
|
|
22
|
+
for (let [e, n] of s) s.set(e, t(n, o));
|
|
23
|
+
return n(s);
|
|
24
|
+
})(t, 0);
|
|
25
|
+
}
|
|
26
|
+
//#endregion
|
|
27
|
+
//#region ../core/src/scales/scaleResolutionConstants.js
|
|
28
|
+
var a = "quantitative", o = "ordinal", s = "nominal", c = "locus", l = "index";
|
|
29
|
+
//#endregion
|
|
30
|
+
//#region ../core/src/scales/indexLikeDomainUtils.js
|
|
31
|
+
function u(e) {
|
|
32
|
+
return e === "index" || e === "locus";
|
|
33
|
+
}
|
|
34
|
+
function d(e) {
|
|
35
|
+
return e[1] > 2 ** 32;
|
|
36
|
+
}
|
|
37
|
+
function f(e, t) {
|
|
38
|
+
return u(e) ? h(t) : t;
|
|
39
|
+
}
|
|
40
|
+
function p(e, t) {
|
|
41
|
+
return u(e) ? g(t) : t;
|
|
42
|
+
}
|
|
43
|
+
function m(e, t) {
|
|
44
|
+
return t && u(e) ? h(t) : t;
|
|
45
|
+
}
|
|
46
|
+
function h(e) {
|
|
47
|
+
return [e[0], e[1] + _(e)];
|
|
48
|
+
}
|
|
49
|
+
function g(e) {
|
|
50
|
+
return [e[0], e[1] - _(e)];
|
|
51
|
+
}
|
|
52
|
+
function _(e) {
|
|
53
|
+
return e[1] >= e[0] ? 1 : -1;
|
|
54
|
+
}
|
|
55
|
+
//#endregion
|
|
56
|
+
//#region ../core/src/utils/scaleNull.js
|
|
57
|
+
function v() {
|
|
58
|
+
let e = (e) => e;
|
|
59
|
+
return e.invert = (e) => e, e.copy = v, e.invertRange = () => {}, e.type = "null", e;
|
|
60
|
+
}
|
|
61
|
+
//#endregion
|
|
62
|
+
//#region ../core/src/utils/indexer.js
|
|
63
|
+
function y() {
|
|
64
|
+
let e = 0, t, n = 0, r = /* @__PURE__ */ new Map(), i = (i) => i === t ? n : (n = r.get(i), n === void 0 && (n = e++, r.set(i, n)), t = i, n);
|
|
65
|
+
return i.addAll = (e) => {
|
|
66
|
+
for (let t of e) i(t);
|
|
67
|
+
}, i.invert = (e) => {
|
|
68
|
+
for (let t of r.entries()) if (t[1] == e) return t[0];
|
|
69
|
+
}, i.domain = () => [...r.keys()], i;
|
|
70
|
+
}
|
|
71
|
+
//#endregion
|
|
72
|
+
export { p as a, l as c, o as d, a as f, d as i, c as l, r as m, v as n, m as o, n as p, u as r, f as s, y as t, s as u };
|
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
//#region ../core/src/view/renderingContext/viewRenderingContext.js
|
|
2
|
+
var e = class {
|
|
3
|
+
constructor(e) {
|
|
4
|
+
this.globalOptions = e;
|
|
5
|
+
}
|
|
6
|
+
beginSampleFacetBatch() {}
|
|
7
|
+
endSampleFacetBatch() {}
|
|
8
|
+
pushView(e, t) {}
|
|
9
|
+
popView(e) {}
|
|
10
|
+
renderMark(e, t) {}
|
|
11
|
+
getDevicePixelRatio() {
|
|
12
|
+
return 1;
|
|
13
|
+
}
|
|
14
|
+
};
|
|
15
|
+
//#endregion
|
|
16
|
+
//#region ../core/src/view/layout/layoutResult.js
|
|
17
|
+
function t(e, t, { devicePixelRatio: n = 1, renderingOptions: i = {} } = {}) {
|
|
18
|
+
let a = new r(n);
|
|
19
|
+
return e.arrange(a, t, i), a.complete();
|
|
20
|
+
}
|
|
21
|
+
var n = class {
|
|
22
|
+
#e;
|
|
23
|
+
constructor(e) {
|
|
24
|
+
this.#e = e;
|
|
25
|
+
}
|
|
26
|
+
collectRenderCommands(e) {
|
|
27
|
+
for (let t of this.#e) switch (t.type) {
|
|
28
|
+
case "beginSampleFacetBatch":
|
|
29
|
+
e.beginSampleFacetBatch();
|
|
30
|
+
break;
|
|
31
|
+
case "endSampleFacetBatch":
|
|
32
|
+
e.endSampleFacetBatch();
|
|
33
|
+
break;
|
|
34
|
+
case "pushView":
|
|
35
|
+
e.pushView(t.view, t.coords);
|
|
36
|
+
break;
|
|
37
|
+
case "popView":
|
|
38
|
+
e.popView(t.view);
|
|
39
|
+
break;
|
|
40
|
+
case "renderMark":
|
|
41
|
+
e.renderMark(t.mark, t.options);
|
|
42
|
+
break;
|
|
43
|
+
default: throw Error("Unknown layout command");
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
}, r = class extends e {
|
|
47
|
+
#e = [];
|
|
48
|
+
#t = [];
|
|
49
|
+
#n = 0;
|
|
50
|
+
#r;
|
|
51
|
+
constructor(e) {
|
|
52
|
+
super({}), this.#r = e;
|
|
53
|
+
}
|
|
54
|
+
getDevicePixelRatio() {
|
|
55
|
+
return this.#r;
|
|
56
|
+
}
|
|
57
|
+
beginSampleFacetBatch() {
|
|
58
|
+
this.#n++, this.#e.push({ type: "beginSampleFacetBatch" });
|
|
59
|
+
}
|
|
60
|
+
endSampleFacetBatch() {
|
|
61
|
+
if (this.#n == 0) throw Error("Unbalanced sample facet batch scope");
|
|
62
|
+
this.#n--, this.#e.push({ type: "endSampleFacetBatch" });
|
|
63
|
+
}
|
|
64
|
+
pushView(e, t) {
|
|
65
|
+
this.#t.push(e), this.#e.push({
|
|
66
|
+
type: "pushView",
|
|
67
|
+
view: e,
|
|
68
|
+
coords: t
|
|
69
|
+
});
|
|
70
|
+
}
|
|
71
|
+
popView(e) {
|
|
72
|
+
if (this.#t.pop() !== e) throw Error("Unbalanced view scope");
|
|
73
|
+
this.#e.push({
|
|
74
|
+
type: "popView",
|
|
75
|
+
view: e
|
|
76
|
+
});
|
|
77
|
+
}
|
|
78
|
+
renderMark(e, t) {
|
|
79
|
+
if (this.#t.length == 0) throw Error("A mark must be inside a view scope");
|
|
80
|
+
this.#e.push({
|
|
81
|
+
type: "renderMark",
|
|
82
|
+
mark: e,
|
|
83
|
+
options: i(t)
|
|
84
|
+
});
|
|
85
|
+
}
|
|
86
|
+
complete() {
|
|
87
|
+
if (this.#t.length > 0) throw Error("Unclosed view scope");
|
|
88
|
+
if (this.#n > 0) throw Error("Unclosed sample facet batch scope");
|
|
89
|
+
return new n(this.#e);
|
|
90
|
+
}
|
|
91
|
+
};
|
|
92
|
+
function i(e) {
|
|
93
|
+
let t = { ...e };
|
|
94
|
+
return e.sampleFacetRenderingOptions && (t.sampleFacetRenderingOptions = { ...e.sampleFacetRenderingOptions }), e.placement && (t.placement = { ...e.placement }), e.clip && (t.clip = { ...e.clip }), t;
|
|
95
|
+
}
|
|
96
|
+
//#endregion
|
|
97
|
+
export { e as n, t };
|