@jbrowse/plugin-config 1.5.2 → 1.5.6
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/plugin-config.cjs.development.js +25 -31
- package/dist/plugin-config.cjs.development.js.map +1 -1
- package/dist/plugin-config.cjs.production.min.js +1 -1
- package/dist/plugin-config.cjs.production.min.js.map +1 -1
- package/dist/plugin-config.esm.js +25 -31
- package/dist/plugin-config.esm.js.map +1 -1
- package/package.json +2 -2
- package/src/ConfigurationEditorWidget/components/ColorEditor.tsx +1 -1
- package/src/RefNameAliasAdapter/RefNameAliasAdapter.ts +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jbrowse/plugin-config",
|
|
3
|
-
"version": "1.5.
|
|
3
|
+
"version": "1.5.6",
|
|
4
4
|
"description": "JBrowse 2 config utilities",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"jbrowse",
|
|
@@ -55,5 +55,5 @@
|
|
|
55
55
|
"publishConfig": {
|
|
56
56
|
"access": "public"
|
|
57
57
|
},
|
|
58
|
-
"gitHead": "
|
|
58
|
+
"gitHead": "f3d36cfd90f7c5bdf86869d6698d8cb68a8e122f"
|
|
59
59
|
}
|
|
@@ -11,7 +11,7 @@ const ColorPicker = lazy(() => import('./ColorPicker'))
|
|
|
11
11
|
function serializeColor(color: Color) {
|
|
12
12
|
if (color instanceof Object) {
|
|
13
13
|
const { r, g, b, a } = color as RGBColor
|
|
14
|
-
return `rgb(${r},${g},${b},${a})`
|
|
14
|
+
return a === undefined ? `rgb(${r},${g},${b})` : `rgba(${r},${g},${b},${a})`
|
|
15
15
|
}
|
|
16
16
|
return color
|
|
17
17
|
}
|
|
@@ -14,7 +14,7 @@ export default class RefNameAliasAdapter
|
|
|
14
14
|
if (loc.uri === '' || loc.uri === '/path/to/my/aliases.txt') {
|
|
15
15
|
return []
|
|
16
16
|
}
|
|
17
|
-
const results =
|
|
17
|
+
const results = await openLocation(loc).readFile('utf8')
|
|
18
18
|
return results
|
|
19
19
|
.trim()
|
|
20
20
|
.split('\n')
|