@genome-spy/app 0.85.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-Cz0hCnVp.js → agentApi-DgopQbMV.js} +5019 -6824
- package/dist/agentApi.es.js +2757 -2852
- package/dist/agentShared.es.js +15 -14
- package/dist/canvas2d-8uxuN_vx.js +619 -0
- package/dist/canvas2d-BtQC7Xr8.js +619 -0
- package/dist/{arrayUtils-LJpQOu-U.js → clipOptions-BQfNhxgP.js} +625 -561
- package/dist/{paramUtils-BYI4rwyL.js → clipOptions-taFzEljc.js} +192 -128
- package/dist/{debug-BvCZWumf.js → debug-Bzc3SoRg.js} +8 -8
- package/dist/{debug-CgDtmspT.js → debug-D_VtWQ6l.js} +8 -8
- package/dist/index.es.js +2992 -2915
- package/dist/index.js +2006 -2004
- 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-m5AUINMq.js → nativeText-DFV5XIx8.js} +247 -193
- package/dist/{nativeText-DMO8gLt7.js → nativeText-vT3AWE14.js} +244 -190
- 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 +71 -131
- package/dist/{svg-CCu8kYy2.js → svg-C-Sw6E6G.js} +286 -277
- package/dist/{svg-yFj875aX.js → svg-CKHwwKRt.js} +278 -269
- 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-D3oPbN4O.js → viewIdentityRegistry-B-VGlez1.js} +1 -1
- package/dist/{viewIdentityRegistry-BUdkK9zT.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/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/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/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
package/dist/agentShared.es.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { n as e } from "./rolldown-runtime-DF993M8W.js";
|
|
2
|
-
import { B as t, F as n, I as r, L as i,
|
|
3
|
-
import { C as h,
|
|
2
|
+
import { B as t, F as n, I as r, L as i, M as a, N as o, P as s, Q as c, X as l, Z as u, j as d, o as f, r as p, z as m } from "./viewUtils-nCJ7AoaI.js";
|
|
3
|
+
import { C as h, i as g, m as _, o as v, t as y } from "./viewSelectors-CKfxF_LM.js";
|
|
4
|
+
import { y as b } from "./vega-scale-CK0_al6O.js";
|
|
4
5
|
import { n as x, t as S } from "./componentStyles-FsNmIb22.js";
|
|
5
6
|
//#region src/viewScopeUtils.js
|
|
6
7
|
function C(e, t) {
|
|
@@ -9,7 +10,7 @@ function C(e, t) {
|
|
|
9
10
|
function w(e, t) {
|
|
10
11
|
if (!e || typeof e.visit != "function") return !1;
|
|
11
12
|
let n = 0;
|
|
12
|
-
for (let r of
|
|
13
|
+
for (let r of y(e)) r.selector.param === t && (n += 1);
|
|
13
14
|
return n > 1;
|
|
14
15
|
}
|
|
15
16
|
//#endregion
|
|
@@ -36,11 +37,11 @@ function D(e) {
|
|
|
36
37
|
//#region src/sampleView/viewRef.js
|
|
37
38
|
function O(e) {
|
|
38
39
|
if (!e.explicitName) throw Error("Cannot create a view reference without an explicit view name.");
|
|
39
|
-
return
|
|
40
|
+
return g(e);
|
|
40
41
|
}
|
|
41
42
|
function k(e) {
|
|
42
43
|
if (!e.explicitName) return;
|
|
43
|
-
let t =
|
|
44
|
+
let t = g(e);
|
|
44
45
|
return JSON.stringify({
|
|
45
46
|
s: t.scope,
|
|
46
47
|
v: t.view
|
|
@@ -48,7 +49,7 @@ function k(e) {
|
|
|
48
49
|
}
|
|
49
50
|
function A(e) {
|
|
50
51
|
let t = /* @__PURE__ */ new Map();
|
|
51
|
-
|
|
52
|
+
_(e, (e) => {
|
|
52
53
|
let n = k(e);
|
|
53
54
|
n && t.set(n, (t.get(n) ?? 0) + 1);
|
|
54
55
|
});
|
|
@@ -118,7 +119,7 @@ function F(e) {
|
|
|
118
119
|
}
|
|
119
120
|
function I(e) {
|
|
120
121
|
try {
|
|
121
|
-
return
|
|
122
|
+
return p(e).filter((e) => ![
|
|
122
123
|
"sample",
|
|
123
124
|
"x",
|
|
124
125
|
"x2"
|
|
@@ -161,7 +162,7 @@ function ne(e, t) {
|
|
|
161
162
|
function re(e) {
|
|
162
163
|
if (e.view.getEncoding()?.x2) return !0;
|
|
163
164
|
let t = e.view.getScaleResolution("x")?.getScale()?.type;
|
|
164
|
-
return t ?
|
|
165
|
+
return t ? b(t) : !1;
|
|
165
166
|
}
|
|
166
167
|
function ie(e) {
|
|
167
168
|
return e === "quantitative" ? M : ee;
|
|
@@ -192,16 +193,16 @@ function ce({ viewSelector: e, field: t, selectionSelector: n, aggregation: r, f
|
|
|
192
193
|
}
|
|
193
194
|
};
|
|
194
195
|
}
|
|
195
|
-
var le =
|
|
196
|
+
var le = c({
|
|
196
197
|
name: "paramProvenance",
|
|
197
198
|
initialState: { entries: {} },
|
|
198
199
|
reducers: {
|
|
199
200
|
paramChange: (e, t) => {
|
|
200
|
-
let n =
|
|
201
|
+
let n = v(t.payload.selector);
|
|
201
202
|
e.entries[n] = t.payload;
|
|
202
203
|
},
|
|
203
204
|
expandPointSelection: (e, t) => {
|
|
204
|
-
let n = t.payload, r =
|
|
205
|
+
let n = t.payload, r = v(n.selector), i;
|
|
205
206
|
if ("rule" in n && n.rule) i = { rule: n.rule };
|
|
206
207
|
else if ("predicate" in n && n.predicate) i = { predicate: n.predicate };
|
|
207
208
|
else throw Error("expandPointSelection requires either 'rule' or 'predicate'.");
|
|
@@ -4733,10 +4734,10 @@ function qn(e) {
|
|
|
4733
4734
|
//#endregion
|
|
4734
4735
|
//#region src/agentShared/index.js
|
|
4735
4736
|
function Jn(e) {
|
|
4736
|
-
if (e.startsWith("sampleView/")) return
|
|
4737
|
+
if (e.startsWith("sampleView/")) return m.actions[e.slice(11)];
|
|
4737
4738
|
if (e.startsWith("paramProvenance/")) return le.actions[e.slice(16)];
|
|
4738
|
-
if (e.startsWith("viewSettings/")) return
|
|
4739
|
+
if (e.startsWith("viewSettings/")) return u.actions[e.slice(13)];
|
|
4739
4740
|
throw Error("Unsupported app actionType " + e + ".");
|
|
4740
4741
|
}
|
|
4741
4742
|
//#endregion
|
|
4742
|
-
export {
|
|
4743
|
+
export { d as addValueColors, o as buildCategoricalCountsSummary, s as buildCategoricalFieldSummary, n as buildQuantitativeFieldSummary, ce as buildSelectionAggregationAttributeIdentifier, r as buildTopCategorySummary, se as createSelectionAggregationCandidateId, S as faStyles, x as formStyles, t as formatAggregationExpression, C as formatScopedParamName, Jn as getActionCreator, a as getConcreteColorScale, P as getContextMenuFieldInfos, D as isBaselineAction, l as makeViewSelectorKey, Kn as safeMarkdown, T as serializeBookmarkableParamValue, i as templateResultToString };
|