@genome-spy/app 0.76.0 → 0.78.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.
Files changed (39) hide show
  1. package/LICENSE +21 -0
  2. package/dist/{agentApi-CzdacisO.js → agentApi-BwbEWjvl.js} +6362 -4470
  3. package/dist/agentApi.es.js +3315 -1561
  4. package/dist/agentShared.es.js +20 -20
  5. package/dist/blosc-DL1kZHdE.js +692 -0
  6. package/dist/chunk-INHXZS53-Dx2aFznx.js +13 -0
  7. package/dist/{esm-Cr7pLUfG.js → esm-BHjeb8gt.js} +2 -2
  8. package/dist/{esm-BH0wx5y-.js → esm-BI-plmf6.js} +2 -2
  9. package/dist/esm-BgpwI2cq.js +1221 -0
  10. package/dist/{esm-BWsx1OJ2.js → esm-BkagIzhP.js} +2 -2
  11. package/dist/esm-CHVYSGF2.js +1084 -0
  12. package/dist/esm-COzpU5N8.js +1221 -0
  13. package/dist/{esm-CdIesJ1z.js → esm-CPufCnsG.js} +2 -2
  14. package/dist/esm-C_XrKaCY.js +137 -0
  15. package/dist/esm-D2-C5ZzN.js +1084 -0
  16. package/dist/{esm-BLfLaJtE.js → esm-Daho46bY.js} +2 -2
  17. package/dist/esm-id9DWBZW.js +137 -0
  18. package/dist/{esm-DHOMWRoL.js → esm-sPWfZg9X.js} +2 -2
  19. package/dist/index.es.js +14184 -15233
  20. package/dist/index.js +598 -485
  21. package/dist/lz4-Csz5aoFA.js +626 -0
  22. package/dist/schema.json +1008 -137
  23. package/dist/{viewUtils-C5htqZCm.js → viewUtils-B7-F_Ae-.js} +2516 -2314
  24. package/dist/zstd-dJuUp1fl.js +583 -0
  25. package/package.json +4 -4
  26. package/src/agentApi/index.d.ts +24 -0
  27. package/src/bookmark/databaseSchema.d.ts +11 -1
  28. package/src/charts/sampleAttributePlotTypes.d.ts +26 -1
  29. package/src/sampleView/sampleViewTypes.d.ts +2 -0
  30. package/src/sampleView/state/payloadTypes.d.ts +84 -0
  31. package/src/sampleView/types.d.ts +3 -0
  32. package/src/spec/sampleView.d.ts +58 -0
  33. package/dist/esm-BDFRLEuD.js +0 -1248
  34. package/dist/esm-BY4T8YoD.js +0 -142
  35. package/dist/esm-DJUb6vy0.js +0 -1015
  36. package/dist/esm-DPS6pYKF.js +0 -1248
  37. package/dist/esm-DRZ5LLNH.js +0 -142
  38. package/dist/esm-PDPkTR1_.js +0 -1015
  39. /package/dist/{parquetRead-BuEN-6yG.js → parquetRead-C33mgLEo.js} +0 -0
@@ -1,5 +1,5 @@
1
1
  import { n as e } from "./chunk-CPXzm0be.js";
2
- import { $ as t, A as n, D as r, E as i, G as a, K as o, N as s, O as c, P as l, T as u, U as d, W as f, c as p, i as m, it as h, j as g, k as _, mt as v, vn as y, yn as b } from "./viewUtils-C5htqZCm.js";
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-B7-F_Ae-.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 a(e);
39
+ return d(e);
40
40
  }
41
41
  function k(e) {
42
42
  if (!e.explicitName) return;
43
- let t = a(e);
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 n = /* @__PURE__ */ new Map();
51
- t(e, (e) => {
52
- let t = k(e);
53
- t && n.set(t, (n.get(t) ?? 0) + 1);
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 r = /* @__PURE__ */ new Set();
56
- for (let [e, t] of n) t === 1 && r.add(e);
57
- return r;
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 p && e.isVisible() && ne(e, r) && t.push(e);
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 ? v(t) : !1;
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 = b({
195
+ var le = i({
196
196
  name: "paramProvenance",
197
197
  initialState: { entries: {} },
198
198
  reducers: {
199
199
  paramChange: (e, t) => {
200
- let n = o(t.payload.selector);
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 = o(n.selector), i;
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", h(e.getAttribute("href"), t.baseUrl));
4719
- for (let e of r.querySelectorAll("img[src]")) e.setAttribute("src", h(e.getAttribute("src"), t.baseUrl));
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 s.actions[e.slice(11)];
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 y.actions[e.slice(13)];
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 { u as addValueColors, r as buildCategoricalCountsSummary, c as buildCategoricalFieldSummary, _ as buildQuantitativeFieldSummary, ce as buildSelectionAggregationAttributeIdentifier, n as buildTopCategorySummary, se as createSelectionAggregationCandidateId, S as faStyles, x as formStyles, l as formatAggregationExpression, C as formatScopedParamName, Jn as getActionCreator, i as getConcreteColorScale, P as getContextMenuFieldInfos, D as isBaselineAction, d as makeViewSelectorKey, Kn as safeMarkdown, T as serializeBookmarkableParamValue, g as templateResultToString };
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 };