@jbrowse/bandage-core 0.1.1 → 0.1.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/README.md +3 -3
- package/dist/index.js +3 -1
- package/dist/types/alleleProjection/projectAlleles.d.ts +1 -1
- package/dist/types/anchoredNodes.d.ts +2 -2
- package/dist/types/bandage/bandage-layout.d.ts +2 -2
- package/dist/types/bubbleSpreads.d.ts +4 -4
- package/dist/types/bubbles/bubbleHalos.d.ts +3 -3
- package/dist/types/bubbles/bubblesFromGraph.d.ts +2 -2
- package/dist/types/bubbles/classifyBubble.d.ts +1 -1
- package/dist/types/bubbles/popBubble.d.ts +1 -1
- package/dist/types/colorSchemes.d.ts +1 -1
- package/dist/types/deletionEdges.d.ts +3 -3
- package/dist/types/genes/genePins.d.ts +1 -1
- package/dist/types/gfa/gfaConverter.d.ts +4 -4
- package/dist/types/gfa-core/index.d.ts +2 -2
- package/dist/types/graphLabels.d.ts +4 -4
- package/dist/types/index.d.ts +49 -49
- package/dist/types/labelLayout.d.ts +9 -9
- package/dist/types/layout/anchoredLayout.d.ts +1 -1
- package/dist/types/layout/drawnScale.d.ts +1 -1
- package/dist/types/layout/mergeRuns.d.ts +1 -1
- package/dist/types/layout/orderedLayout.d.ts +1 -1
- package/dist/types/layout/orientToReference.d.ts +1 -1
- package/dist/types/layout/placeOffReference.d.ts +1 -1
- package/dist/types/layout/referenceSeeds.d.ts +2 -2
- package/dist/types/layout/sampleRowLayout.d.ts +1 -1
- package/dist/types/layout/tubeMapLayout.d.ts +1 -1
- package/dist/types/layout/variantMapLayout.d.ts +1 -1
- package/dist/types/layout/walkRowLayout.d.ts +2 -2
- package/dist/types/layout/walkRows.d.ts +1 -1
- package/dist/types/layoutModes.d.ts +7 -7
- package/dist/types/nodeWidths.d.ts +2 -2
- package/dist/types/pathAnchoring.d.ts +1 -1
- package/dist/types/pathColors.d.ts +1 -1
- package/dist/types/pipeline.d.ts +7 -7
- package/dist/types/referenceSpan.d.ts +1 -1
- package/dist/types/renderer/Canvas2DRenderer.d.ts +1 -1
- package/dist/types/renderer/GeometryBuilder.d.ts +6 -6
- package/dist/types/renderer/types.d.ts +1 -1
- package/dist/types/tubeMap/draw.d.ts +2 -2
- package/dist/types/tubeMap/frame.d.ts +1 -1
- package/dist/types/tubeMap/reads.d.ts +2 -2
- package/dist/types/tubeMap/warp.d.ts +1 -1
- package/dist/types/types.d.ts +3 -3
- package/dist/types/util/SpatialIndex.d.ts +3 -3
- package/dist/types/util/edgeCurves.d.ts +2 -2
- package/dist/types/util/geometry.d.ts +1 -1
- package/dist/types/util/hitDetection.d.ts +2 -2
- package/dist/types/viewport.d.ts +2 -2
- package/dist/types/walkHighlight.d.ts +1 -1
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -24,6 +24,6 @@ the worked example.
|
|
|
24
24
|
Lives in the plugin repo as a pnpm workspace package. The plugin imports its
|
|
25
25
|
source directly, so a change here needs no publish to reach the plugin.
|
|
26
26
|
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
27
|
+
The core releases with the plugin: `pnpm version patch` at the repo root bumps
|
|
28
|
+
both, and `publish.yml` and `publish-core.yml` each publish one from the `v*`
|
|
29
|
+
tag.
|
package/dist/index.js
CHANGED
|
@@ -5063,6 +5063,7 @@ var HALO_FACTOR = 3.4;
|
|
|
5063
5063
|
var LEGEND_INSET_PX = 6;
|
|
5064
5064
|
var ROUTE_STACK = 8;
|
|
5065
5065
|
var GENE_PIN_DROP_PX = 18;
|
|
5066
|
+
var GENE_STACK = 2;
|
|
5066
5067
|
var GLYPH_ROOM_PX = 60;
|
|
5067
5068
|
var MAX_GLYPH_LABEL_ROWS = 8;
|
|
5068
5069
|
var TOPMOST_BASELINE = LABEL_PX + LABEL_PAD;
|
|
@@ -5151,7 +5152,8 @@ function layoutLabels(m) {
|
|
|
5151
5152
|
item: pin,
|
|
5152
5153
|
x,
|
|
5153
5154
|
y: y + m.contigThickness + GENE_PIN_DROP_PX,
|
|
5154
|
-
text: pin.covered < 0.98 ? `${pin.gene.name} \u2026` : pin.gene.name
|
|
5155
|
+
text: pin.covered < 0.98 ? `${pin.gene.name} \u2026` : pin.gene.name,
|
|
5156
|
+
stack: GENE_STACK
|
|
5155
5157
|
};
|
|
5156
5158
|
}),
|
|
5157
5159
|
frame,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { StableCoordinate } from './gfa-core/index';
|
|
2
|
-
import type { Graph, GraphNode, NodeSegment } from './types';
|
|
1
|
+
import type { StableCoordinate } from './gfa-core/index.js';
|
|
2
|
+
import type { Graph, GraphNode, NodeSegment } from './types.js';
|
|
3
3
|
export type AnchoredNode = GraphNode & {
|
|
4
4
|
stable: StableCoordinate;
|
|
5
5
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { LayoutNode } from '../layout/referenceSeeds'
|
|
2
|
-
import type { Graph, LayoutResult } from '../types'
|
|
1
|
+
import type { LayoutNode } from '../layout/referenceSeeds.js'
|
|
2
|
+
import type { Graph, LayoutResult } from '../types.js'
|
|
3
3
|
|
|
4
4
|
export interface BandageModule {
|
|
5
5
|
computeLayout(
|
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
import type { NodeLengthSpread } from './layout/drawnScale';
|
|
1
|
+
import type { NodeLengthSpread } from './layout/drawnScale.js';
|
|
2
2
|
export declare const BUBBLE_SPREADS: readonly [{
|
|
3
3
|
readonly value: "auto";
|
|
4
4
|
readonly label: "Proportional";
|
|
5
5
|
readonly description: "Bandage's own scale: a node draws proportional to its length, so a 1 bp allele is a speck.";
|
|
6
|
-
readonly law: import("./layout/drawnScale").DrawnLengthLaw;
|
|
6
|
+
readonly law: import("./layout/drawnScale.js").DrawnLengthLaw;
|
|
7
7
|
readonly minNodeFactor: 0;
|
|
8
8
|
}, {
|
|
9
9
|
readonly value: "open";
|
|
10
10
|
readonly label: "Open bubbles";
|
|
11
11
|
readonly description: "Give every allele a drawn length, so a bubble reads as two arms rather than a knot.";
|
|
12
|
-
readonly law: import("./layout/drawnScale").DrawnLengthLaw;
|
|
12
|
+
readonly law: import("./layout/drawnScale.js").DrawnLengthLaw;
|
|
13
13
|
readonly minNodeFactor: 2.5;
|
|
14
14
|
}, {
|
|
15
15
|
readonly value: "wide";
|
|
16
16
|
readonly label: "Wide bubbles";
|
|
17
17
|
readonly description: "As open, spread further. Best on a window of a dozen bubbles.";
|
|
18
|
-
readonly law: import("./layout/drawnScale").DrawnLengthLaw;
|
|
18
|
+
readonly law: import("./layout/drawnScale.js").DrawnLengthLaw;
|
|
19
19
|
readonly minNodeFactor: 10;
|
|
20
20
|
}, {
|
|
21
21
|
readonly value: "compress";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import type { BubbleRoute, MinigraphBubble } from './bubbleLine';
|
|
2
|
-
import type { BubbleKind, RepeatSpan } from './classifyBubble';
|
|
3
|
-
import type { Graph, NodeSegment } from '../types';
|
|
1
|
+
import type { BubbleRoute, MinigraphBubble } from './bubbleLine.js';
|
|
2
|
+
import type { BubbleKind, RepeatSpan } from './classifyBubble.js';
|
|
3
|
+
import type { Graph, NodeSegment } from '../types.js';
|
|
4
4
|
export interface BubbleHalo {
|
|
5
5
|
bubble: MinigraphBubble;
|
|
6
6
|
kind: BubbleKind;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import type { MinigraphBubble } from './bubbleLine';
|
|
2
|
-
import type { Graph } from '../types';
|
|
1
|
+
import type { MinigraphBubble } from './bubbleLine.js';
|
|
2
|
+
import type { Graph } from '../types.js';
|
|
3
3
|
export declare function bubblesFromGraph(graph: Graph): MinigraphBubble[];
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { MinigraphBubble } from './bubbleLine';
|
|
1
|
+
import type { MinigraphBubble } from './bubbleLine.js';
|
|
2
2
|
export type BubbleKind = 'snp' | 'substitution' | 'insertion' | 'deletion' | 'inversion' | 'repeat' | 'superbubble' | 'complex';
|
|
3
3
|
export interface BubbleClass {
|
|
4
4
|
kind: BubbleKind;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import type { Graph } from '../types';
|
|
1
|
+
import type { Graph } from '../types.js';
|
|
2
2
|
export declare function bubbleSubgraph(graph: Graph, segmentIds: string[]): Graph;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { Graph } from './types';
|
|
2
|
-
import type { AxisScale } from './util/geometry';
|
|
1
|
+
import type { Graph } from './types.js';
|
|
2
|
+
import type { AxisScale } from './util/geometry.js';
|
|
3
3
|
export interface DeletionEdge {
|
|
4
4
|
edgeIndex: number;
|
|
5
5
|
from: string;
|
|
@@ -20,5 +20,5 @@ export declare function bypassedPoints(nodePositions: Record<string, {
|
|
|
20
20
|
export declare function deletionArcCurves(nodePositions: Record<string, {
|
|
21
21
|
x: number;
|
|
22
22
|
y: number;
|
|
23
|
-
}[]>, deletion: DeletionEdge, axis: AxisScale): import("./util/geometry").BezierCurve[] | undefined;
|
|
23
|
+
}[]>, deletion: DeletionEdge, axis: AxisScale): import("./util/geometry.js").BezierCurve[] | undefined;
|
|
24
24
|
export declare function deletionEdges(graph: Graph): DeletionEdge[];
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import type { GFAGraph } from '../gfa-core/index';
|
|
2
|
-
import type { GraphEdge, GraphNode, GraphPath } from '../types';
|
|
1
|
+
import type { GFAGraph } from '../gfa-core/index.js';
|
|
2
|
+
import type { GraphEdge, GraphNode, GraphPath } from '../types.js';
|
|
3
3
|
export declare function convertGFAToGraph(gfaGraph: GFAGraph, name?: string): {
|
|
4
4
|
name: string;
|
|
5
5
|
nodes: GraphNode[];
|
|
6
6
|
edges: GraphEdge[];
|
|
7
7
|
paths: GraphPath[] | undefined;
|
|
8
|
-
anchorPaths: import("../types").PathOrigin[] | undefined;
|
|
9
|
-
pathVisits: Map<string, import("../types").PathVisit[]> | undefined;
|
|
8
|
+
anchorPaths: import("../types.js").PathOrigin[] | undefined;
|
|
9
|
+
pathVisits: Map<string, import("../types.js").PathVisit[]> | undefined;
|
|
10
10
|
anchoredBy: "tags" | undefined;
|
|
11
11
|
};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { parseGFA, stableCoordinate } from './gfaParser';
|
|
2
|
-
export type { GFAGraph, GFALink, GFANode, GFAPath, GFAWalk, GFAWalkSegment, StableCoordinate, } from './gfaParser';
|
|
1
|
+
export { parseGFA, stableCoordinate } from './gfaParser.js';
|
|
2
|
+
export type { GFAGraph, GFALink, GFANode, GFAPath, GFAWalk, GFAWalkSegment, StableCoordinate, } from './gfaParser.js';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import type { DeletionEdge } from './deletionEdges';
|
|
2
|
-
import type { Box, TakeBox } from './overlayLabels';
|
|
3
|
-
import type { AlleleDeletion, NodeSegment } from './types';
|
|
4
|
-
import type { AxisScale } from './util/geometry';
|
|
1
|
+
import type { DeletionEdge } from './deletionEdges.js';
|
|
2
|
+
import type { Box, TakeBox } from './overlayLabels.js';
|
|
3
|
+
import type { AlleleDeletion, NodeSegment } from './types.js';
|
|
4
|
+
import type { AxisScale } from './util/geometry.js';
|
|
5
5
|
export declare function rowLabelBox(text: string, screenY: number): Box;
|
|
6
6
|
export interface Leader {
|
|
7
7
|
arcX: number;
|
package/dist/types/index.d.ts
CHANGED
|
@@ -1,50 +1,50 @@
|
|
|
1
|
-
export { FIT_PADDING, clampZoom, drawingBounds, engineRequest, fitTransform, forceLayout, layoutExtent, loadGraph, } from './pipeline';
|
|
2
|
-
export type { Bounds, EngineRequest, EngineSettings, LayoutEngine, } from './pipeline';
|
|
3
|
-
export { FORCE_LAYOUT_LABEL, LAYOUT_MODES, layoutModeByValue, modeUsesLayoutEngine, } from './layoutModes';
|
|
4
|
-
export type { LayoutModeValue } from './layoutModes';
|
|
5
|
-
export { COLOR_SCHEMES, resolveColorScheme } from './colorSchemes';
|
|
6
|
-
export type { ColorScheme, ResolvedColorScheme } from './colorSchemes';
|
|
7
|
-
export { NODE_WIDTHS, maxNodeWidthPx, meanDepth, nodeInk, nodeWidthPx, } from './nodeWidths';
|
|
8
|
-
export type { NodeWidth } from './nodeWidths';
|
|
9
|
-
export { BUBBLE_SPREADS } from './bubbleSpreads';
|
|
10
|
-
export type { BubbleSpread } from './bubbleSpreads';
|
|
11
|
-
export { REFERENCE_RAMP_MAX_HUE, buildGeometry, computeReferenceRamp, } from './renderer/GeometryBuilder';
|
|
12
|
-
export { Canvas2DRenderer } from './renderer/Canvas2DRenderer';
|
|
1
|
+
export { FIT_PADDING, clampZoom, drawingBounds, engineRequest, fitTransform, forceLayout, layoutExtent, loadGraph, } from './pipeline.js';
|
|
2
|
+
export type { Bounds, EngineRequest, EngineSettings, LayoutEngine, } from './pipeline.js';
|
|
3
|
+
export { FORCE_LAYOUT_LABEL, LAYOUT_MODES, layoutModeByValue, modeUsesLayoutEngine, } from './layoutModes.js';
|
|
4
|
+
export type { LayoutModeValue } from './layoutModes.js';
|
|
5
|
+
export { COLOR_SCHEMES, resolveColorScheme } from './colorSchemes.js';
|
|
6
|
+
export type { ColorScheme, ResolvedColorScheme } from './colorSchemes.js';
|
|
7
|
+
export { NODE_WIDTHS, maxNodeWidthPx, meanDepth, nodeInk, nodeWidthPx, } from './nodeWidths.js';
|
|
8
|
+
export type { NodeWidth } from './nodeWidths.js';
|
|
9
|
+
export { BUBBLE_SPREADS } from './bubbleSpreads.js';
|
|
10
|
+
export type { BubbleSpread } from './bubbleSpreads.js';
|
|
11
|
+
export { REFERENCE_RAMP_MAX_HUE, buildGeometry, computeReferenceRamp, } from './renderer/GeometryBuilder.js';
|
|
12
|
+
export { Canvas2DRenderer } from './renderer/Canvas2DRenderer.js';
|
|
13
13
|
export { getDpr } from '@jbrowse/render-core/canvas2dUtils';
|
|
14
|
-
export type { Renderer } from './renderer/types';
|
|
15
|
-
export { findHoveredEdge, findHoveredNode } from './util/hitDetection';
|
|
16
|
-
export type { NodeInk } from './util/hitDetection';
|
|
17
|
-
export type { AxisScale } from './util/geometry';
|
|
18
|
-
export { wheelZoomFactor } from './util/wheelZoom';
|
|
19
|
-
export { drawTubeMap, tubeMapPicture } from './tubeMap/draw';
|
|
20
|
-
export type { TubeMapFrame, TubeMapPicture } from './tubeMap/draw';
|
|
21
|
-
export { referenceKnots, warpX } from './tubeMap/warp';
|
|
22
|
-
export { tubeMapFrame, tubeMapNodeAt } from './tubeMap/frame';
|
|
23
|
-
export type { TubeMapTransform, TubeMapView } from './tubeMap/frame';
|
|
24
|
-
export type { TubeMapColumn, TubeMapDrawing } from './layout/tubeMapLayout';
|
|
25
|
-
export { deletionEdges } from './deletionEdges';
|
|
26
|
-
export type { DeletionEdge } from './deletionEdges';
|
|
27
|
-
export { walkHighlight } from './walkHighlight';
|
|
28
|
-
export { pathColorsLegible, pathLegend } from './pathColors';
|
|
29
|
-
export { bubblesFromGraph } from './bubbles/bubblesFromGraph';
|
|
30
|
-
export { bubbleHalos } from './bubbles/bubbleHalos';
|
|
31
|
-
export type { BubbleHalo } from './bubbles/bubbleHalos';
|
|
32
|
-
export { BUBBLE_KIND_COLORS, BUBBLE_KIND_NAMES, bubbleSegmentIds, classifyBubble, } from './bubbles/classifyBubble';
|
|
33
|
-
export { bubbleSubgraph } from './bubbles/popBubble';
|
|
34
|
-
export type { MinigraphBubble } from './bubbles/bubbleLine';
|
|
35
|
-
export { walkRows } from './layout/walkRows';
|
|
36
|
-
export type { WalkRows } from './layout/walkRows';
|
|
37
|
-
export { walkRowsExtent } from './layout/walkRowLayout';
|
|
38
|
-
export { ROW_HEIGHT_PX } from './layout/rowSpacing';
|
|
39
|
-
export { HALO_FACTOR, LEGEND_INSET_PX, layoutLabels } from './labelLayout';
|
|
40
|
-
export type { BubbleGlyph, LabelLayout, LabelLayoutSource } from './labelLayout';
|
|
41
|
-
export { formatBp } from './graphLabels';
|
|
42
|
-
export { LABEL_CHAR_PX, LABEL_PAD, LABEL_PX } from './overlayLabels';
|
|
43
|
-
export type { Graph, GraphEdge, GraphNode, LayoutResult, NodeSegment, } from './types';
|
|
44
|
-
export { cutWindowGFA, haplotypeWanted, referencePathQuery, referenceSamplesOf, resolveReferenceSample, } from './gbzWindow';
|
|
45
|
-
export type { GbzWindowOptions } from './gbzWindow';
|
|
46
|
-
export { engineKey } from './pipeline';
|
|
47
|
-
export { axisScaleOf, contains, padded, screenToLayout, viewportOf, zoomAbout, } from './viewport';
|
|
48
|
-
export type { PaneTransform } from './viewport';
|
|
49
|
-
export { default as loadBandage } from './loadBandage';
|
|
50
|
-
export { panSNContig, panSNHaplotype, panSNSample } from './pansn';
|
|
14
|
+
export type { Renderer } from './renderer/types.js';
|
|
15
|
+
export { findHoveredEdge, findHoveredNode } from './util/hitDetection.js';
|
|
16
|
+
export type { NodeInk } from './util/hitDetection.js';
|
|
17
|
+
export type { AxisScale } from './util/geometry.js';
|
|
18
|
+
export { wheelZoomFactor } from './util/wheelZoom.js';
|
|
19
|
+
export { drawTubeMap, tubeMapPicture } from './tubeMap/draw.js';
|
|
20
|
+
export type { TubeMapFrame, TubeMapPicture } from './tubeMap/draw.js';
|
|
21
|
+
export { referenceKnots, warpX } from './tubeMap/warp.js';
|
|
22
|
+
export { tubeMapFrame, tubeMapNodeAt } from './tubeMap/frame.js';
|
|
23
|
+
export type { TubeMapTransform, TubeMapView } from './tubeMap/frame.js';
|
|
24
|
+
export type { TubeMapColumn, TubeMapDrawing } from './layout/tubeMapLayout.js';
|
|
25
|
+
export { deletionEdges } from './deletionEdges.js';
|
|
26
|
+
export type { DeletionEdge } from './deletionEdges.js';
|
|
27
|
+
export { walkHighlight } from './walkHighlight.js';
|
|
28
|
+
export { pathColorsLegible, pathLegend } from './pathColors.js';
|
|
29
|
+
export { bubblesFromGraph } from './bubbles/bubblesFromGraph.js';
|
|
30
|
+
export { bubbleHalos } from './bubbles/bubbleHalos.js';
|
|
31
|
+
export type { BubbleHalo } from './bubbles/bubbleHalos.js';
|
|
32
|
+
export { BUBBLE_KIND_COLORS, BUBBLE_KIND_NAMES, bubbleSegmentIds, classifyBubble, } from './bubbles/classifyBubble.js';
|
|
33
|
+
export { bubbleSubgraph } from './bubbles/popBubble.js';
|
|
34
|
+
export type { MinigraphBubble } from './bubbles/bubbleLine.js';
|
|
35
|
+
export { walkRows } from './layout/walkRows.js';
|
|
36
|
+
export type { WalkRows } from './layout/walkRows.js';
|
|
37
|
+
export { walkRowsExtent } from './layout/walkRowLayout.js';
|
|
38
|
+
export { ROW_HEIGHT_PX } from './layout/rowSpacing.js';
|
|
39
|
+
export { HALO_FACTOR, LEGEND_INSET_PX, layoutLabels } from './labelLayout.js';
|
|
40
|
+
export type { BubbleGlyph, LabelLayout, LabelLayoutSource } from './labelLayout.js';
|
|
41
|
+
export { formatBp } from './graphLabels.js';
|
|
42
|
+
export { LABEL_CHAR_PX, LABEL_PAD, LABEL_PX } from './overlayLabels.js';
|
|
43
|
+
export type { Graph, GraphEdge, GraphNode, LayoutResult, NodeSegment, } from './types.js';
|
|
44
|
+
export { cutWindowGFA, haplotypeWanted, referencePathQuery, referenceSamplesOf, resolveReferenceSample, } from './gbzWindow.js';
|
|
45
|
+
export type { GbzWindowOptions } from './gbzWindow.js';
|
|
46
|
+
export { engineKey } from './pipeline.js';
|
|
47
|
+
export { axisScaleOf, contains, padded, screenToLayout, viewportOf, zoomAbout, } from './viewport.js';
|
|
48
|
+
export type { PaneTransform } from './viewport.js';
|
|
49
|
+
export { default as loadBandage } from './loadBandage.js';
|
|
50
|
+
export { panSNContig, panSNHaplotype, panSNSample } from './pansn.js';
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import type { BubbleHalo, RouteLabel } from './bubbles/bubbleHalos';
|
|
2
|
-
import type { MinigraphBubble } from './bubbles/bubbleLine';
|
|
3
|
-
import type { BubbleKind } from './bubbles/classifyBubble';
|
|
4
|
-
import type { DeletionEdge } from './deletionEdges';
|
|
5
|
-
import type { GenePin } from './genes/genePins';
|
|
6
|
-
import type { GraphLabel } from './graphLabels';
|
|
7
|
-
import type { PlacedLabel } from './overlayLabels';
|
|
8
|
-
import type { AlleleDeletion, NodeSegment } from './types';
|
|
9
|
-
import type { AxisScale } from './util/geometry';
|
|
1
|
+
import type { BubbleHalo, RouteLabel } from './bubbles/bubbleHalos.js';
|
|
2
|
+
import type { MinigraphBubble } from './bubbles/bubbleLine.js';
|
|
3
|
+
import type { BubbleKind } from './bubbles/classifyBubble.js';
|
|
4
|
+
import type { DeletionEdge } from './deletionEdges.js';
|
|
5
|
+
import type { GenePin } from './genes/genePins.js';
|
|
6
|
+
import type { GraphLabel } from './graphLabels.js';
|
|
7
|
+
import type { PlacedLabel } from './overlayLabels.js';
|
|
8
|
+
import type { AlleleDeletion, NodeSegment } from './types.js';
|
|
9
|
+
import type { AxisScale } from './util/geometry.js';
|
|
10
10
|
export declare const HALO_FACTOR = 3.4;
|
|
11
11
|
export declare const LEGEND_INSET_PX = 6;
|
|
12
12
|
export interface BubbleGlyph {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { LayoutScaling } from './drawnScale';
|
|
2
|
-
import type { Graph, GraphNode } from '../types';
|
|
1
|
+
import type { LayoutScaling } from './drawnScale.js';
|
|
2
|
+
import type { Graph, GraphNode } from '../types.js';
|
|
3
3
|
export type LayoutNode = GraphNode & {
|
|
4
4
|
x?: number;
|
|
5
5
|
y?: number;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import type { Graph, LayoutResult } from '../types';
|
|
1
|
+
import type { Graph, LayoutResult } from '../types.js';
|
|
2
2
|
export declare function variantMapLayout(graph: Graph): LayoutResult | undefined;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { WalkRows } from './walkRows';
|
|
2
|
-
import type { Graph, LayoutResult } from '../types';
|
|
1
|
+
import type { WalkRows } from './walkRows.js';
|
|
2
|
+
import type { Graph, LayoutResult } from '../types.js';
|
|
3
3
|
export declare function walkRowsExtent(walks: WalkRows): {
|
|
4
4
|
maxX: number;
|
|
5
5
|
maxY: number;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { anchoredLayout } from './layout/anchoredLayout';
|
|
2
|
-
import { orderedLayout } from './layout/orderedLayout';
|
|
3
|
-
import { sampleRowLayout } from './layout/sampleRowLayout';
|
|
4
|
-
import { hasTubeMapPaths, tubeMapLayout, tubeMapReferenceLayout } from './layout/tubeMapLayout';
|
|
5
|
-
import { variantMapLayout } from './layout/variantMapLayout';
|
|
6
|
-
import { walkRowLayout } from './layout/walkRowLayout';
|
|
7
|
-
import type { Graph, LayoutResult } from './types';
|
|
1
|
+
import { anchoredLayout } from './layout/anchoredLayout.js';
|
|
2
|
+
import { orderedLayout } from './layout/orderedLayout.js';
|
|
3
|
+
import { sampleRowLayout } from './layout/sampleRowLayout.js';
|
|
4
|
+
import { hasTubeMapPaths, tubeMapLayout, tubeMapReferenceLayout } from './layout/tubeMapLayout.js';
|
|
5
|
+
import { variantMapLayout } from './layout/variantMapLayout.js';
|
|
6
|
+
import { walkRowLayout } from './layout/walkRowLayout.js';
|
|
7
|
+
import type { Graph, LayoutResult } from './types.js';
|
|
8
8
|
export declare const FORCE_LAYOUT_LABEL = "Force-directed layout";
|
|
9
9
|
export interface LayoutMode {
|
|
10
10
|
value: string;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { Graph, GraphNode } from './types';
|
|
2
|
-
import type { NodeInk } from './util/hitDetection';
|
|
1
|
+
import type { Graph, GraphNode } from './types.js';
|
|
2
|
+
import type { NodeInk } from './util/hitDetection.js';
|
|
3
3
|
export declare const NODE_WIDTHS: readonly [{
|
|
4
4
|
readonly value: "depth";
|
|
5
5
|
readonly label: "By depth";
|
package/dist/types/pipeline.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import type { BubbleSpread } from './bubbleSpreads';
|
|
2
|
-
import type { LayoutScaling } from './layout/drawnScale';
|
|
3
|
-
import type { LayoutNode } from './layout/referenceSeeds';
|
|
4
|
-
import type { Graph, LayoutResult, NodeSegment } from './types';
|
|
1
|
+
import type { BubbleSpread } from './bubbleSpreads.js';
|
|
2
|
+
import type { LayoutScaling } from './layout/drawnScale.js';
|
|
3
|
+
import type { LayoutNode } from './layout/referenceSeeds.js';
|
|
4
|
+
import type { Graph, LayoutResult, NodeSegment } from './types.js';
|
|
5
5
|
export interface Bounds {
|
|
6
6
|
minX: number;
|
|
7
7
|
minY: number;
|
|
@@ -33,9 +33,9 @@ export declare function engineKey(graph: Graph, settings: EngineSettings): strin
|
|
|
33
33
|
export declare function forceLayout(graph: Graph, settings: EngineSettings, engine: LayoutEngine): Promise<{
|
|
34
34
|
result: {
|
|
35
35
|
nodePositions: Record<string, NodeSegment[]>;
|
|
36
|
-
rowLabels?: import("./types").RowLabel[];
|
|
36
|
+
rowLabels?: import("./types.js").RowLabel[];
|
|
37
37
|
sampleRows?: string[];
|
|
38
|
-
alleleDeletions?: import("./types").AlleleDeletion[];
|
|
38
|
+
alleleDeletions?: import("./types.js").AlleleDeletion[];
|
|
39
39
|
referenceAxis?: boolean;
|
|
40
40
|
pixelRows?: boolean;
|
|
41
41
|
extent?: {
|
|
@@ -44,7 +44,7 @@ export declare function forceLayout(graph: Graph, settings: EngineSettings, engi
|
|
|
44
44
|
maxX?: number;
|
|
45
45
|
maxY?: number;
|
|
46
46
|
};
|
|
47
|
-
tubeMap?: import(".").TubeMapDrawing;
|
|
47
|
+
tubeMap?: import("./index.js").TubeMapDrawing;
|
|
48
48
|
};
|
|
49
49
|
duration: number;
|
|
50
50
|
}>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Canvas2DRenderingBackendBase } from '@jbrowse/render-core/renderingBackendBase';
|
|
2
|
-
import type { Arrowhead, RenderBatch, Renderer, TransformUniform } from './types';
|
|
2
|
+
import type { Arrowhead, RenderBatch, Renderer, TransformUniform } from './types.js';
|
|
3
3
|
export declare class Canvas2DRenderer extends Canvas2DRenderingBackendBase implements Renderer {
|
|
4
4
|
private transform;
|
|
5
5
|
private batch;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import type { ResolvedColorScheme } from '../colorSchemes';
|
|
2
|
-
import type { NodeWidth } from '../nodeWidths';
|
|
3
|
-
import type { Graph, GraphNode, NodeSegment } from '../types';
|
|
4
|
-
import type { WalkHighlight } from '../walkHighlight';
|
|
5
|
-
import type { RenderBatch } from './types';
|
|
6
|
-
import type { AxisScale, BezierCurve } from '../util/geometry';
|
|
1
|
+
import type { ResolvedColorScheme } from '../colorSchemes.js';
|
|
2
|
+
import type { NodeWidth } from '../nodeWidths.js';
|
|
3
|
+
import type { Graph, GraphNode, NodeSegment } from '../types.js';
|
|
4
|
+
import type { WalkHighlight } from '../walkHighlight.js';
|
|
5
|
+
import type { RenderBatch } from './types.js';
|
|
6
|
+
import type { AxisScale, BezierCurve } from '../util/geometry.js';
|
|
7
7
|
export interface BuildOptions {
|
|
8
8
|
nodePositions: Record<string, NodeSegment[]>;
|
|
9
9
|
graph: Graph;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { TubeMapTransform } from './frame';
|
|
2
|
-
import type { TubeMapMismatch } from './mismatches';
|
|
1
|
+
import type { TubeMapTransform } from './frame.js';
|
|
2
|
+
import type { TubeMapMismatch } from './mismatches.js';
|
|
3
3
|
import type { TubeMapLayout } from '@gmod/tubemap-core';
|
|
4
4
|
type Command = {
|
|
5
5
|
op: 'M' | 'L';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { GafRecord } from '../gaf/parseGaf';
|
|
2
|
-
import type { Graph, GraphNode } from '../types';
|
|
1
|
+
import type { GafRecord } from '../gaf/parseGaf.js';
|
|
2
|
+
import type { Graph, GraphNode } from '../types.js';
|
|
3
3
|
import type { InputTrack } from '@gmod/tubemap-core';
|
|
4
4
|
export declare function canonicalStrand(node: GraphNode): "+" | "-";
|
|
5
5
|
export declare function stepName(node: GraphNode, strand: '+' | '-'): string;
|
package/dist/types/types.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import type { GafRecord } from './gaf/parseGaf';
|
|
2
|
-
import type { StableCoordinate } from './gfa-core/index';
|
|
3
|
-
import type { TubeMapDrawing } from './layout/tubeMapLayout';
|
|
1
|
+
import type { GafRecord } from './gaf/parseGaf.js';
|
|
2
|
+
import type { StableCoordinate } from './gfa-core/index.js';
|
|
3
|
+
import type { TubeMapDrawing } from './layout/tubeMapLayout.js';
|
|
4
4
|
export interface GraphNode {
|
|
5
5
|
id: string;
|
|
6
6
|
name: string;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { Graph, NodeSegment } from '../types';
|
|
2
|
-
import type { AxisScale } from './geometry';
|
|
1
|
+
import type { Graph, NodeSegment } from '../types.js';
|
|
2
|
+
import type { AxisScale } from './geometry.js';
|
|
3
3
|
interface CellEntry {
|
|
4
4
|
nodeId: string;
|
|
5
5
|
segmentIdx: number;
|
|
@@ -19,7 +19,7 @@ export declare class EdgeSpatialIndex {
|
|
|
19
19
|
private cells;
|
|
20
20
|
private edgeCurves;
|
|
21
21
|
constructor(nodePositions: Record<string, NodeSegment[]>, graph: Graph, drawPaths: boolean, axis: AxisScale, cellSize?: number | CellSize, deletions?: Map<number, string[]>, version?: number);
|
|
22
|
-
getCurves(ei: number): import("./geometry").BezierCurve[] | undefined;
|
|
22
|
+
getCurves(ei: number): import("./geometry.js").BezierCurve[] | undefined;
|
|
23
23
|
query(x: number, y: number, radiusX: number, radiusY?: number): number[];
|
|
24
24
|
}
|
|
25
25
|
export {};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { Graph, NodeSegment } from '../types';
|
|
2
|
-
import type { AxisScale, BezierCurve } from './geometry';
|
|
1
|
+
import type { Graph, NodeSegment } from '../types.js';
|
|
2
|
+
import type { AxisScale, BezierCurve } from './geometry.js';
|
|
3
3
|
export type EdgeCurves = Map<number, BezierCurve[]>;
|
|
4
4
|
export declare function baseEdgeCurves(nodePositions: Record<string, NodeSegment[]>, graph: Graph, axis: AxisScale, deletions: Map<number, string[]> | undefined, version: number): EdgeCurves;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { GraphEdge, NodeSegment } from '../types';
|
|
1
|
+
import type { GraphEdge, NodeSegment } from '../types.js';
|
|
2
2
|
export declare function svgPath(points: NodeSegment[]): string;
|
|
3
3
|
export declare function projectLine(x1: number, y1: number, x2: number, y2: number, distance: number): [number, number];
|
|
4
4
|
export interface BezierCurve {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { Graph, NodeSegment } from '../types';
|
|
2
|
-
import type { AxisScale } from './geometry';
|
|
1
|
+
import type { Graph, NodeSegment } from '../types.js';
|
|
2
|
+
import type { AxisScale } from './geometry.js';
|
|
3
3
|
export declare function distanceToSegment(px: number, py: number, x1: number, y1: number, x2: number, y2: number): number;
|
|
4
4
|
export declare function distanceToCubicBezier(px: number, py: number, x1: number, y1: number, cx1: number, cy1: number, cx2: number, cy2: number, x2: number, y2: number): number;
|
|
5
5
|
export interface NodeInk {
|
package/dist/types/viewport.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { Bounds } from './pipeline';
|
|
2
|
-
import type { AxisScale } from './util/geometry';
|
|
1
|
+
import type { Bounds } from './pipeline.js';
|
|
2
|
+
import type { AxisScale } from './util/geometry.js';
|
|
3
3
|
export interface PaneTransform {
|
|
4
4
|
scale: number;
|
|
5
5
|
translateX: number;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jbrowse/bandage-core",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.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": {
|
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
"dist"
|
|
29
29
|
],
|
|
30
30
|
"dependencies": {
|
|
31
|
-
"@gmod/gbz-base": "^
|
|
31
|
+
"@gmod/gbz-base": "^3.0.0",
|
|
32
32
|
"@gmod/tubemap-core": "^0.1.0",
|
|
33
33
|
"@jbrowse/core": "5.0.0-beta.9",
|
|
34
34
|
"@jbrowse/render-core": "5.0.0-beta.9"
|