@jbrowse/core 1.6.8 → 1.6.9
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/package.json +2 -2
- package/util/index.js +5 -5
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jbrowse/core",
|
|
3
|
-
"version": "1.6.
|
|
3
|
+
"version": "1.6.9",
|
|
4
4
|
"description": "JBrowse 2 core libraries used by plugins",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"jbrowse",
|
|
@@ -77,5 +77,5 @@
|
|
|
77
77
|
"access": "public",
|
|
78
78
|
"directory": "dist"
|
|
79
79
|
},
|
|
80
|
-
"gitHead": "
|
|
80
|
+
"gitHead": "f6c3d4edfadc26f7ac635a2fa7259f50f0c7e5e3"
|
|
81
81
|
}
|
package/util/index.js
CHANGED
|
@@ -1398,15 +1398,15 @@ function viewBpToPx(_ref4) {
|
|
|
1398
1398
|
}
|
|
1399
1399
|
|
|
1400
1400
|
function getBpDisplayStr(totalBp) {
|
|
1401
|
-
var
|
|
1401
|
+
var str;
|
|
1402
1402
|
|
|
1403
1403
|
if (Math.floor(totalBp / 1000000) > 0) {
|
|
1404
|
-
|
|
1404
|
+
str = "".concat(parseFloat((totalBp / 1000000).toPrecision(3)), "Mbp");
|
|
1405
1405
|
} else if (Math.floor(totalBp / 1000) > 0) {
|
|
1406
|
-
|
|
1406
|
+
str = "".concat(parseFloat((totalBp / 1000).toPrecision(3)), "Kbp");
|
|
1407
1407
|
} else {
|
|
1408
|
-
|
|
1408
|
+
str = "".concat(Math.floor(totalBp), "bp");
|
|
1409
1409
|
}
|
|
1410
1410
|
|
|
1411
|
-
return
|
|
1411
|
+
return str;
|
|
1412
1412
|
}
|