react-msaview 9.6.0 → 9.7.0
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/bundle/index.js +3 -3
- package/bundle/index.js.map +1 -1
- package/dist/constants.js +14 -14
- package/dist/constants.js.map +1 -1
- package/dist/model.d.ts +1 -1
- package/dist/model.js +3 -3
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +3 -3
- package/src/constants.ts +14 -14
- package/src/model.ts +3 -3
- package/src/version.ts +1 -1
package/dist/constants.js
CHANGED
|
@@ -40,22 +40,22 @@ export const segmentShades = ['#9fb6d4', '#d4dcea'];
|
|
|
40
40
|
export function isSiteType(featureType) {
|
|
41
41
|
return !!featureType && /(^|[_ ])site$/i.test(featureType);
|
|
42
42
|
}
|
|
43
|
-
// A domain fills a span the residue letters draw over, so it takes a light
|
|
44
|
-
// color, CIELAB L*
|
|
45
|
-
//
|
|
46
|
-
//
|
|
47
|
-
//
|
|
48
|
-
// hovered residue
|
|
43
|
+
// A domain fills a span the residue letters draw over, so it takes a mid-light
|
|
44
|
+
// color, CIELAB L* 70 to 80, dark enough that its ends show against unfilled
|
|
45
|
+
// cells. A site marks a few residues inside a domain, so it takes a dark one,
|
|
46
|
+
// L* 45 or less: a thin mark needs lightness contrast to show on a fill, and
|
|
47
|
+
// hue alone gives none. Neither list holds a grey or a magenta, which a
|
|
48
|
+
// structure view draws for uncolored chains and for the hovered residue
|
|
49
49
|
export const domainFills = [
|
|
50
|
-
'#
|
|
51
|
-
'#
|
|
52
|
-
'#
|
|
53
|
-
'#
|
|
54
|
-
'#
|
|
55
|
-
'#
|
|
56
|
-
'#
|
|
50
|
+
'#8fb3d9',
|
|
51
|
+
'#f2b277',
|
|
52
|
+
'#9fd18f',
|
|
53
|
+
'#c3a5d9',
|
|
54
|
+
'#ee9f9f',
|
|
55
|
+
'#d4c08f',
|
|
56
|
+
'#8fd1cb',
|
|
57
57
|
];
|
|
58
|
-
export const siteFills = ['#
|
|
58
|
+
export const siteFills = ['#0f6e52', '#a84a00', '#5a54a0', '#3f6b12', '#7a5514'];
|
|
59
59
|
export const defaultDrawMsaLetters = true;
|
|
60
60
|
export const defaultScrollZoom = false;
|
|
61
61
|
// Which cell dimensions a wheel zoom scales. 'horizontal' holds the row height,
|
package/dist/constants.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../src/constants.ts"],"names":[],"mappings":"AAEA,sBAAsB;AACtB,MAAM,CAAC,MAAM,gBAAgB,GAAG,EAAE,CAAA;AAClC,MAAM,CAAC,MAAM,eAAe,GAAG,EAAE,CAAA;AACjC,MAAM,CAAC,MAAM,aAAa,GAAG,GAAG,CAAA;AAChC,iFAAiF;AACjF,MAAM,CAAC,MAAM,iBAAiB,GAAG,CAAC,CAAA;AAClC,MAAM,CAAC,MAAM,cAAc,GAAG,CAAC,CAAA;AAC/B,MAAM,CAAC,MAAM,cAAc,GAAG,CAAC,CAAA;AAC/B,MAAM,CAAC,MAAM,uBAAuB,GAAG,CAAC,CAAA;AACxC,0EAA0E;AAC1E,2BAA2B;AAC3B,MAAM,CAAC,MAAM,kBAAkB,GAAG,IAAI,CAAA;AACtC,MAAM,CAAC,MAAM,uBAAuB,GAAG,IAAI,CAAA;AAC3C,MAAM,CAAC,MAAM,eAAe,GAAG,IAAI,CAAA;AACnC,MAAM,CAAC,MAAM,uBAAuB,GAAG,GAAG,CAAA;AAC1C,MAAM,CAAC,MAAM,qBAAqB,GAAG,KAAK,CAAA;AAC1C,2EAA2E;AAC3E,kEAAkE;AAClE,MAAM,CAAC,MAAM,mBAAmB,GAAG,CAAC,CAAA;AACpC,uEAAuE;AACvE,MAAM,CAAC,MAAM,qBAAqB,GAAG,CAAC,CAAA;AAEtC,yEAAyE;AACzE,+EAA+E;AAC/E,0CAA0C;AAC1C,MAAM,CAAC,MAAM,mBAAmB,GAAG,IAAI,GAAG,CAAC;IACzC,MAAM;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M,YAAY,GAAG,gBAAgB,GAAG,CAAC,CAAA"}
|
package/dist/model.d.ts
CHANGED
|
@@ -2080,7 +2080,7 @@ declare function stateModelFactory({ maxInlineSnapshotBytes, }?: {
|
|
|
2080
2080
|
/**
|
|
2081
2081
|
* #getter
|
|
2082
2082
|
* accession -> fill: segments alternate two shades, a domain takes a
|
|
2083
|
-
* light color and a site a dark one, so a site's residues stand out on
|
|
2083
|
+
* mid-light color and a site a dark one, so a site's residues stand out on
|
|
2084
2084
|
* the domain around them
|
|
2085
2085
|
*/
|
|
2086
2086
|
readonly fillPalette: {
|
package/dist/model.js
CHANGED
|
@@ -3063,7 +3063,7 @@ function stateModelFactory({ maxInlineSnapshotBytes = defaultMaxInlineSnapshotBy
|
|
|
3063
3063
|
/**
|
|
3064
3064
|
* #getter
|
|
3065
3065
|
* accession -> fill: segments alternate two shades, a domain takes a
|
|
3066
|
-
* light color and a site a dark one, so a site's residues stand out on
|
|
3066
|
+
* mid-light color and a site a dark one, so a site's residues stand out on
|
|
3067
3067
|
* the domain around them
|
|
3068
3068
|
*/
|
|
3069
3069
|
get fillPalette() {
|
|
@@ -3076,8 +3076,8 @@ function stateModelFactory({ maxInlineSnapshotBytes = defaultMaxInlineSnapshotBy
|
|
|
3076
3076
|
.map(d => d.accession);
|
|
3077
3077
|
return {
|
|
3078
3078
|
...segments,
|
|
3079
|
-
...createPaletteMap(accessions(false), domainFills,
|
|
3080
|
-
...createPaletteMap(accessions(true), siteFills,
|
|
3079
|
+
...createPaletteMap(accessions(false), domainFills, 75),
|
|
3080
|
+
...createPaletteMap(accessions(true), siteFills, 40),
|
|
3081
3081
|
};
|
|
3082
3082
|
},
|
|
3083
3083
|
/**
|
package/dist/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const version = "9.
|
|
1
|
+
export declare const version = "9.7.0";
|
package/dist/version.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export const version = '9.
|
|
1
|
+
export const version = '9.7.0';
|
|
2
2
|
//# sourceMappingURL=version.js.map
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "react-msaview",
|
|
3
3
|
"author": "Colin",
|
|
4
|
-
"version": "9.
|
|
4
|
+
"version": "9.7.0",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"repository": {
|
|
@@ -50,10 +50,10 @@
|
|
|
50
50
|
},
|
|
51
51
|
"dependencies": {
|
|
52
52
|
"@gmod/newick": "^1.0.3",
|
|
53
|
-
"@jbrowse/svgcanvas": "9.
|
|
53
|
+
"@jbrowse/svgcanvas": "9.7.0",
|
|
54
54
|
"colord": "^2.10.0",
|
|
55
55
|
"flatbush": "^4.6.2",
|
|
56
|
-
"msa-parsers": "9.
|
|
56
|
+
"msa-parsers": "9.7.0"
|
|
57
57
|
},
|
|
58
58
|
"scripts": {
|
|
59
59
|
"clean": "rimraf dist bundle",
|
package/src/constants.ts
CHANGED
|
@@ -46,22 +46,22 @@ export function isSiteType(featureType: string | undefined) {
|
|
|
46
46
|
return !!featureType && /(^|[_ ])site$/i.test(featureType)
|
|
47
47
|
}
|
|
48
48
|
|
|
49
|
-
// A domain fills a span the residue letters draw over, so it takes a light
|
|
50
|
-
// color, CIELAB L*
|
|
51
|
-
//
|
|
52
|
-
//
|
|
53
|
-
//
|
|
54
|
-
// hovered residue
|
|
49
|
+
// A domain fills a span the residue letters draw over, so it takes a mid-light
|
|
50
|
+
// color, CIELAB L* 70 to 80, dark enough that its ends show against unfilled
|
|
51
|
+
// cells. A site marks a few residues inside a domain, so it takes a dark one,
|
|
52
|
+
// L* 45 or less: a thin mark needs lightness contrast to show on a fill, and
|
|
53
|
+
// hue alone gives none. Neither list holds a grey or a magenta, which a
|
|
54
|
+
// structure view draws for uncolored chains and for the hovered residue
|
|
55
55
|
export const domainFills = [
|
|
56
|
-
'#
|
|
57
|
-
'#
|
|
58
|
-
'#
|
|
59
|
-
'#
|
|
60
|
-
'#
|
|
61
|
-
'#
|
|
62
|
-
'#
|
|
56
|
+
'#8fb3d9',
|
|
57
|
+
'#f2b277',
|
|
58
|
+
'#9fd18f',
|
|
59
|
+
'#c3a5d9',
|
|
60
|
+
'#ee9f9f',
|
|
61
|
+
'#d4c08f',
|
|
62
|
+
'#8fd1cb',
|
|
63
63
|
]
|
|
64
|
-
export const siteFills = ['#
|
|
64
|
+
export const siteFills = ['#0f6e52', '#a84a00', '#5a54a0', '#3f6b12', '#7a5514']
|
|
65
65
|
export const defaultDrawMsaLetters = true
|
|
66
66
|
export const defaultScrollZoom = false
|
|
67
67
|
|
package/src/model.ts
CHANGED
|
@@ -3604,7 +3604,7 @@ function stateModelFactory({
|
|
|
3604
3604
|
/**
|
|
3605
3605
|
* #getter
|
|
3606
3606
|
* accession -> fill: segments alternate two shades, a domain takes a
|
|
3607
|
-
* light color and a site a dark one, so a site's residues stand out on
|
|
3607
|
+
* mid-light color and a site a dark one, so a site's residues stand out on
|
|
3608
3608
|
* the domain around them
|
|
3609
3609
|
*/
|
|
3610
3610
|
get fillPalette() {
|
|
@@ -3620,8 +3620,8 @@ function stateModelFactory({
|
|
|
3620
3620
|
.map(d => d.accession)
|
|
3621
3621
|
return {
|
|
3622
3622
|
...segments,
|
|
3623
|
-
...createPaletteMap(accessions(false), domainFills,
|
|
3624
|
-
...createPaletteMap(accessions(true), siteFills,
|
|
3623
|
+
...createPaletteMap(accessions(false), domainFills, 75),
|
|
3624
|
+
...createPaletteMap(accessions(true), siteFills, 40),
|
|
3625
3625
|
}
|
|
3626
3626
|
},
|
|
3627
3627
|
/**
|
package/src/version.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const version = '9.
|
|
1
|
+
export const version = '9.7.0'
|