igv 2.15.11 → 2.15.12
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/README.md +10 -10
- package/dist/igv.esm.js +2 -6
- package/dist/igv.esm.min.js +7 -7
- package/dist/igv.esm.min.js.map +1 -1
- package/dist/igv.js +2 -6
- package/dist/igv.min.js +6 -6
- package/dist/igv.min.js.map +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -18,19 +18,19 @@ Below are examples and a quickstart guide. See the [Wiki](https://github.com/ig
|
|
|
18
18
|
|
|
19
19
|
# Examples
|
|
20
20
|
|
|
21
|
-
***[Alignments](https://igv.org/web/release/2.15.
|
|
21
|
+
***[Alignments](https://igv.org/web/release/2.15.12/examples/cram-vcf.html)***
|
|
22
22
|
|
|
23
|
-
***[Interactions](https://igv.org/web/release/2.15.
|
|
23
|
+
***[Interactions](https://igv.org/web/release/2.15.12/examples/interact.html)***
|
|
24
24
|
|
|
25
|
-
***[Copy number](https://igv.org/web/release/2.15.
|
|
25
|
+
***[Copy number](https://igv.org/web/release/2.15.12/examples/copyNumber.html)***
|
|
26
26
|
|
|
27
|
-
***[Multiple regions](https://igv.org/web/release/2.15.
|
|
27
|
+
***[Multiple regions](https://igv.org/web/release/2.15.12/examples/multi-locus.html)***
|
|
28
28
|
|
|
29
|
-
***[Mutation Annotation Format (MAF)](https://igv.org/web/release/2.15.
|
|
29
|
+
***[Mutation Annotation Format (MAF)](https://igv.org/web/release/2.15.12/examples/maf-tcga.html)***
|
|
30
30
|
|
|
31
|
-
***[Variant color options](https://igv.org/web/release/2.15.
|
|
31
|
+
***[Variant color options](https://igv.org/web/release/2.15.12/examples/variant-colors.html)***
|
|
32
32
|
|
|
33
|
-
***[More](https://igv.org/web/release/2.15.
|
|
33
|
+
***[More](https://igv.org/web/release/2.15.12/examples/)***
|
|
34
34
|
|
|
35
35
|
|
|
36
36
|
# Quickstart
|
|
@@ -39,18 +39,18 @@ Below are examples and a quickstart guide. See the [Wiki](https://github.com/ig
|
|
|
39
39
|
igv.js consists of a single javascript file with no external dependencies.
|
|
40
40
|
|
|
41
41
|
Pre-built files for script include, AMD, or CJS module systems (igv.min.js) and an ES6 module (igv.esm.min.js)
|
|
42
|
-
can be downloaded from [https://cdn.jsdelivr.net/npm/igv@2.15.
|
|
42
|
+
can be downloaded from [https://cdn.jsdelivr.net/npm/igv@2.15.12/dist/](https://cdn.jsdelivr.net/npm/igv@2.15.12/dist/).
|
|
43
43
|
|
|
44
44
|
To import igv as an ES6 module
|
|
45
45
|
|
|
46
46
|
```javascript
|
|
47
|
-
import igv from "https://cdn.jsdelivr.net/npm/igv@2.15.
|
|
47
|
+
import igv from "https://cdn.jsdelivr.net/npm/igv@2.15.12/dist/igv.esm.min.js"
|
|
48
48
|
```
|
|
49
49
|
|
|
50
50
|
Or as a script include (defines the "igv" global)
|
|
51
51
|
|
|
52
52
|
```html
|
|
53
|
-
<script src="https://cdn.jsdelivr.net/npm/igv@2.15.
|
|
53
|
+
<script src="https://cdn.jsdelivr.net/npm/igv@2.15.12/dist/igv.min.js"></script>
|
|
54
54
|
```
|
|
55
55
|
|
|
56
56
|
Alternatively you can install with npm
|
package/dist/igv.esm.js
CHANGED
|
@@ -25616,7 +25616,7 @@ const Cytoband = function (start, end, name, typestain) {
|
|
|
25616
25616
|
}
|
|
25617
25617
|
};
|
|
25618
25618
|
|
|
25619
|
-
const _version = "2.15.
|
|
25619
|
+
const _version = "2.15.12";
|
|
25620
25620
|
function version() {
|
|
25621
25621
|
return _version
|
|
25622
25622
|
}
|
|
@@ -41910,11 +41910,7 @@ function renderFeatureLabel(ctx, feature, featureX, featureX1, featureY, referen
|
|
|
41910
41910
|
if (name === undefined) name = feature.id || feature.ID;
|
|
41911
41911
|
if (!name || name === '.') return
|
|
41912
41912
|
|
|
41913
|
-
|
|
41914
|
-
let pixelXOffset = options.pixelXOffset || 0;
|
|
41915
|
-
const t1 = Math.max(featureX, -pixelXOffset);
|
|
41916
|
-
const t2 = Math.min(featureX1, -pixelXOffset + options.viewportWidth);
|
|
41917
|
-
let centerX = (t1 + t2) / 2;
|
|
41913
|
+
let centerX = (featureX + featureX1) / 2;
|
|
41918
41914
|
|
|
41919
41915
|
let transform;
|
|
41920
41916
|
if (this.displayMode === "COLLAPSED" && this.labelDisplayMode === "SLANT") {
|