@jbrowse/bandage-core 7.4.0 → 7.5.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-LNSAKOXP.js → chunk-2PEBQ5VA.js} +1 -1
- package/dist/chunks/{chunk-5XHORHYK.js → chunk-GYTQK5PR.js} +2 -2
- package/dist/chunks/{chunk-PY7EZFL3.js → chunk-ZYHSUNQO.js} +8 -0
- package/dist/cli/figure.js +3 -3
- package/dist/figure.js +3 -3
- package/dist/index.js +7 -3
- package/dist/layout/walkStrip.js +5 -1
- package/dist/types/index.d.ts +1 -0
- package/dist/types/layout/walkStrip.d.ts +13 -0
- package/dist/types/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +1 -1
|
@@ -8,7 +8,7 @@ import {
|
|
|
8
8
|
stripGeneGaps,
|
|
9
9
|
walkStripFrame,
|
|
10
10
|
walkStripLabelsTree
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-ZYHSUNQO.js";
|
|
12
12
|
import {
|
|
13
13
|
walkRowsKey,
|
|
14
14
|
walkRowsKeyTree,
|
|
@@ -42,7 +42,7 @@ import {
|
|
|
42
42
|
} from "./chunk-RCWYY6XA.js";
|
|
43
43
|
import {
|
|
44
44
|
version
|
|
45
|
-
} from "./chunk-
|
|
45
|
+
} from "./chunk-2PEBQ5VA.js";
|
|
46
46
|
import {
|
|
47
47
|
axisScaleOf
|
|
48
48
|
} from "./chunk-4UBWXZVX.js";
|
|
@@ -14,6 +14,12 @@ import {
|
|
|
14
14
|
} from "./chunk-ST2IBUAN.js";
|
|
15
15
|
|
|
16
16
|
// src/layout/walkStrip.ts
|
|
17
|
+
function walkStripApplies(o) {
|
|
18
|
+
return o.walkStrip && o.mode.drawsNodes && !o.drawsPicture && !o.popped && !o.host && o.walks > 1;
|
|
19
|
+
}
|
|
20
|
+
function cutsWholeWalks(mode, o) {
|
|
21
|
+
return mode.wholeWalks || o.walkStrip && !o.host;
|
|
22
|
+
}
|
|
17
23
|
var PAD_PX = 6;
|
|
18
24
|
var WALK_STRIP_CEILING_PX = 260;
|
|
19
25
|
var LABEL_FONT_PX = 11;
|
|
@@ -188,6 +194,8 @@ function stripGeneGaps(frame, rowGenes, gaps) {
|
|
|
188
194
|
}
|
|
189
195
|
|
|
190
196
|
export {
|
|
197
|
+
walkStripApplies,
|
|
198
|
+
cutsWholeWalks,
|
|
191
199
|
WALK_STRIP_CEILING_PX,
|
|
192
200
|
stripMarks,
|
|
193
201
|
segmentAt,
|
package/dist/cli/figure.js
CHANGED
|
@@ -35,10 +35,10 @@ import "../chunks/chunk-LYJ4US66.js";
|
|
|
35
35
|
import "../chunks/chunk-7XHHVYG7.js";
|
|
36
36
|
import {
|
|
37
37
|
figureSvg
|
|
38
|
-
} from "../chunks/chunk-
|
|
38
|
+
} from "../chunks/chunk-GYTQK5PR.js";
|
|
39
39
|
import "../chunks/chunk-LOCJN3BZ.js";
|
|
40
40
|
import "../chunks/chunk-47DYCZOK.js";
|
|
41
|
-
import "../chunks/chunk-
|
|
41
|
+
import "../chunks/chunk-ZYHSUNQO.js";
|
|
42
42
|
import {
|
|
43
43
|
genesOnRow,
|
|
44
44
|
placeRowGenes
|
|
@@ -53,7 +53,7 @@ import "../chunks/chunk-2LQ5BWT7.js";
|
|
|
53
53
|
import "../chunks/chunk-AVJK272H.js";
|
|
54
54
|
import "../chunks/chunk-RCWYY6XA.js";
|
|
55
55
|
import "../chunks/chunk-UMNCCYBN.js";
|
|
56
|
-
import "../chunks/chunk-
|
|
56
|
+
import "../chunks/chunk-2PEBQ5VA.js";
|
|
57
57
|
import "../chunks/chunk-4UBWXZVX.js";
|
|
58
58
|
import "../chunks/chunk-MP7LXLWV.js";
|
|
59
59
|
import {
|
package/dist/figure.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
figureSvg
|
|
3
|
-
} from "./chunks/chunk-
|
|
3
|
+
} from "./chunks/chunk-GYTQK5PR.js";
|
|
4
4
|
import "./chunks/chunk-LOCJN3BZ.js";
|
|
5
5
|
import "./chunks/chunk-47DYCZOK.js";
|
|
6
|
-
import "./chunks/chunk-
|
|
6
|
+
import "./chunks/chunk-ZYHSUNQO.js";
|
|
7
7
|
import "./chunks/chunk-7G7TFATC.js";
|
|
8
8
|
import "./chunks/chunk-CH3DLBUT.js";
|
|
9
9
|
import "./chunks/chunk-4BYTEJGW.js";
|
|
@@ -15,7 +15,7 @@ import "./chunks/chunk-2LQ5BWT7.js";
|
|
|
15
15
|
import "./chunks/chunk-AVJK272H.js";
|
|
16
16
|
import "./chunks/chunk-RCWYY6XA.js";
|
|
17
17
|
import "./chunks/chunk-UMNCCYBN.js";
|
|
18
|
-
import "./chunks/chunk-
|
|
18
|
+
import "./chunks/chunk-2PEBQ5VA.js";
|
|
19
19
|
import "./chunks/chunk-4UBWXZVX.js";
|
|
20
20
|
import "./chunks/chunk-MP7LXLWV.js";
|
|
21
21
|
import "./chunks/chunk-SZNZ2T6D.js";
|
package/dist/index.js
CHANGED
|
@@ -112,7 +112,7 @@ import {
|
|
|
112
112
|
} from "./chunks/chunk-7XHHVYG7.js";
|
|
113
113
|
import {
|
|
114
114
|
figureSvg
|
|
115
|
-
} from "./chunks/chunk-
|
|
115
|
+
} from "./chunks/chunk-GYTQK5PR.js";
|
|
116
116
|
import {
|
|
117
117
|
layoutGeometryInputs
|
|
118
118
|
} from "./chunks/chunk-LOCJN3BZ.js";
|
|
@@ -121,14 +121,16 @@ import {
|
|
|
121
121
|
} from "./chunks/chunk-47DYCZOK.js";
|
|
122
122
|
import {
|
|
123
123
|
WALK_STRIP_CEILING_PX,
|
|
124
|
+
cutsWholeWalks,
|
|
124
125
|
segmentAt,
|
|
125
126
|
stripGeneGaps,
|
|
126
127
|
stripMarks,
|
|
127
128
|
stripRowAt,
|
|
128
129
|
walkMarksTree,
|
|
130
|
+
walkStripApplies,
|
|
129
131
|
walkStripFrame,
|
|
130
132
|
walkStripLabelsTree
|
|
131
|
-
} from "./chunks/chunk-
|
|
133
|
+
} from "./chunks/chunk-ZYHSUNQO.js";
|
|
132
134
|
import {
|
|
133
135
|
BAR_PX,
|
|
134
136
|
CALL_TICK,
|
|
@@ -202,7 +204,7 @@ import {
|
|
|
202
204
|
import "./chunks/chunk-UMNCCYBN.js";
|
|
203
205
|
import {
|
|
204
206
|
version
|
|
205
|
-
} from "./chunks/chunk-
|
|
207
|
+
} from "./chunks/chunk-2PEBQ5VA.js";
|
|
206
208
|
import {
|
|
207
209
|
axisScaleOf,
|
|
208
210
|
contains,
|
|
@@ -382,6 +384,7 @@ export {
|
|
|
382
384
|
createForceLayoutCache,
|
|
383
385
|
cutGbzRegion,
|
|
384
386
|
cutWindowGFA,
|
|
387
|
+
cutsWholeWalks,
|
|
385
388
|
deletionDrawing,
|
|
386
389
|
deletionEdges,
|
|
387
390
|
drawReferenceStrip,
|
|
@@ -498,6 +501,7 @@ export {
|
|
|
498
501
|
walkRowsKey,
|
|
499
502
|
walkRowsKeyTree,
|
|
500
503
|
walkRowsTree,
|
|
504
|
+
walkStripApplies,
|
|
501
505
|
walkStripFrame,
|
|
502
506
|
walkStripLabelsTree,
|
|
503
507
|
warpX,
|
package/dist/layout/walkStrip.js
CHANGED
|
@@ -1,13 +1,15 @@
|
|
|
1
1
|
import {
|
|
2
2
|
WALK_STRIP_CEILING_PX,
|
|
3
|
+
cutsWholeWalks,
|
|
3
4
|
segmentAt,
|
|
4
5
|
stripGeneGaps,
|
|
5
6
|
stripMarks,
|
|
6
7
|
stripRowAt,
|
|
7
8
|
walkMarksTree,
|
|
9
|
+
walkStripApplies,
|
|
8
10
|
walkStripFrame,
|
|
9
11
|
walkStripLabelsTree
|
|
10
|
-
} from "../chunks/chunk-
|
|
12
|
+
} from "../chunks/chunk-ZYHSUNQO.js";
|
|
11
13
|
import {
|
|
12
14
|
LABELLED_ROW_PX
|
|
13
15
|
} from "../chunks/chunk-7G7TFATC.js";
|
|
@@ -31,11 +33,13 @@ import "../chunks/chunk-FYQWPEEY.js";
|
|
|
31
33
|
export {
|
|
32
34
|
LABELLED_ROW_PX,
|
|
33
35
|
WALK_STRIP_CEILING_PX,
|
|
36
|
+
cutsWholeWalks,
|
|
34
37
|
segmentAt,
|
|
35
38
|
stripGeneGaps,
|
|
36
39
|
stripMarks,
|
|
37
40
|
stripRowAt,
|
|
38
41
|
walkMarksTree,
|
|
42
|
+
walkStripApplies,
|
|
39
43
|
walkStripFrame,
|
|
40
44
|
walkStripLabelsTree
|
|
41
45
|
};
|
package/dist/types/index.d.ts
CHANGED
|
@@ -2,6 +2,7 @@ export { FIT_PADDING, clampZoom, drawingBounds, engineRequest, fitTransform, for
|
|
|
2
2
|
export type { Bounds, EngineRequest, EngineSettings, LayoutEngine, } from './pipeline.js';
|
|
3
3
|
export { ENGINE_DEFAULTS, engineSettingsOf } from './pipeline.js';
|
|
4
4
|
export { createForceLayoutCache } from './layout/forceCache.js';
|
|
5
|
+
export { cutsWholeWalks, walkStripApplies } from './layout/walkStrip.js';
|
|
5
6
|
export type { ForceLayoutCache } from './layout/forceCache.js';
|
|
6
7
|
export { edgeHoverText, regionLabel } from './hoverText.js';
|
|
7
8
|
export { layoutGeometryInputs } from './renderer/geometryInputs.js';
|
|
@@ -1,7 +1,20 @@
|
|
|
1
1
|
import type { GeneGaps, RowGene, WalkRowsFrame } from './walkRowDraw.js';
|
|
2
2
|
import type { WalkRow, WalkRows } from './walkRows.js';
|
|
3
|
+
import type { LayoutMode } from '../layoutModes.js';
|
|
3
4
|
import type { Graph, GraphNode } from '../types.js';
|
|
4
5
|
export { LABELLED_ROW_PX } from './walkRowDraw.js';
|
|
6
|
+
export declare function walkStripApplies(o: {
|
|
7
|
+
walkStrip: boolean;
|
|
8
|
+
mode: Pick<LayoutMode, 'drawsNodes'>;
|
|
9
|
+
drawsPicture?: boolean;
|
|
10
|
+
popped?: boolean;
|
|
11
|
+
walks: number;
|
|
12
|
+
host?: boolean;
|
|
13
|
+
}): boolean;
|
|
14
|
+
export declare function cutsWholeWalks(mode: Pick<LayoutMode, 'wholeWalks'>, o: {
|
|
15
|
+
walkStrip: boolean;
|
|
16
|
+
host?: boolean;
|
|
17
|
+
}): boolean;
|
|
5
18
|
export declare const WALK_STRIP_CEILING_PX = 260;
|
|
6
19
|
export interface StripMark {
|
|
7
20
|
row: string;
|
package/dist/types/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const version = "7.
|
|
1
|
+
export declare const version = "7.5.0";
|
package/dist/version.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jbrowse/bandage-core",
|
|
3
|
-
"version": "7.
|
|
3
|
+
"version": "7.5.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": {
|