@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.
Files changed (62) hide show
  1. package/README.md +28 -0
  2. package/dist/{agentApi-DHXYZVvQ.js → agentApi-DgopQbMV.js} +5804 -7009
  3. package/dist/agentApi.es.js +2823 -2594
  4. package/dist/agentShared.es.js +15 -14
  5. package/dist/canvas2d-8uxuN_vx.js +619 -0
  6. package/dist/canvas2d-BtQC7Xr8.js +619 -0
  7. package/dist/canvasSizeHelper-7h_8rOcx.js +56 -0
  8. package/dist/clipOptions-BQfNhxgP.js +2239 -0
  9. package/dist/clipOptions-taFzEljc.js +2259 -0
  10. package/dist/{debug-aHQsa6hU.js → debug-Bzc3SoRg.js} +8 -8
  11. package/dist/{debug-D6FqxKEj.js → debug-D_VtWQ6l.js} +8 -8
  12. package/dist/{esm-CGLz7idZ.js → esm-BA6yMcc-.js} +438 -434
  13. package/dist/{esm-D8vvQAP3.js → esm-CcDLRSvC.js} +33 -33
  14. package/dist/{esm-BeV56E_5.js → esm-CfYZhLHN.js} +33 -33
  15. package/dist/{esm-DQ3lJSQN.js → esm-JAiZmFIS.js} +1 -1
  16. package/dist/index.es.js +3067 -2987
  17. package/dist/index.js +2030 -2022
  18. package/dist/indexer-qiFctgR3.js +72 -0
  19. package/dist/indexer-qy_dq5l5.js +72 -0
  20. package/dist/layoutResult-D50MSHXR.js +97 -0
  21. package/dist/nativeText-DFV5XIx8.js +860 -0
  22. package/dist/nativeText-vT3AWE14.js +860 -0
  23. package/dist/performanceProfiler-CPLEjApa.js +20 -0
  24. package/dist/rasterExport-B8pVoOsj.js +44 -0
  25. package/dist/rasterExport-C4r4xjQT.js +44 -0
  26. package/dist/rasterImage-B4rPLaW9.js +18 -0
  27. package/dist/rasterization-CFogVB3B.js +50 -0
  28. package/dist/rectangle-DKnrAmKs.js +142 -0
  29. package/dist/renderCanvas2D-BQrRWp2Z.js +271 -0
  30. package/dist/renderCanvas2D-CHVNfIUz.js +271 -0
  31. package/dist/schema.json +1559 -219
  32. package/dist/style.css +1 -1
  33. package/dist/svg-C-Sw6E6G.js +1167 -0
  34. package/dist/svg-CKHwwKRt.js +1167 -0
  35. package/dist/{svgNumber-C6aRPc8Z.js → svgNumber-DNxESJQB.js} +1 -1
  36. package/dist/svgRasterizer-BgD72AmG.js +40 -0
  37. package/dist/svgRasterizer-BgSNqI3L.js +40 -0
  38. package/dist/vega-scale-CK0_al6O.js +2700 -0
  39. package/dist/vega-scale-D46-iCaL.js +2700 -0
  40. package/dist/viewError-BiR9VCgL.js +29 -0
  41. package/dist/{viewIdentityRegistry-Dl7rR4Ay.js → viewIdentityRegistry-B-VGlez1.js} +1 -1
  42. package/dist/{viewIdentityRegistry-AEQpJTDm.js → viewIdentityRegistry-CDtVktJD.js} +1 -1
  43. package/dist/viewSelectors-CKfxF_LM.js +1817 -0
  44. package/dist/viewSelectors-D_imtq5Z.js +1817 -0
  45. package/dist/viewUtils-nCJ7AoaI.js +5782 -0
  46. package/dist/warning-CpIIpk8e.js +7 -0
  47. package/dist/webgl-BaA3jSa2.js +4128 -0
  48. package/dist/webgl-FP-4EsBL.js +4128 -0
  49. package/package.json +7 -6
  50. package/dist/bmFontMetrics-CuNB-kNN.js +0 -31
  51. package/dist/clipOptions-Dqco1p8b.js +0 -377
  52. package/dist/framebufferReadback-Bje9lHb7.js +0 -1993
  53. package/dist/framebufferReadback-CC0D6Haw.js +0 -147
  54. package/dist/raster-9uKYMjHZ.js +0 -53
  55. package/dist/raster-BofBWXbe.js +0 -54
  56. package/dist/svg-CvsT1Y2V.js +0 -1793
  57. package/dist/svg-DRgWfcsL.js +0 -1793
  58. package/dist/twgl-full.module-BNEMlXRV.js +0 -1849
  59. package/dist/viewRenderingContext-HtpqwS_x.js +0 -120
  60. package/dist/viewSelectors-BhW4mTR1.js +0 -6386
  61. package/dist/viewSelectors-Bwzj10Qz.js +0 -6363
  62. package/dist/viewUtils-DMNiWslc.js +0 -7228
@@ -1,6 +1,7 @@
1
1
  import { n as e } from "./rolldown-runtime-DF993M8W.js";
2
- import { A as t, F as n, J as r, L as i, M as a, N as o, P as s, R as c, X as l, Y as u, i as d, j as f, k as p, s as m } from "./viewUtils-DMNiWslc.js";
3
- import { C as h, Q as g, i as _, m as v, o as y, t as b } from "./viewSelectors-Bwzj10Qz.js";
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 b(e)) r.selector.param === t && (n += 1);
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 _(e);
40
+ return g(e);
40
41
  }
41
42
  function k(e) {
42
43
  if (!e.explicitName) return;
43
- let t = _(e);
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
- v(e, (e) => {
52
+ _(e, (e) => {
52
53
  let n = k(e);
53
54
  n && t.set(n, (t.get(n) ?? 0) + 1);
54
55
  });
@@ -70,7 +71,7 @@ function N(e, t, n) {
70
71
  if (n) try {
71
72
  let t = [];
72
73
  e.visit((e) => {
73
- e instanceof m && e.isVisible() && ne(e, r) && t.push(e);
74
+ e instanceof f && e.isVisible() && ne(e, r) && t.push(e);
74
75
  });
75
76
  for (let e of t) {
76
77
  let t = e.getEncoding(), n = t?.x && "field" in t.x, r = Object.entries(t).some(([e, t]) => ![
@@ -118,7 +119,7 @@ function F(e) {
118
119
  }
119
120
  function I(e) {
120
121
  try {
121
- return d(e).filter((e) => ![
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 ? g(t) : !1;
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 = l({
196
+ var le = c({
196
197
  name: "paramProvenance",
197
198
  initialState: { entries: {} },
198
199
  reducers: {
199
200
  paramChange: (e, t) => {
200
- let n = y(t.payload.selector);
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 = y(n.selector), i;
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 i.actions[e.slice(11)];
4737
+ if (e.startsWith("sampleView/")) return m.actions[e.slice(11)];
4737
4738
  if (e.startsWith("paramProvenance/")) return le.actions[e.slice(16)];
4738
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 { p as addValueColors, f as buildCategoricalCountsSummary, a as buildCategoricalFieldSummary, o as buildQuantitativeFieldSummary, ce as buildSelectionAggregationAttributeIdentifier, s as buildTopCategorySummary, se as createSelectionAggregationCandidateId, S as faStyles, x as formStyles, c as formatAggregationExpression, C as formatScopedParamName, Jn as getActionCreator, t as getConcreteColorScale, P as getContextMenuFieldInfos, D as isBaselineAction, r as makeViewSelectorKey, Kn as safeMarkdown, T as serializeBookmarkableParamValue, n as templateResultToString };
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 };