gosling.js 1.0.0 → 1.0.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/exported-utils-ce57b459.js +23783 -0
- package/dist/exported-utils-ce57b459.js.map +1 -0
- package/dist/gosling.js +9669 -23475
- package/dist/gosling.js.map +1 -1
- package/dist/src/compiler/compile.d.ts +4 -1
- package/dist/src/compiler/compile.d.ts.map +1 -1
- package/dist/src/exported-utils.d.ts +1 -0
- package/dist/src/exported-utils.d.ts.map +1 -1
- package/dist/utils.js +8 -7
- package/package.json +2 -2
- package/dist/exported-utils-51b5f19f.js +0 -9970
- package/dist/exported-utils-51b5f19f.js.map +0 -1
|
@@ -6,7 +6,10 @@ import type { UrlToFetchOptions } from 'src/core/gosling-component';
|
|
|
6
6
|
import type { IdTable } from '../api/track-and-view-ids';
|
|
7
7
|
/** The callback function called everytime after the spec has been compiled */
|
|
8
8
|
export type CompileCallback = (hg: HiGlassSpec, size: Size, gs: GoslingSpec, tracksAndViews: VisUnitApiData[], idTable: IdTable) => void;
|
|
9
|
-
|
|
9
|
+
/**
|
|
10
|
+
* Process the Gosling specification, including normalization and filling in defaults.
|
|
11
|
+
*/
|
|
12
|
+
export declare function compile(spec: GoslingSpec, callback: CompileCallback, templates?: TemplateTrackDef[], theme?: Required<CompleteThemeDeep>, containerStatus?: {
|
|
10
13
|
containerSize?: {
|
|
11
14
|
width: number;
|
|
12
15
|
height: number;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"compile.d.ts","sourceRoot":"","sources":["../../../src/compiler/compile.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,gBAAgB,EAAE,cAAc,EAAE,MAAM,8BAA8B,CAAC;AAClG,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,8BAA8B,CAAC;AAGhE,OAAO,EAAwB,KAAK,IAAI,EAAE,MAAM,gBAAgB,CAAC;AACjE,OAAO,KAAK,EAA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@ -2,4 +2,5 @@ export { getRelativeGenomicPosition, computeChromSizes, getChromInterval, getChr
|
|
|
2
2
|
export { sanitizeChrName } from './data-fetchers/utils';
|
|
3
3
|
export { convertToFlatTracks as _convertToFlatTracks } from './compiler/spec-preprocess';
|
|
4
4
|
export { spreadTracksByData as _spreadTracksByData } from './core/utils/overlay';
|
|
5
|
+
export { compile as _compile } from './compiler/compile';
|
|
5
6
|
//# sourceMappingURL=exported-utils.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"exported-utils.d.ts","sourceRoot":"","sources":["../../src/exported-utils.ts"],"names":[],"mappings":"AAAA,OAAO,EACH,0BAA0B,EAC1B,iBAAiB,EACjB,gBAAgB,EAChB,iBAAiB,EACjB,oBAAoB,EACvB,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAC;AAGxD,OAAO,EAAE,mBAAmB,IAAI,oBAAoB,EAAE,MAAM,4BAA4B,CAAC;AACzF,OAAO,EAAE,kBAAkB,IAAI,mBAAmB,EAAE,MAAM,sBAAsB,CAAC"}
|
|
1
|
+
{"version":3,"file":"exported-utils.d.ts","sourceRoot":"","sources":["../../src/exported-utils.ts"],"names":[],"mappings":"AAAA,OAAO,EACH,0BAA0B,EAC1B,iBAAiB,EACjB,gBAAgB,EAChB,iBAAiB,EACjB,oBAAoB,EACvB,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAC;AAGxD,OAAO,EAAE,mBAAmB,IAAI,oBAAoB,EAAE,MAAM,4BAA4B,CAAC;AACzF,OAAO,EAAE,kBAAkB,IAAI,mBAAmB,EAAE,MAAM,sBAAsB,CAAC;AACjF,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,MAAM,oBAAoB,CAAC"}
|
package/dist/utils.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { _, a5, a6, c, a2, a3, M, a4, s } from "./exported-utils-ce57b459.js";
|
|
2
2
|
import "d3-array";
|
|
3
3
|
import "generic-filehandle";
|
|
4
4
|
import "pixi.js";
|
|
@@ -8,13 +8,14 @@ import "d3-scale";
|
|
|
8
8
|
import "lodash-es";
|
|
9
9
|
import "d3-scale-chromatic";
|
|
10
10
|
export {
|
|
11
|
-
|
|
12
|
-
|
|
11
|
+
_ as _compile,
|
|
12
|
+
a5 as _convertToFlatTracks,
|
|
13
|
+
a6 as _spreadTracksByData,
|
|
13
14
|
c as computeChromSizes,
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
15
|
+
a2 as getChromInterval,
|
|
16
|
+
a3 as getChromTotalSize,
|
|
17
|
+
M as getRelativeGenomicPosition,
|
|
18
|
+
a4 as parseGenomicPosition,
|
|
18
19
|
s as sanitizeChrName
|
|
19
20
|
};
|
|
20
21
|
//# sourceMappingURL=utils.js.map
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "gosling.js",
|
|
3
3
|
"author": "Sehi L'Yi",
|
|
4
|
-
"version": "1.0.
|
|
4
|
+
"version": "1.0.1",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
7
7
|
"type": "git",
|
|
@@ -54,7 +54,7 @@
|
|
|
54
54
|
"generic-filehandle": "^3.0.1",
|
|
55
55
|
"higlass": "^1.13.4",
|
|
56
56
|
"higlass-register": "^0.3.0",
|
|
57
|
-
"higlass-text": "^0.1.
|
|
57
|
+
"higlass-text": "^0.1.7",
|
|
58
58
|
"json-stringify-pretty-compact": "^2.0.0",
|
|
59
59
|
"jspdf": "^2.3.1",
|
|
60
60
|
"lodash-es": "^4.17.21",
|