@jbrowse/bandage-core 7.4.0 → 7.5.1
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-5XHORHYK.js → chunk-7ESIZZO7.js} +3 -3
- package/dist/chunks/{chunk-LNSAKOXP.js → chunk-CNGKWYUC.js} +1 -1
- package/dist/chunks/{chunk-6SBUFFTB.js → chunk-XV4P5KEQ.js} +14 -0
- package/dist/chunks/{chunk-PY7EZFL3.js → chunk-ZYHSUNQO.js} +8 -0
- package/dist/cli/figure.js +4 -4
- package/dist/facetGrid.js +3 -1
- package/dist/figure.js +4 -4
- package/dist/index.js +10 -4
- package/dist/layout/walkStrip.js +5 -1
- package/dist/types/facetGrid.d.ts +9 -0
- package/dist/types/index.d.ts +2 -1
- 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-CNGKWYUC.js";
|
|
46
46
|
import {
|
|
47
47
|
axisScaleOf
|
|
48
48
|
} from "./chunk-4UBWXZVX.js";
|
|
@@ -86,7 +86,7 @@ import {
|
|
|
86
86
|
facetCells,
|
|
87
87
|
facetGrid,
|
|
88
88
|
facetSettingOf
|
|
89
|
-
} from "./chunk-
|
|
89
|
+
} from "./chunk-XV4P5KEQ.js";
|
|
90
90
|
import {
|
|
91
91
|
FIT_PADDING,
|
|
92
92
|
drawingBounds,
|
|
@@ -47,6 +47,19 @@ function facetGrid({
|
|
|
47
47
|
}
|
|
48
48
|
return best;
|
|
49
49
|
}
|
|
50
|
+
var FACET_FIELDS = [
|
|
51
|
+
{ value: "", label: "None", description: "Every lifted walk in one drawing" },
|
|
52
|
+
{
|
|
53
|
+
value: "walk",
|
|
54
|
+
label: "A panel per walk",
|
|
55
|
+
description: "One panel per lifted walk, side by side"
|
|
56
|
+
},
|
|
57
|
+
{
|
|
58
|
+
value: "sample",
|
|
59
|
+
label: "A row per sample",
|
|
60
|
+
description: "A row per sample, a column per haplotype"
|
|
61
|
+
}
|
|
62
|
+
];
|
|
50
63
|
function facetSettingOf(facet) {
|
|
51
64
|
const raw = typeof facet === "string" ? { field: facet } : facet ?? {};
|
|
52
65
|
const field = raw.field === "walk" || raw.field === "sample" ? raw.field : "";
|
|
@@ -92,6 +105,7 @@ export {
|
|
|
92
105
|
FACET_TITLE_PX,
|
|
93
106
|
FACET_PAD_PX,
|
|
94
107
|
facetGrid,
|
|
108
|
+
FACET_FIELDS,
|
|
95
109
|
facetSettingOf,
|
|
96
110
|
facetCells
|
|
97
111
|
};
|
|
@@ -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-7ESIZZO7.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-CNGKWYUC.js";
|
|
57
57
|
import "../chunks/chunk-4UBWXZVX.js";
|
|
58
58
|
import "../chunks/chunk-MP7LXLWV.js";
|
|
59
59
|
import {
|
|
@@ -75,7 +75,7 @@ import "../chunks/chunk-3ZZSX5HN.js";
|
|
|
75
75
|
import "../chunks/chunk-AB35TJST.js";
|
|
76
76
|
import "../chunks/chunk-JKJWSY4V.js";
|
|
77
77
|
import "../chunks/chunk-NNODIW4U.js";
|
|
78
|
-
import "../chunks/chunk-
|
|
78
|
+
import "../chunks/chunk-XV4P5KEQ.js";
|
|
79
79
|
import {
|
|
80
80
|
engineSettingsOf,
|
|
81
81
|
forceLayout,
|
package/dist/facetGrid.js
CHANGED
|
@@ -1,12 +1,14 @@
|
|
|
1
1
|
import {
|
|
2
|
+
FACET_FIELDS,
|
|
2
3
|
FACET_GAP_PX,
|
|
3
4
|
FACET_PAD_PX,
|
|
4
5
|
FACET_TITLE_PX,
|
|
5
6
|
facetCells,
|
|
6
7
|
facetGrid,
|
|
7
8
|
facetSettingOf
|
|
8
|
-
} from "./chunks/chunk-
|
|
9
|
+
} from "./chunks/chunk-XV4P5KEQ.js";
|
|
9
10
|
export {
|
|
11
|
+
FACET_FIELDS,
|
|
10
12
|
FACET_GAP_PX,
|
|
11
13
|
FACET_PAD_PX,
|
|
12
14
|
FACET_TITLE_PX,
|
package/dist/figure.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
figureSvg
|
|
3
|
-
} from "./chunks/chunk-
|
|
3
|
+
} from "./chunks/chunk-7ESIZZO7.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-CNGKWYUC.js";
|
|
19
19
|
import "./chunks/chunk-4UBWXZVX.js";
|
|
20
20
|
import "./chunks/chunk-MP7LXLWV.js";
|
|
21
21
|
import "./chunks/chunk-SZNZ2T6D.js";
|
|
@@ -30,7 +30,7 @@ import "./chunks/chunk-3ZZSX5HN.js";
|
|
|
30
30
|
import "./chunks/chunk-AB35TJST.js";
|
|
31
31
|
import "./chunks/chunk-JKJWSY4V.js";
|
|
32
32
|
import "./chunks/chunk-NNODIW4U.js";
|
|
33
|
-
import "./chunks/chunk-
|
|
33
|
+
import "./chunks/chunk-XV4P5KEQ.js";
|
|
34
34
|
import "./chunks/chunk-WZATPZNH.js";
|
|
35
35
|
import "./chunks/chunk-IGVV37VI.js";
|
|
36
36
|
import "./chunks/chunk-PUG7LXDF.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-7ESIZZO7.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-CNGKWYUC.js";
|
|
206
208
|
import {
|
|
207
209
|
axisScaleOf,
|
|
208
210
|
contains,
|
|
@@ -270,13 +272,14 @@ import {
|
|
|
270
272
|
serializeEl
|
|
271
273
|
} from "./chunks/chunk-NNODIW4U.js";
|
|
272
274
|
import {
|
|
275
|
+
FACET_FIELDS,
|
|
273
276
|
FACET_GAP_PX,
|
|
274
277
|
FACET_PAD_PX,
|
|
275
278
|
FACET_TITLE_PX,
|
|
276
279
|
facetCells,
|
|
277
280
|
facetGrid,
|
|
278
281
|
facetSettingOf
|
|
279
|
-
} from "./chunks/chunk-
|
|
282
|
+
} from "./chunks/chunk-XV4P5KEQ.js";
|
|
280
283
|
import {
|
|
281
284
|
FIGURE_DEFAULTS,
|
|
282
285
|
figureSpecSettings
|
|
@@ -329,6 +332,7 @@ export {
|
|
|
329
332
|
Canvas2DRenderer,
|
|
330
333
|
ENGINE_DEFAULTS,
|
|
331
334
|
EXON_COLOR,
|
|
335
|
+
FACET_FIELDS,
|
|
332
336
|
FACET_GAP_PX,
|
|
333
337
|
FACET_PAD_PX,
|
|
334
338
|
FACET_TITLE_PX,
|
|
@@ -382,6 +386,7 @@ export {
|
|
|
382
386
|
createForceLayoutCache,
|
|
383
387
|
cutGbzRegion,
|
|
384
388
|
cutWindowGFA,
|
|
389
|
+
cutsWholeWalks,
|
|
385
390
|
deletionDrawing,
|
|
386
391
|
deletionEdges,
|
|
387
392
|
drawReferenceStrip,
|
|
@@ -498,6 +503,7 @@ export {
|
|
|
498
503
|
walkRowsKey,
|
|
499
504
|
walkRowsKeyTree,
|
|
500
505
|
walkRowsTree,
|
|
506
|
+
walkStripApplies,
|
|
501
507
|
walkStripFrame,
|
|
502
508
|
walkStripLabelsTree,
|
|
503
509
|
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
|
};
|
|
@@ -33,6 +33,15 @@ export interface FacetSetting {
|
|
|
33
33
|
/** How many panels go across; unset takes whichever count draws each largest. */
|
|
34
34
|
columns?: number;
|
|
35
35
|
}
|
|
36
|
+
/**
|
|
37
|
+
* The fields panels can split on, as a picker lists them: '' for none, the way
|
|
38
|
+
* a JBrowse display's `facet` writes it and its Group by menu labels it.
|
|
39
|
+
*/
|
|
40
|
+
export declare const FACET_FIELDS: {
|
|
41
|
+
value: FacetSetting['field'];
|
|
42
|
+
label: string;
|
|
43
|
+
description: string;
|
|
44
|
+
}[];
|
|
36
45
|
/** What a session or a spec may write for the facet: the field bare, or the setting's members. */
|
|
37
46
|
export type FacetInput = string | {
|
|
38
47
|
field?: string;
|
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';
|
|
@@ -54,7 +55,7 @@ export type { GbzSource } from './gbzCut.js';
|
|
|
54
55
|
export { version } from './version.js';
|
|
55
56
|
export type { FigureOptions } from './figure.js';
|
|
56
57
|
export { svgCanvas } from './renderer/svgCanvas.js';
|
|
57
|
-
export { FACET_GAP_PX, FACET_PAD_PX, FACET_TITLE_PX, facetCells, facetGrid, facetSettingOf, } from './facetGrid.js';
|
|
58
|
+
export { FACET_FIELDS, FACET_GAP_PX, FACET_PAD_PX, FACET_TITLE_PX, facetCells, facetGrid, facetSettingOf, } from './facetGrid.js';
|
|
58
59
|
export type { FacetBy, FacetGrid, FacetInput, FacetSetting } from './facetGrid.js';
|
|
59
60
|
export type { LiftedWalk, WalkLift } from './walkHighlight.js';
|
|
60
61
|
export { WALK_FIELDS, WALK_SCHEMES, encodingStops, encodingSwatchCss, resolveEncoding, schemeCss, } from './walkEncoding.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.1";
|
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.1",
|
|
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": {
|