@genome-spy/app 0.85.0 → 0.87.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-Cz0hCnVp.js → agentApi-BZ1JCo1N.js} +7174 -8484
- package/dist/agentApi.es.js +3312 -3575
- package/dist/agentShared.es.js +14 -13
- package/dist/canvas2d-B_PnIof-.js +620 -0
- package/dist/canvas2d-Cafq5v-N.js +620 -0
- package/dist/{arrayUtils-LJpQOu-U.js → clipOptions-D6eh9T-_.js} +1060 -634
- package/dist/{paramUtils-BYI4rwyL.js → clipOptions-H68pJyEZ.js} +940 -514
- package/dist/{debug-CgDtmspT.js → debug-BGzgZmyk.js} +8 -8
- package/dist/{debug-BvCZWumf.js → debug-UYKZLNh4.js} +8 -8
- package/dist/index.es.js +2983 -2916
- package/dist/index.js +2006 -1997
- package/dist/indexer-Di57GyxX.js +72 -0
- package/dist/indexer-o6Hpg4nN.js +72 -0
- package/dist/layoutResult-D50MSHXR.js +97 -0
- package/dist/nativeText-D9SoxpaD.js +934 -0
- package/dist/nativeText-DAjvkrzc.js +934 -0
- package/dist/performanceProfiler-CPLEjApa.js +20 -0
- package/dist/rasterExport-DzldLv6E.js +44 -0
- package/dist/rasterExport-IAbJwi8F.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-BJ93Ptqj.js +277 -0
- package/dist/renderCanvas2D-yJ1IrDcX.js +277 -0
- package/dist/schema.json +11685 -4428
- package/dist/{svg-yFj875aX.js → svg-BRpl2Xub.js} +412 -449
- package/dist/{svg-CCu8kYy2.js → svg-DJuqHIyc.js} +399 -436
- package/dist/svgRasterizer-CGZQ5njV.js +40 -0
- package/dist/svgRasterizer-PAoqLn1j.js +40 -0
- package/dist/vega-scale-BGC53c22.js +2403 -0
- package/dist/vega-scale-DdW2NzQ3.js +2403 -0
- package/dist/viewError-BiR9VCgL.js +29 -0
- package/dist/{viewIdentityRegistry-BUdkK9zT.js → viewIdentityRegistry-D4p067HU.js} +1 -1
- package/dist/{viewIdentityRegistry-D3oPbN4O.js → viewIdentityRegistry-Dc2hXYsO.js} +1 -1
- package/dist/viewSelectors-DNXnGwEW.js +2015 -0
- package/dist/viewSelectors-DYYlOt91.js +2015 -0
- package/dist/viewUtils-EdhZTPrJ.js +6448 -0
- package/dist/webgl-C53DwzVT.js +4127 -0
- package/dist/webgl-CdgNFlJk.js +4127 -0
- package/package.json +7 -6
- package/dist/bmFontMetrics-CuNB-kNN.js +0 -31
- package/dist/canvas2d-DoAXEiF9.js +0 -309
- package/dist/canvas2d-f5jl4A5D.js +0 -310
- package/dist/clipOptions-gqdb3fvW.js +0 -43
- package/dist/color-W5zffv-z.js +0 -335
- package/dist/framebufferReadback-CCLOjStu.js +0 -148
- package/dist/framebufferReadback-THWwFqs8.js +0 -1994
- package/dist/nativeText-DMO8gLt7.js +0 -806
- package/dist/nativeText-m5AUINMq.js +0 -806
- package/dist/twgl-full.module-DB2UdP1k.js +0 -1849
- package/dist/viewRenderingContext-HtpqwS_x.js +0 -120
- package/dist/viewSelectors-DGCspRN3.js +0 -4198
- package/dist/viewSelectors-U5oLCLHV.js +0 -4195
- package/dist/viewUtils-Dg4RA40Q.js +0 -7503
- package/dist/warning-DRGdb6BF.js +0 -59
- package/dist/webgl-Ci6ZhCCf.js +0 -54
- package/dist/webgl-Dpz8a3TI.js +0 -53
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
import { rt as e } from "./vega-scale-DdW2NzQ3.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,72 @@
|
|
|
1
|
+
import { it as e } from "./vega-scale-BGC53c22.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,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 };
|