@jbrowse/bandage-core 0.1.20 → 4.0.25
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/README.md +4 -3
- package/dist/chunks/{chunk-3XDR3ZBS.js → chunk-B5ZHLU4N.js} +603 -41
- package/dist/cli/figure.js +61 -56
- package/dist/index.js +89 -273
- package/dist/types/cli/figure.d.ts +8 -8
- package/dist/types/figure.d.ts +3 -1
- package/dist/types/gbzCut.d.ts +33 -0
- package/dist/types/genes/geneFiles.d.ts +10 -0
- package/dist/types/index.d.ts +5 -1
- package/dist/types/labelLayout.d.ts +14 -0
- package/dist/types/overlayLabels.d.ts +1 -0
- package/dist/types/referenceStrip.d.ts +11 -8
- package/dist/types/version.d.ts +1 -0
- package/dist/types/walkKey.d.ts +1 -0
- package/package.json +3 -2
package/dist/types/index.d.ts
CHANGED
|
@@ -33,8 +33,12 @@ export type { TubeMapColumn, TubeMapDrawing } from './layout/tubeMapLayout.js';
|
|
|
33
33
|
export { deletionEdges } from './deletionEdges.js';
|
|
34
34
|
export type { DeletionEdge } from './deletionEdges.js';
|
|
35
35
|
export { facetLifts, walkHighlight, walkLift } from './walkHighlight.js';
|
|
36
|
-
export { rangeText, walkKey } from './walkKey.js';
|
|
36
|
+
export { rangeText, walkKey, walkPosition } from './walkKey.js';
|
|
37
37
|
export { figureSvg } from './figure.js';
|
|
38
|
+
export { genesFromBed, genesFromGff3Lines, genesFromText, } from './genes/geneFiles.js';
|
|
39
|
+
export { HPRC_GBZ, cutGbzRegion, openGbz, parseRegion } from './gbzCut.js';
|
|
40
|
+
export type { GbzSource } from './gbzCut.js';
|
|
41
|
+
export { version } from './version.js';
|
|
38
42
|
export type { FigureOptions } from './figure.js';
|
|
39
43
|
export { svgCanvas } from './renderer/svgCanvas.js';
|
|
40
44
|
export { FACET_GAP_PX, FACET_PAD_PX, FACET_TITLE_PX, facetCells, facetGrid, } from './facetGrid.js';
|
|
@@ -46,4 +46,18 @@ export interface LabelLayout {
|
|
|
46
46
|
sizes: GraphLabel[];
|
|
47
47
|
}
|
|
48
48
|
export declare function geneCoverageNote(pin: GenePin): string | undefined;
|
|
49
|
+
export declare function geneLabelCandidates(pins: GenePin[], screen: (p: {
|
|
50
|
+
x: number;
|
|
51
|
+
y: number;
|
|
52
|
+
}) => {
|
|
53
|
+
x: number;
|
|
54
|
+
y: number;
|
|
55
|
+
}, contigThickness: number): {
|
|
56
|
+
item: GenePin;
|
|
57
|
+
x: number;
|
|
58
|
+
y: number;
|
|
59
|
+
text: string;
|
|
60
|
+
fallback: string | undefined;
|
|
61
|
+
stack: number;
|
|
62
|
+
}[];
|
|
49
63
|
export declare function layoutLabels(m: LabelLayoutSource): LabelLayout;
|
|
@@ -1,20 +1,21 @@
|
|
|
1
1
|
import type { ResolvedColorScheme } from './colorSchemes.js';
|
|
2
2
|
import type { ReferenceRamp } from './renderer/GeometryBuilder.js';
|
|
3
3
|
import type { Graph, NodeSegment } from './types.js';
|
|
4
|
-
export declare const REFERENCE_STRIP_PX =
|
|
4
|
+
export declare const REFERENCE_STRIP_PX = 12;
|
|
5
5
|
export declare const REFERENCE_STRIP_ZONE_PX: number;
|
|
6
6
|
export interface StripBlock {
|
|
7
7
|
node: string;
|
|
8
8
|
bp0: number;
|
|
9
9
|
bp1: number;
|
|
10
|
-
|
|
10
|
+
colors: string[];
|
|
11
11
|
faded: boolean;
|
|
12
12
|
}
|
|
13
|
-
export declare function referenceStripBlocks(graph: Graph, { colorScheme, referenceRamp,
|
|
13
|
+
export declare function referenceStripBlocks(graph: Graph, { colorScheme, referenceRamp, walks, }: {
|
|
14
14
|
colorScheme: ResolvedColorScheme;
|
|
15
15
|
referenceRamp?: ReferenceRamp;
|
|
16
|
-
|
|
17
|
-
|
|
16
|
+
walks?: readonly {
|
|
17
|
+
colors: ReadonlyMap<string, number>;
|
|
18
|
+
}[];
|
|
18
19
|
}): StripBlock[];
|
|
19
20
|
export interface BpFrame {
|
|
20
21
|
scale: number;
|
|
@@ -40,11 +41,13 @@ export interface StripLit {
|
|
|
40
41
|
y: number;
|
|
41
42
|
};
|
|
42
43
|
}
|
|
43
|
-
export
|
|
44
|
-
|
|
44
|
+
export interface StripPixel {
|
|
45
|
+
colors: string[];
|
|
45
46
|
x0: number;
|
|
46
47
|
x1: number;
|
|
47
|
-
|
|
48
|
+
tier?: number;
|
|
49
|
+
}
|
|
50
|
+
export declare function stripPixels(blocks: readonly StripBlock[], frame: BpFrame, width: number, dpr: number): StripPixel[];
|
|
48
51
|
export declare function drawReferenceStrip(ctx: CanvasRenderingContext2D, blocks: readonly StripBlock[], frame: BpFrame, { width, lit, darkMode, dpr, }: {
|
|
49
52
|
width: number;
|
|
50
53
|
lit?: StripLit;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const version = "4.0.25";
|
package/dist/types/walkKey.d.ts
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jbrowse/bandage-core",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "4.0.25",
|
|
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": {
|
|
@@ -31,7 +31,8 @@
|
|
|
31
31
|
"dist"
|
|
32
32
|
],
|
|
33
33
|
"dependencies": {
|
|
34
|
-
"@gmod/gbz-base": "^4.
|
|
34
|
+
"@gmod/gbz-base": "^4.1.0",
|
|
35
|
+
"@gmod/tabix": "^3.9.0",
|
|
35
36
|
"@gmod/tubemap-core": "^0.1.0",
|
|
36
37
|
"@jbrowse/core": "5.0.0-beta.9",
|
|
37
38
|
"@jbrowse/render-core": "5.0.0-beta.9"
|