@jbrowse/bandage-core 6.0.3 → 6.1.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 (44) hide show
  1. package/dist/chunks/chunk-4BYTEJGW.js +44 -0
  2. package/dist/chunks/{chunk-IO2PCPZI.js → chunk-6UACM7VU.js} +7 -4
  3. package/dist/chunks/{chunk-MQJUG2D2.js → chunk-AMHZMY6E.js} +1 -1
  4. package/dist/chunks/{chunk-MI35EUIE.js → chunk-C6USNTTP.js} +13 -1
  5. package/dist/chunks/{chunk-D3M7SBKL.js → chunk-CH3DLBUT.js} +22 -15
  6. package/dist/chunks/{chunk-5XQDMQXU.js → chunk-KKU6JRJC.js} +9 -9
  7. package/dist/chunks/{chunk-LLJUG2H7.js → chunk-LPFN4POU.js} +1 -1
  8. package/dist/chunks/{chunk-6SXMCK6I.js → chunk-PJESIRDU.js} +2 -2
  9. package/dist/chunks/{chunk-PCZ4PTYC.js → chunk-RX5CSWJW.js} +4 -3
  10. package/dist/chunks/{chunk-EK4HGYO7.js → chunk-SMQ545MU.js} +4 -2
  11. package/dist/chunks/chunk-UMNCCYBN.js +50 -0
  12. package/dist/chunks/{chunk-ROF2R3RF.js → chunk-V5BPIOLS.js} +1 -1
  13. package/dist/chunks/{chunk-WFX3MAKA.js → chunk-X4VVPLI5.js} +4 -2
  14. package/dist/chunks/{chunk-CJ2EE4AF.js → chunk-ZHCDYSA5.js} +1 -1
  15. package/dist/chunks/{chunk-GGQRADFS.js → chunk-ZKGM7VLA.js} +1 -1
  16. package/dist/chunks/{chunk-EPZORFTI.js → chunk-ZZA2AFB4.js} +4 -2
  17. package/dist/cli/figure.js +16 -14
  18. package/dist/figure.js +14 -13
  19. package/dist/index.js +23 -23
  20. package/dist/layout/deletionRoutes.js +3 -1
  21. package/dist/layout/walkRowDraw.js +4 -4
  22. package/dist/layout/walkStrip.js +5 -5
  23. package/dist/pipeline.js +2 -2
  24. package/dist/referenceRampCss.js +3 -3
  25. package/dist/referenceStrip.js +3 -3
  26. package/dist/renderer/Canvas2DRenderer.js +3 -2
  27. package/dist/renderer/GeometryBuilder.js +2 -2
  28. package/dist/renderer/canvas.js +12 -0
  29. package/dist/renderer/colorBits.js +17 -3
  30. package/dist/tubeMap/nodeColors.js +3 -3
  31. package/dist/types/index.d.ts +1 -1
  32. package/dist/types/layout/deletionRoutes.d.ts +2 -1
  33. package/dist/types/pansn.d.ts +7 -4
  34. package/dist/types/pipeline.d.ts +1 -0
  35. package/dist/types/renderer/Canvas2DRenderer.d.ts +6 -2
  36. package/dist/types/renderer/canvas.d.ts +4 -0
  37. package/dist/types/renderer/colorBits.d.ts +7 -0
  38. package/dist/types/version.d.ts +1 -1
  39. package/dist/version.js +1 -1
  40. package/dist/viewport.js +3 -3
  41. package/dist/walkEncoding.js +3 -3
  42. package/dist/walkHighlight.js +4 -4
  43. package/package.json +2 -4
  44. package/dist/chunks/chunk-MNUSQCLG.js +0 -29
@@ -0,0 +1,44 @@
1
+ // src/renderer/canvas.ts
2
+ var MAX_DPR = 2;
3
+ var MAX_CANVAS_DIM_PX = 8192;
4
+ function getDpr() {
5
+ return typeof devicePixelRatio === "undefined" ? 1 : Math.min(devicePixelRatio, MAX_DPR);
6
+ }
7
+ var warnedCanvasClamp = false;
8
+ function backingPx(cssSize, dpr, axis) {
9
+ const value = Math.round(cssSize * dpr);
10
+ if (value > MAX_CANVAS_DIM_PX) {
11
+ if (!warnedCanvasClamp) {
12
+ warnedCanvasClamp = true;
13
+ console.warn(
14
+ `Canvas ${axis} ${value}px exceeds the safe limit ${MAX_CANVAS_DIM_PX}px and was clamped`
15
+ );
16
+ }
17
+ return MAX_CANVAS_DIM_PX;
18
+ }
19
+ return value;
20
+ }
21
+ function syncCanvasSize(canvas, width, height) {
22
+ const dpr = getDpr();
23
+ const pw = backingPx(width, dpr, "width");
24
+ const ph = backingPx(height, dpr, "height");
25
+ if (canvas.width !== pw || canvas.height !== ph) {
26
+ canvas.width = pw;
27
+ canvas.height = ph;
28
+ }
29
+ const cssWidth = `${width}px`;
30
+ const cssHeight = `${height}px`;
31
+ if (canvas.style.width !== cssWidth) {
32
+ canvas.style.width = cssWidth;
33
+ }
34
+ if (canvas.style.height !== cssHeight) {
35
+ canvas.style.height = cssHeight;
36
+ }
37
+ }
38
+
39
+ export {
40
+ MAX_DPR,
41
+ MAX_CANVAS_DIM_PX,
42
+ getDpr,
43
+ syncCanvasSize
44
+ };
@@ -11,10 +11,11 @@ import {
11
11
  parseGFA
12
12
  } from "./chunk-CDLPYR5O.js";
13
13
  import {
14
+ closableDeletions,
14
15
  routeNodes,
15
16
  takeRoutes,
16
17
  withDeletionRoutes
17
- } from "./chunk-MI35EUIE.js";
18
+ } from "./chunk-C6USNTTP.js";
18
19
  import {
19
20
  anchorGraph
20
21
  } from "./chunk-ST2IBUAN.js";
@@ -79,12 +80,14 @@ function engineRequest(graph, scaling, settings) {
79
80
  }
80
81
  function engineKey(graph, settings) {
81
82
  const anchored = graph.nodes.some(isBackbone);
82
- return `${settings.quality}|${settings.linearLayout}|${settings.bubbleSpread}|${settings.spacing ?? 1}|${settings.componentSeparation ?? 1}|${anchored}|${graph.referencePath ?? ""}`;
83
+ return `${settings.quality}|${settings.linearLayout}|${settings.bubbleSpread}|${settings.spacing ?? 1}|${settings.componentSeparation ?? 1}|${settings.showDeletionEdges !== false}|${anchored}|${graph.referencePath ?? ""}`;
83
84
  }
84
85
  async function forceLayout(graph, settings, engine) {
85
86
  const spread = spreadFor(settings.bubbleSpread);
86
- const deletions = deletionEdges(graph);
87
- const routed = withDeletionRoutes(graph, deletions);
87
+ const found = deletionEdges(graph);
88
+ const dropped = settings.showDeletionEdges === false ? closableDeletions(graph, found) : /* @__PURE__ */ new Set();
89
+ const deletions = found.filter((d) => !dropped.has(d.edgeIndex));
90
+ const routed = withDeletionRoutes(graph, deletions, dropped);
88
91
  const merged = mergeRuns(routed.graph, routed.ids);
89
92
  const runs = {
90
93
  ...merged.graph,
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  clampZoom
3
- } from "./chunk-IO2PCPZI.js";
3
+ } from "./chunk-6UACM7VU.js";
4
4
 
5
5
  // src/viewport.ts
6
6
  function axisScaleOf(scale, pixelRows) {
@@ -1,13 +1,16 @@
1
1
  // src/layout/deletionRoutes.ts
2
2
  var ROUTE_ID = "\0deletion:";
3
3
  var ROUTE_FRACTION = 0.5;
4
- function withDeletionRoutes(graph, deletions) {
4
+ function withDeletionRoutes(graph, deletions, dropped = /* @__PURE__ */ new Set()) {
5
5
  const routes = new Map(
6
6
  deletions.map((d) => [d.edgeIndex, `${ROUTE_ID}${d.edgeIndex}`])
7
7
  );
8
8
  const edges = [];
9
9
  graph.edges.forEach((edge, ei) => {
10
10
  const id = routes.get(ei);
11
+ if (dropped.has(ei)) {
12
+ return;
13
+ }
11
14
  if (id === void 0) {
12
15
  edges.push(edge);
13
16
  } else {
@@ -36,6 +39,14 @@ function withDeletionRoutes(graph, deletions) {
36
39
  ids: new Set(routes.values())
37
40
  };
38
41
  }
42
+ function closableDeletions(graph, deletions) {
43
+ const lengths = new Map(graph.nodes.map((n) => [n.id, n.length]));
44
+ return new Set(
45
+ deletions.filter(
46
+ (d) => d.bypassed.reduce((sum, id) => sum + (lengths.get(id) ?? 0), 0) >= d.bp
47
+ ).map((d) => d.edgeIndex)
48
+ );
49
+ }
39
50
  function routeNodes(graph, deletions, routes, drawnOf, opts) {
40
51
  const lengths = new Map(graph.nodes.map((n) => [n.id, n.length]));
41
52
  return deletions.map((d) => {
@@ -71,6 +82,7 @@ function takeRoutes(positions, routes) {
71
82
 
72
83
  export {
73
84
  withDeletionRoutes,
85
+ closableDeletions,
74
86
  routeNodes,
75
87
  takeRoutes
76
88
  };
@@ -1,29 +1,37 @@
1
1
  import {
2
- brightenAbgr
3
- } from "./chunk-MNUSQCLG.js";
4
-
5
- // src/renderer/Canvas2DRenderer.ts
2
+ syncCanvasSize
3
+ } from "./chunk-4BYTEJGW.js";
6
4
  import {
7
5
  abgrToCssRgba,
6
+ brightenAbgr,
8
7
  normalizedRgbToCssRgba
9
- } from "@jbrowse/core/util/colorBits";
10
- import { syncCanvasSize } from "@jbrowse/render-core/canvas2dUtils";
11
- import { Canvas2DRenderingBackendBase } from "@jbrowse/render-core/renderingBackendBase";
12
- var Canvas2DRenderer = class extends Canvas2DRenderingBackendBase {
13
- constructor() {
14
- super(...arguments);
8
+ } from "./chunk-UMNCCYBN.js";
9
+
10
+ // src/renderer/Canvas2DRenderer.ts
11
+ var Canvas2DRenderer = class {
12
+ constructor(canvas) {
15
13
  this.transform = null;
16
14
  this.batch = null;
17
15
  this.nodeHighlights = /* @__PURE__ */ new Map();
18
16
  this.highlightedEdge = null;
19
17
  this.highlightFactor = 1;
18
+ const ctx = canvas.getContext("2d");
19
+ if (!ctx) {
20
+ throw new Error("Canvas 2D context not available");
21
+ }
22
+ this.canvas = canvas;
23
+ this.ctx = ctx;
24
+ }
25
+ setErrorHandler(_handler) {
26
+ }
27
+ releaseOffscreenTargets() {
20
28
  }
21
- // render-core's, not a local `width * devicePixelRatio`: it clamps the
22
- // backing store at MAX_CANVAS_DIM_PX, reads the ratio through `getDpr()` so
23
- // this agrees with the transform the model builds, and writes the css size
29
+ // Not a local `width * devicePixelRatio`: syncCanvasSize clamps the backing
30
+ // store at MAX_CANVAS_DIM_PX, reads the ratio through `getDpr()` so this
31
+ // agrees with the transform the model builds, and writes the css size
24
32
  // independently of the backing size.
25
33
  resize(width, height) {
26
- syncCanvasSize(this.ctx.canvas, width, height);
34
+ syncCanvasSize(this.canvas, width, height);
27
35
  }
28
36
  uploadGeometry(batch) {
29
37
  this.batch = batch;
@@ -159,7 +167,6 @@ var Canvas2DRenderer = class extends Canvas2DRenderingBackendBase {
159
167
  }
160
168
  }
161
169
  dispose() {
162
- super.dispose();
163
170
  this.batch = null;
164
171
  this.nodeHighlights = /* @__PURE__ */ new Map();
165
172
  this.highlightedEdge = null;
@@ -5,15 +5,15 @@ import {
5
5
  stripGeneGaps,
6
6
  walkStripFrame,
7
7
  walkStripLabelsTree
8
- } from "./chunk-ROF2R3RF.js";
8
+ } from "./chunk-V5BPIOLS.js";
9
9
  import {
10
10
  walkRowsKey,
11
11
  walkRowsKeyTree,
12
12
  walkRowsTree
13
- } from "./chunk-6SXMCK6I.js";
13
+ } from "./chunk-PJESIRDU.js";
14
14
  import {
15
15
  Canvas2DRenderer
16
- } from "./chunk-D3M7SBKL.js";
16
+ } from "./chunk-CH3DLBUT.js";
17
17
  import {
18
18
  genePins
19
19
  } from "./chunk-BUBZ32IC.js";
@@ -24,17 +24,17 @@ import {
24
24
  } from "./chunk-3S3YVOJ7.js";
25
25
  import {
26
26
  version
27
- } from "./chunk-LLJUG2H7.js";
27
+ } from "./chunk-LPFN4POU.js";
28
28
  import {
29
29
  axisScaleOf
30
- } from "./chunk-MQJUG2D2.js";
30
+ } from "./chunk-AMHZMY6E.js";
31
31
  import {
32
32
  facetLifts,
33
33
  walkLift
34
- } from "./chunk-GGQRADFS.js";
34
+ } from "./chunk-ZKGM7VLA.js";
35
35
  import {
36
36
  encodingStops
37
- } from "./chunk-WFX3MAKA.js";
37
+ } from "./chunk-X4VVPLI5.js";
38
38
  import {
39
39
  rangeText,
40
40
  walkKey
@@ -43,11 +43,11 @@ import {
43
43
  FIT_PADDING,
44
44
  drawingBounds,
45
45
  fitTransform
46
- } from "./chunk-IO2PCPZI.js";
46
+ } from "./chunk-6UACM7VU.js";
47
47
  import {
48
48
  buildGeometry,
49
49
  computeReferenceRamp
50
- } from "./chunk-PCZ4PTYC.js";
50
+ } from "./chunk-RX5CSWJW.js";
51
51
  import {
52
52
  geneLabelCandidates
53
53
  } from "./chunk-DKOB2OPC.js";
@@ -1,5 +1,5 @@
1
1
  // src/version.ts
2
- var version = "6.0.3";
2
+ var version = "6.1.0";
3
3
 
4
4
  export {
5
5
  version
@@ -3,10 +3,10 @@ import {
3
3
  RAMP_GRADIENT_STOPS,
4
4
  rampHueCss,
5
5
  rampStops
6
- } from "./chunk-CJ2EE4AF.js";
6
+ } from "./chunk-ZHCDYSA5.js";
7
7
  import {
8
8
  REFERENCE_RAMP_ALT_CSS
9
- } from "./chunk-PCZ4PTYC.js";
9
+ } from "./chunk-RX5CSWJW.js";
10
10
  import {
11
11
  LABEL_CHAR_PX
12
12
  } from "./chunk-AB35TJST.js";
@@ -1,6 +1,8 @@
1
1
  import {
2
- fadeAbgr
3
- } from "./chunk-MNUSQCLG.js";
2
+ abgrToCssRgba,
3
+ fadeAbgr,
4
+ packAbgr
5
+ } from "./chunk-UMNCCYBN.js";
4
6
  import {
5
7
  baseEdgeCurves
6
8
  } from "./chunk-Y3IOTZJA.js";
@@ -26,7 +28,6 @@ import {
26
28
  } from "./chunk-2CVHXFK7.js";
27
29
 
28
30
  // src/renderer/GeometryBuilder.ts
29
- import { abgrToCssRgba, packAbgr } from "@jbrowse/core/util/colorBits";
30
31
  var EDGE_DEFAULT_COLOR = packAbgr(119, 119, 119, 217);
31
32
  var EDGE_PATH_FALLBACK_COLOR = packAbgr(136, 136, 136, 217);
32
33
  var EDGE_DELETION_COLOR = packAbgr(24, 24, 28, 240);
@@ -2,13 +2,15 @@ import {
2
2
  LIFT_BACKDROP_CSS,
3
3
  computeColorSchemeRange,
4
4
  getNodeColor
5
- } from "./chunk-PCZ4PTYC.js";
5
+ } from "./chunk-RX5CSWJW.js";
6
+ import {
7
+ abgrToCssRgba
8
+ } from "./chunk-UMNCCYBN.js";
6
9
  import {
7
10
  isBackbone
8
11
  } from "./chunk-FYQWPEEY.js";
9
12
 
10
13
  // src/referenceStrip.ts
11
- import { abgrToCssRgba } from "@jbrowse/core/util/colorBits";
12
14
  var REFERENCE_STRIP_PX = 12;
13
15
  var REFERENCE_STRIP_ZONE_PX = REFERENCE_STRIP_PX + 8;
14
16
  var OVERHANG_PX = 8;
@@ -0,0 +1,50 @@
1
+ // src/renderer/colorBits.ts
2
+ function packAbgr(r, g, b, a) {
3
+ return (a << 24 | b << 16 | g << 8 | r) >>> 0;
4
+ }
5
+ function abgrRed(c) {
6
+ return c & 255;
7
+ }
8
+ function abgrGreen(c) {
9
+ return c >>> 8 & 255;
10
+ }
11
+ function abgrBlue(c) {
12
+ return c >>> 16 & 255;
13
+ }
14
+ function abgrAlpha(c) {
15
+ return c >>> 24 & 255;
16
+ }
17
+ function abgrToCssRgba(c) {
18
+ return `rgba(${abgrRed(c)},${abgrGreen(c)},${abgrBlue(c)},${abgrAlpha(c) / 255})`;
19
+ }
20
+ function normalizedRgbToCssRgba(c, alpha) {
21
+ return `rgba(${Math.round(c[0] * 255)},${Math.round(c[1] * 255)},${Math.round(c[2] * 255)},${alpha})`;
22
+ }
23
+ function fadeAbgr(c, alpha) {
24
+ return packAbgr(
25
+ abgrRed(c),
26
+ abgrGreen(c),
27
+ abgrBlue(c),
28
+ Math.round(abgrAlpha(c) * alpha)
29
+ );
30
+ }
31
+ function brightenAbgr(c, factor) {
32
+ return packAbgr(
33
+ Math.min(255, Math.round(abgrRed(c) * factor)),
34
+ Math.min(255, Math.round(abgrGreen(c) * factor)),
35
+ Math.min(255, Math.round(abgrBlue(c) * factor)),
36
+ abgrAlpha(c)
37
+ );
38
+ }
39
+
40
+ export {
41
+ packAbgr,
42
+ abgrRed,
43
+ abgrGreen,
44
+ abgrBlue,
45
+ abgrAlpha,
46
+ abgrToCssRgba,
47
+ normalizedRgbToCssRgba,
48
+ fadeAbgr,
49
+ brightenAbgr
50
+ };
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  alongRow,
3
3
  boxesGenes
4
- } from "./chunk-6SXMCK6I.js";
4
+ } from "./chunk-PJESIRDU.js";
5
5
  import {
6
6
  pathOrigin
7
7
  } from "./chunk-ST2IBUAN.js";
@@ -2,10 +2,12 @@ import {
2
2
  REFERENCE_RAMP_ALT_COLOR,
3
3
  REFERENCE_RAMP_MAX_HUE,
4
4
  hslToRgb
5
- } from "./chunk-PCZ4PTYC.js";
5
+ } from "./chunk-RX5CSWJW.js";
6
+ import {
7
+ packAbgr
8
+ } from "./chunk-UMNCCYBN.js";
6
9
 
7
10
  // src/walkEncoding.ts
8
- import { packAbgr } from "@jbrowse/core/util/colorBits";
9
11
  var WALK_FIELDS = [
10
12
  { value: "progress", label: "Progress along the walk" },
11
13
  { value: "walk", label: "One colour for the walk" },
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  REFERENCE_RAMP_MAX_HUE
3
- } from "./chunk-PCZ4PTYC.js";
3
+ } from "./chunk-RX5CSWJW.js";
4
4
 
5
5
  // src/referenceRampCss.ts
6
6
  function rampHueCss(hue) {
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  encodedColor,
3
3
  resolveEncoding
4
- } from "./chunk-WFX3MAKA.js";
4
+ } from "./chunk-X4VVPLI5.js";
5
5
  import {
6
6
  pathOrigin
7
7
  } from "./chunk-ST2IBUAN.js";
@@ -1,10 +1,12 @@
1
1
  import {
2
2
  computeColorSchemeRange,
3
3
  getNodeColor
4
- } from "./chunk-PCZ4PTYC.js";
4
+ } from "./chunk-RX5CSWJW.js";
5
+ import {
6
+ abgrToCssRgba
7
+ } from "./chunk-UMNCCYBN.js";
5
8
 
6
9
  // src/tubeMap/nodeColors.ts
7
- import { abgrToCssRgba } from "@jbrowse/core/util/colorBits";
8
10
  function tubeMapNodeColors(graph, colorScheme, referenceRamp) {
9
11
  if (colorScheme === "uniform" || colorScheme === "grey") {
10
12
  return void 0;
@@ -21,34 +21,35 @@ import {
21
21
  } from "../chunks/chunk-7XHHVYG7.js";
22
22
  import {
23
23
  figureSvg
24
- } from "../chunks/chunk-5XQDMQXU.js";
24
+ } from "../chunks/chunk-KKU6JRJC.js";
25
25
  import "../chunks/chunk-47DYCZOK.js";
26
- import "../chunks/chunk-ROF2R3RF.js";
26
+ import "../chunks/chunk-V5BPIOLS.js";
27
27
  import {
28
28
  genesOnRow,
29
29
  placeRowGenes
30
- } from "../chunks/chunk-6SXMCK6I.js";
31
- import "../chunks/chunk-D3M7SBKL.js";
30
+ } from "../chunks/chunk-PJESIRDU.js";
31
+ import "../chunks/chunk-CH3DLBUT.js";
32
+ import "../chunks/chunk-4BYTEJGW.js";
32
33
  import "../chunks/chunk-BUBZ32IC.js";
33
34
  import "../chunks/chunk-3S3YVOJ7.js";
34
- import "../chunks/chunk-LLJUG2H7.js";
35
- import "../chunks/chunk-MQJUG2D2.js";
36
- import "../chunks/chunk-GGQRADFS.js";
37
- import "../chunks/chunk-WFX3MAKA.js";
35
+ import "../chunks/chunk-LPFN4POU.js";
36
+ import "../chunks/chunk-AMHZMY6E.js";
37
+ import "../chunks/chunk-ZKGM7VLA.js";
38
+ import "../chunks/chunk-X4VVPLI5.js";
38
39
  import "../chunks/chunk-GOY6REMT.js";
39
40
  import {
40
41
  forceLayout,
41
42
  loadGraph
42
- } from "../chunks/chunk-IO2PCPZI.js";
43
+ } from "../chunks/chunk-6UACM7VU.js";
43
44
  import "../chunks/chunk-PUG7LXDF.js";
44
45
  import "../chunks/chunk-IGVV37VI.js";
45
46
  import "../chunks/chunk-72N5DJHZ.js";
46
47
  import "../chunks/chunk-QYBZZI5H.js";
47
48
  import "../chunks/chunk-CDLPYR5O.js";
48
- import "../chunks/chunk-MI35EUIE.js";
49
- import "../chunks/chunk-CJ2EE4AF.js";
50
- import "../chunks/chunk-PCZ4PTYC.js";
51
- import "../chunks/chunk-MNUSQCLG.js";
49
+ import "../chunks/chunk-C6USNTTP.js";
50
+ import "../chunks/chunk-ZHCDYSA5.js";
51
+ import "../chunks/chunk-RX5CSWJW.js";
52
+ import "../chunks/chunk-UMNCCYBN.js";
52
53
  import "../chunks/chunk-DKOB2OPC.js";
53
54
  import "../chunks/chunk-YMSSF2RK.js";
54
55
  import "../chunks/chunk-MREQ7GIA.js";
@@ -240,7 +241,8 @@ async function renderSpec(spec, base) {
240
241
  linearLayout: false,
241
242
  bubbleSpread: spec.bubbleSpread ?? "auto",
242
243
  spacing: spec.spacing,
243
- componentSeparation: spec.componentSeparation
244
+ componentSeparation: spec.componentSeparation,
245
+ showDeletionEdges: !!spec.showDeletionEdges
244
246
  },
245
247
  engine
246
248
  )).result;
package/dist/figure.js CHANGED
@@ -1,27 +1,28 @@
1
1
  import {
2
2
  figureSvg
3
- } from "./chunks/chunk-5XQDMQXU.js";
3
+ } from "./chunks/chunk-KKU6JRJC.js";
4
4
  import "./chunks/chunk-47DYCZOK.js";
5
- import "./chunks/chunk-ROF2R3RF.js";
6
- import "./chunks/chunk-6SXMCK6I.js";
7
- import "./chunks/chunk-D3M7SBKL.js";
5
+ import "./chunks/chunk-V5BPIOLS.js";
6
+ import "./chunks/chunk-PJESIRDU.js";
7
+ import "./chunks/chunk-CH3DLBUT.js";
8
+ import "./chunks/chunk-4BYTEJGW.js";
8
9
  import "./chunks/chunk-BUBZ32IC.js";
9
10
  import "./chunks/chunk-3S3YVOJ7.js";
10
- import "./chunks/chunk-LLJUG2H7.js";
11
- import "./chunks/chunk-MQJUG2D2.js";
12
- import "./chunks/chunk-GGQRADFS.js";
13
- import "./chunks/chunk-WFX3MAKA.js";
11
+ import "./chunks/chunk-LPFN4POU.js";
12
+ import "./chunks/chunk-AMHZMY6E.js";
13
+ import "./chunks/chunk-ZKGM7VLA.js";
14
+ import "./chunks/chunk-X4VVPLI5.js";
14
15
  import "./chunks/chunk-GOY6REMT.js";
15
- import "./chunks/chunk-IO2PCPZI.js";
16
+ import "./chunks/chunk-6UACM7VU.js";
16
17
  import "./chunks/chunk-PUG7LXDF.js";
17
18
  import "./chunks/chunk-IGVV37VI.js";
18
19
  import "./chunks/chunk-72N5DJHZ.js";
19
20
  import "./chunks/chunk-QYBZZI5H.js";
20
21
  import "./chunks/chunk-CDLPYR5O.js";
21
- import "./chunks/chunk-MI35EUIE.js";
22
- import "./chunks/chunk-CJ2EE4AF.js";
23
- import "./chunks/chunk-PCZ4PTYC.js";
24
- import "./chunks/chunk-MNUSQCLG.js";
22
+ import "./chunks/chunk-C6USNTTP.js";
23
+ import "./chunks/chunk-ZHCDYSA5.js";
24
+ import "./chunks/chunk-RX5CSWJW.js";
25
+ import "./chunks/chunk-UMNCCYBN.js";
25
26
  import "./chunks/chunk-DKOB2OPC.js";
26
27
  import "./chunks/chunk-YMSSF2RK.js";
27
28
  import "./chunks/chunk-MREQ7GIA.js";
package/dist/index.js CHANGED
@@ -1,6 +1,10 @@
1
1
  import {
2
2
  wheelZoomFactor
3
3
  } from "./chunks/chunk-TDQLINVI.js";
4
+ import {
5
+ drawTubeMap,
6
+ tubeMapPicture
7
+ } from "./chunks/chunk-CR7EGAFE.js";
4
8
  import {
5
9
  tubeMapFrame,
6
10
  tubeMapNodeAt
@@ -9,9 +13,10 @@ import {
9
13
  drawTubeMapGenes,
10
14
  tubeMapGenes
11
15
  } from "./chunks/chunk-CTSBC2O6.js";
16
+ import "./chunks/chunk-EJ5OZTCK.js";
12
17
  import {
13
18
  tubeMapNodeColors
14
- } from "./chunks/chunk-EPZORFTI.js";
19
+ } from "./chunks/chunk-ZZA2AFB4.js";
15
20
  import {
16
21
  referenceKnots,
17
22
  warpX
@@ -28,11 +33,6 @@ import {
28
33
  referenceNodes,
29
34
  tubeMapConnectors
30
35
  } from "./chunks/chunk-GQ2AOHU4.js";
31
- import {
32
- drawTubeMap,
33
- tubeMapPicture
34
- } from "./chunks/chunk-CR7EGAFE.js";
35
- import "./chunks/chunk-EJ5OZTCK.js";
36
36
  import {
37
37
  bubbleHalos
38
38
  } from "./chunks/chunk-ISEI2FH3.js";
@@ -60,7 +60,7 @@ import {
60
60
  drawReferenceStrip,
61
61
  referenceStripBlocks,
62
62
  stripBlockAt
63
- } from "./chunks/chunk-EK4HGYO7.js";
63
+ } from "./chunks/chunk-SMQ545MU.js";
64
64
  import {
65
65
  FORCE_LAYOUT_LABEL,
66
66
  LAYOUT_MODES,
@@ -80,7 +80,7 @@ import {
80
80
  } from "./chunks/chunk-7XHHVYG7.js";
81
81
  import {
82
82
  figureSvg
83
- } from "./chunks/chunk-5XQDMQXU.js";
83
+ } from "./chunks/chunk-KKU6JRJC.js";
84
84
  import {
85
85
  svgCanvas
86
86
  } from "./chunks/chunk-47DYCZOK.js";
@@ -94,7 +94,7 @@ import {
94
94
  walkMarksTree,
95
95
  walkStripFrame,
96
96
  walkStripLabelsTree
97
- } from "./chunks/chunk-ROF2R3RF.js";
97
+ } from "./chunks/chunk-V5BPIOLS.js";
98
98
  import {
99
99
  BAR_PX,
100
100
  DISAGREES,
@@ -116,10 +116,13 @@ import {
116
116
  walkRowsKey,
117
117
  walkRowsKeyTree,
118
118
  walkRowsTree
119
- } from "./chunks/chunk-6SXMCK6I.js";
119
+ } from "./chunks/chunk-PJESIRDU.js";
120
120
  import {
121
121
  Canvas2DRenderer
122
- } from "./chunks/chunk-D3M7SBKL.js";
122
+ } from "./chunks/chunk-CH3DLBUT.js";
123
+ import {
124
+ getDpr
125
+ } from "./chunks/chunk-4BYTEJGW.js";
123
126
  import {
124
127
  genePins
125
128
  } from "./chunks/chunk-BUBZ32IC.js";
@@ -130,7 +133,7 @@ import {
130
133
  } from "./chunks/chunk-3S3YVOJ7.js";
131
134
  import {
132
135
  version
133
- } from "./chunks/chunk-LLJUG2H7.js";
136
+ } from "./chunks/chunk-LPFN4POU.js";
134
137
  import {
135
138
  axisScaleOf,
136
139
  contains,
@@ -138,12 +141,12 @@ import {
138
141
  screenToLayout,
139
142
  viewportOf,
140
143
  zoomAbout
141
- } from "./chunks/chunk-MQJUG2D2.js";
144
+ } from "./chunks/chunk-AMHZMY6E.js";
142
145
  import {
143
146
  facetLifts,
144
147
  walkHighlight,
145
148
  walkLift
146
- } from "./chunks/chunk-GGQRADFS.js";
149
+ } from "./chunks/chunk-ZKGM7VLA.js";
147
150
  import {
148
151
  WALK_FIELDS,
149
152
  WALK_SCHEMES,
@@ -151,7 +154,7 @@ import {
151
154
  encodingSwatchCss,
152
155
  resolveEncoding,
153
156
  schemeCss
154
- } from "./chunks/chunk-WFX3MAKA.js";
157
+ } from "./chunks/chunk-X4VVPLI5.js";
155
158
  import {
156
159
  rangeText,
157
160
  walkKey,
@@ -167,25 +170,25 @@ import {
167
170
  forceLayout,
168
171
  layoutExtent,
169
172
  loadGraph
170
- } from "./chunks/chunk-IO2PCPZI.js";
173
+ } from "./chunks/chunk-6UACM7VU.js";
171
174
  import "./chunks/chunk-PUG7LXDF.js";
172
175
  import "./chunks/chunk-IGVV37VI.js";
173
176
  import "./chunks/chunk-72N5DJHZ.js";
174
177
  import "./chunks/chunk-QYBZZI5H.js";
175
178
  import "./chunks/chunk-CDLPYR5O.js";
176
- import "./chunks/chunk-MI35EUIE.js";
179
+ import "./chunks/chunk-C6USNTTP.js";
177
180
  import {
178
181
  RAMP_GRADIENT_CSS,
179
182
  rampHue,
180
183
  rampHueCss,
181
184
  rampStops
182
- } from "./chunks/chunk-CJ2EE4AF.js";
185
+ } from "./chunks/chunk-ZHCDYSA5.js";
183
186
  import {
184
187
  REFERENCE_RAMP_MAX_HUE,
185
188
  buildGeometry,
186
189
  computeReferenceRamp
187
- } from "./chunks/chunk-PCZ4PTYC.js";
188
- import "./chunks/chunk-MNUSQCLG.js";
190
+ } from "./chunks/chunk-RX5CSWJW.js";
191
+ import "./chunks/chunk-UMNCCYBN.js";
189
192
  import {
190
193
  HALO_FACTOR,
191
194
  LEGEND_INSET_PX,
@@ -284,9 +287,6 @@ import {
284
287
  panSNSample
285
288
  } from "./chunks/chunk-BPLIXMH7.js";
286
289
  import "./chunks/chunk-FYQWPEEY.js";
287
-
288
- // src/index.ts
289
- import { getDpr } from "@jbrowse/render-core/canvas2dUtils";
290
290
  export {
291
291
  BUBBLE_KIND_COLORS,
292
292
  BUBBLE_KIND_NAMES,
@@ -1,9 +1,11 @@
1
1
  import {
2
+ closableDeletions,
2
3
  routeNodes,
3
4
  takeRoutes,
4
5
  withDeletionRoutes
5
- } from "../chunks/chunk-MI35EUIE.js";
6
+ } from "../chunks/chunk-C6USNTTP.js";
6
7
  export {
8
+ closableDeletions,
7
9
  routeNodes,
8
10
  takeRoutes,
9
11
  withDeletionRoutes
@@ -21,10 +21,10 @@ import {
21
21
  walkRowsKey,
22
22
  walkRowsKeyTree,
23
23
  walkRowsTree
24
- } from "../chunks/chunk-6SXMCK6I.js";
25
- import "../chunks/chunk-CJ2EE4AF.js";
26
- import "../chunks/chunk-PCZ4PTYC.js";
27
- import "../chunks/chunk-MNUSQCLG.js";
24
+ } from "../chunks/chunk-PJESIRDU.js";
25
+ import "../chunks/chunk-ZHCDYSA5.js";
26
+ import "../chunks/chunk-RX5CSWJW.js";
27
+ import "../chunks/chunk-UMNCCYBN.js";
28
28
  import "../chunks/chunk-Y3IOTZJA.js";
29
29
  import "../chunks/chunk-X5L37W4J.js";
30
30
  import "../chunks/chunk-ST2IBUAN.js";
@@ -8,11 +8,11 @@ import {
8
8
  walkMarksTree,
9
9
  walkStripFrame,
10
10
  walkStripLabelsTree
11
- } from "../chunks/chunk-ROF2R3RF.js";
12
- import "../chunks/chunk-6SXMCK6I.js";
13
- import "../chunks/chunk-CJ2EE4AF.js";
14
- import "../chunks/chunk-PCZ4PTYC.js";
15
- import "../chunks/chunk-MNUSQCLG.js";
11
+ } from "../chunks/chunk-V5BPIOLS.js";
12
+ import "../chunks/chunk-PJESIRDU.js";
13
+ import "../chunks/chunk-ZHCDYSA5.js";
14
+ import "../chunks/chunk-RX5CSWJW.js";
15
+ import "../chunks/chunk-UMNCCYBN.js";
16
16
  import "../chunks/chunk-Y3IOTZJA.js";
17
17
  import "../chunks/chunk-X5L37W4J.js";
18
18
  import "../chunks/chunk-ST2IBUAN.js";
package/dist/pipeline.js CHANGED
@@ -9,13 +9,13 @@ import {
9
9
  forceLayout,
10
10
  layoutExtent,
11
11
  loadGraph
12
- } from "./chunks/chunk-IO2PCPZI.js";
12
+ } from "./chunks/chunk-6UACM7VU.js";
13
13
  import "./chunks/chunk-PUG7LXDF.js";
14
14
  import "./chunks/chunk-IGVV37VI.js";
15
15
  import "./chunks/chunk-72N5DJHZ.js";
16
16
  import "./chunks/chunk-QYBZZI5H.js";
17
17
  import "./chunks/chunk-CDLPYR5O.js";
18
- import "./chunks/chunk-MI35EUIE.js";
18
+ import "./chunks/chunk-C6USNTTP.js";
19
19
  import "./chunks/chunk-ST2IBUAN.js";
20
20
  import "./chunks/chunk-ES2N6V56.js";
21
21
  import "./chunks/chunk-TAMCZHLW.js";
@@ -4,9 +4,9 @@ import {
4
4
  rampHue,
5
5
  rampHueCss,
6
6
  rampStops
7
- } from "./chunks/chunk-CJ2EE4AF.js";
8
- import "./chunks/chunk-PCZ4PTYC.js";
9
- import "./chunks/chunk-MNUSQCLG.js";
7
+ } from "./chunks/chunk-ZHCDYSA5.js";
8
+ import "./chunks/chunk-RX5CSWJW.js";
9
+ import "./chunks/chunk-UMNCCYBN.js";
10
10
  import "./chunks/chunk-Y3IOTZJA.js";
11
11
  import "./chunks/chunk-X5L37W4J.js";
12
12
  import "./chunks/chunk-ST2IBUAN.js";
@@ -7,9 +7,9 @@ import {
7
7
  stripBlockAt,
8
8
  stripOverhang,
9
9
  stripPixels
10
- } from "./chunks/chunk-EK4HGYO7.js";
11
- import "./chunks/chunk-PCZ4PTYC.js";
12
- import "./chunks/chunk-MNUSQCLG.js";
10
+ } from "./chunks/chunk-SMQ545MU.js";
11
+ import "./chunks/chunk-RX5CSWJW.js";
12
+ import "./chunks/chunk-UMNCCYBN.js";
13
13
  import "./chunks/chunk-Y3IOTZJA.js";
14
14
  import "./chunks/chunk-X5L37W4J.js";
15
15
  import "./chunks/chunk-ST2IBUAN.js";
@@ -1,8 +1,9 @@
1
1
  import {
2
2
  Canvas2DRenderer,
3
3
  arrowheadOutline
4
- } from "../chunks/chunk-D3M7SBKL.js";
5
- import "../chunks/chunk-MNUSQCLG.js";
4
+ } from "../chunks/chunk-CH3DLBUT.js";
5
+ import "../chunks/chunk-4BYTEJGW.js";
6
+ import "../chunks/chunk-UMNCCYBN.js";
6
7
  export {
7
8
  Canvas2DRenderer,
8
9
  arrowheadOutline
@@ -11,8 +11,8 @@ import {
11
11
  endTangent,
12
12
  getNodeColor,
13
13
  hslToRgb
14
- } from "../chunks/chunk-PCZ4PTYC.js";
15
- import "../chunks/chunk-MNUSQCLG.js";
14
+ } from "../chunks/chunk-RX5CSWJW.js";
15
+ import "../chunks/chunk-UMNCCYBN.js";
16
16
  import "../chunks/chunk-Y3IOTZJA.js";
17
17
  import "../chunks/chunk-X5L37W4J.js";
18
18
  import "../chunks/chunk-ST2IBUAN.js";
@@ -0,0 +1,12 @@
1
+ import {
2
+ MAX_CANVAS_DIM_PX,
3
+ MAX_DPR,
4
+ getDpr,
5
+ syncCanvasSize
6
+ } from "../chunks/chunk-4BYTEJGW.js";
7
+ export {
8
+ MAX_CANVAS_DIM_PX,
9
+ MAX_DPR,
10
+ getDpr,
11
+ syncCanvasSize
12
+ };
@@ -1,8 +1,22 @@
1
1
  import {
2
+ abgrAlpha,
3
+ abgrBlue,
4
+ abgrGreen,
5
+ abgrRed,
6
+ abgrToCssRgba,
2
7
  brightenAbgr,
3
- fadeAbgr
4
- } from "../chunks/chunk-MNUSQCLG.js";
8
+ fadeAbgr,
9
+ normalizedRgbToCssRgba,
10
+ packAbgr
11
+ } from "../chunks/chunk-UMNCCYBN.js";
5
12
  export {
13
+ abgrAlpha,
14
+ abgrBlue,
15
+ abgrGreen,
16
+ abgrRed,
17
+ abgrToCssRgba,
6
18
  brightenAbgr,
7
- fadeAbgr
19
+ fadeAbgr,
20
+ normalizedRgbToCssRgba,
21
+ packAbgr
8
22
  };
@@ -1,8 +1,8 @@
1
1
  import {
2
2
  tubeMapNodeColors
3
- } from "../chunks/chunk-EPZORFTI.js";
4
- import "../chunks/chunk-PCZ4PTYC.js";
5
- import "../chunks/chunk-MNUSQCLG.js";
3
+ } from "../chunks/chunk-ZZA2AFB4.js";
4
+ import "../chunks/chunk-RX5CSWJW.js";
5
+ import "../chunks/chunk-UMNCCYBN.js";
6
6
  import "../chunks/chunk-Y3IOTZJA.js";
7
7
  import "../chunks/chunk-X5L37W4J.js";
8
8
  import "../chunks/chunk-ST2IBUAN.js";
@@ -10,7 +10,7 @@ export { BUBBLE_SPREADS } from './bubbleSpreads.js';
10
10
  export type { BubbleSpread } from './bubbleSpreads.js';
11
11
  export { REFERENCE_RAMP_MAX_HUE, buildGeometry, computeReferenceRamp, } from './renderer/GeometryBuilder.js';
12
12
  export { Canvas2DRenderer } from './renderer/Canvas2DRenderer.js';
13
- export { getDpr } from '@jbrowse/render-core/canvas2dUtils';
13
+ export { getDpr } from './renderer/canvas.js';
14
14
  export type { Renderer } from './renderer/types.js';
15
15
  export { findHoveredEdge, findHoveredNode } from './util/hitDetection.js';
16
16
  export type { NodeInk } from './util/hitDetection.js';
@@ -2,7 +2,7 @@ import type { BandageScaleOpts } from './drawnScale.js';
2
2
  import type { DeletionEdge } from '../deletionEdges.js';
3
3
  import type { Graph, GraphEdge, GraphNode, NodeSegment } from '../types.js';
4
4
  export type DeletionRoutes = Record<number, NodeSegment[]>;
5
- export declare function withDeletionRoutes(graph: Graph, deletions: DeletionEdge[]): {
5
+ export declare function withDeletionRoutes(graph: Graph, deletions: DeletionEdge[], dropped?: Set<number>): {
6
6
  graph: {
7
7
  nodes: {
8
8
  id: string;
@@ -22,6 +22,7 @@ export declare function withDeletionRoutes(graph: Graph, deletions: DeletionEdge
22
22
  routes: Map<number, string>;
23
23
  ids: Set<string>;
24
24
  };
25
+ export declare function closableDeletions(graph: Graph, deletions: DeletionEdge[]): Set<number>;
25
26
  export declare function routeNodes(graph: Graph, deletions: DeletionEdge[], routes: Map<number, string>, drawnOf: (bp: number) => number, opts: BandageScaleOpts): GraphNode[];
26
27
  export declare function takeRoutes(positions: Record<string, NodeSegment[]>, routes: Map<number, string>): {
27
28
  nodePositions: {
@@ -1,9 +1,12 @@
1
- import type { BaseFeatureDataAdapter } from '@jbrowse/core/data_adapters/BaseAdapter';
1
+ interface ConfAdapter {
2
+ getConf(slot: any): unknown;
3
+ }
2
4
  export declare function panSNSample(refName: string): string;
3
5
  export declare function isGenericSample(sample: string): boolean;
4
6
  export declare function panSNHaplotype(refName: string): string | undefined;
5
7
  export declare function panSNContig(refName: string): string;
6
8
  export declare function panSNMatchesPrefix(refName: string, prefix: string | undefined): boolean;
7
- export declare function resolvePanSNPrefix(adapter: BaseFeatureDataAdapter, name: string): string;
8
- export declare function resolvePanSNPrefix(adapter: BaseFeatureDataAdapter, name: string | undefined): string | undefined;
9
- export declare function assemblyByPanSNPrefix(adapter: BaseFeatureDataAdapter): Record<string, string>;
9
+ export declare function resolvePanSNPrefix(adapter: ConfAdapter, name: string): string;
10
+ export declare function resolvePanSNPrefix(adapter: ConfAdapter, name: string | undefined): string | undefined;
11
+ export declare function assemblyByPanSNPrefix(adapter: ConfAdapter): Record<string, string>;
12
+ export {};
@@ -29,6 +29,7 @@ export interface EngineSettings {
29
29
  bubbleSpread: BubbleSpread;
30
30
  spacing?: number;
31
31
  componentSeparation?: number;
32
+ showDeletionEdges?: boolean;
32
33
  }
33
34
  export declare function engineRequest(graph: Graph, scaling: LayoutScaling, settings: EngineSettings): EngineRequest;
34
35
  export declare function engineKey(graph: Graph, settings: EngineSettings): string;
@@ -1,11 +1,15 @@
1
- import { Canvas2DRenderingBackendBase } from '@jbrowse/render-core/renderingBackendBase';
2
1
  import type { Arrowhead, RenderBatch, Renderer, TransformUniform } from './types.js';
3
- export declare class Canvas2DRenderer extends Canvas2DRenderingBackendBase implements Renderer {
2
+ export declare class Canvas2DRenderer implements Renderer {
3
+ readonly canvas: HTMLCanvasElement;
4
+ readonly ctx: CanvasRenderingContext2D;
4
5
  private transform;
5
6
  private batch;
6
7
  private nodeHighlights;
7
8
  private highlightedEdge;
8
9
  private highlightFactor;
10
+ constructor(canvas: HTMLCanvasElement);
11
+ setErrorHandler(_handler: (error: Error) => void): void;
12
+ releaseOffscreenTargets(): void;
9
13
  resize(width: number, height: number): void;
10
14
  uploadGeometry(batch: RenderBatch): void;
11
15
  setNodeHighlights(factors: ReadonlyMap<string, number>): void;
@@ -0,0 +1,4 @@
1
+ export declare const MAX_DPR = 2;
2
+ export declare const MAX_CANVAS_DIM_PX = 8192;
3
+ export declare function getDpr(): number;
4
+ export declare function syncCanvasSize(canvas: HTMLCanvasElement, width: number, height: number): void;
@@ -1,2 +1,9 @@
1
+ export declare function packAbgr(r: number, g: number, b: number, a: number): number;
2
+ export declare function abgrRed(c: number): number;
3
+ export declare function abgrGreen(c: number): number;
4
+ export declare function abgrBlue(c: number): number;
5
+ export declare function abgrAlpha(c: number): number;
6
+ export declare function abgrToCssRgba(c: number): string;
7
+ export declare function normalizedRgbToCssRgba(c: readonly [number, number, number], alpha: number): string;
1
8
  export declare function fadeAbgr(c: number, alpha: number): number;
2
9
  export declare function brightenAbgr(c: number, factor: number): number;
@@ -1 +1 @@
1
- export declare const version = "6.0.3";
1
+ export declare const version = "6.1.0";
package/dist/version.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  version
3
- } from "./chunks/chunk-LLJUG2H7.js";
3
+ } from "./chunks/chunk-LPFN4POU.js";
4
4
  export {
5
5
  version
6
6
  };
package/dist/viewport.js CHANGED
@@ -5,14 +5,14 @@ import {
5
5
  screenToLayout,
6
6
  viewportOf,
7
7
  zoomAbout
8
- } from "./chunks/chunk-MQJUG2D2.js";
9
- import "./chunks/chunk-IO2PCPZI.js";
8
+ } from "./chunks/chunk-AMHZMY6E.js";
9
+ import "./chunks/chunk-6UACM7VU.js";
10
10
  import "./chunks/chunk-PUG7LXDF.js";
11
11
  import "./chunks/chunk-IGVV37VI.js";
12
12
  import "./chunks/chunk-72N5DJHZ.js";
13
13
  import "./chunks/chunk-QYBZZI5H.js";
14
14
  import "./chunks/chunk-CDLPYR5O.js";
15
- import "./chunks/chunk-MI35EUIE.js";
15
+ import "./chunks/chunk-C6USNTTP.js";
16
16
  import "./chunks/chunk-ST2IBUAN.js";
17
17
  import "./chunks/chunk-ES2N6V56.js";
18
18
  import "./chunks/chunk-TAMCZHLW.js";
@@ -9,9 +9,9 @@ import {
9
9
  schemeColor,
10
10
  schemeCss,
11
11
  schemeRgb
12
- } from "./chunks/chunk-WFX3MAKA.js";
13
- import "./chunks/chunk-PCZ4PTYC.js";
14
- import "./chunks/chunk-MNUSQCLG.js";
12
+ } from "./chunks/chunk-X4VVPLI5.js";
13
+ import "./chunks/chunk-RX5CSWJW.js";
14
+ import "./chunks/chunk-UMNCCYBN.js";
15
15
  import "./chunks/chunk-Y3IOTZJA.js";
16
16
  import "./chunks/chunk-X5L37W4J.js";
17
17
  import "./chunks/chunk-ST2IBUAN.js";
@@ -2,10 +2,10 @@ import {
2
2
  facetLifts,
3
3
  walkHighlight,
4
4
  walkLift
5
- } from "./chunks/chunk-GGQRADFS.js";
6
- import "./chunks/chunk-WFX3MAKA.js";
7
- import "./chunks/chunk-PCZ4PTYC.js";
8
- import "./chunks/chunk-MNUSQCLG.js";
5
+ } from "./chunks/chunk-ZKGM7VLA.js";
6
+ import "./chunks/chunk-X4VVPLI5.js";
7
+ import "./chunks/chunk-RX5CSWJW.js";
8
+ import "./chunks/chunk-UMNCCYBN.js";
9
9
  import "./chunks/chunk-Y3IOTZJA.js";
10
10
  import "./chunks/chunk-X5L37W4J.js";
11
11
  import "./chunks/chunk-ST2IBUAN.js";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jbrowse/bandage-core",
3
- "version": "6.0.3",
3
+ "version": "6.1.0",
4
4
  "description": "Pangenome graph layout and drawing with no host: GFA in, the Bandage force-directed engine and reference-anchored layouts, a Canvas2D renderer, hit testing and labels out",
5
5
  "license": "GPL-3.0-or-later",
6
6
  "repository": {
@@ -36,9 +36,7 @@
36
36
  "dependencies": {
37
37
  "@gmod/gbz-base": "^7.0.0",
38
38
  "@gmod/tabix": "^3.9.1",
39
- "@gmod/tubemap-core": "^0.1.0",
40
- "@jbrowse/core": "5.0.0-beta.11",
41
- "@jbrowse/render-core": "5.0.0-beta.11"
39
+ "@gmod/tubemap-core": "^0.1.0"
42
40
  },
43
41
  "devDependencies": {
44
42
  "@eslint/js": "^10.0.1",
@@ -1,29 +0,0 @@
1
- // src/renderer/colorBits.ts
2
- import {
3
- abgrAlpha,
4
- abgrBlue,
5
- abgrGreen,
6
- abgrRed,
7
- packAbgr
8
- } from "@jbrowse/core/util/colorBits";
9
- function fadeAbgr(c, alpha) {
10
- return packAbgr(
11
- abgrRed(c),
12
- abgrGreen(c),
13
- abgrBlue(c),
14
- Math.round(abgrAlpha(c) * alpha)
15
- );
16
- }
17
- function brightenAbgr(c, factor) {
18
- return packAbgr(
19
- Math.min(255, Math.round(abgrRed(c) * factor)),
20
- Math.min(255, Math.round(abgrGreen(c) * factor)),
21
- Math.min(255, Math.round(abgrBlue(c) * factor)),
22
- abgrAlpha(c)
23
- );
24
- }
25
-
26
- export {
27
- fadeAbgr,
28
- brightenAbgr
29
- };