gosling.js 1.0.0 → 1.0.2
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/compiler.js +12 -0
- package/dist/compiler.js.map +1 -0
- package/dist/exported-compiler-e419fb4a.js +23705 -0
- package/dist/exported-compiler-e419fb4a.js.map +1 -0
- package/dist/exported-utils-26226ee9.js +89 -0
- package/dist/exported-utils-26226ee9.js.map +1 -0
- package/dist/gosling.js +9668 -23473
- 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-compiler.d.ts +2 -0
- package/dist/src/exported-compiler.d.ts.map +1 -0
- package/dist/src/exported-utils.d.ts +1 -0
- package/dist/src/exported-utils.d.ts.map +1 -1
- package/dist/utils.js +11 -9
- package/dist/utils.js.map +1 -1
- package/package.json +6 -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,W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AC,MAAM,EAAE,MAAM,CAAA;KAAE,CAAC;IAClD,mBAAmB,CAAC,EAAE;QAAE,KAAK,EAAE,MAAM,CAAC;QAAC,MAAM,EAAE,MAAM,CAAA;KAAE,CAAC;CACtD,EACN,iBAAiB,CAAC,EAAE,iBAAiB,QAyCxC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"exported-compiler.d.ts","sourceRoot":"","sources":["../../src/exported-compiler.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,MAAM,oBAAoB,CAAC"}
|
|
@@ -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,20 +1,22 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import "
|
|
3
|
-
import "generic-filehandle";
|
|
1
|
+
import { X, a2, a3, c, $, a0, J, a1 } from "./exported-compiler-e419fb4a.js";
|
|
2
|
+
import { s } from "./exported-utils-26226ee9.js";
|
|
4
3
|
import "pixi.js";
|
|
5
4
|
import "d3-color";
|
|
5
|
+
import "d3-array";
|
|
6
6
|
import "bezier-js";
|
|
7
7
|
import "d3-scale";
|
|
8
8
|
import "lodash-es";
|
|
9
9
|
import "d3-scale-chromatic";
|
|
10
|
+
import "generic-filehandle";
|
|
10
11
|
export {
|
|
11
|
-
|
|
12
|
-
|
|
12
|
+
X as _compile,
|
|
13
|
+
a2 as _convertToFlatTracks,
|
|
14
|
+
a3 as _spreadTracksByData,
|
|
13
15
|
c as computeChromSizes,
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
16
|
+
$ as getChromInterval,
|
|
17
|
+
a0 as getChromTotalSize,
|
|
18
|
+
J as getRelativeGenomicPosition,
|
|
19
|
+
a1 as parseGenomicPosition,
|
|
18
20
|
s as sanitizeChrName
|
|
19
21
|
};
|
|
20
22
|
//# sourceMappingURL=utils.js.map
|
package/dist/utils.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utils.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"utils.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;"}
|
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.2",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
7
7
|
"type": "git",
|
|
@@ -24,6 +24,10 @@
|
|
|
24
24
|
"./utils": {
|
|
25
25
|
"types": "./dist/src/exported-utils.d.ts",
|
|
26
26
|
"import": "./dist/utils.js"
|
|
27
|
+
},
|
|
28
|
+
"./compiler": {
|
|
29
|
+
"types": "./dist/src/exported-compiler.d.ts",
|
|
30
|
+
"import": "./dist/compiler.js"
|
|
27
31
|
}
|
|
28
32
|
},
|
|
29
33
|
"peerDependencies": {
|
|
@@ -54,7 +58,7 @@
|
|
|
54
58
|
"generic-filehandle": "^3.0.1",
|
|
55
59
|
"higlass": "^1.13.4",
|
|
56
60
|
"higlass-register": "^0.3.0",
|
|
57
|
-
"higlass-text": "^0.1.
|
|
61
|
+
"higlass-text": "^0.1.7",
|
|
58
62
|
"json-stringify-pretty-compact": "^2.0.0",
|
|
59
63
|
"jspdf": "^2.3.1",
|
|
60
64
|
"lodash-es": "^4.17.21",
|