@genome-spy/core 0.60.0 → 0.60.1

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.
@@ -1382,34 +1382,34 @@ function H1(t) {
1382
1382
  var C = g === "$" ? n : g === "#" && /[boxX]/.test(E) ? "0" + E.toLowerCase() : "", S = g === "$" ? r : /[%p]/.test(E) ? o : "", P = ef[E], L = /[defgprs%]/.test(E);
1383
1383
  b = b === void 0 ? 6 : /[gprs]/.test(E) ? Math.max(1, Math.min(21, b)) : Math.max(0, Math.min(20, b));
1384
1384
  function k(T) {
1385
- var U = C, G = S, q, J, z;
1385
+ var G = C, U = S, j, K, z;
1386
1386
  if (E === "c")
1387
- G = P(T) + G, T = "";
1387
+ U = P(T) + U, T = "";
1388
1388
  else {
1389
1389
  T = +T;
1390
1390
  var ee = T < 0 || 1 / T < 0;
1391
- if (T = isNaN(T) ? c : P(Math.abs(T), b), w && (T = U1(T)), ee && +T == 0 && p !== "+" && (ee = !1), U = (ee ? p === "(" ? p : a : p === "-" || p === "(" ? "" : p) + U, G = (E === "s" ? rf[8 + l0 / 3] : "") + G + (ee && p === "(" ? ")" : ""), L) {
1392
- for (q = -1, J = T.length; ++q < J; )
1393
- if (z = T.charCodeAt(q), 48 > z || z > 57) {
1394
- G = (z === 46 ? i + T.slice(q + 1) : T.slice(q)) + G, T = T.slice(0, q);
1391
+ if (T = isNaN(T) ? c : P(Math.abs(T), b), w && (T = U1(T)), ee && +T == 0 && p !== "+" && (ee = !1), G = (ee ? p === "(" ? p : a : p === "-" || p === "(" ? "" : p) + G, U = (E === "s" ? rf[8 + l0 / 3] : "") + U + (ee && p === "(" ? ")" : ""), L) {
1392
+ for (j = -1, K = T.length; ++j < K; )
1393
+ if (z = T.charCodeAt(j), 48 > z || z > 57) {
1394
+ U = (z === 46 ? i + T.slice(j + 1) : T.slice(j)) + U, T = T.slice(0, j);
1395
1395
  break;
1396
1396
  }
1397
1397
  }
1398
1398
  }
1399
1399
  x && !m && (T = e(T, 1 / 0));
1400
- var ne = U.length + T.length + G.length, j = ne < y ? new Array(y - ne + 1).join(h) : "";
1401
- switch (x && m && (T = e(j + T, j.length ? y - G.length : 1 / 0), j = ""), d) {
1400
+ var ne = G.length + T.length + U.length, X = ne < y ? new Array(y - ne + 1).join(h) : "";
1401
+ switch (x && m && (T = e(X + T, X.length ? y - U.length : 1 / 0), X = ""), d) {
1402
1402
  case "<":
1403
- T = U + T + G + j;
1403
+ T = G + T + U + X;
1404
1404
  break;
1405
1405
  case "=":
1406
- T = U + j + T + G;
1406
+ T = G + X + T + U;
1407
1407
  break;
1408
1408
  case "^":
1409
- T = j.slice(0, ne = j.length >> 1) + U + T + G + j.slice(ne);
1409
+ T = X.slice(0, ne = X.length >> 1) + G + T + U + X.slice(ne);
1410
1410
  break;
1411
1411
  default:
1412
- T = j + U + T + G;
1412
+ T = X + G + T + U;
1413
1413
  break;
1414
1414
  }
1415
1415
  return s(T);
@@ -1688,7 +1688,7 @@ function p0(t) {
1688
1688
  var e = t.dateTime, n = t.date, r = t.time, i = t.periods, s = t.days, o = t.shortDays, a = t.months, c = t.shortMonths, u = ci(i), f = ui(i), l = ci(s), h = ui(s), d = ci(o), p = ui(o), g = ci(a), m = ui(a), y = ci(c), x = ui(c), b = {
1689
1689
  a: ee,
1690
1690
  A: ne,
1691
- b: j,
1691
+ b: X,
1692
1692
  B: zt,
1693
1693
  c: null,
1694
1694
  d: ff,
@@ -1754,9 +1754,9 @@ function p0(t) {
1754
1754
  }, E = {
1755
1755
  a: k,
1756
1756
  A: T,
1757
- b: U,
1758
- B: G,
1759
- c: q,
1757
+ b: G,
1758
+ B: U,
1759
+ c: j,
1760
1760
  d: uf,
1761
1761
  e: uf,
1762
1762
  f: C2,
@@ -1778,7 +1778,7 @@ function p0(t) {
1778
1778
  V: g2,
1779
1779
  w: h2,
1780
1780
  W: m2,
1781
- x: J,
1781
+ x: K,
1782
1782
  X: z,
1783
1783
  y: cf,
1784
1784
  Y: af,
@@ -1829,18 +1829,18 @@ function p0(t) {
1829
1829
  var D = l.exec(H.slice(V));
1830
1830
  return D ? (F.w = h.get(D[0].toLowerCase()), V + D[0].length) : -1;
1831
1831
  }
1832
- function U(F, H, V) {
1832
+ function G(F, H, V) {
1833
1833
  var D = y.exec(H.slice(V));
1834
1834
  return D ? (F.m = x.get(D[0].toLowerCase()), V + D[0].length) : -1;
1835
1835
  }
1836
- function G(F, H, V) {
1836
+ function U(F, H, V) {
1837
1837
  var D = g.exec(H.slice(V));
1838
1838
  return D ? (F.m = m.get(D[0].toLowerCase()), V + D[0].length) : -1;
1839
1839
  }
1840
- function q(F, H, V) {
1840
+ function j(F, H, V) {
1841
1841
  return P(F, e, H, V);
1842
1842
  }
1843
- function J(F, H, V) {
1843
+ function K(F, H, V) {
1844
1844
  return P(F, n, H, V);
1845
1845
  }
1846
1846
  function z(F, H, V) {
@@ -1852,7 +1852,7 @@ function p0(t) {
1852
1852
  function ne(F) {
1853
1853
  return s[F.getDay()];
1854
1854
  }
1855
- function j(F) {
1855
+ function X(F) {
1856
1856
  return c[F.getMonth()];
1857
1857
  }
1858
1858
  function zt(F) {
@@ -5331,35 +5331,35 @@ function j3(t, e, n) {
5331
5331
  };
5332
5332
  return r.metadata = xo(lc(n)), r;
5333
5333
  }
5334
- function X(t, e, n) {
5334
+ function q(t, e, n) {
5335
5335
  return arguments.length > 1 ? (Oo.set(t, j3(t, e, n)), this) : X3(t) ? Oo.get(t) : void 0;
5336
5336
  }
5337
- X(z3, ep);
5338
- X(jr, $d, le);
5339
- X(en, sl, [le, en]);
5340
- X(Bs, cl, le);
5341
- X(Ms, b3, le);
5342
- X(wa, np, le);
5343
- X(fp, E3, [le, mp]);
5344
- X(hp, C3, [le, mp]);
5345
- X(gt, ll, [le, $e]);
5346
- X(`${gt}-${jr}`, ll, [le, $e]);
5347
- X(`${gt}-${en}`, op, [le, $e, en]);
5348
- X(`${gt}-${Bs}`, fl, [le, $e]);
5349
- X(`${gt}-${Ms}`, S3, [le, $e]);
5350
- X(`${gt}-${wa}`, ap, [le, $e]);
5351
- X(`${$r}-${jr}`, cp, [le, $e]);
5352
- X(`${$r}-${en}`, up, [le, $e, en]);
5353
- X(`${$r}-${Bs}`, hl, [le, $e]);
5354
- X(`${$r}-${Ms}`, D3, [le, $e]);
5355
- X(`${$r}-${wa}`, lp, [le, $e]);
5356
- X(zc, rp, [Fs, zc]);
5357
- X(dp, ip, Fs);
5358
- X(pp, sp, Fs);
5359
- X(gl, Ap, [Ts, Fs]);
5360
- X(pl, _u, Ts);
5361
- X(gp, ml, Ts);
5362
- X(Nc, G3, Ts);
5337
+ q(z3, ep);
5338
+ q(jr, $d, le);
5339
+ q(en, sl, [le, en]);
5340
+ q(Bs, cl, le);
5341
+ q(Ms, b3, le);
5342
+ q(wa, np, le);
5343
+ q(fp, E3, [le, mp]);
5344
+ q(hp, C3, [le, mp]);
5345
+ q(gt, ll, [le, $e]);
5346
+ q(`${gt}-${jr}`, ll, [le, $e]);
5347
+ q(`${gt}-${en}`, op, [le, $e, en]);
5348
+ q(`${gt}-${Bs}`, fl, [le, $e]);
5349
+ q(`${gt}-${Ms}`, S3, [le, $e]);
5350
+ q(`${gt}-${wa}`, ap, [le, $e]);
5351
+ q(`${$r}-${jr}`, cp, [le, $e]);
5352
+ q(`${$r}-${en}`, up, [le, $e, en]);
5353
+ q(`${$r}-${Bs}`, hl, [le, $e]);
5354
+ q(`${$r}-${Ms}`, D3, [le, $e]);
5355
+ q(`${$r}-${wa}`, lp, [le, $e]);
5356
+ q(zc, rp, [Fs, zc]);
5357
+ q(dp, ip, Fs);
5358
+ q(pp, sp, Fs);
5359
+ q(gl, Ap, [Ts, Fs]);
5360
+ q(pl, _u, Ts);
5361
+ q(gp, ml, Ts);
5362
+ q(Nc, G3, Ts);
5363
5363
  function X3(t) {
5364
5364
  return Oo.has(t);
5365
5365
  }
@@ -5490,7 +5490,7 @@ vp(J3, (t) => Ea(wp(t)));
5490
5490
  function yl(t, e) {
5491
5491
  return t = t && t.toLowerCase(), arguments.length > 1 ? ($f[t] = e, this) : $f[t];
5492
5492
  }
5493
- function Z(t, e = t) {
5493
+ function J(t, e = t) {
5494
5494
  if (/^[A-Za-z0-9_]+$/.test(t)) {
5495
5495
  const n = function(i) {
5496
5496
  t in i || $3(i, t);
@@ -5554,7 +5554,7 @@ function hv(t) {
5554
5554
  return [];
5555
5555
  }
5556
5556
  }
5557
- var wt, I, v, Ce, K, Ca = 1, Ps = 2, Zn = 3, gn = 4, Sa = 5, nr = 6, Oe = 7, Rs = 8, dv = 9;
5557
+ var wt, I, v, Ce, Z, Ca = 1, Ps = 2, Zn = 3, gn = 4, Sa = 5, nr = 6, Oe = 7, Rs = 8, dv = 9;
5558
5558
  wt = {};
5559
5559
  wt[Ca] = "Boolean";
5560
5560
  wt[Ps] = "<end>";
@@ -5948,7 +5948,7 @@ function Vv() {
5948
5948
  }
5949
5949
  function Qv() {
5950
5950
  var t, e, n, r;
5951
- return K = null, Sp(), t = v, e = Hv(), n = Vv(), r = Gv(e.value, n.value), {
5951
+ return Z = null, Sp(), t = v, e = Hv(), n = Vv(), r = Gv(e.value, n.value), {
5952
5952
  literal: e.literal + n.literal,
5953
5953
  value: r,
5954
5954
  regex: {
@@ -5973,12 +5973,12 @@ function Bp() {
5973
5973
  return ks(t) ? Lv() : t === 40 || t === 41 || t === 59 ? nc() : t === 39 || t === 34 ? Uv() : t === 46 ? St(I.charCodeAt(v + 1)) ? eh() : nc() : St(t) ? eh() : nc();
5974
5974
  }
5975
5975
  function Le() {
5976
- const t = K;
5977
- return v = t.end, K = Bp(), v = t.end, t;
5976
+ const t = Z;
5977
+ return v = t.end, Z = Bp(), v = t.end, t;
5978
5978
  }
5979
5979
  function Mp() {
5980
5980
  const t = v;
5981
- K = Bp(), v = t;
5981
+ Z = Bp(), v = t;
5982
5982
  }
5983
5983
  function Yv(t) {
5984
5984
  const e = new ct(pv);
@@ -6032,25 +6032,25 @@ function Se(t) {
6032
6032
  (e.type !== Oe || e.value !== t) && Ba(e);
6033
6033
  }
6034
6034
  function te(t) {
6035
- return K.type === Oe && K.value === t;
6035
+ return Z.type === Oe && Z.value === t;
6036
6036
  }
6037
6037
  function rc(t) {
6038
- return K.type === gn && K.value === t;
6038
+ return Z.type === gn && Z.value === t;
6039
6039
  }
6040
6040
  function Zv() {
6041
6041
  const t = [];
6042
- for (v = K.start, Se("["); !te("]"); )
6042
+ for (v = Z.start, Se("["); !te("]"); )
6043
6043
  te(",") ? (Le(), t.push(null)) : (t.push(Jn()), te("]") || Se(","));
6044
6044
  return Le(), Yv(t);
6045
6045
  }
6046
6046
  function ih() {
6047
- v = K.start;
6047
+ v = Z.start;
6048
6048
  const t = Le();
6049
6049
  return t.type === Rs || t.type === nr ? (t.octal && W(t, Cp), di(t)) : xl(t.value);
6050
6050
  }
6051
6051
  function Jv() {
6052
6052
  var t, e, n, r;
6053
- if (v = K.start, t = K, t.type === Zn)
6053
+ if (v = Z.start, t = Z, t.type === Zn)
6054
6054
  return n = ih(), Se(":"), r = Jn(), rh("init", n, r);
6055
6055
  if (t.type === Ps || t.type === Oe)
6056
6056
  Ba(t);
@@ -6059,7 +6059,7 @@ function Jv() {
6059
6059
  }
6060
6060
  function _v() {
6061
6061
  var t = [], e, n, r, i = {}, s = String;
6062
- for (v = K.start, Se("{"); !te("}"); )
6062
+ for (v = Z.start, Se("{"); !te("}"); )
6063
6063
  e = Jv(), e.key.type === Ep ? n = e.key.name : n = s(e.key.value), r = "$" + n, Object.prototype.hasOwnProperty.call(i, r) ? W({}, Tv) : i[r] = !0, t.push(e), te("}") || Se(",");
6064
6064
  return Se("}"), qv(t);
6065
6065
  }
@@ -6079,10 +6079,10 @@ function tE() {
6079
6079
  return Zv();
6080
6080
  if (te("{"))
6081
6081
  return _v();
6082
- if (t = K.type, v = K.start, t === Zn || eE[K.value])
6082
+ if (t = Z.type, v = Z.start, t === Zn || eE[Z.value])
6083
6083
  n = xl(Le().value);
6084
6084
  else if (t === Rs || t === nr)
6085
- K.octal && W(K, Cp), n = di(Le());
6085
+ Z.octal && W(Z, Cp), n = di(Le());
6086
6086
  else {
6087
6087
  if (t === gn)
6088
6088
  throw new Error(Xi);
@@ -6098,7 +6098,7 @@ function nE() {
6098
6098
  return Se(")"), t;
6099
6099
  }
6100
6100
  function rE() {
6101
- v = K.start;
6101
+ v = Z.start;
6102
6102
  const t = Le();
6103
6103
  return Wv(t) || Ba(t), xl(t.value);
6104
6104
  }
@@ -6125,13 +6125,13 @@ function oE() {
6125
6125
  }
6126
6126
  function sh() {
6127
6127
  const t = oE();
6128
- if (K.type === Oe && (te("++") || te("--")))
6128
+ if (Z.type === Oe && (te("++") || te("--")))
6129
6129
  throw new Error(Xi);
6130
6130
  return t;
6131
6131
  }
6132
6132
  function uo() {
6133
6133
  var t, e;
6134
- if (K.type !== Oe && K.type !== gn)
6134
+ if (Z.type !== Oe && Z.type !== gn)
6135
6135
  e = sh();
6136
6136
  else {
6137
6137
  if (te("++") || te("--"))
@@ -6199,12 +6199,12 @@ function oh(t) {
6199
6199
  }
6200
6200
  function aE() {
6201
6201
  var t, e, n, r, i, s, o, a, c, u;
6202
- if (t = K, c = uo(), r = K, i = oh(r), i === 0)
6202
+ if (t = Z, c = uo(), r = Z, i = oh(r), i === 0)
6203
6203
  return c;
6204
- for (r.prec = i, Le(), e = [t, K], o = uo(), s = [c, r, o]; (i = oh(K)) > 0; ) {
6204
+ for (r.prec = i, Le(), e = [t, Z], o = uo(), s = [c, r, o]; (i = oh(Z)) > 0; ) {
6205
6205
  for (; s.length > 2 && i <= s[s.length - 2].prec; )
6206
6206
  o = s.pop(), a = s.pop().value, c = s.pop(), e.pop(), n = th(a, c, o), s.push(n);
6207
- r = Le(), r.prec = i, s.push(r), e.push(K), n = uo(), s.push(n);
6207
+ r = Le(), r.prec = i, s.push(r), e.push(Z), n = uo(), s.push(n);
6208
6208
  }
6209
6209
  for (u = s.length - 1, n = s[u], e.pop(); u > 1; )
6210
6210
  e.pop(), n = th(s[u - 1].value, s[u - 2], n), u -= 2;
@@ -6221,9 +6221,9 @@ function bl() {
6221
6221
  return t;
6222
6222
  }
6223
6223
  function cE(t) {
6224
- I = t, v = 0, Ce = I.length, K = null, Mp();
6224
+ I = t, v = 0, Ce = I.length, Z = null, Mp();
6225
6225
  const e = bl();
6226
- if (K.type !== Ps)
6226
+ if (Z.type !== Ps)
6227
6227
  throw new Error("Unexpect token after expression.");
6228
6228
  return e;
6229
6229
  }
@@ -7106,7 +7106,7 @@ function lh(t, e, n) {
7106
7106
  }
7107
7107
  if (yn(e))
7108
7108
  try {
7109
- return r(Z(e.field));
7109
+ return r(J(e.field));
7110
7110
  } catch (s) {
7111
7111
  throw new Error(`Invalid field definition: ${s.message}`);
7112
7112
  }
@@ -9037,9 +9037,9 @@ class Gs {
9037
9037
  `// Selection texture
9038
9038
  uniform highp usampler2D ${k};`
9039
9039
  );
9040
- const T = this.getContext().glHelper, U = T.selectionTextures;
9040
+ const T = this.getContext().glHelper, G = T.selectionTextures;
9041
9041
  this.selectionTextureOps.push(() => {
9042
- const J = S.getValue(C), z = U.get(J);
9042
+ const K = S.getValue(C), z = G.get(K);
9043
9043
  if (!z)
9044
9044
  throw new Error(
9045
9045
  `Bug: no selection texture found for "${C}"!`
@@ -9048,57 +9048,57 @@ uniform highp usampler2D ${k};`
9048
9048
  [k]: z
9049
9049
  });
9050
9050
  });
9051
- const G = xh + C;
9051
+ const U = xh + C;
9052
9052
  c.push(
9053
9053
  `bool ${gi}${C}(bool empty) {
9054
- return binarySearchTexture(${G}, ${L}) || (empty && isEmptyBinarySearchTexture(${G}));
9054
+ return binarySearchTexture(${U}, ${L}) || (empty && isEmptyBinarySearchTexture(${U}));
9055
9055
  }`
9056
9056
  ), T.createSelectionTexture(P);
9057
- const q = S.createExpression(C);
9058
- q.addListener(() => {
9059
- const J = (
9057
+ const j = S.createExpression(C);
9058
+ j.addListener(() => {
9059
+ const K = (
9060
9060
  /** @type {import("../types/selectionTypes.js").MultiPointSelection} */
9061
- q(null)
9061
+ j(null)
9062
9062
  );
9063
- T.createSelectionTexture(J), this.getContext().animator.requestRender();
9063
+ T.createSelectionTexture(K), this.getContext().animator.requestRender();
9064
9064
  });
9065
9065
  }
9066
9066
  } else if (Lp(P) && !d.has(C)) {
9067
9067
  d.set(C, "interval");
9068
9068
  const k = [], T = [];
9069
- for (const U of Object.keys(P.intervals)) {
9070
- if (!["x", "y"].includes(U))
9069
+ for (const G of Object.keys(P.intervals)) {
9070
+ if (!["x", "y"].includes(G))
9071
9071
  continue;
9072
- const G = io + wi(C) + `_${U}`, { attributeType: q } = qr(
9073
- this.unitView.getScaleResolution(U).scale,
9074
- U
9072
+ const U = io + wi(C) + `_${G}`, { attributeType: j } = qr(
9073
+ this.unitView.getScaleResolution(G).scale,
9074
+ G
9075
9075
  );
9076
9076
  l.push(" // Selection parameter"), l.push(
9077
- ` uniform highp ${q}[2] ${G};`
9077
+ ` uniform highp ${j}[2] ${U};`
9078
9078
  ), A(this, rt).push(() => {
9079
9079
  this.registerMarkUniformValue(
9080
- G,
9080
+ U,
9081
9081
  { expr: C },
9082
- (j) => j.intervals[U] ?? [
9082
+ (X) => X.intervals[G] ?? [
9083
9083
  1 / 0,
9084
9084
  -1 / 0
9085
9085
  ]
9086
9086
  );
9087
9087
  });
9088
- const J = dr + U, z = G + "[0]", ee = G + "[1]", ne = Yp(U);
9088
+ const K = dr + G, z = U + "[0]", ee = U + "[1]", ne = Yp(G);
9089
9089
  if (this.encoding[ne]) {
9090
- const j = dr + ne, zt = this.defaultHitTestMode;
9090
+ const X = dr + ne, zt = this.defaultHitTestMode;
9091
9091
  if (zt == "endpoints")
9092
9092
  k.push(
9093
- `((${z} <= ${J} && ${J} <= ${ee}) || (${z} <= ${j} && ${j} <= ${ee}))`
9093
+ `((${z} <= ${K} && ${K} <= ${ee}) || (${z} <= ${X} && ${X} <= ${ee}))`
9094
9094
  );
9095
9095
  else if (zt == "encloses")
9096
9096
  k.push(
9097
- `(${z} <= ${J} && ${j} <= ${ee})`
9097
+ `(${z} <= ${K} && ${X} <= ${ee})`
9098
9098
  );
9099
9099
  else if (zt == "intersects")
9100
9100
  k.push(
9101
- `(${z} <= ${j} && ${J} <= ${ee})`
9101
+ `(${z} <= ${X} && ${K} <= ${ee})`
9102
9102
  );
9103
9103
  else
9104
9104
  throw new Kt(
@@ -9107,7 +9107,7 @@ uniform highp usampler2D ${k};`
9107
9107
  );
9108
9108
  } else
9109
9109
  k.push(
9110
- `(${z} <= ${J} && ${J} <= ${ee})`
9110
+ `(${z} <= ${K} && ${K} <= ${ee})`
9111
9111
  );
9112
9112
  T.push(`${z} > ${ee}`);
9113
9113
  }
@@ -9122,15 +9122,15 @@ uniform highp usampler2D ${k};`
9122
9122
  const L = C.channelDef;
9123
9123
  if (_e(L))
9124
9124
  if (Me(L.value)) {
9125
- const { uniformName: k, uniformGlsl: T, accessorGlsl: U, adjuster: G } = YE(
9125
+ const { uniformName: k, uniformGlsl: T, accessorGlsl: G, adjuster: U } = YE(
9126
9126
  E,
9127
9127
  S
9128
9128
  );
9129
- c.push(U), l.push(T), A(this, rt).push(() => {
9129
+ c.push(G), l.push(T), A(this, rt).push(() => {
9130
9130
  this.registerMarkUniformValue(
9131
9131
  k,
9132
9132
  L.value,
9133
- G
9133
+ U
9134
9134
  );
9135
9135
  });
9136
9136
  } else
@@ -9142,34 +9142,34 @@ uniform highp usampler2D ${k};`
9142
9142
  ).accessorGlsl
9143
9143
  );
9144
9144
  else if (Os(L)) {
9145
- const { uniformName: k, uniformGlsl: T, accessorGlsl: U } = jE(
9145
+ const { uniformName: k, uniformGlsl: T, accessorGlsl: G } = jE(
9146
9146
  E,
9147
9147
  P,
9148
9148
  S
9149
9149
  );
9150
- l.push(T), c.push(U);
9151
- const { largeHp: G, discrete: q } = qr(
9150
+ l.push(T), c.push(G);
9151
+ const { largeHp: U, discrete: j } = qr(
9152
9152
  P,
9153
9153
  E
9154
- ), J = q && "domain" in P ? (z) => P.domain().indexOf(z) : G ? eg : (z) => +z;
9154
+ ), K = j && "domain" in P ? (z) => P.domain().indexOf(z) : U ? eg : (z) => +z;
9155
9155
  A(this, rt).push(() => {
9156
9156
  this.registerMarkUniformValue(
9157
9157
  k,
9158
9158
  L.datum,
9159
- J
9159
+ K
9160
9160
  );
9161
9161
  });
9162
9162
  } else if (yn(L)) {
9163
9163
  const k = f.get([
9164
9164
  L.field,
9165
9165
  !0
9166
- ]), { attributeGlsl: T, accessorGlsl: U } = hh(
9166
+ ]), { attributeGlsl: T, accessorGlsl: G } = hh(
9167
9167
  E,
9168
9168
  P,
9169
9169
  S,
9170
9170
  k != null && k.includes(E) ? k : void 0
9171
9171
  );
9172
- u.add(T), c.push(U);
9172
+ u.add(T), c.push(G);
9173
9173
  } else if (Ls(L)) {
9174
9174
  const { attributeGlsl: k, accessorGlsl: T } = hh(
9175
9175
  E,
@@ -9193,20 +9193,20 @@ uniform highp usampler2D ${k};`
9193
9193
  p(E, P[k], k, L);
9194
9194
  if (L) {
9195
9195
  const k = Ye(S) && S.resolutionChannel || E, T = Zi(k) ? this.unitView.getScaleResolution(k) : null, {
9196
- glsl: U,
9197
- domainUniform: G,
9198
- domainUniformName: q,
9199
- rangeUniform: J,
9196
+ glsl: G,
9197
+ domainUniform: U,
9198
+ domainUniformName: j,
9199
+ rangeUniform: K,
9200
9200
  rangeUniformName: z
9201
9201
  } = XE(E, L, S);
9202
- c.push(U), l.push(G), l.push(J), J && A(this, rt).push(() => {
9202
+ c.push(G), l.push(U), l.push(K), K && A(this, rt).push(() => {
9203
9203
  const ee = this.createMarkUniformSetter(z), ne = () => ee(ng(L, E));
9204
9204
  T.addEventListener("range", ne), ne();
9205
- }), G && A(this, rt).push(() => {
9206
- const ee = this.createMarkUniformSetter(q), ne = () => {
9207
- const j = tn(L.type) ? [0, L.domain().length] : L.domain();
9205
+ }), U && A(this, rt).push(() => {
9206
+ const ee = this.createMarkUniformSetter(j), ne = () => {
9207
+ const X = tn(L.type) ? [0, L.domain().length] : L.domain();
9208
9208
  ee(
9209
- $p(L.type) ? e4(j) : j
9209
+ $p(L.type) ? e4(X) : X
9210
9210
  );
9211
9211
  };
9212
9212
  T.addEventListener("domain", ne), ne();
@@ -11001,7 +11001,7 @@ function pg(t, e, n) {
11001
11001
  );
11002
11002
  }
11003
11003
  function sC(t, e) {
11004
- const n = oC(t), r = X(n);
11004
+ const n = oC(t), r = q(n);
11005
11005
  if (!r)
11006
11006
  throw new Error("Unknown scale type: " + n);
11007
11007
  const i = r();
@@ -11641,9 +11641,9 @@ function TC(t) {
11641
11641
  function FC(t, e, n) {
11642
11642
  return t * Math.pow(e / t, n);
11643
11643
  }
11644
- X("index", Ml, ["continuous"]);
11645
- X("locus", Y4, ["continuous"]);
11646
- X("null", Sl, []);
11644
+ q("index", Ml, ["continuous"]);
11645
+ q("locus", Y4, ["continuous"]);
11646
+ q("null", Sl, []);
11647
11647
  const Sh = "quantitative", vg = "ordinal", Eg = "nominal", Cg = "locus", IC = "index";
11648
11648
  var br, ke, ns, rs, O, _c, $c, Ct, eu, Sg, Dg, tu, nu, ho, ru, En, Bg, Mg;
11649
11649
  class PC {
@@ -13369,7 +13369,7 @@ class Og extends vl {
13369
13369
  * @type {Data}
13370
13370
  */
13371
13371
  M(this, Bt, []);
13372
- M(this, cs, Z(Ze));
13372
+ M(this, cs, J(Ze));
13373
13373
  /**
13374
13374
  * @type {number[]}
13375
13375
  */
@@ -13413,7 +13413,7 @@ class Og extends vl {
13413
13413
  if (this.facetBatches.size > 1)
13414
13414
  throw new Error("TODO: Support faceted data!");
13415
13415
  const a = this.facetBatches.get(void 0), c = this.params.groupby.map(
13416
- (f) => Z(f)
13416
+ (f) => J(f)
13417
13417
  ), u = c.length > 1 ? (
13418
13418
  // There's something strange in d3-array's typings
13419
13419
  /** @type {Map<any, any>} */
@@ -13605,8 +13605,8 @@ class XC extends fe {
13605
13605
  * @param {import("../../spec/transform.js").CoverageParams} params
13606
13606
  */
13607
13607
  constructor(e) {
13608
- super(e), this.params = e, this.startAccessor = Z(e.start), this.endAccessor = Z(e.end), this.chromAccessor = e.chrom ? Z(e.chrom) : (n) => {
13609
- }, this.weightAccessor = e.weight ? Z(e.weight) : (n) => 1, this.as = {
13608
+ super(e), this.params = e, this.startAccessor = J(e.start), this.endAccessor = J(e.end), this.chromAccessor = e.chrom ? J(e.chrom) : (n) => {
13609
+ }, this.weightAccessor = e.weight ? J(e.weight) : (n) => 1, this.as = {
13610
13610
  coverage: e.as ?? "coverage",
13611
13611
  start: e.asStart ?? e.start,
13612
13612
  end: e.asEnd ?? e.end,
@@ -13745,7 +13745,7 @@ class ZC extends fe {
13745
13745
  constructor(e, n) {
13746
13746
  if (super(e), this.params = e, this._data = [], this.channel = e.channel ?? "x", !["x", "y"].includes(this.channel))
13747
13747
  throw new Error("Invalid channel: " + this.channel);
13748
- this.posAccessor = Z(this.params.pos), this.posBisector = zr(this.posAccessor), this.scoreAccessor = Z(this.params.score), this.widthAccessor = Z(this.params.width), this.laneAccessor = this.params.lane ? Z(this.params.lane) : (i) => 0, this.padding = this.params.padding ?? 0, this.reservationMaps = /* @__PURE__ */ new Map(), this.resolution = n.getScaleResolution(this.channel);
13748
+ this.posAccessor = J(this.params.pos), this.posBisector = zr(this.posAccessor), this.scoreAccessor = J(this.params.score), this.widthAccessor = J(this.params.width), this.laneAccessor = this.params.lane ? J(this.params.lane) : (i) => 0, this.padding = this.params.padding ?? 0, this.reservationMaps = /* @__PURE__ */ new Map(), this.resolution = n.getScaleResolution(this.channel);
13749
13749
  const r = () => this._filterAndPropagate();
13750
13750
  this.schedule = () => n.context.animator.requestTransition(r), this.resolution.addEventListener("domain", (i) => this.schedule()), n._addBroadcastHandler("layoutComputed", () => this.schedule());
13751
13751
  }
@@ -13832,7 +13832,7 @@ class eS extends fe {
13832
13832
  super(e), this.params = e;
13833
13833
  const n = e.index;
13834
13834
  if (e.fields) {
13835
- const r = Ue(e.fields).map((s) => Z(s)), i = Ue(e.as || e.fields);
13835
+ const r = Ue(e.fields).map((s) => J(s)), i = Ue(e.as || e.fields);
13836
13836
  if (r.length !== i.length)
13837
13837
  throw new Error(
13838
13838
  `Lengths of "fields" (${r.length}), and "as" (${i.length}) do not match!`
@@ -13877,7 +13877,7 @@ class rS extends fe {
13877
13877
  */
13878
13878
  constructor(e) {
13879
13879
  super(e);
13880
- const n = Z(e.exons ?? "exons"), r = Z(e.start ?? "start"), [i, s] = e.as || ["exonStart", "exonEnd"];
13880
+ const n = J(e.exons ?? "exons"), r = J(e.start ?? "start"), [i, s] = e.as || ["exonStart", "exonEnd"];
13881
13881
  this.handle = (o) => {
13882
13882
  let a = r(o), c = a, u = !0;
13883
13883
  const f = n(o);
@@ -13903,7 +13903,7 @@ class iS extends fe {
13903
13903
  */
13904
13904
  constructor(e) {
13905
13905
  super(e);
13906
- const n = Ue(e.field).map((s) => Z(s)), r = Ue(e.separator), i = Ue(e.as || e.field);
13906
+ const n = Ue(e.field).map((s) => J(s)), r = Ue(e.separator), i = Ue(e.as || e.field);
13907
13907
  if (n.length !== r.length || n.length !== i.length)
13908
13908
  throw new Error(
13909
13909
  `Lengths of "separator" (${r.length}), "fields" (${n.length}), and "as" (${i.length}) do not match!`
@@ -13976,7 +13976,7 @@ class zg extends fe {
13976
13976
  throw new Error(
13977
13977
  "LinearizeGenomicCoordinate transform requires a locus scale!"
13978
13978
  );
13979
- const s = Z(e.chrom), o = Ue(e.pos).map((p) => Z(p)), a = Ue(e.as);
13979
+ const s = J(e.chrom), o = Ue(e.pos).map((p) => J(p)), a = Ue(e.as);
13980
13980
  if (o.length != a.length)
13981
13981
  throw new Error(
13982
13982
  'The number of "pos" and "as" elements must be equal!'
@@ -14037,7 +14037,7 @@ class uS extends fe {
14037
14037
  */
14038
14038
  constructor(e) {
14039
14039
  super(e), this.params = e;
14040
- const n = jc(Ng), r = Z(e.field), i = e.as, s = e.fontSize;
14040
+ const n = jc(Ng), r = J(e.field), i = e.as, s = e.fontSize;
14041
14041
  this.handle = (o) => {
14042
14042
  const a = r(o);
14043
14043
  a !== void 0 ? o[i] = n.measureWidth(a, s) : o[i] = 0, this._propagate(o);
@@ -14060,13 +14060,13 @@ class fS extends fe {
14060
14060
  super.reset(), this.initialize();
14061
14061
  }
14062
14062
  initialize() {
14063
- const e = this.params, n = e.as || "lane", r = Te(e.spacing) ? e.spacing : 1, i = Z(e.start), s = Z(e.end);
14063
+ const e = this.params, n = e.as || "lane", r = Te(e.spacing) ? e.spacing : 1, i = J(e.start), s = J(e.end);
14064
14064
  if (!e.preference != !e.preferredOrder)
14065
14065
  throw new Error(
14066
14066
  'Must specify both "preference" and "preferredOrder"'
14067
14067
  );
14068
14068
  if (e.preference) {
14069
- const o = new Float64Array(lS), a = Z(e.preference), c = e.preferredOrder;
14069
+ const o = new Float64Array(lS), a = J(e.preference), c = e.preferredOrder;
14070
14070
  let u = 1 / 0;
14071
14071
  this.handle = (f) => {
14072
14072
  const l = i(f);
@@ -14113,7 +14113,7 @@ class hS extends fe {
14113
14113
  constructor(e) {
14114
14114
  if (super(e), this.params = e, e.as && e.as.length != e.fields.length)
14115
14115
  throw new Error('"fields" and "as" have unequal lengths!');
14116
- const n = e.fields.map((i) => Z(i)), r = e.as ? e.as : n.map(pm);
14116
+ const n = e.fields.map((i) => J(i)), r = e.as ? e.as : n.map(pm);
14117
14117
  this.handle = (i) => {
14118
14118
  const s = {};
14119
14119
  for (let o = 0; o < n.length; o++)
@@ -14131,7 +14131,7 @@ class dS extends fe {
14131
14131
  */
14132
14132
  constructor(e) {
14133
14133
  super(e), this.params = e;
14134
- const n = new RegExp(e.regex), r = typeof e.as == "string" ? [e.as] : e.as, i = Z(e.field);
14134
+ const n = new RegExp(e.regex), r = typeof e.as == "string" ? [e.as] : e.as, i = J(e.field);
14135
14135
  this.handle = (s) => {
14136
14136
  const o = i(s);
14137
14137
  if ($(o)) {
@@ -14255,13 +14255,13 @@ class gS extends fe {
14255
14255
  this.buffer.push(e);
14256
14256
  }
14257
14257
  complete() {
14258
- const e = this.params, n = e.as || ["y0", "y1"], r = e.sort ? jh(e.sort.field, e.sort.order) : void 0, i = e.field ? Z(e.field) : () => 1, s = e.groupby.map((f) => Z(f)), o = B1(
14258
+ const e = this.params, n = e.as || ["y0", "y1"], r = e.sort ? jh(e.sort.field, e.sort.order) : void 0, i = e.field ? J(e.field) : () => 1, s = e.groupby.map((f) => J(f)), o = B1(
14259
14259
  this.buffer,
14260
14260
  (f) => s.map((l) => l(f)).join()
14261
14261
  ).map((f) => f[1]);
14262
14262
  let a = (f) => !0;
14263
14263
  if (e.baseField) {
14264
- const f = Z(e.baseField);
14264
+ const f = J(e.baseField);
14265
14265
  a = (l) => f(l) !== null;
14266
14266
  }
14267
14267
  let c, u;
@@ -14317,7 +14317,7 @@ class mS extends fe {
14317
14317
  */
14318
14318
  constructor(e) {
14319
14319
  super(e), this.params = e;
14320
- const n = Z(e.field ?? "sequence"), [r, i] = e.as ?? ["pos", "sequence"];
14320
+ const n = J(e.field ?? "sequence"), [r, i] = e.as ?? ["pos", "sequence"];
14321
14321
  this.handle = (s) => {
14322
14322
  const o = Object.assign({}, s, {
14323
14323
  [i]: "",
@@ -14361,7 +14361,7 @@ class yS extends fe {
14361
14361
  'If "as" is defined, "fields" and "as" must have the same length!'
14362
14362
  );
14363
14363
  e.fields.forEach((n, r) => {
14364
- const i = Z(n), s = Th[e.ops[r]];
14364
+ const i = J(n), s = Th[e.ops[r]];
14365
14365
  this.ops.push((o) => s(o, i)), this.as.push(
14366
14366
  e.as ? e.as[r] : `${e.ops[r]}_${e.fields[r]}`
14367
14367
  );
@@ -14382,7 +14382,7 @@ class yS extends fe {
14382
14382
  complete() {
14383
14383
  const e = this.params, n = e == null ? void 0 : e.groupby;
14384
14384
  if ((n == null ? void 0 : n.length) > 0) {
14385
- const r = n.map((s) => Z(s)), i = (
14385
+ const r = n.map((s) => J(s)), i = (
14386
14386
  /** @type {Map<any, any>} */
14387
14387
  /** @type {any} */
14388
14388
  Zo(this.buffer, ...r)
@@ -18444,8 +18444,8 @@ Yo = new WeakSet(), nm = function() {
18444
18444
  return w;
18445
18445
  }, y = (b) => {
18446
18446
  var P, L, k, T;
18447
- const { intervals: w } = b, E = (U, G, q) => {
18448
- const J = (ne, j) => j == null ? null : a[ne].scale(j), z = J("x", U) ?? q, ee = J("y", G) ?? q;
18447
+ const { intervals: w } = b, E = (G, U, j) => {
18448
+ const K = (ne, X) => X == null ? null : a[ne].scale(X), z = K("x", G) ?? j, ee = K("y", U) ?? j;
18449
18449
  return e.coords.denormalizePoint(z, ee, !0);
18450
18450
  }, C = E((P = w.x) == null ? void 0 : P[0], (L = w.y) == null ? void 0 : L[0], 0), S = E((k = w.x) == null ? void 0 : k[1], (T = w.y) == null ? void 0 : T[1], 1);
18451
18451
  return mt.create(C.x, C.y, S.x - C.x, S.y - C.y);
@@ -18464,17 +18464,18 @@ Yo = new WeakSet(), nm = function() {
18464
18464
  w.uiEvent.shiftKey)
18465
18465
  g(), f = !0;
18466
18466
  else if (uh(d())) {
18467
- const k = (T, U) => {
18467
+ const T = (G, U) => {
18468
18468
  e.removeInteractionEventListener(
18469
18469
  "mouseup",
18470
- k
18470
+ T
18471
18471
  );
18472
- const G = U.point;
18473
- L.subtract(G).length < 2 && g();
18472
+ const j = U.point;
18473
+ L.subtract(j).length < 2 && g();
18474
18474
  };
18475
- e.addInteractionEventListener("mouseup", k);
18475
+ e.addInteractionEventListener("mouseup", T);
18476
+ return;
18477
+ } else
18476
18478
  return;
18477
- }
18478
18479
  }
18479
18480
  w.stopPropagation();
18480
18481
  const E = w.point, C = Ne.fromMouseEvent(
@@ -18484,27 +18485,27 @@ Yo = new WeakSet(), nm = function() {
18484
18485
  const k = Ne.fromMouseEvent(L).subtract(C);
18485
18486
  let T;
18486
18487
  if (l) {
18487
- const U = k.subtract(E), G = l.translate(
18488
- U.x,
18489
- U.y
18488
+ const G = k.subtract(E), U = l.translate(
18489
+ G.x,
18490
+ G.y
18490
18491
  );
18491
18492
  T = h(
18492
- m(new Ne(G.x, G.y)),
18493
- m(new Ne(G.x2, G.y2))
18493
+ m(new Ne(U.x, U.y)),
18494
+ m(new Ne(U.x2, U.y2))
18494
18495
  );
18495
18496
  } else
18496
18497
  T = h(
18497
18498
  m(E),
18498
18499
  m(k)
18499
18500
  );
18500
- for (const U of o) {
18501
- const G = a[U], { zoomExtent: q, scale: J } = G, z = T[U];
18502
- if (["index", "locus"].includes(J.type) && (z[0] = Math.ceil(z[0]), z[1] = Math.ceil(z[1])), l) {
18503
- const ee = z[1] - z[0], ne = q[0], j = q[1];
18504
- z[0] < ne && (z[0] = ne, z[1] = ne + ee), z[1] > j && (z[1] = j, z[0] = j - ee);
18501
+ for (const G of o) {
18502
+ const U = a[G], { zoomExtent: j, scale: K } = U, z = T[G];
18503
+ if (["index", "locus"].includes(K.type) && (z[0] = Math.ceil(z[0]), z[1] = Math.ceil(z[1])), l) {
18504
+ const ee = z[1] - z[0], ne = j[0], X = j[1];
18505
+ z[0] < ne && (z[0] = ne, z[1] = ne + ee), z[1] > X && (z[1] = X, z[0] = X - ee);
18505
18506
  } else
18506
- z[0] = Math.max(q[0], z[0]), z[1] = Math.min(q[1], z[1]);
18507
- z[1] = Math.min(q[1], z[1]);
18507
+ z[0] = Math.max(j[0], z[0]), z[1] = Math.min(j[1], z[1]);
18508
+ z[1] = Math.min(j[1], z[1]);
18508
18509
  }
18509
18510
  p({ type: "interval", intervals: T });
18510
18511
  }, P = () => {
@@ -18758,15 +18759,15 @@ class t5 extends Ws {
18758
18759
  backgroundStroke: m,
18759
18760
  title: y,
18760
18761
  selectionRect: x
18761
- } = l, [b, w] = c.getCellCoords(f), E = o[B(this, Q, Au).call(this, "column", b)], C = a[B(this, Q, Au).call(this, "row", w)], S = h.getViewportSize(), P = h.getSize(), L = h.getOverhang(), k = E.location - L.left, T = C.location - L.top, U = (me, ut) => (me[ut].grow ? (ut == "width" ? E : C).size : me[ut].px) + L[ut], G = U(S, "width"), q = U(S, "height"), J = U(P, "width"), z = U(P, "height"), ee = l.scrollbars.horizontal, ne = l.scrollbars.vertical, j = ee ? () => u(ee.viewportOffset) : () => 0, zt = ne ? () => u(ne.viewportOffset) : () => 0, Ge = new mt(
18762
+ } = l, [b, w] = c.getCellCoords(f), E = o[B(this, Q, Au).call(this, "column", b)], C = a[B(this, Q, Au).call(this, "row", w)], S = h.getViewportSize(), P = h.getSize(), L = h.getOverhang(), k = E.location - L.left, T = C.location - L.top, G = (me, ut) => (me[ut].grow ? (ut == "width" ? E : C).size : me[ut].px) + L[ut], U = G(S, "width"), j = G(S, "height"), K = G(P, "width"), z = G(P, "height"), ee = l.scrollbars.horizontal, ne = l.scrollbars.vertical, X = ee ? () => u(ee.viewportOffset) : () => 0, zt = ne ? () => u(ne.viewportOffset) : () => 0, Ge = new mt(
18762
18763
  () => r.x + k,
18763
18764
  () => r.y + T,
18764
- () => G,
18765
- () => q
18765
+ () => U,
18766
+ () => j
18766
18767
  ), Ys = h.isScrollable(), Nt = Ys ? new mt(
18767
- () => r.x + k - j(),
18768
+ () => r.x + k - X(),
18768
18769
  () => r.y + T - zt(),
18769
- () => J,
18770
+ () => K,
18770
18771
  () => z
18771
18772
  ) : Ge;
18772
18773
  l.coords = Ge;
@@ -18792,7 +18793,7 @@ class t5 extends Ws {
18792
18793
  height: z
18793
18794
  } : {
18794
18795
  x: () => Nt.x,
18795
- width: J
18796
+ width: K
18796
18797
  }
18797
18798
  ) : Ge, V = Gh(
18798
18799
  H,