@jbrowse/bandage-core 6.1.0 → 6.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/chunks/{chunk-SMQ545MU.js → chunk-3GMVZMKD.js} +1 -1
- package/dist/chunks/{chunk-KKU6JRJC.js → chunk-5HF753RL.js} +14 -14
- package/dist/chunks/{chunk-X4VVPLI5.js → chunk-6CO564AN.js} +1 -1
- package/dist/chunks/{chunk-V5BPIOLS.js → chunk-7R2UGY4I.js} +1 -1
- package/dist/chunks/{chunk-ZKGM7VLA.js → chunk-A7VOULBP.js} +1 -1
- package/dist/chunks/{chunk-ZHCDYSA5.js → chunk-GD7FYNGS.js} +1 -1
- package/dist/chunks/{chunk-LPFN4POU.js → chunk-HE3NRWH7.js} +1 -1
- package/dist/chunks/chunk-L53SXJZI.js +22 -0
- package/dist/chunks/{chunk-AMHZMY6E.js → chunk-M6SAUIYR.js} +1 -1
- package/dist/chunks/chunk-O4TGF4WS.js +503 -0
- package/dist/chunks/{chunk-ZZA2AFB4.js → chunk-P2KU2TXS.js} +1 -1
- package/dist/chunks/{chunk-C6USNTTP.js → chunk-STNG3Y5X.js} +25 -4
- package/dist/chunks/{chunk-6UACM7VU.js → chunk-YFRTTBCZ.js} +4 -3
- package/dist/chunks/{chunk-PJESIRDU.js → chunk-YQZWW2V6.js} +2 -2
- package/dist/cli/figure.js +22 -25
- package/dist/figure.js +14 -14
- package/dist/index.js +45 -35
- package/dist/layout/deletionRoutes.js +1 -1
- package/dist/layout/stressEngine.js +11 -0
- package/dist/layout/walkRowDraw.js +5 -5
- package/dist/layout/walkStrip.js +6 -6
- package/dist/layoutEngines.js +9 -0
- package/dist/layoutModes.js +2 -2
- package/dist/pipeline.js +3 -3
- package/dist/referenceRampCss.js +4 -4
- package/dist/referenceStrip.js +4 -4
- package/dist/renderer/GeometryBuilder.js +3 -3
- package/dist/tubeMap/nodeColors.js +4 -4
- package/dist/types/cli/figure.d.ts +2 -0
- package/dist/types/index.d.ts +3 -0
- package/dist/types/layout/stressEngine.d.ts +19 -0
- package/dist/types/layoutEngines.d.ts +2 -0
- package/dist/types/pipeline.d.ts +2 -0
- package/dist/types/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/dist/viewport.js +4 -4
- package/dist/walkEncoding.js +4 -4
- package/dist/walkHighlight.js +5 -5
- package/package.json +1 -1
- package/dist/chunks/{chunk-RX5CSWJW.js → chunk-VUBLSA6P.js} +4 -4
package/dist/types/index.d.ts
CHANGED
|
@@ -8,6 +8,9 @@ export { NODE_WIDTHS, maxNodeWidthPx, meanDepth, nodeInk, nodeWidthPx, } from '.
|
|
|
8
8
|
export type { NodeWidth } from './nodeWidths.js';
|
|
9
9
|
export { BUBBLE_SPREADS } from './bubbleSpreads.js';
|
|
10
10
|
export type { BubbleSpread } from './bubbleSpreads.js';
|
|
11
|
+
export { LAYOUT_ENGINES, stressLayout } from './layout/stressEngine.js';
|
|
12
|
+
export type { LayoutEngineKind } from './layout/stressEngine.js';
|
|
13
|
+
export { layoutEngine } from './layoutEngines.js';
|
|
11
14
|
export { REFERENCE_RAMP_MAX_HUE, buildGeometry, computeReferenceRamp, } from './renderer/GeometryBuilder.js';
|
|
12
15
|
export { Canvas2DRenderer } from './renderer/Canvas2DRenderer.js';
|
|
13
16
|
export { getDpr } from './renderer/canvas.js';
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import type { EngineRequest } from '../pipeline.js';
|
|
2
|
+
import type { LayoutResult } from '../types.js';
|
|
3
|
+
export declare const LAYOUT_ENGINES: readonly [{
|
|
4
|
+
readonly value: "fmmm";
|
|
5
|
+
readonly label: "Bandage (FMMM)";
|
|
6
|
+
readonly description: "Bandage's force-directed layout: OGDF's fast multipole multilevel method, compiled to wasm.";
|
|
7
|
+
}, {
|
|
8
|
+
readonly value: "stress";
|
|
9
|
+
readonly label: "Stress (experimental)";
|
|
10
|
+
readonly description: "Stress layout by stochastic gradient descent in plain JS: distances along the graph become distances on the page, so the reference reads straight and a repeat loop reads as a ring.";
|
|
11
|
+
}];
|
|
12
|
+
export type LayoutEngineKind = (typeof LAYOUT_ENGINES)[number]['value'];
|
|
13
|
+
export declare const LAYOUT_ENGINE_VALUES: ("fmmm" | "stress")[];
|
|
14
|
+
export interface StressOptions {
|
|
15
|
+
quality?: number;
|
|
16
|
+
seed?: number;
|
|
17
|
+
componentSeparation?: number;
|
|
18
|
+
}
|
|
19
|
+
export declare function stressLayout(request: EngineRequest, opts?: StressOptions): LayoutResult;
|
package/dist/types/pipeline.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import type { BubbleSpread } from './bubbleSpreads.js';
|
|
2
2
|
import type { LayoutScaling } from './layout/drawnScale.js';
|
|
3
3
|
import type { LayoutNode } from './layout/referenceSeeds.js';
|
|
4
|
+
import type { LayoutEngineKind } from './layout/stressEngine.js';
|
|
4
5
|
import type { Graph, LayoutResult, NodeSegment } from './types.js';
|
|
5
6
|
export interface Bounds {
|
|
6
7
|
minX: number;
|
|
@@ -30,6 +31,7 @@ export interface EngineSettings {
|
|
|
30
31
|
spacing?: number;
|
|
31
32
|
componentSeparation?: number;
|
|
32
33
|
showDeletionEdges?: boolean;
|
|
34
|
+
engine?: LayoutEngineKind;
|
|
33
35
|
}
|
|
34
36
|
export declare function engineRequest(graph: Graph, scaling: LayoutScaling, settings: EngineSettings): EngineRequest;
|
|
35
37
|
export declare function engineKey(graph: Graph, settings: EngineSettings): string;
|
package/dist/types/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const version = "6.
|
|
1
|
+
export declare const version = "6.2.0";
|
package/dist/version.js
CHANGED
package/dist/viewport.js
CHANGED
|
@@ -5,16 +5,16 @@ import {
|
|
|
5
5
|
screenToLayout,
|
|
6
6
|
viewportOf,
|
|
7
7
|
zoomAbout
|
|
8
|
-
} from "./chunks/chunk-
|
|
9
|
-
import "./chunks/chunk-
|
|
8
|
+
} from "./chunks/chunk-M6SAUIYR.js";
|
|
9
|
+
import "./chunks/chunk-YFRTTBCZ.js";
|
|
10
10
|
import "./chunks/chunk-PUG7LXDF.js";
|
|
11
11
|
import "./chunks/chunk-IGVV37VI.js";
|
|
12
12
|
import "./chunks/chunk-72N5DJHZ.js";
|
|
13
13
|
import "./chunks/chunk-QYBZZI5H.js";
|
|
14
14
|
import "./chunks/chunk-CDLPYR5O.js";
|
|
15
|
-
import "./chunks/chunk-
|
|
16
|
-
import "./chunks/chunk-ST2IBUAN.js";
|
|
15
|
+
import "./chunks/chunk-STNG3Y5X.js";
|
|
17
16
|
import "./chunks/chunk-ES2N6V56.js";
|
|
17
|
+
import "./chunks/chunk-ST2IBUAN.js";
|
|
18
18
|
import "./chunks/chunk-TAMCZHLW.js";
|
|
19
19
|
import "./chunks/chunk-UVBGRJQX.js";
|
|
20
20
|
import "./chunks/chunk-6JEWNXCQ.js";
|
package/dist/walkEncoding.js
CHANGED
|
@@ -9,17 +9,17 @@ import {
|
|
|
9
9
|
schemeColor,
|
|
10
10
|
schemeCss,
|
|
11
11
|
schemeRgb
|
|
12
|
-
} from "./chunks/chunk-
|
|
13
|
-
import "./chunks/chunk-
|
|
12
|
+
} from "./chunks/chunk-6CO564AN.js";
|
|
13
|
+
import "./chunks/chunk-VUBLSA6P.js";
|
|
14
14
|
import "./chunks/chunk-UMNCCYBN.js";
|
|
15
|
+
import "./chunks/chunk-PBENCR5L.js";
|
|
15
16
|
import "./chunks/chunk-Y3IOTZJA.js";
|
|
16
17
|
import "./chunks/chunk-X5L37W4J.js";
|
|
17
|
-
import "./chunks/chunk-ST2IBUAN.js";
|
|
18
18
|
import "./chunks/chunk-ES2N6V56.js";
|
|
19
|
+
import "./chunks/chunk-ST2IBUAN.js";
|
|
19
20
|
import "./chunks/chunk-N62KBLFC.js";
|
|
20
21
|
import "./chunks/chunk-AB35TJST.js";
|
|
21
22
|
import "./chunks/chunk-TAMCZHLW.js";
|
|
22
|
-
import "./chunks/chunk-PBENCR5L.js";
|
|
23
23
|
import "./chunks/chunk-4EMPBO7S.js";
|
|
24
24
|
import "./chunks/chunk-2CVHXFK7.js";
|
|
25
25
|
import "./chunks/chunk-CPMHA4W5.js";
|
package/dist/walkHighlight.js
CHANGED
|
@@ -2,18 +2,18 @@ import {
|
|
|
2
2
|
facetLifts,
|
|
3
3
|
walkHighlight,
|
|
4
4
|
walkLift
|
|
5
|
-
} from "./chunks/chunk-
|
|
6
|
-
import "./chunks/chunk-
|
|
7
|
-
import "./chunks/chunk-
|
|
5
|
+
} from "./chunks/chunk-A7VOULBP.js";
|
|
6
|
+
import "./chunks/chunk-6CO564AN.js";
|
|
7
|
+
import "./chunks/chunk-VUBLSA6P.js";
|
|
8
8
|
import "./chunks/chunk-UMNCCYBN.js";
|
|
9
|
+
import "./chunks/chunk-PBENCR5L.js";
|
|
9
10
|
import "./chunks/chunk-Y3IOTZJA.js";
|
|
10
11
|
import "./chunks/chunk-X5L37W4J.js";
|
|
11
|
-
import "./chunks/chunk-ST2IBUAN.js";
|
|
12
12
|
import "./chunks/chunk-ES2N6V56.js";
|
|
13
|
+
import "./chunks/chunk-ST2IBUAN.js";
|
|
13
14
|
import "./chunks/chunk-N62KBLFC.js";
|
|
14
15
|
import "./chunks/chunk-AB35TJST.js";
|
|
15
16
|
import "./chunks/chunk-TAMCZHLW.js";
|
|
16
|
-
import "./chunks/chunk-PBENCR5L.js";
|
|
17
17
|
import "./chunks/chunk-4EMPBO7S.js";
|
|
18
18
|
import "./chunks/chunk-2CVHXFK7.js";
|
|
19
19
|
import "./chunks/chunk-CPMHA4W5.js";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jbrowse/bandage-core",
|
|
3
|
-
"version": "6.
|
|
3
|
+
"version": "6.2.0",
|
|
4
4
|
"description": "Pangenome graph layout and drawing with no host: GFA in, the Bandage force-directed engine and reference-anchored layouts, a Canvas2D renderer, hit testing and labels out",
|
|
5
5
|
"license": "GPL-3.0-or-later",
|
|
6
6
|
"repository": {
|
|
@@ -3,6 +3,10 @@ import {
|
|
|
3
3
|
fadeAbgr,
|
|
4
4
|
packAbgr
|
|
5
5
|
} from "./chunk-UMNCCYBN.js";
|
|
6
|
+
import {
|
|
7
|
+
meanDepth,
|
|
8
|
+
nodeWidthPx
|
|
9
|
+
} from "./chunk-PBENCR5L.js";
|
|
6
10
|
import {
|
|
7
11
|
baseEdgeCurves
|
|
8
12
|
} from "./chunk-Y3IOTZJA.js";
|
|
@@ -15,10 +19,6 @@ import {
|
|
|
15
19
|
import {
|
|
16
20
|
referenceMidpoints
|
|
17
21
|
} from "./chunk-ES2N6V56.js";
|
|
18
|
-
import {
|
|
19
|
-
meanDepth,
|
|
20
|
-
nodeWidthPx
|
|
21
|
-
} from "./chunk-PBENCR5L.js";
|
|
22
22
|
import {
|
|
23
23
|
dashCurves,
|
|
24
24
|
pathRibbonOffsets,
|