react-msaview 4.4.0 → 4.4.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/bundle/index.js +15 -15
- package/bundle/index.js.LICENSE.txt +5 -13
- package/bundle/index.js.map +1 -1
- package/dist/colorSchemes.js +2 -2
- package/dist/colorSchemes.js.map +1 -1
- package/dist/components/VerticalScrollbar.js +2 -2
- package/dist/components/VerticalScrollbar.js.map +1 -1
- package/dist/components/dialogs/SettingsDialog.js +3 -2
- package/dist/components/dialogs/SettingsDialog.js.map +1 -1
- package/dist/components/header/Header.js +1 -1
- package/dist/components/header/Header.js.map +1 -1
- package/dist/components/header/HeaderInfoArea.js +3 -2
- package/dist/components/header/HeaderInfoArea.js.map +1 -1
- package/dist/components/header/HeaderMenu.js +15 -97
- package/dist/components/header/HeaderMenu.js.map +1 -1
- package/dist/components/header/SettingsMenu.js +57 -73
- package/dist/components/header/SettingsMenu.js.map +1 -1
- package/dist/components/header/ZoomMenu.js +14 -2
- package/dist/components/header/ZoomMenu.js.map +1 -1
- package/dist/components/msa/MSAMouseoverCanvas.js +4 -1
- package/dist/components/msa/MSAMouseoverCanvas.js.map +1 -1
- package/dist/components/msa/renderBoxFeatureCanvasBlock.js +4 -4
- package/dist/components/msa/renderBoxFeatureCanvasBlock.js.map +1 -1
- package/dist/components/msa/renderMSABlock.js +13 -9
- package/dist/components/msa/renderMSABlock.js.map +1 -1
- package/dist/model.d.ts +17 -5
- package/dist/model.js +70 -57
- package/dist/model.js.map +1 -1
- package/dist/rowCoordinateCalculations.d.ts +13 -2
- package/dist/rowCoordinateCalculations.js +60 -17
- package/dist/rowCoordinateCalculations.js.map +1 -1
- package/dist/rowCoordinateCalculations.test.js +96 -2
- package/dist/rowCoordinateCalculations.test.js.map +1 -1
- package/dist/seqCoordToRowSpecificGlobalCoord.d.ts +4 -0
- package/dist/seqCoordToRowSpecificGlobalCoord.js +15 -0
- package/dist/seqCoordToRowSpecificGlobalCoord.js.map +1 -0
- package/dist/seqCoordToRowSpecificGlobalCoord.test.d.ts +1 -0
- package/dist/seqCoordToRowSpecificGlobalCoord.test.js +42 -0
- package/dist/seqCoordToRowSpecificGlobalCoord.test.js.map +1 -0
- package/dist/util.d.ts +1 -6
- package/dist/util.js +5 -22
- package/dist/util.js.map +1 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +1 -1
- package/src/colorSchemes.ts +2 -2
- package/src/components/VerticalScrollbar.tsx +2 -3
- package/src/components/dialogs/SettingsDialog.tsx +4 -2
- package/src/components/header/Header.tsx +1 -1
- package/src/components/header/HeaderInfoArea.tsx +5 -2
- package/src/components/header/HeaderMenu.tsx +15 -110
- package/src/components/header/SettingsMenu.tsx +64 -81
- package/src/components/header/ZoomMenu.tsx +15 -2
- package/src/components/msa/MSAMouseoverCanvas.tsx +4 -1
- package/src/components/msa/renderBoxFeatureCanvasBlock.ts +4 -4
- package/src/components/msa/renderMSABlock.ts +26 -22
- package/src/model.ts +89 -67
- package/src/rowCoordinateCalculations.test.ts +138 -2
- package/src/rowCoordinateCalculations.ts +95 -18
- package/src/seqCoordToRowSpecificGlobalCoord.test.ts +53 -0
- package/src/seqCoordToRowSpecificGlobalCoord.ts +20 -0
- package/src/util.ts +5 -28
- package/src/version.ts +1 -1
package/src/util.ts
CHANGED
|
@@ -46,7 +46,7 @@ export function colorContrast(
|
|
|
46
46
|
export function skipBlanks(blanks: number[], arg: string | string[]) {
|
|
47
47
|
let s = ''
|
|
48
48
|
let b = 0
|
|
49
|
-
for (let j = 0
|
|
49
|
+
for (let j = 0, l = arg.length; j < l; j++) {
|
|
50
50
|
if (j === blanks[b]) {
|
|
51
51
|
b++
|
|
52
52
|
} else {
|
|
@@ -90,35 +90,12 @@ export function collapse(d: HierarchyNode<NodeWithIds>) {
|
|
|
90
90
|
}
|
|
91
91
|
}
|
|
92
92
|
|
|
93
|
-
export function clamp(min: number, num: number, max: number) {
|
|
94
|
-
return Math.min(Math.max(num, min), max)
|
|
95
|
-
}
|
|
96
|
-
|
|
97
93
|
export function len(a: { end: number; start: number }) {
|
|
98
94
|
return a.end - a.start
|
|
99
95
|
}
|
|
100
96
|
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
}
|
|
106
|
-
|
|
107
|
-
export function localStorageGetBoolean(key: string, defaultVal: boolean) {
|
|
108
|
-
return Boolean(
|
|
109
|
-
JSON.parse(localStorageGetItem(key) || JSON.stringify(defaultVal)),
|
|
110
|
-
)
|
|
111
|
-
}
|
|
112
|
-
|
|
113
|
-
export function localStorageSetItem(str: string, item: string) {
|
|
114
|
-
if (typeof localStorage !== 'undefined') {
|
|
115
|
-
localStorage.setItem(str, item)
|
|
116
|
-
}
|
|
117
|
-
}
|
|
118
|
-
export function localStorageSetBoolean(key: string, value: boolean) {
|
|
119
|
-
localStorageSetItem(key, JSON.stringify(value))
|
|
120
|
-
}
|
|
121
|
-
|
|
122
|
-
export function isGzip(buf: Uint8Array) {
|
|
123
|
-
return buf[0] === 31 && buf[1] === 139 && buf[2] === 8
|
|
97
|
+
// https://sonnhammer.sbc.su.se/Stockholm.html
|
|
98
|
+
// gaps can be a . or - in stockholm
|
|
99
|
+
export function isBlank(s?: string) {
|
|
100
|
+
return s === '-' || s === '.'
|
|
124
101
|
}
|
package/src/version.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const version = '4.4.
|
|
1
|
+
export const version = '4.4.2'
|