@jbrowse/bandage-core 0.1.1 → 0.1.3

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 (50) hide show
  1. package/README.md +3 -3
  2. package/dist/types/alleleProjection/projectAlleles.d.ts +1 -1
  3. package/dist/types/anchoredNodes.d.ts +2 -2
  4. package/dist/types/bandage/bandage-layout.d.ts +2 -2
  5. package/dist/types/bubbleSpreads.d.ts +4 -4
  6. package/dist/types/bubbles/bubbleHalos.d.ts +3 -3
  7. package/dist/types/bubbles/bubblesFromGraph.d.ts +2 -2
  8. package/dist/types/bubbles/classifyBubble.d.ts +1 -1
  9. package/dist/types/bubbles/popBubble.d.ts +1 -1
  10. package/dist/types/colorSchemes.d.ts +1 -1
  11. package/dist/types/deletionEdges.d.ts +3 -3
  12. package/dist/types/genes/genePins.d.ts +1 -1
  13. package/dist/types/gfa/gfaConverter.d.ts +4 -4
  14. package/dist/types/gfa-core/index.d.ts +2 -2
  15. package/dist/types/graphLabels.d.ts +4 -4
  16. package/dist/types/index.d.ts +49 -49
  17. package/dist/types/labelLayout.d.ts +9 -9
  18. package/dist/types/layout/anchoredLayout.d.ts +1 -1
  19. package/dist/types/layout/drawnScale.d.ts +1 -1
  20. package/dist/types/layout/mergeRuns.d.ts +1 -1
  21. package/dist/types/layout/orderedLayout.d.ts +1 -1
  22. package/dist/types/layout/orientToReference.d.ts +1 -1
  23. package/dist/types/layout/placeOffReference.d.ts +1 -1
  24. package/dist/types/layout/referenceSeeds.d.ts +2 -2
  25. package/dist/types/layout/sampleRowLayout.d.ts +1 -1
  26. package/dist/types/layout/tubeMapLayout.d.ts +1 -1
  27. package/dist/types/layout/variantMapLayout.d.ts +1 -1
  28. package/dist/types/layout/walkRowLayout.d.ts +2 -2
  29. package/dist/types/layout/walkRows.d.ts +1 -1
  30. package/dist/types/layoutModes.d.ts +7 -7
  31. package/dist/types/nodeWidths.d.ts +2 -2
  32. package/dist/types/pathAnchoring.d.ts +1 -1
  33. package/dist/types/pathColors.d.ts +1 -1
  34. package/dist/types/pipeline.d.ts +7 -7
  35. package/dist/types/referenceSpan.d.ts +1 -1
  36. package/dist/types/renderer/Canvas2DRenderer.d.ts +1 -1
  37. package/dist/types/renderer/GeometryBuilder.d.ts +6 -6
  38. package/dist/types/renderer/types.d.ts +1 -1
  39. package/dist/types/tubeMap/draw.d.ts +2 -2
  40. package/dist/types/tubeMap/frame.d.ts +1 -1
  41. package/dist/types/tubeMap/reads.d.ts +2 -2
  42. package/dist/types/tubeMap/warp.d.ts +1 -1
  43. package/dist/types/types.d.ts +3 -3
  44. package/dist/types/util/SpatialIndex.d.ts +3 -3
  45. package/dist/types/util/edgeCurves.d.ts +2 -2
  46. package/dist/types/util/geometry.d.ts +1 -1
  47. package/dist/types/util/hitDetection.d.ts +2 -2
  48. package/dist/types/viewport.d.ts +2 -2
  49. package/dist/types/walkHighlight.d.ts +1 -1
  50. 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
- pnpm release:core # from the repo root: checks, bumps, tags core-v*, pushes
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.
@@ -1,4 +1,4 @@
1
- import type { Graph } from '../types';
1
+ import type { Graph } from '../types.js';
2
2
  export interface ProjectedAllele {
3
3
  start: number;
4
4
  refSpan: number;
@@ -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,4 +1,4 @@
1
- import type { Graph } from './types';
1
+ import type { Graph } from './types.js';
2
2
  export declare const COLOR_SCHEMES: readonly [{
3
3
  readonly value: "auto";
4
4
  readonly label: "Auto";
@@ -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,4 +1,4 @@
1
- import type { Graph, NodeSegment } from '../types';
1
+ import type { Graph, NodeSegment } from '../types.js';
2
2
  export interface GeneModel {
3
3
  name: string;
4
4
  refName: string;
@@ -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;
@@ -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,4 +1,4 @@
1
- import type { Graph, LayoutResult } from '../types';
1
+ import type { Graph, LayoutResult } from '../types.js';
2
2
  export declare function anchoredLayout(graph: Graph, region?: {
3
3
  start: number;
4
4
  end: number;
@@ -1,4 +1,4 @@
1
- import type { Graph, GraphNode } from '../types';
1
+ import type { Graph, GraphNode } from '../types.js';
2
2
  export interface BandageScaleOpts {
3
3
  nodeLengthPerMegabase: number;
4
4
  minimumNodeLength: number;
@@ -1,4 +1,4 @@
1
- import type { Graph, NodeSegment } from '../types';
1
+ import type { Graph, NodeSegment } from '../types.js';
2
2
  export interface MergedRuns {
3
3
  graph: Graph;
4
4
  runs: Map<string, string[]>;
@@ -1,4 +1,4 @@
1
- import type { Graph, LayoutResult } from '../types';
1
+ import type { Graph, LayoutResult } from '../types.js';
2
2
  export declare function referenceOrder(graph: Graph): string[];
3
3
  export interface LayeredGraph {
4
4
  layers: string[][];
@@ -1,4 +1,4 @@
1
- import type { Graph, NodeSegment } from '../types';
1
+ import type { Graph, NodeSegment } from '../types.js';
2
2
  type Positions = Record<string, NodeSegment[]>;
3
3
  export declare function orientToReference(graph: Graph, positions: Positions): Positions;
4
4
  export {};
@@ -1,4 +1,4 @@
1
- import type { AlleleDeletion, Graph, NodeSegment } from '../types';
1
+ import type { AlleleDeletion, Graph, NodeSegment } from '../types.js';
2
2
  interface PlaceArgs {
3
3
  graph: Graph;
4
4
  span: number;
@@ -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,4 +1,4 @@
1
- import type { Graph, LayoutResult } from '../types';
1
+ import type { Graph, LayoutResult } from '../types.js';
2
2
  export declare function sampleRowLayout(graph: Graph, region?: {
3
3
  start: number;
4
4
  end: number;
@@ -1,4 +1,4 @@
1
- import type { Graph, LayoutResult } from '../types';
1
+ import type { Graph, LayoutResult } from '../types.js';
2
2
  import type { InputTrack, TubeMapLayout } from '@gmod/tubemap-core';
3
3
  export interface TubeMapColumn {
4
4
  order: 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,4 +1,4 @@
1
- import type { Graph } from '../types';
1
+ import type { Graph } from '../types.js';
2
2
  export interface WalkRun {
3
3
  start: number;
4
4
  bp: 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";
@@ -1,4 +1,4 @@
1
- import type { Graph, PathOrigin, PathVisit } from './types';
1
+ import type { Graph, PathOrigin, PathVisit } from './types.js';
2
2
  export declare function pathOrigin(pathName: string): {
3
3
  name: string;
4
4
  start: number;
@@ -1,4 +1,4 @@
1
- import type { GraphPath } from './types';
1
+ import type { GraphPath } from './types.js';
2
2
  export declare function nameHue(name: string): number;
3
3
  export declare function pathHueAt(index: number, count: number): number;
4
4
  export declare const PATH_SATURATION = 0.7;
@@ -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,4 +1,4 @@
1
- import type { Graph, GraphNode } from './types';
1
+ import type { Graph, GraphNode } from './types.js';
2
2
  export interface ReferenceSpan {
3
3
  start: number;
4
4
  end: number;
@@ -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,4 +1,4 @@
1
- import type { BezierCurve } from '../util/geometry';
1
+ import type { BezierCurve } from '../util/geometry.js';
2
2
  export interface EdgeCurveBatch {
3
3
  curves: BezierCurve[];
4
4
  thickness: number;
@@ -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,4 +1,4 @@
1
- import type { TubeMapDrawing } from '../layout/tubeMapLayout';
1
+ import type { TubeMapDrawing } from '../layout/tubeMapLayout.js';
2
2
  export interface TubeMapView {
3
3
  scaleX: number;
4
4
  translateX: number;
@@ -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;
@@ -1,4 +1,4 @@
1
- import type { TubeMapColumn } from '../layout/tubeMapLayout';
1
+ import type { TubeMapColumn } from '../layout/tubeMapLayout.js';
2
2
  export interface Knot {
3
3
  tx: number;
4
4
  sx: number;
@@ -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 {
@@ -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;
@@ -1,4 +1,4 @@
1
- import type { Graph } from './types';
1
+ import type { Graph } from './types.js';
2
2
  export interface WalkHighlight {
3
3
  name: string;
4
4
  nodeIds: Set<string>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jbrowse/bandage-core",
3
- "version": "0.1.1",
3
+ "version": "0.1.3",
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": "^2.8.0",
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"