@rcsb/rcsb-saguaro-app 6.3.0 → 6.3.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.
|
@@ -8,6 +8,7 @@ import { RcsbTabs } from "../RcsbFvComponents/RcsbTabs";
|
|
|
8
8
|
import { GroupProvenanceId } from "@rcsb/rcsb-api-tools/build/RcsbDw/Types/DwEnums";
|
|
9
9
|
import { SearchQueryTools as SQT } from "../../RcsbSeacrh/SearchQueryTools";
|
|
10
10
|
import { GroupPfvApp as GPA } from "./GroupTabs/GroupPfvApp";
|
|
11
|
+
import { asyncScheduler } from "rxjs";
|
|
11
12
|
const ALIGNMENT = "alignment";
|
|
12
13
|
const STRUCTURAL_FEATURES = "structural-features";
|
|
13
14
|
const BINDING_SITES = "binding-sites";
|
|
@@ -69,10 +70,12 @@ export class GroupPfvTabs extends React.Component {
|
|
|
69
70
|
}
|
|
70
71
|
onSelect(tabKey) {
|
|
71
72
|
return __awaiter(this, void 0, void 0, function* () {
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
73
|
+
asyncScheduler.schedule(() => __awaiter(this, void 0, void 0, function* () {
|
|
74
|
+
if (!this.featureViewers.has(tabKey))
|
|
75
|
+
yield this.renderPositionalFeatureViewer(tabKey);
|
|
76
|
+
this.syncPositionAndHighlight(tabKey);
|
|
77
|
+
this.currentTab = tabKey;
|
|
78
|
+
}), 10);
|
|
76
79
|
});
|
|
77
80
|
}
|
|
78
81
|
renderPositionalFeatureViewer(tabKey) {
|
|
@@ -11,6 +11,7 @@ const RcsbTabs_1 = require("../RcsbFvComponents/RcsbTabs");
|
|
|
11
11
|
const DwEnums_1 = require("@rcsb/rcsb-api-tools/build/RcsbDw/Types/DwEnums");
|
|
12
12
|
const SearchQueryTools_1 = require("../../RcsbSeacrh/SearchQueryTools");
|
|
13
13
|
const GroupPfvApp_1 = require("./GroupTabs/GroupPfvApp");
|
|
14
|
+
const rxjs_1 = require("rxjs");
|
|
14
15
|
const ALIGNMENT = "alignment";
|
|
15
16
|
const STRUCTURAL_FEATURES = "structural-features";
|
|
16
17
|
const BINDING_SITES = "binding-sites";
|
|
@@ -72,10 +73,12 @@ class GroupPfvTabs extends react_1.default.Component {
|
|
|
72
73
|
}
|
|
73
74
|
onSelect(tabKey) {
|
|
74
75
|
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
76
|
+
rxjs_1.asyncScheduler.schedule(() => tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
77
|
+
if (!this.featureViewers.has(tabKey))
|
|
78
|
+
yield this.renderPositionalFeatureViewer(tabKey);
|
|
79
|
+
this.syncPositionAndHighlight(tabKey);
|
|
80
|
+
this.currentTab = tabKey;
|
|
81
|
+
}), 10);
|
|
79
82
|
});
|
|
80
83
|
}
|
|
81
84
|
renderPositionalFeatureViewer(tabKey) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rcsb/rcsb-saguaro-app",
|
|
3
|
-
"version": "6.3.
|
|
3
|
+
"version": "6.3.2",
|
|
4
4
|
"description": "RCSB 1D Saguaro Web App",
|
|
5
5
|
"main": "build/app.js",
|
|
6
6
|
"files": [
|
|
@@ -92,7 +92,7 @@
|
|
|
92
92
|
},
|
|
93
93
|
"dependencies": {
|
|
94
94
|
"@rcsb/rcsb-charts": "^0.2.24",
|
|
95
|
-
"@rcsb/rcsb-saguaro": "^3.1.
|
|
95
|
+
"@rcsb/rcsb-saguaro": "^3.1.4",
|
|
96
96
|
"@rcsb/rcsb-search-tools": "^0.0.14",
|
|
97
97
|
"ideogram": "^1.47.0",
|
|
98
98
|
"react-bootstrap": "^2.10.4",
|