gosling.js 0.15.0 → 0.17.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/editor/example/json-spec/basic-semantic-zoom.d.ts +3 -0
- package/dist/editor/example/json-spec/basic-semantic-zoom.d.ts.map +1 -0
- package/dist/editor/example/json-spec/cancer-variant.d.ts +5 -0
- package/dist/editor/example/json-spec/cancer-variant.d.ts.map +1 -0
- package/dist/editor/example/json-spec/circos.d.ts +5 -0
- package/dist/editor/example/json-spec/circos.d.ts.map +1 -0
- package/dist/editor/example/json-spec/circular-overview-linear-detail-views.d.ts +3 -0
- package/dist/editor/example/json-spec/circular-overview-linear-detail-views.d.ts.map +1 -0
- package/dist/editor/example/json-spec/debug.d.ts +3 -0
- package/dist/editor/example/json-spec/debug.d.ts.map +1 -0
- package/dist/editor/example/json-spec/gene-annotation.d.ts +14 -0
- package/dist/editor/example/json-spec/gene-annotation.d.ts.map +1 -0
- package/dist/editor/example/json-spec/gene-transcript.d.ts +3 -0
- package/dist/editor/example/json-spec/gene-transcript.d.ts.map +1 -0
- package/dist/editor/example/json-spec/give.d.ts +3 -0
- package/dist/editor/example/json-spec/give.d.ts.map +1 -0
- package/dist/editor/example/json-spec/gosling-data.d.ts +17 -0
- package/dist/editor/example/json-spec/gosling-data.d.ts.map +1 -0
- package/dist/editor/example/json-spec/gremlin.d.ts +3 -0
- package/dist/editor/example/json-spec/gremlin.d.ts.map +1 -0
- package/dist/editor/example/json-spec/ideograms.d.ts +4 -0
- package/dist/editor/example/json-spec/ideograms.d.ts.map +1 -0
- package/dist/editor/example/json-spec/index.d.ts +35 -0
- package/dist/editor/example/json-spec/index.d.ts.map +1 -0
- package/dist/editor/example/json-spec/layout-and-arrangement.d.ts +6 -0
- package/dist/editor/example/json-spec/layout-and-arrangement.d.ts.map +1 -0
- package/dist/editor/example/json-spec/mark-displacement.d.ts +3 -0
- package/dist/editor/example/json-spec/mark-displacement.d.ts.map +1 -0
- package/dist/editor/example/json-spec/matrix-hffc6.d.ts +3 -0
- package/dist/editor/example/json-spec/matrix-hffc6.d.ts.map +1 -0
- package/dist/editor/example/json-spec/matrix.d.ts +4 -0
- package/dist/editor/example/json-spec/matrix.d.ts.map +1 -0
- package/dist/editor/example/json-spec/mouse-event.d.ts +4 -0
- package/dist/editor/example/json-spec/mouse-event.d.ts.map +1 -0
- package/dist/editor/example/json-spec/pathogenic.d.ts +4 -0
- package/dist/editor/example/json-spec/pathogenic.d.ts.map +1 -0
- package/dist/editor/example/json-spec/perf-alignment.d.ts +3 -0
- package/dist/editor/example/json-spec/perf-alignment.d.ts.map +1 -0
- package/dist/editor/example/json-spec/pileup.d.ts +4 -0
- package/dist/editor/example/json-spec/pileup.d.ts.map +1 -0
- package/dist/editor/example/json-spec/responsive-alignment.d.ts +24 -0
- package/dist/editor/example/json-spec/responsive-alignment.d.ts.map +1 -0
- package/dist/editor/example/json-spec/responsive-track-wise-comparison.d.ts +4 -0
- package/dist/editor/example/json-spec/responsive-track-wise-comparison.d.ts.map +1 -0
- package/dist/editor/example/json-spec/responsive.d.ts +7 -0
- package/dist/editor/example/json-spec/responsive.d.ts.map +1 -0
- package/dist/editor/example/json-spec/sars-cov-2.d.ts +4 -0
- package/dist/editor/example/json-spec/sars-cov-2.d.ts.map +1 -0
- package/dist/editor/example/json-spec/semantic-zoom.d.ts +9 -0
- package/dist/editor/example/json-spec/semantic-zoom.d.ts.map +1 -0
- package/dist/editor/example/json-spec/track-template.d.ts +3 -0
- package/dist/editor/example/json-spec/track-template.d.ts.map +1 -0
- package/dist/editor/example/json-spec/visual-linking.d.ts +3 -0
- package/dist/editor/example/json-spec/visual-linking.d.ts.map +1 -0
- package/dist/editor/example/spec/visual-encoding.d.ts +5 -0
- package/dist/editor/example/spec/visual-encoding.d.ts.map +1 -0
- package/dist/{exported-utils-d4f1abea.js → exported-utils-c7f92c46.js} +27 -13
- package/dist/exported-utils-c7f92c46.js.map +1 -0
- package/dist/gosling.js +92 -32
- package/dist/gosling.js.map +1 -1
- package/dist/src/compiler/higlass-model.d.ts.map +1 -1
- package/dist/src/core/gosling-component.test.d.ts +2 -0
- package/dist/src/core/gosling-component.test.d.ts.map +1 -0
- package/dist/src/core/mark/bar.d.ts.map +1 -1
- package/dist/src/core/utils/assembly.d.ts +6 -1
- package/dist/src/core/utils/assembly.d.ts.map +1 -1
- package/dist/src/tracks/gosling-track/gosling-track.d.ts.map +1 -1
- package/dist/utils.js +1 -1
- package/package.json +4 -4
- package/dist/exported-utils-d4f1abea.js.map +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"basic-semantic-zoom.d.ts","sourceRoot":"","sources":["../../../../editor/example/json-spec/basic-semantic-zoom.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,YAAY,CAAC;AAG9C,eAAO,MAAM,2BAA2B,EAAE,WAwHzC,CAAC"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import type { GoslingSpec } from 'gosling.js';
|
|
2
|
+
export declare const EX_SPEC_CANCER_VARIANT_PROTOTYPE: GoslingSpec;
|
|
3
|
+
export declare function view(sample: string): GoslingSpec;
|
|
4
|
+
export declare const EX_SPEC_CANCER_VARIANT: GoslingSpec;
|
|
5
|
+
//# sourceMappingURL=cancer-variant.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"cancer-variant.d.ts","sourceRoot":"","sources":["../../../../editor/example/json-spec/cancer-variant.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,YAAY,CAAC;AAG9C,eAAO,MAAM,gCAAgC,EAAE,WAsjB9C,CAAC;AAEF,wBAAgB,IAAI,CAAC,MAAM,EAAE,MAAM,GAAG,WAAW,CA+GhD;AAED,eAAO,MAAM,sBAAsB,EAAE,WAiBpC,CAAC"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import type { GoslingSpec } from '@gosling-lang/gosling-schema';
|
|
2
|
+
export declare const EX_SPEC_CIRCULR_RANGE: GoslingSpec;
|
|
3
|
+
export declare const EX_SPEC_CIRCOS: GoslingSpec;
|
|
4
|
+
export declare const EX_SPEC_CIRCOS_BETWEEN_LINK: GoslingSpec;
|
|
5
|
+
//# sourceMappingURL=circos.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"circos.d.ts","sourceRoot":"","sources":["../../../../editor/example/json-spec/circos.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,8BAA8B,CAAC;AAGhE,eAAO,MAAM,qBAAqB,EAAE,WAwBnC,CAAC;AAEF,eAAO,MAAM,cAAc,EAAE,WA2H5B,CAAC;AAEF,eAAO,MAAM,2BAA2B,EAAE,WAgHzC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"circular-overview-linear-detail-views.d.ts","sourceRoot":"","sources":["../../../../editor/example/json-spec/circular-overview-linear-detail-views.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,YAAY,CAAC;AAG9C,eAAO,MAAM,uCAAuC,EAAE,WA4KrD,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"debug.d.ts","sourceRoot":"","sources":["../../../../editor/example/json-spec/debug.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,YAAY,CAAC;AAE9C,eAAO,MAAM,aAAa,EAAE,WAsTvB,CAAC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type { GoslingSpec, OverlaidTracks } from '@gosling-lang/gosling-schema';
|
|
2
|
+
export declare const HiGlass: OverlaidTracks;
|
|
3
|
+
export declare const EX_TRACK_GENE_ANNOTATION: {
|
|
4
|
+
higlass: OverlaidTracks;
|
|
5
|
+
igv: OverlaidTracks;
|
|
6
|
+
cyverse: OverlaidTracks;
|
|
7
|
+
gmgdb: OverlaidTracks;
|
|
8
|
+
give: OverlaidTracks;
|
|
9
|
+
corces: OverlaidTracks;
|
|
10
|
+
g6: OverlaidTracks;
|
|
11
|
+
g7: OverlaidTracks;
|
|
12
|
+
};
|
|
13
|
+
export declare const EX_SPEC_GENE_ANNOTATION: GoslingSpec;
|
|
14
|
+
//# sourceMappingURL=gene-annotation.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"gene-annotation.d.ts","sourceRoot":"","sources":["../../../../editor/example/json-spec/gene-annotation.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAY,WAAW,EAAE,cAAc,EAAE,MAAM,8BAA8B,CAAC;AAuB1F,eAAO,MAAM,OAAO,EAAE,cAkHrB,CAAC;AA0kBF,eAAO,MAAM,wBAAwB;;;;;;;;;CASpC,CAAC;AAEF,eAAO,MAAM,uBAAuB,EAAE,WAcrC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"gene-transcript.d.ts","sourceRoot":"","sources":["../../../../editor/example/json-spec/gene-transcript.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,YAAY,CAAC;AAG9C,eAAO,MAAM,uBAAuB,EAAE,WAmMrC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"give.d.ts","sourceRoot":"","sources":["../../../../editor/example/json-spec/give.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,YAAY,CAAC;AAE9C,eAAO,MAAM,YAAY,EAAE,WAsb1B,CAAC"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
export declare const GOSLING_PUBLIC_DATA: {
|
|
2
|
+
multivec: string;
|
|
3
|
+
epilogos: string;
|
|
4
|
+
fasta: string;
|
|
5
|
+
geneAnnotation: string;
|
|
6
|
+
clinvar: string;
|
|
7
|
+
clinvardensity: string;
|
|
8
|
+
region: string;
|
|
9
|
+
region2: string;
|
|
10
|
+
matrix: string;
|
|
11
|
+
matrixMicroC: string;
|
|
12
|
+
matrixHiC: string;
|
|
13
|
+
higlassHiC: string;
|
|
14
|
+
interaction: string;
|
|
15
|
+
transcript: string;
|
|
16
|
+
};
|
|
17
|
+
//# sourceMappingURL=gosling-data.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"gosling-data.d.ts","sourceRoot":"","sources":["../../../../editor/example/json-spec/gosling-data.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;CAe/B,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"gremlin.d.ts","sourceRoot":"","sources":["../../../../editor/example/json-spec/gremlin.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,YAAY,CAAC;AAE9C,eAAO,MAAM,eAAe,EAAE,WAwR7B,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ideograms.d.ts","sourceRoot":"","sources":["../../../../editor/example/json-spec/ideograms.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,cAAc,EAAS,MAAM,8BAA8B,CAAC;AAGvF,eAAO,MAAM,SAAS,EAAE,cAwDvB,CAAC;AAsBF,eAAO,MAAM,iBAAiB,EAAE,WA0C/B,CAAC"}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
export declare const JsonExampleSpecs: {
|
|
2
|
+
EX_SPEC_LAYOUT_AND_ARRANGEMENT_1: import("../../../src").GoslingSpec;
|
|
3
|
+
EX_SPEC_LAYOUT_AND_ARRANGEMENT_2: import("../../../src").GoslingSpec;
|
|
4
|
+
EX_SPEC_MATRIX: import("../../../src").GoslingSpec;
|
|
5
|
+
EX_SPEC_RESPONSIVE_COMPARATIVE_MATRICES: import("../../../src").GoslingSpec;
|
|
6
|
+
EX_SPEC_CANCER_VARIANT_PROTOTYPE: import("../../../src").GoslingSpec;
|
|
7
|
+
EX_SPEC_MATRIX_HFFC6: import("../../../src").GoslingSpec;
|
|
8
|
+
EX_SPEC_LINKING: import("../../../src").GoslingSpec;
|
|
9
|
+
EX_SPEC_BASIC_SEMANTIC_ZOOM: import("../../../src").GoslingSpec;
|
|
10
|
+
EX_SPEC_RESPONSIVE_COMPARATIVE_VIEWS: import("../../../src").GoslingSpec;
|
|
11
|
+
EX_SPEC_RESPONSIVE_IDEOGRAM: import("../../../src").GoslingSpec;
|
|
12
|
+
EX_SPEC_RESPONSIVE_MULTIVEC: import("../../../src").GoslingSpec;
|
|
13
|
+
EX_SPEC_RESPONSIVE_MULTIVEC_CIRCULAR: import("../../../src").GoslingSpec;
|
|
14
|
+
EX_SPEC_RESPONSIVE_TRACK_WISE_COMPARISON: import("../../../src").GoslingSpec;
|
|
15
|
+
EX_SPEC_ALIGNMENT_CHART: import("../../../src").GoslingSpec;
|
|
16
|
+
EX_SPEC_RESPONSIVE_ALIGNMENT_CHART: import("../../../src").GoslingSpec;
|
|
17
|
+
EX_SPEC_PERF_ALIGNMENT: import("../../../src").GoslingSpec;
|
|
18
|
+
EX_SPEC_MARK_DISPLACEMENT: import("../../../src").GoslingSpec;
|
|
19
|
+
EX_SPEC_CIRCULAR_OVERVIEW_LINEAR_DETAIL: import("../../../src").GoslingSpec;
|
|
20
|
+
EX_SPEC_SARS_COV_2: import("../../../src").GoslingSpec;
|
|
21
|
+
EX_SPEC_CIRCOS: import("../../../src").GoslingSpec;
|
|
22
|
+
EX_SPEC_CIRCOS_BETWEEN_LINK: import("../../../src").GoslingSpec;
|
|
23
|
+
EX_SPEC_CIRCULR_RANGE: import("../../../src").GoslingSpec;
|
|
24
|
+
EX_SPEC_GREMLIN: import("../../../src").GoslingSpec;
|
|
25
|
+
EX_SPEC_GENE_ANNOTATION: import("../../../src").GoslingSpec;
|
|
26
|
+
EX_SPEC_CLINVAR_LOLLIPOP: import("../../../src").GoslingSpec;
|
|
27
|
+
EX_SPEC_SEQUENCE_TRACK: import("../../../src").GoslingSpec;
|
|
28
|
+
EX_SPEC_GIVE: import("../../../src").GoslingSpec;
|
|
29
|
+
EX_SPEC_CYTOBANDS: import("../../../src").GoslingSpec;
|
|
30
|
+
EX_SPEC_PILEUP: import("../../../src").GoslingSpec;
|
|
31
|
+
EX_SPEC_TEMPLATE: import("../../../src").GoslingSpec;
|
|
32
|
+
EX_SPEC_MOUSE_EVENT: import("../../../src").GoslingSpec;
|
|
33
|
+
EX_SPEC_DEBUG: import("../../../src").GoslingSpec;
|
|
34
|
+
};
|
|
35
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../editor/example/json-spec/index.ts"],"names":[],"mappings":"AA6BA,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAiC5B,CAAC"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { GoslingSpec } from 'gosling.js';
|
|
2
|
+
import type { SingleView } from '@gosling-lang/gosling-schema';
|
|
3
|
+
export declare const getSingleView: (color: string, width: number, height: number, numHSpacing: number, numVSpacing: number) => SingleView;
|
|
4
|
+
export declare const EX_SPEC_LAYOUT_AND_ARRANGEMENT_1: GoslingSpec;
|
|
5
|
+
export declare const EX_SPEC_LAYOUT_AND_ARRANGEMENT_2: GoslingSpec;
|
|
6
|
+
//# sourceMappingURL=layout-and-arrangement.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"layout-and-arrangement.d.ts","sourceRoot":"","sources":["../../../../editor/example/json-spec/layout-and-arrangement.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,YAAY,CAAC;AAC9C,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,8BAA8B,CAAC;AAU/D,eAAO,MAAM,aAAa,EAAE,CACxB,KAAK,EAAE,MAAM,EACb,KAAK,EAAE,MAAM,EACb,MAAM,EAAE,MAAM,EACd,WAAW,EAAE,MAAM,EACnB,WAAW,EAAE,MAAM,KAClB,UAsBJ,CAAC;AAEF,eAAO,MAAM,gCAAgC,EAAE,WAuB9C,CAAC;AAEF,eAAO,MAAM,gCAAgC,EAAE,WAqC9C,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"mark-displacement.d.ts","sourceRoot":"","sources":["../../../../editor/example/json-spec/mark-displacement.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,YAAY,CAAC;AAI9C,eAAO,MAAM,yBAAyB,EAAE,WAodvC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"matrix-hffc6.d.ts","sourceRoot":"","sources":["../../../../editor/example/json-spec/matrix-hffc6.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,YAAY,CAAC;AAG9C,eAAO,MAAM,oBAAoB,EAAE,WA+mBlC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"matrix.d.ts","sourceRoot":"","sources":["../../../../editor/example/json-spec/matrix.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,YAAY,CAAC;AAgB9C,eAAO,MAAM,cAAc,EAAE,WA2G5B,CAAC;AAgCF,eAAO,MAAM,uCAAuC,EAAE,WAmKrD,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"mouse-event.d.ts","sourceRoot":"","sources":["../../../../editor/example/json-spec/mouse-event.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,WAAW,EAAE,MAAM,8BAA8B,CAAC;AAI7E,eAAO,MAAM,GAAG,EAAE,WA6BjB,CAAC;AAEF,eAAO,MAAM,mBAAmB,EAAE,WA+LjC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pathogenic.d.ts","sourceRoot":"","sources":["../../../../editor/example/json-spec/pathogenic.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,YAAY,CAAC;AAI9C,eAAO,MAAM,UAAU,UAQtB,CAAC;AAEF,eAAO,MAAM,kBAAkB,EAAE,WAmJhC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"perf-alignment.d.ts","sourceRoot":"","sources":["../../../../editor/example/json-spec/perf-alignment.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,8BAA8B,CAAC;AAIhE,eAAO,MAAM,sBAAsB,EAAE,WAyBpC,CAAC"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import type { Domain, GoslingSpec, View } from '@gosling-lang/gosling-schema';
|
|
2
|
+
export declare function EX_SPEC_VIEW_PILEUP(id: string, width: number, height: number, xDomain: Exclude<Domain, string[] | number[]>): View;
|
|
3
|
+
export declare const EX_SPEC_PILEUP: GoslingSpec;
|
|
4
|
+
//# sourceMappingURL=pileup.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pileup.d.ts","sourceRoot":"","sources":["../../../../editor/example/json-spec/pileup.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,WAAW,EAAE,IAAI,EAAE,MAAM,8BAA8B,CAAC;AAE9E,wBAAgB,mBAAmB,CAC/B,EAAE,EAAE,MAAM,EACV,KAAK,EAAE,MAAM,EACb,MAAM,EAAE,MAAM,EACd,OAAO,EAAE,OAAO,CAAC,MAAM,EAAE,MAAM,EAAE,GAAG,MAAM,EAAE,CAAC,GAC9C,IAAI,CA8IN;AAED,eAAO,MAAM,cAAc,EAAE,WAI5B,CAAC"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import type { OverlaidTracks, SingleTrack } from '@gosling-lang/gosling-schema';
|
|
2
|
+
import type { GoslingSpec } from 'gosling.js';
|
|
3
|
+
type GapBarProp = {
|
|
4
|
+
title: boolean;
|
|
5
|
+
width: number;
|
|
6
|
+
height: number;
|
|
7
|
+
yAxis: boolean;
|
|
8
|
+
};
|
|
9
|
+
export declare const gapBar: (prop: GapBarProp) => SingleTrack;
|
|
10
|
+
type ConservationBarProp = GapBarProp;
|
|
11
|
+
export declare const conservationBar: (prop: ConservationBarProp) => SingleTrack;
|
|
12
|
+
type AlignmentProp = {
|
|
13
|
+
width: number;
|
|
14
|
+
height: number;
|
|
15
|
+
xAxis: boolean;
|
|
16
|
+
rowLegend: boolean;
|
|
17
|
+
colorLegend: boolean;
|
|
18
|
+
};
|
|
19
|
+
export declare const alignmentWithText: (prop: AlignmentProp) => OverlaidTracks;
|
|
20
|
+
export declare const alignmentWithoutText: (prop: AlignmentProp) => SingleTrack;
|
|
21
|
+
export declare const EX_SPEC_ALIGNMENT_CHART: GoslingSpec;
|
|
22
|
+
export declare const EX_SPEC_RESPONSIVE_ALIGNMENT_CHART: GoslingSpec;
|
|
23
|
+
export {};
|
|
24
|
+
//# sourceMappingURL=responsive-alignment.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"responsive-alignment.d.ts","sourceRoot":"","sources":["../../../../editor/example/json-spec/responsive-alignment.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,WAAW,EAAc,MAAM,8BAA8B,CAAC;AAC5F,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,YAAY,CAAC;AAG9C,KAAK,UAAU,GAAG;IACd,KAAK,EAAE,OAAO,CAAC;IACf,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;IACf,KAAK,EAAE,OAAO,CAAC;CAClB,CAAC;AACF,eAAO,MAAM,MAAM,EAAE,CAAC,IAAI,EAAE,UAAU,KAAK,WAmB1C,CAAC;AAEF,KAAK,mBAAmB,GAAG,UAAU,CAAC;AACtC,eAAO,MAAM,eAAe,EAAE,CAAC,IAAI,EAAE,mBAAmB,KAAK,WAmB5D,CAAC;AAEF,KAAK,aAAa,GAAG;IACjB,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;IACf,KAAK,EAAE,OAAO,CAAC;IACf,SAAS,EAAE,OAAO,CAAC;IACnB,WAAW,EAAE,OAAO,CAAC;CACxB,CAAC;AACF,eAAO,MAAM,iBAAiB,EAAE,CAAC,IAAI,EAAE,aAAa,KAAK,cA4CxD,CAAC;AAEF,eAAO,MAAM,oBAAoB,EAAE,CAAC,IAAI,EAAE,aAAa,KAAK,WAuB3D,CAAC;AAEF,eAAO,MAAM,uBAAuB,EAAE,WAsCrC,CAAC;AAoCF,eAAO,MAAM,kCAAkC,EAAE,WAyBhD,CAAC"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import type { GoslingSpec, TemplateTrack } from '@gosling-lang/gosling-schema';
|
|
2
|
+
export declare const gene: (type: 1 | 2, compact?: boolean) => TemplateTrack;
|
|
3
|
+
export declare const EX_SPEC_RESPONSIVE_TRACK_WISE_COMPARISON: GoslingSpec;
|
|
4
|
+
//# sourceMappingURL=responsive-track-wise-comparison.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"responsive-track-wise-comparison.d.ts","sourceRoot":"","sources":["../../../../editor/example/json-spec/responsive-track-wise-comparison.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAER,WAAW,EAGX,aAAa,EAChB,MAAM,8BAA8B,CAAC;AA2EtC,eAAO,MAAM,IAAI,EAAE,CAAC,IAAI,EAAE,CAAC,GAAG,CAAC,EAAE,OAAO,CAAC,EAAE,OAAO,KAAK,aAuCtD,CAAC;AA6IF,eAAO,MAAM,wCAAwC,EAAE,WAmCtD,CAAC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { GoslingSpec } from '@gosling-lang/gosling-schema';
|
|
2
|
+
export declare const EX_SPEC_RESPONSIVE_SEGREGATED_AREA_CHART: GoslingSpec;
|
|
3
|
+
export declare const EX_SPEC_RESPONSIVE_MULTIVEC: GoslingSpec;
|
|
4
|
+
export declare const EX_SPEC_RESPONSIVE_MULTIVEC_CIRCULAR: GoslingSpec;
|
|
5
|
+
export declare const EX_SPEC_RESPONSIVE_IDEOGRAM: GoslingSpec;
|
|
6
|
+
export declare const EX_SPEC_RESPONSIVE_COMPARATIVE_VIEWS: GoslingSpec;
|
|
7
|
+
//# sourceMappingURL=responsive.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"responsive.d.ts","sourceRoot":"","sources":["../../../../editor/example/json-spec/responsive.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,8BAA8B,CAAC;AAEhE,eAAO,MAAM,wCAAwC,EAAE,WAwEtD,CAAC;AAGF,eAAO,MAAM,2BAA2B,EAAE,WA6LzC,CAAC;AACF,eAAO,MAAM,oCAAoC,EAAE,WAiKlD,CAAC;AAGF,eAAO,MAAM,2BAA2B,EAAE,WAgZzC,CAAC;AAEF,eAAO,MAAM,oCAAoC,EAAE,WAgGlD,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sars-cov-2.d.ts","sourceRoot":"","sources":["../../../../editor/example/json-spec/sars-cov-2.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAgB,cAAc,EAAE,MAAM,8BAA8B,CAAC;AAG9F,eAAO,MAAM,yBAAyB,EAAE,cA4CvC,CAAC;AAEF,eAAO,MAAM,kBAAkB,EAAE,WAgJhC,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { GoslingSpec, OverlaidTracks } from '@gosling-lang/gosling-schema';
|
|
2
|
+
export declare const EX_TRACK_SEMANTIC_ZOOM: {
|
|
3
|
+
sequence: OverlaidTracks;
|
|
4
|
+
cytoband: OverlaidTracks;
|
|
5
|
+
};
|
|
6
|
+
export declare const EX_SPEC_SEMANTIC_ZOOM: GoslingSpec;
|
|
7
|
+
export declare const EX_SPEC_SEQUENCE_TRACK: GoslingSpec;
|
|
8
|
+
export declare const EX_SPEC_CLINVAR_LOLLIPOP: GoslingSpec;
|
|
9
|
+
//# sourceMappingURL=semantic-zoom.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"semantic-zoom.d.ts","sourceRoot":"","sources":["../../../../editor/example/json-spec/semantic-zoom.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,cAAc,EAAE,MAAM,8BAA8B,CAAC;AA4MhF,eAAO,MAAM,sBAAsB;;;CAGlC,CAAC;AAEF,eAAO,MAAM,qBAAqB,EAAE,WA6BnC,CAAC;AAEF,eAAO,MAAM,sBAAsB,EAAE,WAWpC,CAAC;AAEF,eAAO,MAAM,wBAAwB,EAAE,WAgBtC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"track-template.d.ts","sourceRoot":"","sources":["../../../../editor/example/json-spec/track-template.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,YAAY,CAAC;AAG9C,eAAO,MAAM,gBAAgB,EAAE,WAyH9B,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"visual-linking.d.ts","sourceRoot":"","sources":["../../../../editor/example/json-spec/visual-linking.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,8BAA8B,CAAC;AAGhE,eAAO,MAAM,eAAe,EAAE,WAiG7B,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"visual-encoding.d.ts","sourceRoot":"","sources":["../../../../editor/example/spec/visual-encoding.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAA+B,MAAM,8BAA8B,CAAC;AAiO7F,sDAAsD;AAEtD,QAAA,MAAM,IAAI,EAAE,WAQX,CAAC;AAEF,OAAO,EAAE,IAAI,EAAE,CAAC"}
|
|
@@ -243,6 +243,7 @@ function drawBar(track, tile, model) {
|
|
|
243
243
|
}
|
|
244
244
|
const pivotedData = group(data2, (d) => d[genomicChannel.field]);
|
|
245
245
|
const xKeys = [...pivotedData.keys()];
|
|
246
|
+
const isFlippedY = IsChannelDeep(spec.y) && spec.y.flip || spec.flipY;
|
|
246
247
|
xKeys.forEach((k) => {
|
|
247
248
|
var _a2;
|
|
248
249
|
let prevYEnd = 0;
|
|
@@ -257,7 +258,7 @@ function drawBar(track, tile, model) {
|
|
|
257
258
|
const xe = xs + barWidth;
|
|
258
259
|
const alphaTransition = model.markVisibility(d, { width: barWidth, zoomLevel });
|
|
259
260
|
const actualOpacity = Math.min(alphaTransition, opacity);
|
|
260
|
-
if (actualOpacity === 0 || barWidth <= 0 || y <= 0) {
|
|
261
|
+
if (actualOpacity === 0 || barWidth <= 0 || isFlippedY && y - rowHeight >= 0 || !isFlippedY && y <= 0) {
|
|
261
262
|
return;
|
|
262
263
|
}
|
|
263
264
|
g.lineStyle(
|
|
@@ -268,9 +269,12 @@ function drawBar(track, tile, model) {
|
|
|
268
269
|
// alignment of the line to draw, (0 = inner, 0.5 = middle, 1 = outter)
|
|
269
270
|
);
|
|
270
271
|
let polygonForMouseEvents = [];
|
|
272
|
+
const barHeight = isFlippedY ? rowHeight - y : y;
|
|
271
273
|
if (circular) {
|
|
272
|
-
const
|
|
273
|
-
const
|
|
274
|
+
const ys = isFlippedY ? prevYEnd : rowHeight - prevYEnd;
|
|
275
|
+
const farR = trackOuterRadius - ys / trackHeight * trackRingSize;
|
|
276
|
+
const ye = isFlippedY ? barHeight + prevYEnd : rowHeight - y - prevYEnd;
|
|
277
|
+
const nearR = trackOuterRadius - ye / trackHeight * trackRingSize;
|
|
274
278
|
const sPos = cartesianToPolar(xs, trackWidth, nearR, cx, cy, startAngle, endAngle);
|
|
275
279
|
const startRad = valueToRadian(xs, trackWidth, startAngle, endAngle);
|
|
276
280
|
const endRad = valueToRadian(xs + barWidth, trackWidth, startAngle, endAngle);
|
|
@@ -282,13 +286,13 @@ function drawBar(track, tile, model) {
|
|
|
282
286
|
g.closePath();
|
|
283
287
|
} else {
|
|
284
288
|
g.beginFill(colorToHex(color2), color2 === "none" ? 0 : actualOpacity);
|
|
285
|
-
|
|
286
|
-
|
|
289
|
+
const ys = isFlippedY ? prevYEnd : rowHeight - y - prevYEnd;
|
|
290
|
+
g.drawRect(xs, ys, barWidth, barHeight);
|
|
287
291
|
const ye = ys + y;
|
|
288
292
|
polygonForMouseEvents = [xs, ys, xs, ye, xe, ye, xe, ys];
|
|
289
293
|
}
|
|
290
294
|
model.getMouseEventModel().addPolygonBasedEvent(d, polygonForMouseEvents);
|
|
291
|
-
prevYEnd +=
|
|
295
|
+
prevYEnd += barHeight;
|
|
292
296
|
});
|
|
293
297
|
});
|
|
294
298
|
} else {
|
|
@@ -9835,17 +9839,27 @@ const CRHOM_SIZES = Object.freeze({
|
|
|
9835
9839
|
// just to ensure this does not make crash
|
|
9836
9840
|
}
|
|
9837
9841
|
});
|
|
9838
|
-
function
|
|
9842
|
+
function getAutoCompleteObject(assembly = "hg38") {
|
|
9843
|
+
const base = {
|
|
9844
|
+
autocompleteServer: "https://server.gosling-lang.org/api/v1",
|
|
9845
|
+
chromInfoServer: "https://server.gosling-lang.org/api/v1",
|
|
9846
|
+
chromInfoId: assembly
|
|
9847
|
+
};
|
|
9839
9848
|
switch (assembly) {
|
|
9840
9849
|
case "hg19":
|
|
9841
|
-
return "
|
|
9850
|
+
return { ...base, autocompleteId: "gene-annotation-hg19" };
|
|
9842
9851
|
case "mm10":
|
|
9843
|
-
return "
|
|
9852
|
+
return { ...base, autocompleteId: "gene-annotation-mm10" };
|
|
9844
9853
|
case "mm9":
|
|
9845
|
-
return
|
|
9854
|
+
return {
|
|
9855
|
+
...base,
|
|
9856
|
+
autocompleteServer: "https://higlass.io/api/v1",
|
|
9857
|
+
chromInfoServer: "https://higlass.io/api/v1",
|
|
9858
|
+
autocompleteId: "GUm5aBiLRCyz2PsBea7Yzg"
|
|
9859
|
+
};
|
|
9846
9860
|
case "hg38":
|
|
9847
9861
|
default:
|
|
9848
|
-
return "
|
|
9862
|
+
return { ...base, autocompleteId: "gene-annotation" };
|
|
9849
9863
|
}
|
|
9850
9864
|
}
|
|
9851
9865
|
function getChromInterval(chromSize) {
|
|
@@ -10036,8 +10050,8 @@ export {
|
|
|
10036
10050
|
uuid as u,
|
|
10037
10051
|
valueToRadian as v,
|
|
10038
10052
|
insertItemToArray as w,
|
|
10039
|
-
|
|
10053
|
+
getAutoCompleteObject as x,
|
|
10040
10054
|
IsChannelValue as y,
|
|
10041
10055
|
getValueUsingChannel as z
|
|
10042
10056
|
};
|
|
10043
|
-
//# sourceMappingURL=exported-utils-
|
|
10057
|
+
//# sourceMappingURL=exported-utils-c7f92c46.js.map
|