@genome-spy/app 0.76.0 → 0.77.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/LICENSE +21 -0
- package/dist/{agentApi-CzdacisO.js → agentApi-ClsLtELB.js} +7006 -5238
- package/dist/agentApi.es.js +3127 -1442
- package/dist/agentShared.es.js +20 -20
- package/dist/blosc-DL1kZHdE.js +692 -0
- package/dist/chunk-INHXZS53-Dx2aFznx.js +13 -0
- package/dist/esm-CHVYSGF2.js +1084 -0
- package/dist/esm-C_XrKaCY.js +137 -0
- package/dist/{esm-Cr7pLUfG.js → esm-CqrZuhTF.js} +1 -1
- package/dist/{esm-BWsx1OJ2.js → esm-Cz4iCfzF.js} +1 -1
- package/dist/esm-D2-C5ZzN.js +1084 -0
- package/dist/{esm-CdIesJ1z.js → esm-Dfo2M18m.js} +1 -1
- package/dist/{esm-BH0wx5y-.js → esm-Q6nrd9vJ.js} +1 -1
- package/dist/{esm-BLfLaJtE.js → esm-aOLxLL7A.js} +1 -1
- package/dist/esm-id9DWBZW.js +137 -0
- package/dist/{esm-DHOMWRoL.js → esm-kXhrPIYy.js} +1 -1
- package/dist/index.es.js +3768 -4997
- package/dist/index.js +420 -357
- package/dist/lz4-Csz5aoFA.js +626 -0
- package/dist/schema.json +44 -0
- package/dist/{viewUtils-C5htqZCm.js → viewUtils-3_xHIxmy.js} +2316 -2171
- package/dist/zstd-dJuUp1fl.js +583 -0
- package/package.json +4 -4
- package/src/agentApi/index.d.ts +24 -0
- package/src/sampleView/sampleViewTypes.d.ts +2 -0
- package/src/sampleView/state/payloadTypes.d.ts +84 -0
- package/src/sampleView/types.d.ts +3 -0
- package/src/spec/sampleView.d.ts +58 -0
- package/dist/esm-BY4T8YoD.js +0 -142
- package/dist/esm-DJUb6vy0.js +0 -1015
- package/dist/esm-DRZ5LLNH.js +0 -142
- package/dist/esm-PDPkTR1_.js +0 -1015
- /package/dist/{parquetRead-BuEN-6yG.js → parquetRead-C33mgLEo.js} +0 -0
package/dist/agentShared.es.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { n as e } from "./chunk-CPXzm0be.js";
|
|
2
|
-
import {
|
|
2
|
+
import { A as t, D as n, E as r, En as i, F as a, J as o, M as s, O as c, P as l, Tn as u, X as d, Y as f, Z as p, i as m, it as h, j as g, k as _, lt as v, s as y, yt as b } from "./viewUtils-3_xHIxmy.js";
|
|
3
3
|
import "./lit-ymUSmGBw.js";
|
|
4
4
|
import { n as x, t as S } from "./componentStyles-CIXoKEp0.js";
|
|
5
5
|
//#region src/viewScopeUtils.js
|
|
@@ -36,25 +36,25 @@ function D(e) {
|
|
|
36
36
|
//#region src/sampleView/viewRef.js
|
|
37
37
|
function O(e) {
|
|
38
38
|
if (!e.explicitName) throw Error("Cannot create a view reference without an explicit view name.");
|
|
39
|
-
return
|
|
39
|
+
return d(e);
|
|
40
40
|
}
|
|
41
41
|
function k(e) {
|
|
42
42
|
if (!e.explicitName) return;
|
|
43
|
-
let t =
|
|
43
|
+
let t = d(e);
|
|
44
44
|
return JSON.stringify({
|
|
45
45
|
s: t.scope,
|
|
46
46
|
v: t.view
|
|
47
47
|
});
|
|
48
48
|
}
|
|
49
49
|
function A(e) {
|
|
50
|
-
let
|
|
51
|
-
|
|
52
|
-
let
|
|
53
|
-
|
|
50
|
+
let t = /* @__PURE__ */ new Map();
|
|
51
|
+
h(e, (e) => {
|
|
52
|
+
let n = k(e);
|
|
53
|
+
n && t.set(n, (t.get(n) ?? 0) + 1);
|
|
54
54
|
});
|
|
55
|
-
let
|
|
56
|
-
for (let [e,
|
|
57
|
-
return
|
|
55
|
+
let n = /* @__PURE__ */ new Set();
|
|
56
|
+
for (let [e, r] of t) r === 1 && n.add(e);
|
|
57
|
+
return n;
|
|
58
58
|
}
|
|
59
59
|
//#endregion
|
|
60
60
|
//#region src/sampleView/selectionAggregationCandidates.js
|
|
@@ -70,7 +70,7 @@ function N(e, t, n) {
|
|
|
70
70
|
if (n) try {
|
|
71
71
|
let t = [];
|
|
72
72
|
e.visit((e) => {
|
|
73
|
-
e instanceof
|
|
73
|
+
e instanceof y && e.isVisible() && ne(e, r) && t.push(e);
|
|
74
74
|
});
|
|
75
75
|
for (let e of t) {
|
|
76
76
|
let t = e.getEncoding(), n = t?.x && "field" in t.x, r = Object.entries(t).some(([e, t]) => ![
|
|
@@ -161,7 +161,7 @@ function ne(e, t) {
|
|
|
161
161
|
function re(e) {
|
|
162
162
|
if (e.view.getEncoding()?.x2) return !0;
|
|
163
163
|
let t = e.view.getScaleResolution("x")?.getScale()?.type;
|
|
164
|
-
return t ?
|
|
164
|
+
return t ? b(t) : !1;
|
|
165
165
|
}
|
|
166
166
|
function ie(e) {
|
|
167
167
|
return e === "quantitative" ? M : ee;
|
|
@@ -192,16 +192,16 @@ function ce({ viewSelector: e, field: t, selectionSelector: n, aggregation: r, f
|
|
|
192
192
|
}
|
|
193
193
|
};
|
|
194
194
|
}
|
|
195
|
-
var le =
|
|
195
|
+
var le = i({
|
|
196
196
|
name: "paramProvenance",
|
|
197
197
|
initialState: { entries: {} },
|
|
198
198
|
reducers: {
|
|
199
199
|
paramChange: (e, t) => {
|
|
200
|
-
let n =
|
|
200
|
+
let n = p(t.payload.selector);
|
|
201
201
|
e.entries[n] = t.payload;
|
|
202
202
|
},
|
|
203
203
|
expandPointSelection: (e, t) => {
|
|
204
|
-
let n = t.payload, r =
|
|
204
|
+
let n = t.payload, r = p(n.selector), i;
|
|
205
205
|
if ("rule" in n && n.rule) i = { rule: n.rule };
|
|
206
206
|
else if ("predicate" in n && n.predicate) i = { predicate: n.predicate };
|
|
207
207
|
else throw Error("expandPointSelection requires either 'rule' or 'predicate'.");
|
|
@@ -4715,8 +4715,8 @@ function Gn(e, t, n) {
|
|
|
4715
4715
|
function Kn(e, t = {}) {
|
|
4716
4716
|
let n = Gn(e), r = new DOMParser().parseFromString(`<!DOCTYPE html><html><body><div>${n}</div></body></html>`, "text/html");
|
|
4717
4717
|
r.normalize(), qn(r.body);
|
|
4718
|
-
for (let e of r.querySelectorAll("a[href]")) e.setAttribute("target", "blank"), e.setAttribute("rel", "noopener noreferrer"), e.setAttribute("href",
|
|
4719
|
-
for (let e of r.querySelectorAll("img[src]")) e.setAttribute("src",
|
|
4718
|
+
for (let e of r.querySelectorAll("a[href]")) e.setAttribute("target", "blank"), e.setAttribute("rel", "noopener noreferrer"), e.setAttribute("href", v(e.getAttribute("href"), t.baseUrl));
|
|
4719
|
+
for (let e of r.querySelectorAll("img[src]")) e.setAttribute("src", v(e.getAttribute("src"), t.baseUrl));
|
|
4720
4720
|
let i = r.body.removeChild(r.querySelector("body > div"));
|
|
4721
4721
|
return i.className = "markdown", i;
|
|
4722
4722
|
}
|
|
@@ -4733,10 +4733,10 @@ function qn(e) {
|
|
|
4733
4733
|
//#endregion
|
|
4734
4734
|
//#region src/agentShared/index.js
|
|
4735
4735
|
function Jn(e) {
|
|
4736
|
-
if (e.startsWith("sampleView/")) return
|
|
4736
|
+
if (e.startsWith("sampleView/")) return l.actions[e.slice(11)];
|
|
4737
4737
|
if (e.startsWith("paramProvenance/")) return le.actions[e.slice(16)];
|
|
4738
|
-
if (e.startsWith("viewSettings/")) return
|
|
4738
|
+
if (e.startsWith("viewSettings/")) return u.actions[e.slice(13)];
|
|
4739
4739
|
throw Error("Unsupported app actionType " + e + ".");
|
|
4740
4740
|
}
|
|
4741
4741
|
//#endregion
|
|
4742
|
-
export {
|
|
4742
|
+
export { r as addValueColors, c as buildCategoricalCountsSummary, _ as buildCategoricalFieldSummary, t as buildQuantitativeFieldSummary, ce as buildSelectionAggregationAttributeIdentifier, g as buildTopCategorySummary, se as createSelectionAggregationCandidateId, S as faStyles, x as formStyles, a as formatAggregationExpression, C as formatScopedParamName, Jn as getActionCreator, n as getConcreteColorScale, P as getContextMenuFieldInfos, D as isBaselineAction, o as makeViewSelectorKey, Kn as safeMarkdown, T as serializeBookmarkableParamValue, s as templateResultToString };
|