wuepgg3-track 1.1.3 → 1.1.5

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.
@@ -1,4 +1,4 @@
1
- import { q as Le, G as te, t as re, u as He, k as se, M as v, v as ae, E as u, e as E, x as S, y as ze, z as O, F as b, R as F, H as ne, I as We, s as m, S as f, h as B, w as ie, J as q, K as Ve, b as K, B as k, i as U, L as M, j as T, N as w, O as Ne, a as je, Q as oe, V as le, W as ue, X as de, C as P, Y as ce, Z as $e, P as qe, c as Ke, T as Y, D as he, _ as J, $ as Ye, a0 as Je, a1 as Xe } from "./index-C7FSRMBO.mjs";
1
+ import { q as Le, G as te, t as re, u as He, k as se, M as v, v as ae, E as u, e as E, x as S, y as ze, z as O, F as b, R as F, H as ne, I as We, s as m, S as f, h as B, w as ie, J as q, K as Ve, b as K, B as k, i as U, L as M, j as T, N as w, O as Ne, a as je, Q as oe, V as le, W as ue, X as de, C as P, Y as ce, Z as $e, P as qe, c as Ke, T as Y, D as he, _ as J, $ as Ye, a0 as Je, a1 as Xe } from "./index-BxZptoze.mjs";
2
2
  import { S as fe, B as pe, c as Qe } from "./colorToUniform-zJcCVLeu.mjs";
3
3
  const me = class A extends Le {
4
4
  /**
@@ -1,6 +1,6 @@
1
- import { E as d, B, w as m, D as S, J as K, t as Be, q as U, s as b, a2 as Ae, j as $, a3 as Ne, S as p, N as H, i as A, h as N, k as F, M as z, a4 as Y, a5 as ye, a6 as Ce, a7 as q, a8 as De, A as Ie, R as Ge, e as v } from "./index-C7FSRMBO.mjs";
1
+ import { E as d, B, w as m, D as S, J as K, t as Be, q as U, s as b, a2 as Ae, j as $, a3 as Ne, S as p, N as H, i as A, h as N, k as F, M as z, a4 as Y, a5 as ye, a6 as Ce, a7 as q, a8 as De, A as Ie, R as Ge, e as v } from "./index-BxZptoze.mjs";
2
2
  import { S as O, b as Z } from "./colorToUniform-zJcCVLeu.mjs";
3
- import { e as Ue, G as Fe, c as Oe, b as Pe, U as Me, R as Le, B as J, d as y, f as He, S as we, a as Ve } from "./SharedSystems-20AoNEkD.mjs";
3
+ import { e as Ue, G as Fe, c as Oe, b as Pe, U as Me, R as Le, B as J, d as y, f as He, S as we, a as Ve } from "./SharedSystems-CvggjHYf.mjs";
4
4
  class Q {
5
5
  constructor() {
6
6
  this._tempState = O.for2d(), this._didUploadHash = {};
@@ -1,6 +1,6 @@
1
- import { g as E, E as p, f as ae, D as B, S as C, B as T, b as ue, c as L, d as M, w as v, h as y, i as ce, j as de, k as A, l as w, M as k, m as D, n as he, o as pe, p as H, q as z, s as R, A as le, R as fe, e as S } from "./index-C7FSRMBO.mjs";
1
+ import { g as E, E as p, f as ae, D as B, S as C, B as T, b as ue, c as L, d as M, w as v, h as y, i as ce, j as de, k as A, l as w, M as k, m as D, n as he, o as pe, p as H, q as z, s as R, A as le, R as fe, e as S } from "./index-BxZptoze.mjs";
2
2
  import { S as F, l as ge, a as me } from "./colorToUniform-zJcCVLeu.mjs";
3
- import { c as _e, u as be, U as ye, B as xe, G as Ge, e as Be, R as Se, t as Pe, S as Te, a as Ce } from "./SharedSystems-20AoNEkD.mjs";
3
+ import { c as _e, u as be, U as ye, B as xe, G as Ge, e as Be, R as Se, t as Pe, S as Te, a as Ce } from "./SharedSystems-CvggjHYf.mjs";
4
4
  const x = F.for2d();
5
5
  class O {
6
6
  start(e, t, r) {
@@ -1,5 +1,5 @@
1
- import { P as g, r as Q, E as b, T as C, U as ee, a as te, w as y, e as w, C as Z } from "./index-C7FSRMBO.mjs";
2
- import "./init--x02hm8I.mjs";
1
+ import { P as g, r as Q, E as b, T as C, U as ee, a as te, w as y, e as w, C as Z } from "./index-BxZptoze.mjs";
2
+ import "./init-B858sALg.mjs";
3
3
  class M {
4
4
  /**
5
5
  * @param manager - The event boundary which manages this event. Propagation can only occur
@@ -12370,7 +12370,8 @@ const Aar = {
12370
12370
  function h() {
12371
12371
  if (c) {
12372
12372
  let { xSpan1: a, xSpan2: o } = c;
12373
- const m = dar(e.targetRef.current), u = a.start, v = o.start, d = m.left + u - 20 + "px", C = m.left + v - 20 + "px", A = u + 120 + "px", E = v + 120 + "px", F = Math.max(a.getLength(), 1), x = Math.max(o.getLength(), 1);
12373
+ dar(e.targetRef.current);
12374
+ const m = a.start, u = o.start, v = m - e.viewWindow.start + 120 + "px", d = u - e.viewWindow.start + 120 + "px", C = m + 120 + "px", A = u + 120 + "px", E = Math.max(a.getLength(), 1), F = Math.max(o.getLength(), 1);
12374
12375
  return /* @__PURE__ */ S.jsxs(S.Fragment, { children: [
12375
12376
  /* @__PURE__ */ S.jsx(
12376
12377
  "div",
@@ -12380,8 +12381,8 @@ const Aar = {
12380
12381
  position: "absolute",
12381
12382
  display: "block",
12382
12383
  // 20 px is the padding in genome Root if you include borders in css you also have to account for border left and border right so border: 1px we have to add 2px here
12383
- left: e.options.packageVersion ? A : d,
12384
- width: F + "px",
12384
+ left: e.options.packageVersion ? C : v,
12385
+ width: E + "px",
12385
12386
  height: "100%",
12386
12387
  zIndex: 1e3
12387
12388
  },
@@ -12396,8 +12397,8 @@ const Aar = {
12396
12397
  position: "absolute",
12397
12398
  display: "block",
12398
12399
  // 20 px is the padding in genome Root if you include borders in css you also have to account for border left and border right so border: 1px we have to add 2px here
12399
- left: e.options.packageVersion ? E : C,
12400
- width: x + "px",
12400
+ left: e.options.packageVersion ? A : d,
12401
+ width: F + "px",
12401
12402
  height: "1000",
12402
12403
  zIndex: 1e3
12403
12404
  },
@@ -57695,7 +57696,7 @@ const nx = (n) => {
57695
57696
  },
57696
57697
  test: () => !0,
57697
57698
  load: async () => {
57698
- await import("./browserAll-CQMvIAfG.mjs");
57699
+ await import("./browserAll-BrHpPp1f.mjs");
57699
57700
  }
57700
57701
  }, Mpr = {
57701
57702
  extension: {
@@ -57705,7 +57706,7 @@ const nx = (n) => {
57705
57706
  },
57706
57707
  test: () => typeof self < "u" && self.WorkerGlobalScope !== void 0,
57707
57708
  load: async () => {
57708
- await import("./webworkerAll-CeyN6Bmk.mjs");
57709
+ await import("./webworkerAll-C6Yg2PdJ.mjs");
57709
57710
  }
57710
57711
  };
57711
57712
  class F3 {
@@ -66575,13 +66576,13 @@ async function EEr(n) {
66575
66576
  for (let i = 0; i < e.length; i++) {
66576
66577
  const a = e[i];
66577
66578
  if (a === "webgpu" && await SEr()) {
66578
- const { WebGPURenderer: o } = await import("./WebGPURenderer-ebfToX1L.mjs");
66579
+ const { WebGPURenderer: o } = await import("./WebGPURenderer-BclnTlr5.mjs");
66579
66580
  c = o, h = { ...n, ...n.webgpu };
66580
66581
  break;
66581
66582
  } else if (a === "webgl" && pEr(
66582
66583
  n.failIfMajorPerformanceCaveat ?? rK.defaultOptions.failIfMajorPerformanceCaveat
66583
66584
  )) {
66584
- const { WebGLRenderer: o } = await import("./WebGLRenderer-CT8Wpb6s.mjs");
66585
+ const { WebGLRenderer: o } = await import("./WebGLRenderer-CnUZtkfN.mjs");
66585
66586
  c = o, h = { ...n, ...n.webgl };
66586
66587
  break;
66587
66588
  } else if (a === "canvas")
@@ -76449,6 +76450,7 @@ class dwr extends fr.PureComponent {
76449
76450
  }
76450
76451
  class Awr extends fr.Component {
76451
76452
  render() {
76453
+ console.log(this.props);
76452
76454
  let e = /* @__PURE__ */ S.jsx(
76453
76455
  Gi,
76454
76456
  {
@@ -76471,7 +76473,7 @@ class Awr extends fr.Component {
76471
76473
  transform: `translateX(${-this.props.viewWindow.start}px)`
76472
76474
  } : {};
76473
76475
  return /* @__PURE__ */ S.jsx(fr.Fragment, { children: /* @__PURE__ */ S.jsxs("div", { style: { display: "flex", ...h }, children: [
76474
- this.props.options.forceSvg ? e : "",
76476
+ c || this.props.options.packageVersion ? e : "",
76475
76477
  /* @__PURE__ */ S.jsx(
76476
76478
  "div",
76477
76479
  {
@@ -77306,9 +77308,9 @@ const FK = ({
77306
77308
  viewRegion: Li(e.visRegion),
77307
77309
  width: e.visWidth,
77308
77310
  trackModel: t,
77309
- selectedRegion: Li(
77311
+ selectedRegion: e.genomicFetchCoord ? Li(
77310
77312
  e.genomicFetchCoord[`${i}`].primaryVisData.viewWindowRegion
77311
- ),
77313
+ ) : e.visRegion,
77312
77314
  viewWindow: e.viewWindow ? e.viewWindow : new E0(0, e.visWidth),
77313
77315
  getNumLegend: o,
77314
77316
  genomeConfig: a,
@@ -428471,7 +428473,7 @@ const HX = {
428471
428473
  }).filter(Boolean) : J = c.map(
428472
428474
  (Y, rr) => new ze({
428473
428475
  type: Y.type,
428474
- name: Y.name ? Y.name : `track ${rr + 1}`,
428476
+ name: Y.name ? Y.name : Y.type === "ruler" ? "ruler" : `track ${rr + 1}`,
428475
428477
  url: Y.url,
428476
428478
  options: j(Y.type, Y.options),
428477
428479
  id: crypto.randomUUID()
package/dist/index.es.js CHANGED
@@ -1,4 +1,4 @@
1
- import { bj as s, bi as t, aE as o, aA as r, aT as n, aP as i, aB as b, aJ as l, bk as g, aG as c, aC as p, az as m, aM as u, av as C, au as S, an as d, b6 as T, aL as y, aK as D, aU as F, aD as f, aO as k, aX as M, aH as h, aN as G, aV as L, aI as I, ay as R, bh as v, as as H, at as O, aR as B, aW as N, bd as w, b2 as A, ba as E, bl as P, a$ as _, ar as x, b5 as J, bo as U, aw as V, a_ as j, bm as q, ap as z, ao as K, aZ as Y, aY as Q, b8 as W, be as X, aF as Z, aS as $, b0 as aa, b1 as ea, bg as sa, b7 as ta, b4 as oa, b3 as ra, bb as na, aq as ia, bf as ba, bc as la, bp as ga, aQ as ca, bn as pa, ax as ma, b9 as ua } from "./index-C7FSRMBO.mjs";
1
+ import { bj as s, bi as t, aE as o, aA as r, aT as n, aP as i, aB as b, aJ as l, bk as g, aG as c, aC as p, az as m, aM as u, av as C, au as S, an as d, b6 as T, aL as y, aK as D, aU as F, aD as f, aO as k, aX as M, aH as h, aN as G, aV as L, aI as I, ay as R, bh as v, as as H, at as O, aR as B, aW as N, bd as w, b2 as A, ba as E, bl as P, a$ as _, ar as x, b5 as J, bo as U, aw as V, a_ as j, bm as q, ap as z, ao as K, aZ as Y, aY as Q, b8 as W, be as X, aF as Z, aS as $, b0 as aa, b1 as ea, bg as sa, b7 as ta, b4 as oa, b3 as ra, bb as na, aq as ia, bf as ba, bc as la, bp as ga, aQ as ca, bn as pa, ax as ma, b9 as ua } from "./index-BxZptoze.mjs";
2
2
  export {
3
3
  s as AppStateLoader,
4
4
  t as AppStateSaver,