@jbrowse/bandage-core 7.0.0 → 7.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-EZPBJPK6.js → chunk-3JANT2SW.js} +6 -3
- package/dist/chunks/chunk-6EJIU6IA.js +42 -0
- package/dist/chunks/{chunk-6UFS3EWI.js → chunk-EPWYRSHH.js} +1 -1
- package/dist/chunks/{chunk-WEMKWLDF.js → chunk-JKXE6CIP.js} +1 -1
- package/dist/chunks/{chunk-YZ5CCEDH.js → chunk-JVLURPFW.js} +1 -0
- package/dist/chunks/{chunk-MZ7QQRUJ.js → chunk-KREASK3Z.js} +7 -13
- package/dist/chunks/chunk-LYJ4US66.js +664 -0
- package/dist/chunks/{chunk-7PWMTUAK.js → chunk-QMJ4J5PT.js} +14 -13
- package/dist/chunks/{chunk-EOSVRILX.js → chunk-S73EYTZA.js} +1 -1
- package/dist/chunks/{chunk-JFNPL4UT.js → chunk-UGD6ZMOF.js} +29 -4
- package/dist/chunks/{chunk-O4TGF4WS.js → chunk-UNOE2NDN.js} +155 -129
- package/dist/chunks/{chunk-AWCMVPVP.js → chunk-Y7UR3MDE.js} +1 -1
- package/dist/cli/figure.js +24 -13
- package/dist/figure.js +9 -9
- package/dist/index.js +28 -19
- package/dist/layout/deletionRoutes.js +3 -1
- package/dist/layout/stressEngine.js +5 -5
- package/dist/layout/stressPlacement.js +7 -0
- package/dist/layout/walkRowDraw.js +11 -1
- package/dist/layout/walkRowLayout.js +1 -1
- package/dist/layout/walkStrip.js +4 -3
- package/dist/layoutEngines.js +10 -2
- package/dist/layoutModes.js +2 -2
- package/dist/pipeline.js +2 -2
- package/dist/types/cli/figure.d.ts +1 -1
- package/dist/types/figure.d.ts +2 -1
- package/dist/types/index.d.ts +5 -5
- package/dist/types/layout/deletionRoutes.d.ts +1 -0
- package/dist/types/layout/stressEngine.d.ts +19 -11
- package/dist/types/layout/stressPlacement.d.ts +5 -0
- package/dist/types/layout/walkRowDraw.d.ts +11 -0
- package/dist/types/layout/walkRowLayout.d.ts +2 -1
- package/dist/types/layout/walkStrip.d.ts +1 -1
- package/dist/types/layoutEngines.d.ts +12 -0
- package/dist/types/pipeline.d.ts +1 -1
- package/dist/types/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/dist/viewport.js +3 -3
- package/package.json +1 -1
- package/dist/chunks/chunk-L53SXJZI.js +0 -22
package/dist/cli/figure.js
CHANGED
|
@@ -5,13 +5,16 @@ import {
|
|
|
5
5
|
genesFromText
|
|
6
6
|
} from "../chunks/chunk-BXEPA4KS.js";
|
|
7
7
|
import {
|
|
8
|
+
LAYOUT_ENGINE_VALUES,
|
|
9
|
+
isLayoutEngineKind,
|
|
8
10
|
layoutEngine
|
|
9
|
-
} from "../chunks/chunk-
|
|
10
|
-
import "../chunks/chunk-
|
|
11
|
+
} from "../chunks/chunk-6EJIU6IA.js";
|
|
12
|
+
import "../chunks/chunk-UNOE2NDN.js";
|
|
13
|
+
import "../chunks/chunk-LYJ4US66.js";
|
|
11
14
|
import {
|
|
12
15
|
LAYOUT_MODES,
|
|
13
16
|
layoutModeByValue
|
|
14
|
-
} from "../chunks/chunk-
|
|
17
|
+
} from "../chunks/chunk-JKXE6CIP.js";
|
|
15
18
|
import "../chunks/chunk-4FQTTG5F.js";
|
|
16
19
|
import "../chunks/chunk-TEDQJPMI.js";
|
|
17
20
|
import "../chunks/chunk-LOEA5IHZ.js";
|
|
@@ -23,32 +26,31 @@ import "../chunks/chunk-C44YRP5F.js";
|
|
|
23
26
|
import "../chunks/chunk-7XHHVYG7.js";
|
|
24
27
|
import {
|
|
25
28
|
figureSvg
|
|
26
|
-
} from "../chunks/chunk-
|
|
29
|
+
} from "../chunks/chunk-QMJ4J5PT.js";
|
|
30
|
+
import "../chunks/chunk-CH3DLBUT.js";
|
|
31
|
+
import "../chunks/chunk-4BYTEJGW.js";
|
|
27
32
|
import "../chunks/chunk-47DYCZOK.js";
|
|
28
|
-
import "../chunks/chunk-
|
|
33
|
+
import "../chunks/chunk-KREASK3Z.js";
|
|
29
34
|
import {
|
|
30
35
|
genesOnRow,
|
|
31
36
|
placeRowGenes
|
|
32
|
-
} from "../chunks/chunk-
|
|
33
|
-
import "../chunks/chunk-CH3DLBUT.js";
|
|
34
|
-
import "../chunks/chunk-4BYTEJGW.js";
|
|
37
|
+
} from "../chunks/chunk-UGD6ZMOF.js";
|
|
35
38
|
import "../chunks/chunk-3S3YVOJ7.js";
|
|
36
39
|
import "../chunks/chunk-BUBZ32IC.js";
|
|
37
|
-
import "../chunks/chunk-
|
|
38
|
-
import "../chunks/chunk-
|
|
40
|
+
import "../chunks/chunk-S73EYTZA.js";
|
|
41
|
+
import "../chunks/chunk-Y7UR3MDE.js";
|
|
39
42
|
import "../chunks/chunk-MH5IA57M.js";
|
|
40
43
|
import "../chunks/chunk-TQ7VCGJR.js";
|
|
41
44
|
import "../chunks/chunk-2LQ5BWT7.js";
|
|
42
45
|
import {
|
|
43
46
|
forceLayout,
|
|
44
47
|
loadGraph
|
|
45
|
-
} from "../chunks/chunk-
|
|
48
|
+
} from "../chunks/chunk-EPWYRSHH.js";
|
|
46
49
|
import "../chunks/chunk-PUG7LXDF.js";
|
|
47
50
|
import "../chunks/chunk-IGVV37VI.js";
|
|
48
51
|
import "../chunks/chunk-72N5DJHZ.js";
|
|
49
52
|
import "../chunks/chunk-QYBZZI5H.js";
|
|
50
53
|
import "../chunks/chunk-CDLPYR5O.js";
|
|
51
|
-
import "../chunks/chunk-YZ5CCEDH.js";
|
|
52
54
|
import "../chunks/chunk-VECR253P.js";
|
|
53
55
|
import "../chunks/chunk-VST5SR4C.js";
|
|
54
56
|
import "../chunks/chunk-UMNCCYBN.js";
|
|
@@ -57,7 +59,8 @@ import "../chunks/chunk-GJMC3PGM.js";
|
|
|
57
59
|
import "../chunks/chunk-FP4H7SFT.js";
|
|
58
60
|
import "../chunks/chunk-MLSWIMZO.js";
|
|
59
61
|
import "../chunks/chunk-WFB5TXRA.js";
|
|
60
|
-
import "../chunks/chunk-
|
|
62
|
+
import "../chunks/chunk-JVLURPFW.js";
|
|
63
|
+
import "../chunks/chunk-3JANT2SW.js";
|
|
61
64
|
import {
|
|
62
65
|
filterSamples,
|
|
63
66
|
walkRows
|
|
@@ -202,8 +205,16 @@ function checkLayout(layout) {
|
|
|
202
205
|
);
|
|
203
206
|
}
|
|
204
207
|
}
|
|
208
|
+
function checkEngine(engine) {
|
|
209
|
+
if (engine !== void 0 && !isLayoutEngineKind(engine)) {
|
|
210
|
+
throw new Error(
|
|
211
|
+
`no "${engine}" layout engine: one of ${LAYOUT_ENGINE_VALUES.join(", ")}`
|
|
212
|
+
);
|
|
213
|
+
}
|
|
214
|
+
}
|
|
205
215
|
async function renderSpec(spec, base) {
|
|
206
216
|
checkLayout(spec.layout);
|
|
217
|
+
checkEngine(spec.engine);
|
|
207
218
|
const resolve = (location) => isUrl(location) ? location : path.resolve(base, location);
|
|
208
219
|
let source;
|
|
209
220
|
if (spec.gbz) {
|
package/dist/figure.js
CHANGED
|
@@ -1,25 +1,24 @@
|
|
|
1
1
|
import {
|
|
2
2
|
figureSvg
|
|
3
|
-
} from "./chunks/chunk-
|
|
4
|
-
import "./chunks/chunk-47DYCZOK.js";
|
|
5
|
-
import "./chunks/chunk-MZ7QQRUJ.js";
|
|
6
|
-
import "./chunks/chunk-JFNPL4UT.js";
|
|
3
|
+
} from "./chunks/chunk-QMJ4J5PT.js";
|
|
7
4
|
import "./chunks/chunk-CH3DLBUT.js";
|
|
8
5
|
import "./chunks/chunk-4BYTEJGW.js";
|
|
6
|
+
import "./chunks/chunk-47DYCZOK.js";
|
|
7
|
+
import "./chunks/chunk-KREASK3Z.js";
|
|
8
|
+
import "./chunks/chunk-UGD6ZMOF.js";
|
|
9
9
|
import "./chunks/chunk-3S3YVOJ7.js";
|
|
10
10
|
import "./chunks/chunk-BUBZ32IC.js";
|
|
11
|
-
import "./chunks/chunk-
|
|
12
|
-
import "./chunks/chunk-
|
|
11
|
+
import "./chunks/chunk-S73EYTZA.js";
|
|
12
|
+
import "./chunks/chunk-Y7UR3MDE.js";
|
|
13
13
|
import "./chunks/chunk-MH5IA57M.js";
|
|
14
14
|
import "./chunks/chunk-TQ7VCGJR.js";
|
|
15
15
|
import "./chunks/chunk-2LQ5BWT7.js";
|
|
16
|
-
import "./chunks/chunk-
|
|
16
|
+
import "./chunks/chunk-EPWYRSHH.js";
|
|
17
17
|
import "./chunks/chunk-PUG7LXDF.js";
|
|
18
18
|
import "./chunks/chunk-IGVV37VI.js";
|
|
19
19
|
import "./chunks/chunk-72N5DJHZ.js";
|
|
20
20
|
import "./chunks/chunk-QYBZZI5H.js";
|
|
21
21
|
import "./chunks/chunk-CDLPYR5O.js";
|
|
22
|
-
import "./chunks/chunk-YZ5CCEDH.js";
|
|
23
22
|
import "./chunks/chunk-VECR253P.js";
|
|
24
23
|
import "./chunks/chunk-VST5SR4C.js";
|
|
25
24
|
import "./chunks/chunk-UMNCCYBN.js";
|
|
@@ -28,7 +27,8 @@ import "./chunks/chunk-GJMC3PGM.js";
|
|
|
28
27
|
import "./chunks/chunk-FP4H7SFT.js";
|
|
29
28
|
import "./chunks/chunk-MLSWIMZO.js";
|
|
30
29
|
import "./chunks/chunk-WFB5TXRA.js";
|
|
31
|
-
import "./chunks/chunk-
|
|
30
|
+
import "./chunks/chunk-JVLURPFW.js";
|
|
31
|
+
import "./chunks/chunk-3JANT2SW.js";
|
|
32
32
|
import "./chunks/chunk-SZNZ2T6D.js";
|
|
33
33
|
import "./chunks/chunk-E7FWQQHP.js";
|
|
34
34
|
import "./chunks/chunk-ES2N6V56.js";
|
package/dist/index.js
CHANGED
|
@@ -62,18 +62,19 @@ import {
|
|
|
62
62
|
stripBlockAt
|
|
63
63
|
} from "./chunks/chunk-EXSXBIMH.js";
|
|
64
64
|
import {
|
|
65
|
+
LAYOUT_ENGINES,
|
|
65
66
|
layoutEngine
|
|
66
|
-
} from "./chunks/chunk-
|
|
67
|
+
} from "./chunks/chunk-6EJIU6IA.js";
|
|
67
68
|
import {
|
|
68
|
-
LAYOUT_ENGINES,
|
|
69
69
|
stressLayout
|
|
70
|
-
} from "./chunks/chunk-
|
|
70
|
+
} from "./chunks/chunk-UNOE2NDN.js";
|
|
71
|
+
import "./chunks/chunk-LYJ4US66.js";
|
|
71
72
|
import {
|
|
72
73
|
FORCE_LAYOUT_LABEL,
|
|
73
74
|
LAYOUT_MODES,
|
|
74
75
|
layoutModeByValue,
|
|
75
76
|
modeUsesLayoutEngine
|
|
76
|
-
} from "./chunks/chunk-
|
|
77
|
+
} from "./chunks/chunk-JKXE6CIP.js";
|
|
77
78
|
import "./chunks/chunk-4FQTTG5F.js";
|
|
78
79
|
import "./chunks/chunk-TEDQJPMI.js";
|
|
79
80
|
import "./chunks/chunk-LOEA5IHZ.js";
|
|
@@ -87,12 +88,17 @@ import {
|
|
|
87
88
|
} from "./chunks/chunk-7XHHVYG7.js";
|
|
88
89
|
import {
|
|
89
90
|
figureSvg
|
|
90
|
-
} from "./chunks/chunk-
|
|
91
|
+
} from "./chunks/chunk-QMJ4J5PT.js";
|
|
92
|
+
import {
|
|
93
|
+
Canvas2DRenderer
|
|
94
|
+
} from "./chunks/chunk-CH3DLBUT.js";
|
|
95
|
+
import {
|
|
96
|
+
getDpr
|
|
97
|
+
} from "./chunks/chunk-4BYTEJGW.js";
|
|
91
98
|
import {
|
|
92
99
|
svgCanvas
|
|
93
100
|
} from "./chunks/chunk-47DYCZOK.js";
|
|
94
101
|
import {
|
|
95
|
-
LABELLED_ROW_PX,
|
|
96
102
|
WALK_STRIP_CEILING_PX,
|
|
97
103
|
segmentAt,
|
|
98
104
|
stripGeneGaps,
|
|
@@ -101,21 +107,26 @@ import {
|
|
|
101
107
|
walkMarksTree,
|
|
102
108
|
walkStripFrame,
|
|
103
109
|
walkStripLabelsTree
|
|
104
|
-
} from "./chunks/chunk-
|
|
110
|
+
} from "./chunks/chunk-KREASK3Z.js";
|
|
105
111
|
import {
|
|
106
112
|
BAR_PX,
|
|
113
|
+
CALL_TICK,
|
|
107
114
|
DISAGREES,
|
|
108
115
|
GAP_PX,
|
|
109
116
|
GENE_INK,
|
|
117
|
+
LABELLED_ROW_PX,
|
|
110
118
|
OFF_REFERENCE,
|
|
111
119
|
ON_REFERENCE,
|
|
112
120
|
OUTSIDE_CUT,
|
|
121
|
+
UNBACKED_TICK,
|
|
113
122
|
alongRow,
|
|
123
|
+
callTickInk,
|
|
114
124
|
coalesceRuns,
|
|
115
125
|
genesOnRow,
|
|
116
126
|
placeRowGenes,
|
|
117
127
|
readoutPlacement,
|
|
118
128
|
rowGeneBoxes,
|
|
129
|
+
rowPitch,
|
|
119
130
|
rowSpan,
|
|
120
131
|
runPaint,
|
|
121
132
|
unitTicks,
|
|
@@ -123,13 +134,7 @@ import {
|
|
|
123
134
|
walkRowsKey,
|
|
124
135
|
walkRowsKeyTree,
|
|
125
136
|
walkRowsTree
|
|
126
|
-
} from "./chunks/chunk-
|
|
127
|
-
import {
|
|
128
|
-
Canvas2DRenderer
|
|
129
|
-
} from "./chunks/chunk-CH3DLBUT.js";
|
|
130
|
-
import {
|
|
131
|
-
getDpr
|
|
132
|
-
} from "./chunks/chunk-4BYTEJGW.js";
|
|
137
|
+
} from "./chunks/chunk-UGD6ZMOF.js";
|
|
133
138
|
import {
|
|
134
139
|
EXON_COLOR,
|
|
135
140
|
exonOutlineTree,
|
|
@@ -140,7 +145,7 @@ import {
|
|
|
140
145
|
} from "./chunks/chunk-BUBZ32IC.js";
|
|
141
146
|
import {
|
|
142
147
|
version
|
|
143
|
-
} from "./chunks/chunk-
|
|
148
|
+
} from "./chunks/chunk-S73EYTZA.js";
|
|
144
149
|
import {
|
|
145
150
|
axisScaleOf,
|
|
146
151
|
contains,
|
|
@@ -148,7 +153,7 @@ import {
|
|
|
148
153
|
screenToLayout,
|
|
149
154
|
viewportOf,
|
|
150
155
|
zoomAbout
|
|
151
|
-
} from "./chunks/chunk-
|
|
156
|
+
} from "./chunks/chunk-Y7UR3MDE.js";
|
|
152
157
|
import {
|
|
153
158
|
facetLifts,
|
|
154
159
|
walkHighlight,
|
|
@@ -177,13 +182,12 @@ import {
|
|
|
177
182
|
forceLayout,
|
|
178
183
|
layoutExtent,
|
|
179
184
|
loadGraph
|
|
180
|
-
} from "./chunks/chunk-
|
|
185
|
+
} from "./chunks/chunk-EPWYRSHH.js";
|
|
181
186
|
import "./chunks/chunk-PUG7LXDF.js";
|
|
182
187
|
import "./chunks/chunk-IGVV37VI.js";
|
|
183
188
|
import "./chunks/chunk-72N5DJHZ.js";
|
|
184
189
|
import "./chunks/chunk-QYBZZI5H.js";
|
|
185
190
|
import "./chunks/chunk-CDLPYR5O.js";
|
|
186
|
-
import "./chunks/chunk-YZ5CCEDH.js";
|
|
187
191
|
import {
|
|
188
192
|
RAMP_GRADIENT_CSS,
|
|
189
193
|
rampHue,
|
|
@@ -215,9 +219,10 @@ import {
|
|
|
215
219
|
} from "./chunks/chunk-FP4H7SFT.js";
|
|
216
220
|
import "./chunks/chunk-MLSWIMZO.js";
|
|
217
221
|
import "./chunks/chunk-WFB5TXRA.js";
|
|
222
|
+
import "./chunks/chunk-JVLURPFW.js";
|
|
218
223
|
import {
|
|
219
224
|
walkRowsExtent
|
|
220
|
-
} from "./chunks/chunk-
|
|
225
|
+
} from "./chunks/chunk-3JANT2SW.js";
|
|
221
226
|
import {
|
|
222
227
|
filterSamples,
|
|
223
228
|
walkRows
|
|
@@ -322,6 +327,7 @@ export {
|
|
|
322
327
|
REFERENCE_STRIP_ZONE_PX,
|
|
323
328
|
ROW_HEIGHT_PX,
|
|
324
329
|
BAR_PX as WALK_BAR_PX,
|
|
330
|
+
CALL_TICK as WALK_CALL_TICK,
|
|
325
331
|
DISAGREES as WALK_DISAGREES,
|
|
326
332
|
WALK_FIELDS,
|
|
327
333
|
GAP_PX as WALK_GAP_PX,
|
|
@@ -331,6 +337,7 @@ export {
|
|
|
331
337
|
OUTSIDE_CUT as WALK_OUTSIDE_CUT,
|
|
332
338
|
WALK_SCHEMES,
|
|
333
339
|
WALK_STRIP_CEILING_PX,
|
|
340
|
+
UNBACKED_TICK as WALK_UNBACKED_TICK,
|
|
334
341
|
WELL_KNOWN_SAMPLES,
|
|
335
342
|
alongRow,
|
|
336
343
|
assemblyWalk,
|
|
@@ -341,6 +348,7 @@ export {
|
|
|
341
348
|
bubbleSubgraph,
|
|
342
349
|
bubblesFromGraph,
|
|
343
350
|
buildGeometry,
|
|
351
|
+
callTickInk,
|
|
344
352
|
clampZoom,
|
|
345
353
|
classifyBubble,
|
|
346
354
|
coalesceRuns,
|
|
@@ -423,6 +431,7 @@ export {
|
|
|
423
431
|
resolveEncoding,
|
|
424
432
|
resolveReferenceSample,
|
|
425
433
|
rowGeneBoxes,
|
|
434
|
+
rowPitch,
|
|
426
435
|
rowSpan,
|
|
427
436
|
rulerBoxes,
|
|
428
437
|
runPaint,
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
LAYOUT_ENGINE_VALUES,
|
|
2
|
+
chains,
|
|
4
3
|
stressLayout
|
|
5
|
-
} from "../chunks/chunk-
|
|
4
|
+
} from "../chunks/chunk-UNOE2NDN.js";
|
|
5
|
+
import "../chunks/chunk-LYJ4US66.js";
|
|
6
|
+
import "../chunks/chunk-JVLURPFW.js";
|
|
6
7
|
import "../chunks/chunk-FYQWPEEY.js";
|
|
7
8
|
export {
|
|
8
|
-
|
|
9
|
-
LAYOUT_ENGINE_VALUES,
|
|
9
|
+
chains,
|
|
10
10
|
stressLayout
|
|
11
11
|
};
|
|
@@ -1,19 +1,24 @@
|
|
|
1
1
|
import {
|
|
2
2
|
BAR_PX,
|
|
3
|
+
CALL_TICK,
|
|
3
4
|
DISAGREES,
|
|
4
5
|
GAP_PX,
|
|
5
6
|
GENE_INK,
|
|
7
|
+
LABELLED_ROW_PX,
|
|
6
8
|
OFF_REFERENCE,
|
|
7
9
|
ON_REFERENCE,
|
|
8
10
|
OUTSIDE_CUT,
|
|
11
|
+
UNBACKED_TICK,
|
|
9
12
|
alongRow,
|
|
10
13
|
boxesGenes,
|
|
14
|
+
callTickInk,
|
|
11
15
|
coalesceRuns,
|
|
12
16
|
genesOnRow,
|
|
13
17
|
kb,
|
|
14
18
|
placeRowGenes,
|
|
15
19
|
readoutPlacement,
|
|
16
20
|
rowGeneBoxes,
|
|
21
|
+
rowPitch,
|
|
17
22
|
rowSpan,
|
|
18
23
|
runPaint,
|
|
19
24
|
unitTicks,
|
|
@@ -21,7 +26,7 @@ import {
|
|
|
21
26
|
walkRowsKey,
|
|
22
27
|
walkRowsKeyTree,
|
|
23
28
|
walkRowsTree
|
|
24
|
-
} from "../chunks/chunk-
|
|
29
|
+
} from "../chunks/chunk-UGD6ZMOF.js";
|
|
25
30
|
import "../chunks/chunk-VECR253P.js";
|
|
26
31
|
import "../chunks/chunk-VST5SR4C.js";
|
|
27
32
|
import "../chunks/chunk-UMNCCYBN.js";
|
|
@@ -41,20 +46,25 @@ import "../chunks/chunk-BPLIXMH7.js";
|
|
|
41
46
|
import "../chunks/chunk-FYQWPEEY.js";
|
|
42
47
|
export {
|
|
43
48
|
BAR_PX,
|
|
49
|
+
CALL_TICK,
|
|
44
50
|
DISAGREES,
|
|
45
51
|
GAP_PX,
|
|
46
52
|
GENE_INK,
|
|
53
|
+
LABELLED_ROW_PX,
|
|
47
54
|
OFF_REFERENCE,
|
|
48
55
|
ON_REFERENCE,
|
|
49
56
|
OUTSIDE_CUT,
|
|
57
|
+
UNBACKED_TICK,
|
|
50
58
|
alongRow,
|
|
51
59
|
boxesGenes,
|
|
60
|
+
callTickInk,
|
|
52
61
|
coalesceRuns,
|
|
53
62
|
genesOnRow,
|
|
54
63
|
kb,
|
|
55
64
|
placeRowGenes,
|
|
56
65
|
readoutPlacement,
|
|
57
66
|
rowGeneBoxes,
|
|
67
|
+
rowPitch,
|
|
58
68
|
rowSpan,
|
|
59
69
|
runPaint,
|
|
60
70
|
unitTicks,
|
package/dist/layout/walkStrip.js
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import {
|
|
2
|
-
LABELLED_ROW_PX,
|
|
3
2
|
WALK_STRIP_CEILING_PX,
|
|
4
3
|
segmentAt,
|
|
5
4
|
stripGeneGaps,
|
|
@@ -8,8 +7,10 @@ import {
|
|
|
8
7
|
walkMarksTree,
|
|
9
8
|
walkStripFrame,
|
|
10
9
|
walkStripLabelsTree
|
|
11
|
-
} from "../chunks/chunk-
|
|
12
|
-
import
|
|
10
|
+
} from "../chunks/chunk-KREASK3Z.js";
|
|
11
|
+
import {
|
|
12
|
+
LABELLED_ROW_PX
|
|
13
|
+
} from "../chunks/chunk-UGD6ZMOF.js";
|
|
13
14
|
import "../chunks/chunk-VECR253P.js";
|
|
14
15
|
import "../chunks/chunk-VST5SR4C.js";
|
|
15
16
|
import "../chunks/chunk-UMNCCYBN.js";
|
package/dist/layoutEngines.js
CHANGED
|
@@ -1,9 +1,17 @@
|
|
|
1
1
|
import {
|
|
2
|
+
LAYOUT_ENGINES,
|
|
3
|
+
LAYOUT_ENGINE_VALUES,
|
|
4
|
+
isLayoutEngineKind,
|
|
2
5
|
layoutEngine
|
|
3
|
-
} from "./chunks/chunk-
|
|
4
|
-
import "./chunks/chunk-
|
|
6
|
+
} from "./chunks/chunk-6EJIU6IA.js";
|
|
7
|
+
import "./chunks/chunk-UNOE2NDN.js";
|
|
8
|
+
import "./chunks/chunk-LYJ4US66.js";
|
|
5
9
|
import "./chunks/chunk-7XHHVYG7.js";
|
|
10
|
+
import "./chunks/chunk-JVLURPFW.js";
|
|
6
11
|
import "./chunks/chunk-FYQWPEEY.js";
|
|
7
12
|
export {
|
|
13
|
+
LAYOUT_ENGINES,
|
|
14
|
+
LAYOUT_ENGINE_VALUES,
|
|
15
|
+
isLayoutEngineKind,
|
|
8
16
|
layoutEngine
|
|
9
17
|
};
|
package/dist/layoutModes.js
CHANGED
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
LAYOUT_MODE_VALUES,
|
|
5
5
|
layoutModeByValue,
|
|
6
6
|
modeUsesLayoutEngine
|
|
7
|
-
} from "./chunks/chunk-
|
|
7
|
+
} from "./chunks/chunk-JKXE6CIP.js";
|
|
8
8
|
import "./chunks/chunk-4FQTTG5F.js";
|
|
9
9
|
import "./chunks/chunk-TEDQJPMI.js";
|
|
10
10
|
import "./chunks/chunk-LOEA5IHZ.js";
|
|
@@ -13,7 +13,7 @@ import "./chunks/chunk-TZFWUT2C.js";
|
|
|
13
13
|
import "./chunks/chunk-RVS2QCOX.js";
|
|
14
14
|
import "./chunks/chunk-HNQPEMYE.js";
|
|
15
15
|
import "./chunks/chunk-C44YRP5F.js";
|
|
16
|
-
import "./chunks/chunk-
|
|
16
|
+
import "./chunks/chunk-3JANT2SW.js";
|
|
17
17
|
import "./chunks/chunk-SZNZ2T6D.js";
|
|
18
18
|
import "./chunks/chunk-E7FWQQHP.js";
|
|
19
19
|
import "./chunks/chunk-ES2N6V56.js";
|
package/dist/pipeline.js
CHANGED
|
@@ -9,13 +9,13 @@ import {
|
|
|
9
9
|
forceLayout,
|
|
10
10
|
layoutExtent,
|
|
11
11
|
loadGraph
|
|
12
|
-
} from "./chunks/chunk-
|
|
12
|
+
} from "./chunks/chunk-EPWYRSHH.js";
|
|
13
13
|
import "./chunks/chunk-PUG7LXDF.js";
|
|
14
14
|
import "./chunks/chunk-IGVV37VI.js";
|
|
15
15
|
import "./chunks/chunk-72N5DJHZ.js";
|
|
16
16
|
import "./chunks/chunk-QYBZZI5H.js";
|
|
17
17
|
import "./chunks/chunk-CDLPYR5O.js";
|
|
18
|
-
import "./chunks/chunk-
|
|
18
|
+
import "./chunks/chunk-JVLURPFW.js";
|
|
19
19
|
import "./chunks/chunk-ES2N6V56.js";
|
|
20
20
|
import "./chunks/chunk-ST2IBUAN.js";
|
|
21
21
|
import "./chunks/chunk-TAMCZHLW.js";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { BubbleSpread } from '../bubbleSpreads.js';
|
|
2
2
|
import type { FigureOptions } from '../figure.js';
|
|
3
3
|
import type { GbzSource } from '../gbzCut.js';
|
|
4
|
-
import type { LayoutEngineKind } from '../
|
|
4
|
+
import type { LayoutEngineKind } from '../layoutEngines.js';
|
|
5
5
|
import type { LayoutModeValue } from '../layoutModes.js';
|
|
6
6
|
import type { WalkLayer } from '../walkEncoding.js';
|
|
7
7
|
export interface FigureSpec extends Omit<FigureOptions, 'walks' | 'region' | 'genes' | 'spec' | 'walkStrip'> {
|
package/dist/types/figure.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { ColorScheme } from './colorSchemes.js';
|
|
2
2
|
import type { FacetInput } from './facetGrid.js';
|
|
3
3
|
import type { GeneModel } from './genes/genePins.js';
|
|
4
|
-
import type { GeneGaps, RowGene, WalkRowsWithCalls } from './layout/walkRowDraw.js';
|
|
4
|
+
import type { GeneGaps, RowGene, RowPitch, WalkRowsWithCalls } from './layout/walkRowDraw.js';
|
|
5
5
|
import type { WalkRows } from './layout/walkRows.js';
|
|
6
6
|
import type { NodeWidth } from './nodeWidths.js';
|
|
7
7
|
import type { Graph, LayoutResult } from './types.js';
|
|
@@ -30,6 +30,7 @@ export interface FigureOptions {
|
|
|
30
30
|
genes?: GeneModel[];
|
|
31
31
|
spec?: unknown;
|
|
32
32
|
walkRows?: WalkRowsWithCalls;
|
|
33
|
+
walkRowPitch?: RowPitch;
|
|
33
34
|
rowGenes?: Map<string, RowGene[]>;
|
|
34
35
|
rowGeneGaps?: GeneGaps;
|
|
35
36
|
walkStrip?: {
|
package/dist/types/index.d.ts
CHANGED
|
@@ -8,9 +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 {
|
|
12
|
-
export
|
|
13
|
-
export {
|
|
11
|
+
export { stressLayout } from './layout/stressEngine.js';
|
|
12
|
+
export { LAYOUT_ENGINES, layoutEngine } from './layoutEngines.js';
|
|
13
|
+
export type { LayoutEngineKind } from './layoutEngines.js';
|
|
14
14
|
export { REFERENCE_RAMP_MAX_HUE, buildGeometry, computeReferenceRamp, } from './renderer/GeometryBuilder.js';
|
|
15
15
|
export { Canvas2DRenderer } from './renderer/Canvas2DRenderer.js';
|
|
16
16
|
export { getDpr } from './renderer/canvas.js';
|
|
@@ -59,8 +59,8 @@ export { bubbleSubgraph } from './bubbles/popBubble.js';
|
|
|
59
59
|
export type { MinigraphBubble } from './bubbles/bubbleLine.js';
|
|
60
60
|
export { filterSamples, walkRows } from './layout/walkRows.js';
|
|
61
61
|
export type { WalkAxis, WalkRow, WalkRows, WalkRun } from './layout/walkRows.js';
|
|
62
|
-
export { BAR_PX as WALK_BAR_PX, DISAGREES as WALK_DISAGREES, GAP_PX as WALK_GAP_PX, GENE_INK as WALK_GENE_INK, OFF_REFERENCE as WALK_OFF_REFERENCE, ON_REFERENCE as WALK_ON_REFERENCE, OUTSIDE_CUT as WALK_OUTSIDE_CUT, alongRow, coalesceRuns, genesOnRow, placeRowGenes, readoutPlacement, rowGeneBoxes, rowSpan, runPaint, unitTicks, walkRowReadout, walkRowsKey, walkRowsKeyTree, walkRowsTree, } from './layout/walkRowDraw.js';
|
|
63
|
-
export type { GeneBox, GeneGaps, KeyEntry, KeySwatch, ReadoutCall, RowGene, WalkRowsFrame, WalkRowsWithCalls, } from './layout/walkRowDraw.js';
|
|
62
|
+
export { BAR_PX as WALK_BAR_PX, CALL_TICK as WALK_CALL_TICK, DISAGREES as WALK_DISAGREES, GAP_PX as WALK_GAP_PX, GENE_INK as WALK_GENE_INK, OFF_REFERENCE as WALK_OFF_REFERENCE, ON_REFERENCE as WALK_ON_REFERENCE, OUTSIDE_CUT as WALK_OUTSIDE_CUT, UNBACKED_TICK as WALK_UNBACKED_TICK, alongRow, callTickInk, coalesceRuns, genesOnRow, placeRowGenes, readoutPlacement, rowGeneBoxes, rowPitch, rowSpan, runPaint, unitTicks, walkRowReadout, walkRowsKey, walkRowsKeyTree, walkRowsTree, } from './layout/walkRowDraw.js';
|
|
63
|
+
export type { GeneBox, GeneGaps, KeyEntry, KeySwatch, ReadoutCall, RowGene, RowPitch, WalkRowsFrame, WalkRowsWithCalls, } from './layout/walkRowDraw.js';
|
|
64
64
|
export { LABELLED_ROW_PX, WALK_STRIP_CEILING_PX, segmentAt, stripGeneGaps, stripMarks, stripRowAt, walkMarksTree, walkStripFrame, walkStripLabelsTree, } from './layout/walkStrip.js';
|
|
65
65
|
export type { StripFrame, StripMark } from './layout/walkStrip.js';
|
|
66
66
|
export { el, serializeEl } from './el.js';
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import type { BandageScaleOpts } from './drawnScale.js';
|
|
2
2
|
import type { DeletionEdge } from '../deletionEdges.js';
|
|
3
3
|
import type { Graph, GraphEdge, GraphNode, NodeSegment } from '../types.js';
|
|
4
|
+
export declare const ROUTE_ID = "\0deletion:";
|
|
4
5
|
export type DeletionRoutes = Record<number, NodeSegment[]>;
|
|
5
6
|
export declare function withDeletionRoutes(graph: Graph, deletions: DeletionEdge[], dropped?: Set<number>): {
|
|
6
7
|
graph: {
|
|
@@ -1,16 +1,24 @@
|
|
|
1
1
|
import type { EngineRequest } from '../pipeline.js';
|
|
2
2
|
import type { LayoutResult } from '../types.js';
|
|
3
|
-
export
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
3
|
+
export type Side = 0 | 1;
|
|
4
|
+
export interface Chains {
|
|
5
|
+
ids: string[];
|
|
6
|
+
first: Int32Array;
|
|
7
|
+
count: Int32Array;
|
|
8
|
+
per: Float64Array;
|
|
9
|
+
links: [number, Side][][][];
|
|
10
|
+
chainOf: Int32Array;
|
|
11
|
+
indexOf: Int32Array;
|
|
12
|
+
seedX: Float64Array;
|
|
13
|
+
seedY: Float64Array;
|
|
14
|
+
backbone: Uint8Array;
|
|
15
|
+
off: Int32Array;
|
|
16
|
+
nb: Int32Array;
|
|
17
|
+
wt: Float64Array;
|
|
18
|
+
n: number;
|
|
19
|
+
link: number;
|
|
20
|
+
}
|
|
21
|
+
export declare function chains(request: EngineRequest): Chains;
|
|
14
22
|
export interface StressOptions {
|
|
15
23
|
quality?: number;
|
|
16
24
|
seed?: number;
|
|
@@ -7,6 +7,7 @@ export declare const OUTSIDE_CUT = "#bdbdbd";
|
|
|
7
7
|
export declare const GENE_INK = "#1c1c22";
|
|
8
8
|
export declare const BAR_PX = 12;
|
|
9
9
|
export declare const GAP_PX = 4;
|
|
10
|
+
export declare const LABELLED_ROW_PX = 12;
|
|
10
11
|
export declare function kb(bp: number): string;
|
|
11
12
|
export interface ReadoutCall {
|
|
12
13
|
bp: number;
|
|
@@ -109,11 +110,21 @@ export type WalkRowsWithCalls = Omit<WalkRows, 'reference' | 'rows'> & {
|
|
|
109
110
|
call?: ReadoutCall;
|
|
110
111
|
})[];
|
|
111
112
|
};
|
|
113
|
+
export declare const CALL_TICK = "#111";
|
|
114
|
+
export declare const UNBACKED_TICK = "#9e9e9e";
|
|
112
115
|
export declare const DISAGREES = "#c62828";
|
|
116
|
+
export declare function callTickInk(call: ReadoutCall): "#111" | "#9e9e9e" | "#c62828";
|
|
113
117
|
export declare function walkRowsKeyTree(entries: KeyEntry[], x: number, y: number, idPrefix?: string): {
|
|
114
118
|
width: number;
|
|
115
119
|
tree: El;
|
|
116
120
|
};
|
|
121
|
+
export interface RowPitch {
|
|
122
|
+
rowPx: number;
|
|
123
|
+
barPx: number;
|
|
124
|
+
labelled: boolean;
|
|
125
|
+
readouts: boolean;
|
|
126
|
+
}
|
|
127
|
+
export declare function rowPitch(count: number, room: number, minRowPx?: number): RowPitch;
|
|
117
128
|
export interface WalkRowsFrame {
|
|
118
129
|
scaleX: number;
|
|
119
130
|
scaleY: number;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
+
import type { RowPitch } from './walkRowDraw.js';
|
|
1
2
|
import type { WalkRows } from './walkRows.js';
|
|
2
3
|
import type { Graph, LayoutResult } from '../types.js';
|
|
3
|
-
export declare function walkRowsExtent(walks: WalkRows): {
|
|
4
|
+
export declare function walkRowsExtent(walks: WalkRows, pitch?: Pick<RowPitch, 'rowPx' | 'readouts'>): {
|
|
4
5
|
maxX: number;
|
|
5
6
|
maxY: number;
|
|
6
7
|
};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import type { GeneGaps, RowGene, WalkRowsFrame } from './walkRowDraw.js';
|
|
2
2
|
import type { WalkRow, WalkRows } from './walkRows.js';
|
|
3
3
|
import type { Graph, GraphNode } from '../types.js';
|
|
4
|
+
export { LABELLED_ROW_PX } from './walkRowDraw.js';
|
|
4
5
|
export declare const WALK_STRIP_CEILING_PX = 260;
|
|
5
|
-
export declare const LABELLED_ROW_PX = 12;
|
|
6
6
|
export interface StripMark {
|
|
7
7
|
row: string;
|
|
8
8
|
start: number;
|
|
@@ -1,2 +1,14 @@
|
|
|
1
1
|
import type { LayoutEngine } from './pipeline.js';
|
|
2
|
+
export declare const LAYOUT_ENGINES: readonly [{
|
|
3
|
+
readonly value: "fmmm";
|
|
4
|
+
readonly label: "Bandage (FMMM)";
|
|
5
|
+
readonly description: "Bandage's force-directed layout: OGDF's fast multipole multilevel method, compiled to wasm.";
|
|
6
|
+
}, {
|
|
7
|
+
readonly value: "stress";
|
|
8
|
+
readonly label: "Stress (experimental)";
|
|
9
|
+
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.";
|
|
10
|
+
}];
|
|
11
|
+
export type LayoutEngineKind = (typeof LAYOUT_ENGINES)[number]['value'];
|
|
12
|
+
export declare const LAYOUT_ENGINE_VALUES: ("fmmm" | "stress")[];
|
|
13
|
+
export declare function isLayoutEngineKind(value: unknown): value is LayoutEngineKind;
|
|
2
14
|
export declare const layoutEngine: LayoutEngine;
|
package/dist/types/pipeline.d.ts
CHANGED
|
@@ -1,7 +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 './
|
|
4
|
+
import type { LayoutEngineKind } from './layoutEngines.js';
|
|
5
5
|
import type { Graph, LayoutResult, NodeSegment } from './types.js';
|
|
6
6
|
export interface Bounds {
|
|
7
7
|
minX: number;
|
package/dist/types/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const version = "7.
|
|
1
|
+
export declare const version = "7.2.0";
|