@jbrowse/bandage-core 6.0.3 → 6.0.4
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.
- package/dist/chunks/chunk-4BYTEJGW.js +44 -0
- package/dist/chunks/{chunk-D3M7SBKL.js → chunk-CH3DLBUT.js} +22 -15
- package/dist/chunks/{chunk-5XQDMQXU.js → chunk-FZCOVJAL.js} +7 -7
- package/dist/chunks/{chunk-6SXMCK6I.js → chunk-PJESIRDU.js} +2 -2
- package/dist/chunks/{chunk-LLJUG2H7.js → chunk-QFBZQJFK.js} +1 -1
- package/dist/chunks/{chunk-PCZ4PTYC.js → chunk-RX5CSWJW.js} +4 -3
- package/dist/chunks/{chunk-EK4HGYO7.js → chunk-SMQ545MU.js} +4 -2
- package/dist/chunks/chunk-UMNCCYBN.js +50 -0
- package/dist/chunks/{chunk-ROF2R3RF.js → chunk-V5BPIOLS.js} +1 -1
- package/dist/chunks/{chunk-WFX3MAKA.js → chunk-X4VVPLI5.js} +4 -2
- package/dist/chunks/{chunk-CJ2EE4AF.js → chunk-ZHCDYSA5.js} +1 -1
- package/dist/chunks/{chunk-GGQRADFS.js → chunk-ZKGM7VLA.js} +1 -1
- package/dist/chunks/{chunk-EPZORFTI.js → chunk-ZZA2AFB4.js} +4 -2
- package/dist/cli/figure.js +11 -10
- package/dist/figure.js +11 -10
- package/dist/index.js +20 -20
- package/dist/layout/walkRowDraw.js +4 -4
- package/dist/layout/walkStrip.js +5 -5
- package/dist/referenceRampCss.js +3 -3
- package/dist/referenceStrip.js +3 -3
- package/dist/renderer/Canvas2DRenderer.js +3 -2
- package/dist/renderer/GeometryBuilder.js +2 -2
- package/dist/renderer/canvas.js +12 -0
- package/dist/renderer/colorBits.js +17 -3
- package/dist/tubeMap/nodeColors.js +3 -3
- package/dist/types/index.d.ts +1 -1
- package/dist/types/pansn.d.ts +7 -4
- package/dist/types/renderer/Canvas2DRenderer.d.ts +6 -2
- package/dist/types/renderer/canvas.d.ts +4 -0
- package/dist/types/renderer/colorBits.d.ts +7 -0
- package/dist/types/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/dist/walkEncoding.js +3 -3
- package/dist/walkHighlight.js +4 -4
- package/package.json +2 -4
- 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
|
+
};
|
|
@@ -1,29 +1,37 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
} from "./chunk-
|
|
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 "
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
var Canvas2DRenderer = class
|
|
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
|
-
//
|
|
22
|
-
//
|
|
23
|
-
//
|
|
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.
|
|
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-
|
|
8
|
+
} from "./chunk-V5BPIOLS.js";
|
|
9
9
|
import {
|
|
10
10
|
walkRowsKey,
|
|
11
11
|
walkRowsKeyTree,
|
|
12
12
|
walkRowsTree
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-PJESIRDU.js";
|
|
14
14
|
import {
|
|
15
15
|
Canvas2DRenderer
|
|
16
|
-
} from "./chunk-
|
|
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-
|
|
27
|
+
} from "./chunk-QFBZQJFK.js";
|
|
28
28
|
import {
|
|
29
29
|
axisScaleOf
|
|
30
30
|
} from "./chunk-MQJUG2D2.js";
|
|
31
31
|
import {
|
|
32
32
|
facetLifts,
|
|
33
33
|
walkLift
|
|
34
|
-
} from "./chunk-
|
|
34
|
+
} from "./chunk-ZKGM7VLA.js";
|
|
35
35
|
import {
|
|
36
36
|
encodingStops
|
|
37
|
-
} from "./chunk-
|
|
37
|
+
} from "./chunk-X4VVPLI5.js";
|
|
38
38
|
import {
|
|
39
39
|
rangeText,
|
|
40
40
|
walkKey
|
|
@@ -47,7 +47,7 @@ import {
|
|
|
47
47
|
import {
|
|
48
48
|
buildGeometry,
|
|
49
49
|
computeReferenceRamp
|
|
50
|
-
} from "./chunk-
|
|
50
|
+
} from "./chunk-RX5CSWJW.js";
|
|
51
51
|
import {
|
|
52
52
|
geneLabelCandidates
|
|
53
53
|
} from "./chunk-DKOB2OPC.js";
|
|
@@ -3,10 +3,10 @@ import {
|
|
|
3
3
|
RAMP_GRADIENT_STOPS,
|
|
4
4
|
rampHueCss,
|
|
5
5
|
rampStops
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-ZHCDYSA5.js";
|
|
7
7
|
import {
|
|
8
8
|
REFERENCE_RAMP_ALT_CSS
|
|
9
|
-
} from "./chunk-
|
|
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
|
-
|
|
3
|
-
|
|
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-
|
|
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
|
+
};
|
|
@@ -2,10 +2,12 @@ import {
|
|
|
2
2
|
REFERENCE_RAMP_ALT_COLOR,
|
|
3
3
|
REFERENCE_RAMP_MAX_HUE,
|
|
4
4
|
hslToRgb
|
|
5
|
-
} from "./chunk-
|
|
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,10 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
computeColorSchemeRange,
|
|
3
3
|
getNodeColor
|
|
4
|
-
} from "./chunk-
|
|
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;
|
package/dist/cli/figure.js
CHANGED
|
@@ -21,20 +21,21 @@ import {
|
|
|
21
21
|
} from "../chunks/chunk-7XHHVYG7.js";
|
|
22
22
|
import {
|
|
23
23
|
figureSvg
|
|
24
|
-
} from "../chunks/chunk-
|
|
24
|
+
} from "../chunks/chunk-FZCOVJAL.js";
|
|
25
25
|
import "../chunks/chunk-47DYCZOK.js";
|
|
26
|
-
import "../chunks/chunk-
|
|
26
|
+
import "../chunks/chunk-V5BPIOLS.js";
|
|
27
27
|
import {
|
|
28
28
|
genesOnRow,
|
|
29
29
|
placeRowGenes
|
|
30
|
-
} from "../chunks/chunk-
|
|
31
|
-
import "../chunks/chunk-
|
|
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-
|
|
35
|
+
import "../chunks/chunk-QFBZQJFK.js";
|
|
35
36
|
import "../chunks/chunk-MQJUG2D2.js";
|
|
36
|
-
import "../chunks/chunk-
|
|
37
|
-
import "../chunks/chunk-
|
|
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,
|
|
@@ -46,9 +47,9 @@ import "../chunks/chunk-72N5DJHZ.js";
|
|
|
46
47
|
import "../chunks/chunk-QYBZZI5H.js";
|
|
47
48
|
import "../chunks/chunk-CDLPYR5O.js";
|
|
48
49
|
import "../chunks/chunk-MI35EUIE.js";
|
|
49
|
-
import "../chunks/chunk-
|
|
50
|
-
import "../chunks/chunk-
|
|
51
|
-
import "../chunks/chunk-
|
|
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";
|
package/dist/figure.js
CHANGED
|
@@ -1,16 +1,17 @@
|
|
|
1
1
|
import {
|
|
2
2
|
figureSvg
|
|
3
|
-
} from "./chunks/chunk-
|
|
3
|
+
} from "./chunks/chunk-FZCOVJAL.js";
|
|
4
4
|
import "./chunks/chunk-47DYCZOK.js";
|
|
5
|
-
import "./chunks/chunk-
|
|
6
|
-
import "./chunks/chunk-
|
|
7
|
-
import "./chunks/chunk-
|
|
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-
|
|
11
|
+
import "./chunks/chunk-QFBZQJFK.js";
|
|
11
12
|
import "./chunks/chunk-MQJUG2D2.js";
|
|
12
|
-
import "./chunks/chunk-
|
|
13
|
-
import "./chunks/chunk-
|
|
13
|
+
import "./chunks/chunk-ZKGM7VLA.js";
|
|
14
|
+
import "./chunks/chunk-X4VVPLI5.js";
|
|
14
15
|
import "./chunks/chunk-GOY6REMT.js";
|
|
15
16
|
import "./chunks/chunk-IO2PCPZI.js";
|
|
16
17
|
import "./chunks/chunk-PUG7LXDF.js";
|
|
@@ -19,9 +20,9 @@ import "./chunks/chunk-72N5DJHZ.js";
|
|
|
19
20
|
import "./chunks/chunk-QYBZZI5H.js";
|
|
20
21
|
import "./chunks/chunk-CDLPYR5O.js";
|
|
21
22
|
import "./chunks/chunk-MI35EUIE.js";
|
|
22
|
-
import "./chunks/chunk-
|
|
23
|
-
import "./chunks/chunk-
|
|
24
|
-
import "./chunks/chunk-
|
|
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-
|
|
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-
|
|
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-
|
|
83
|
+
} from "./chunks/chunk-FZCOVJAL.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-
|
|
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-
|
|
119
|
+
} from "./chunks/chunk-PJESIRDU.js";
|
|
120
120
|
import {
|
|
121
121
|
Canvas2DRenderer
|
|
122
|
-
} from "./chunks/chunk-
|
|
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-
|
|
136
|
+
} from "./chunks/chunk-QFBZQJFK.js";
|
|
134
137
|
import {
|
|
135
138
|
axisScaleOf,
|
|
136
139
|
contains,
|
|
@@ -143,7 +146,7 @@ import {
|
|
|
143
146
|
facetLifts,
|
|
144
147
|
walkHighlight,
|
|
145
148
|
walkLift
|
|
146
|
-
} from "./chunks/chunk-
|
|
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-
|
|
157
|
+
} from "./chunks/chunk-X4VVPLI5.js";
|
|
155
158
|
import {
|
|
156
159
|
rangeText,
|
|
157
160
|
walkKey,
|
|
@@ -179,13 +182,13 @@ import {
|
|
|
179
182
|
rampHue,
|
|
180
183
|
rampHueCss,
|
|
181
184
|
rampStops
|
|
182
|
-
} from "./chunks/chunk-
|
|
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-
|
|
188
|
-
import "./chunks/chunk-
|
|
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,
|
|
@@ -21,10 +21,10 @@ import {
|
|
|
21
21
|
walkRowsKey,
|
|
22
22
|
walkRowsKeyTree,
|
|
23
23
|
walkRowsTree
|
|
24
|
-
} from "../chunks/chunk-
|
|
25
|
-
import "../chunks/chunk-
|
|
26
|
-
import "../chunks/chunk-
|
|
27
|
-
import "../chunks/chunk-
|
|
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";
|
package/dist/layout/walkStrip.js
CHANGED
|
@@ -8,11 +8,11 @@ import {
|
|
|
8
8
|
walkMarksTree,
|
|
9
9
|
walkStripFrame,
|
|
10
10
|
walkStripLabelsTree
|
|
11
|
-
} from "../chunks/chunk-
|
|
12
|
-
import "../chunks/chunk-
|
|
13
|
-
import "../chunks/chunk-
|
|
14
|
-
import "../chunks/chunk-
|
|
15
|
-
import "../chunks/chunk-
|
|
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/referenceRampCss.js
CHANGED
|
@@ -4,9 +4,9 @@ import {
|
|
|
4
4
|
rampHue,
|
|
5
5
|
rampHueCss,
|
|
6
6
|
rampStops
|
|
7
|
-
} from "./chunks/chunk-
|
|
8
|
-
import "./chunks/chunk-
|
|
9
|
-
import "./chunks/chunk-
|
|
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";
|
package/dist/referenceStrip.js
CHANGED
|
@@ -7,9 +7,9 @@ import {
|
|
|
7
7
|
stripBlockAt,
|
|
8
8
|
stripOverhang,
|
|
9
9
|
stripPixels
|
|
10
|
-
} from "./chunks/chunk-
|
|
11
|
-
import "./chunks/chunk-
|
|
12
|
-
import "./chunks/chunk-
|
|
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-
|
|
5
|
-
import "../chunks/chunk-
|
|
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-
|
|
15
|
-
import "../chunks/chunk-
|
|
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";
|
|
@@ -1,8 +1,22 @@
|
|
|
1
1
|
import {
|
|
2
|
+
abgrAlpha,
|
|
3
|
+
abgrBlue,
|
|
4
|
+
abgrGreen,
|
|
5
|
+
abgrRed,
|
|
6
|
+
abgrToCssRgba,
|
|
2
7
|
brightenAbgr,
|
|
3
|
-
fadeAbgr
|
|
4
|
-
|
|
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-
|
|
4
|
-
import "../chunks/chunk-
|
|
5
|
-
import "../chunks/chunk-
|
|
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";
|
package/dist/types/index.d.ts
CHANGED
|
@@ -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 '
|
|
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';
|
package/dist/types/pansn.d.ts
CHANGED
|
@@ -1,9 +1,12 @@
|
|
|
1
|
-
|
|
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:
|
|
8
|
-
export declare function resolvePanSNPrefix(adapter:
|
|
9
|
-
export declare function assemblyByPanSNPrefix(adapter:
|
|
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 {};
|
|
@@ -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
|
|
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;
|
|
@@ -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;
|
package/dist/types/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const version = "6.0.
|
|
1
|
+
export declare const version = "6.0.4";
|
package/dist/version.js
CHANGED
package/dist/walkEncoding.js
CHANGED
|
@@ -9,9 +9,9 @@ import {
|
|
|
9
9
|
schemeColor,
|
|
10
10
|
schemeCss,
|
|
11
11
|
schemeRgb
|
|
12
|
-
} from "./chunks/chunk-
|
|
13
|
-
import "./chunks/chunk-
|
|
14
|
-
import "./chunks/chunk-
|
|
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";
|
package/dist/walkHighlight.js
CHANGED
|
@@ -2,10 +2,10 @@ import {
|
|
|
2
2
|
facetLifts,
|
|
3
3
|
walkHighlight,
|
|
4
4
|
walkLift
|
|
5
|
-
} from "./chunks/chunk-
|
|
6
|
-
import "./chunks/chunk-
|
|
7
|
-
import "./chunks/chunk-
|
|
8
|
-
import "./chunks/chunk-
|
|
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
|
+
"version": "6.0.4",
|
|
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
|
-
};
|