@genome-spy/app 1.1.0 → 1.2.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 (47) hide show
  1. package/dist/{agentApi-BgZUOeB-.js → agentApi-8hMSlqAQ.js} +8459 -6960
  2. package/dist/agentApi.es.js +5609 -4236
  3. package/dist/agentShared.es.js +9 -9
  4. package/dist/{canvas2d-DiPQvNtZ.js → canvas2d-Bd8H8MMo.js} +149 -134
  5. package/dist/{canvas2d-t_N10CeW.js → canvas2d-D6VYooRf.js} +136 -122
  6. package/dist/{clipOptions-Cba4I0AO.js → clipOptions-DElJ8dTZ.js} +2274 -2080
  7. package/dist/{clipOptions-B5PibDq3.js → clipOptions-D_wBNhzs.js} +2121 -1957
  8. package/dist/{viewIdentityRegistry-BW415b3o.js → containerView-CRJSc4bM.js} +24 -31
  9. package/dist/{viewIdentityRegistry-_F0E7nkA.js → containerView-aEVmYmkA.js} +24 -31
  10. package/dist/{debug-DP4WzTNo.js → debug-CQ0agCrd.js} +9 -9
  11. package/dist/{debug-CVAlrcZt.js → debug-DkIMiGdW.js} +10 -10
  12. package/dist/index.es.js +1133 -1115
  13. package/dist/index.js +757 -513
  14. package/dist/{indexer-En7gpvLN.js → indexer-DDC0YRGn.js} +1 -1
  15. package/dist/{indexer-DbFTKGlm.js → indexer-DOYMJ-Md.js} +1 -1
  16. package/dist/markUtils-CvLDz744.js +75 -0
  17. package/dist/{metadataChannels-DV62inJh.js → metadataChannels-DLSmx7kU.js} +6 -3
  18. package/dist/{order-R043xTpC.js → order-BVvkjDRT.js} +369 -316
  19. package/dist/{order-BkYCnwD7.js → order-DmMoZsi1.js} +360 -308
  20. package/dist/{rasterExport-C_FcNBkC.js → rasterExport-DxvowWjH.js} +4 -4
  21. package/dist/{rasterExport-Z7gs5346.js → rasterExport-jeRVq6kY.js} +4 -4
  22. package/dist/rasterization-CFogVB3B.js +50 -0
  23. package/dist/rasterization-DFj3Cvx4.js +67 -0
  24. package/dist/{rectangle-DE98gIxF.js → rectangle-DZTR6NFQ.js} +10 -1
  25. package/dist/rectangle-Dl4Dy0hS.js +191 -0
  26. package/dist/{renderCanvas2D-DK1c9TFK.js → renderCanvas2D-Bfm1NHFu.js} +99 -94
  27. package/dist/{renderCanvas2D-IM-A9DYG.js → renderCanvas2D-DVjhp834.js} +101 -96
  28. package/dist/scalePosition-0aeqp_kz.js +18 -0
  29. package/dist/schema.json +27198 -13709
  30. package/dist/style.css +1 -1
  31. package/dist/{svg-DW3tfUmm.js → svg-Bm2zxBPu.js} +316 -317
  32. package/dist/{svg-PabUdcDi.js → svg-CkfuhONt.js} +290 -291
  33. package/dist/{svgRasterizer-B6YtWLJs.js → svgRasterizer-DoRQEqFA.js} +3 -3
  34. package/dist/{svgRasterizer-BEVDyyS3.js → svgRasterizer-raDDhBF-.js} +3 -3
  35. package/dist/{vega-scale-Byaw1K8O.js → vega-scale-BoGHANI7.js} +90 -90
  36. package/dist/{vega-scale-Ctz_wa3z.js → vega-scale-o9TRyzYH.js} +699 -699
  37. package/dist/viewError-BkJeVYXA.js +33 -0
  38. package/dist/viewError-IYqyluc7.js +33 -0
  39. package/dist/{viewSelectors-KtD-QSN0.js → viewSelectors-7LyasQN-.js} +572 -478
  40. package/dist/{viewSelectors-DYz-PhTO.js → viewSelectors-CbmkSQRT.js} +624 -530
  41. package/dist/{viewUtils-BZGPseMx.js → viewUtils-DuddMNNw.js} +2146 -2016
  42. package/dist/{webgl-tdKf9SlZ.js → webgl-CQfvgnxo.js} +1247 -1137
  43. package/dist/{webgl-BKSGqHaz.js → webgl-DVYkXtiZ.js} +1495 -1386
  44. package/package.json +4 -4
  45. package/src/spec/view.d.ts +44 -5
  46. package/dist/rasterization-_-9JmSas.js +0 -63
  47. package/dist/viewError-BiR9VCgL.js +0 -29
@@ -1,4 +1,4 @@
1
- import { nn as e } from "./clipOptions-B5PibDq3.js";
1
+ import { mn as e } from "./clipOptions-DElJ8dTZ.js";
2
2
  //#region ../../node_modules/d3-array/src/identity.js
3
3
  function t(e) {
4
4
  return e;
@@ -1,4 +1,4 @@
1
- import { $t as e } from "./clipOptions-Cba4I0AO.js";
1
+ import { dn as e } from "./clipOptions-D_wBNhzs.js";
2
2
  //#region ../../node_modules/d3-array/src/identity.js
3
3
  function t(e) {
4
4
  return e;
@@ -0,0 +1,75 @@
1
+ import { P as e, b as t, c as n, p as r, u as i, x as a } from "./clipOptions-D_wBNhzs.js";
2
+ //#region ../core/src/marks/markUtils.js
3
+ var o = Symbol("half-open interval peer");
4
+ function s(e) {
5
+ return e?.[o];
6
+ }
7
+ function c(e, n) {
8
+ let a = t(n), s = r(e[n]), c = r(e[a]);
9
+ s && c && ["index", "locus"].includes(s.type) && (e[n] = i(e[n], {
10
+ ...e[n],
11
+ [o]: a
12
+ }), e[a] = i(e[a], {
13
+ ...e[a],
14
+ [o]: n
15
+ }));
16
+ }
17
+ function l(n) {
18
+ for (let i of ["x", "y"]) {
19
+ let a = t(i), o = n[i], s = n[a];
20
+ if (o && s && e(o) && !r(o) && r(s)) throw Error(`Cannot combine encoding.${i}.value with scale-backed encoding.${a}. Use encoding.${i}.datum for a constant data-domain endpoint, or use encoding.${a}.value for a visual-domain endpoint.`);
21
+ }
22
+ }
23
+ function u(n, r, o = !1) {
24
+ let s = t(r);
25
+ c(n, r);
26
+ let l = n[r] && i(n[r], { ...n[r] }), u = n[s] && i(n[s], { ...n[s] });
27
+ if (!(e(l) || e(u))) {
28
+ if (l) {
29
+ if (!a(n[r])) return;
30
+ if (!u) {
31
+ if (l.type == "quantitative") u = {
32
+ datum: 0,
33
+ domainInert: !0
34
+ };
35
+ else {
36
+ u = i(l, { ...l });
37
+ let e = (1 - (l.band ?? 1)) / 2;
38
+ l.band = 0 + e, u.band = o ? l.band : 1 - e;
39
+ }
40
+ } else if (l.type != "quantitative") {
41
+ let e = (1 - (l.band || 1)) / 2;
42
+ l.band = e, u.band = -e;
43
+ }
44
+ } else l = { value: 0 }, u = { value: 1 };
45
+ n[r] = l, n[s] = u;
46
+ }
47
+ }
48
+ function d(n, r) {
49
+ c(n, r);
50
+ let o = t(r), s = n[r], l = n[o];
51
+ if (!s || !l || e(s) || e(l) || !a(s) || !a(l) || !["index", "locus"].includes(s.type)) return;
52
+ let u = s.band, d = l.band, f = u ?? d ?? 0;
53
+ n[r] = i(s, {
54
+ ...s,
55
+ band: f
56
+ }), n[o] = i(l, {
57
+ ...l,
58
+ band: d ?? f
59
+ });
60
+ }
61
+ function f(e, t) {
62
+ let n = r(e);
63
+ n && (n.resolutionChannel = t);
64
+ }
65
+ function p(t, r) {
66
+ t.stroke || (r ? t.stroke = { value: null } : (t.stroke = n(t.color), f(t.stroke, "color"))), e(t.stroke) && t.stroke.value === null && (t.strokeWidth = { value: 0 }), t.strokeOpacity || (t.strokeOpacity = n(t.opacity), f(t.strokeOpacity, "opacity"));
67
+ }
68
+ function m(t, r) {
69
+ e(t.fill) && t.fill.value === null ? t.fillOpacity = { value: 0 } : t.fill || (t.fill = n(t.color), f(t.fill, "color"), !r && !t.fillOpacity && (t.fillOpacity = { value: 0 })), t.fillOpacity || (r ? (t.fillOpacity = n(t.opacity), f(t.fillOpacity, "opacity")) : t.fillOpacity = { value: 0 });
70
+ }
71
+ function h(e, t) {
72
+ return e.properties.clamp === !0 || e.properties.clamp === t;
73
+ }
74
+ //#endregion
75
+ export { d as a, h as c, m as i, l, c as n, p as o, u as r, s, o as t };
@@ -1,8 +1,11 @@
1
1
  //#region ../core/src/encoder/metadataChannels.js
2
2
  function e(e) {
3
- return t(e?.search, "search");
3
+ return n(e?.key, "key");
4
4
  }
5
- function t(e, t) {
5
+ function t(e) {
6
+ return n(e?.search, "search");
7
+ }
8
+ function n(e, t) {
6
9
  if (!e) return;
7
10
  let n = Array.isArray(e) ? e : [e];
8
11
  if (n.length === 0) throw Error("The " + t + " channel array must not be empty.");
@@ -16,4 +19,4 @@ function t(e, t) {
16
19
  return r;
17
20
  }
18
21
  //#endregion
19
- export { e as t };
22
+ export { t as n, e as t };