@rcsb/rcsb-saguaro-app 6.2.6 → 6.3.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/build/app.js +1 -1
- package/lib/RcsbFvWeb/RcsbFvBuilder/RcsbFvContextManager.js +1 -1
- package/lib/RcsbFvWeb/RcsbFvBuilder/RcsbFvEntityBuilder.d.ts +1 -1
- package/lib/RcsbFvWeb/RcsbFvBuilder/RcsbFvEntityBuilder.js +5 -5
- package/lib/RcsbFvWeb/RcsbFvBuilder.d.ts +1 -1
- package/lib/RcsbFvWeb/RcsbFvBuilder.js +1 -1
- package/lib/commonjs/RcsbFvWeb/RcsbFvBuilder/RcsbFvContextManager.js +1 -1
- package/lib/commonjs/RcsbFvWeb/RcsbFvBuilder/RcsbFvEntityBuilder.d.ts +1 -1
- package/lib/commonjs/RcsbFvWeb/RcsbFvBuilder/RcsbFvEntityBuilder.js +5 -5
- package/lib/commonjs/RcsbFvWeb/RcsbFvBuilder.d.ts +1 -1
- package/lib/commonjs/RcsbFvWeb/RcsbFvBuilder.js +1 -1
- package/package.json +2 -2
|
@@ -38,7 +38,7 @@ class RcsbFvContextManager {
|
|
|
38
38
|
}
|
|
39
39
|
}
|
|
40
40
|
function buildRcsbFvSingleViewer(elementId, boardConfig) {
|
|
41
|
-
const config = Object.assign({ rowTitleWidth: 190,
|
|
41
|
+
const config = Object.assign({ rowTitleWidth: 190, tooltipGenerator: new RcsbFvTooltip() }, boardConfig);
|
|
42
42
|
return new RcsbFv({
|
|
43
43
|
rowConfigData: [],
|
|
44
44
|
boardConfigData: config,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { RcsbFvAdditionalConfig } from "../RcsbFvModule/RcsbFvModuleInterface";
|
|
2
2
|
import { RcsbFvModulePublicInterface } from "../RcsbFvModule/RcsbFvModuleInterface";
|
|
3
3
|
export declare class RcsbFvEntityBuilder {
|
|
4
|
-
static buildEntitySummaryFv(elementFvId: string, elementSelectId: string, entityId: string): Promise<RcsbFvModulePublicInterface>;
|
|
4
|
+
static buildEntitySummaryFv(elementFvId: string, elementSelectId: string, entityId: string, additionalConfig?: RcsbFvAdditionalConfig): Promise<RcsbFvModulePublicInterface>;
|
|
5
5
|
static buildSingleEntitySummaryFv(elementId: string, entityId: string): Promise<RcsbFvModulePublicInterface>;
|
|
6
6
|
static buildEntityFv(elementId: string, entityId: string, additionalConfig?: RcsbFvAdditionalConfig): Promise<RcsbFvModulePublicInterface>;
|
|
7
7
|
}
|
|
@@ -5,7 +5,7 @@ import { RcsbFvCoreBuilder } from "./RcsbFvCoreBuilder";
|
|
|
5
5
|
import { RcsbFvUniprotBuilder } from "./RcsbFvUniprotBuilder";
|
|
6
6
|
import { TagDelimiter } from "@rcsb/rcsb-api-tools/build/RcsbUtils/TagDelimiter";
|
|
7
7
|
export class RcsbFvEntityBuilder {
|
|
8
|
-
static buildEntitySummaryFv(elementFvId, elementSelectId, entityId) {
|
|
8
|
+
static buildEntitySummaryFv(elementFvId, elementSelectId, entityId, additionalConfig) {
|
|
9
9
|
return __awaiter(this, void 0, void 0, function* () {
|
|
10
10
|
return new Promise((resolve, reject) => {
|
|
11
11
|
const pdbId = TagDelimiter.parseEntity(entityId).entryId;
|
|
@@ -17,7 +17,7 @@ export class RcsbFvEntityBuilder {
|
|
|
17
17
|
config: {
|
|
18
18
|
entityId: entityId,
|
|
19
19
|
elementSelectId: elementSelectId,
|
|
20
|
-
additionalConfig: Object.assign({ rcsbContext: TagDelimiter.parseEntity(entityId) },
|
|
20
|
+
additionalConfig: Object.assign(Object.assign({ rcsbContext: TagDelimiter.parseEntity(entityId) }, customAdditionalConfig()), additionalConfig),
|
|
21
21
|
resolve: resolve
|
|
22
22
|
}
|
|
23
23
|
});
|
|
@@ -30,7 +30,7 @@ export class RcsbFvEntityBuilder {
|
|
|
30
30
|
yield RcsbFvEntityBuilder.buildSingleEntitySummaryFv(elementFvId, entityId);
|
|
31
31
|
}
|
|
32
32
|
else {
|
|
33
|
-
yield RcsbFvUniprotBuilder.buildUniprotEntityFv(elementFvId, t, entityId, Object.assign({ alignmentFilter: [entityId] },
|
|
33
|
+
yield RcsbFvUniprotBuilder.buildUniprotEntityFv(elementFvId, t, entityId, Object.assign({ alignmentFilter: [entityId] }, customAdditionalConfig({
|
|
34
34
|
field: FieldName.TargetId,
|
|
35
35
|
operation: OperationType.Contains,
|
|
36
36
|
source: Source.PdbInstance,
|
|
@@ -53,7 +53,7 @@ export class RcsbFvEntityBuilder {
|
|
|
53
53
|
const entryId = TagDelimiter.parseEntity(entityId).entryId;
|
|
54
54
|
RcsbFvCoreBuilder.getPolymerEntityInstanceMapAndBuildFv(elementId, entryId, RcsbFvEntity, {
|
|
55
55
|
entityId: entityId,
|
|
56
|
-
additionalConfig: Object.assign({ rcsbContext: TagDelimiter.parseEntity(entityId) },
|
|
56
|
+
additionalConfig: Object.assign({ rcsbContext: TagDelimiter.parseEntity(entityId) }, customAdditionalConfig()),
|
|
57
57
|
resolve: resolve
|
|
58
58
|
});
|
|
59
59
|
});
|
|
@@ -72,7 +72,7 @@ export class RcsbFvEntityBuilder {
|
|
|
72
72
|
});
|
|
73
73
|
}
|
|
74
74
|
}
|
|
75
|
-
function
|
|
75
|
+
function customAdditionalConfig(f) {
|
|
76
76
|
const filters = [{
|
|
77
77
|
field: FieldName.Type,
|
|
78
78
|
operation: OperationType.Equals,
|
|
@@ -8,7 +8,7 @@ import { PairwiseAlignmentInterface } from "../RcsbUtils/PairwiseAlignmentTools/
|
|
|
8
8
|
import { ActionMethods } from "../RcsbFvUI/Helper/ActionMethods";
|
|
9
9
|
export declare function unmount(elementId: string): void;
|
|
10
10
|
export declare function buildMultipleAlignmentSequenceFv(elementFvId: string, elementSelectId: string, upAcc: string, config?: UniprotSequenceConfig, additionalConfig?: RcsbFvAdditionalConfig): Promise<RcsbFvModulePublicInterface>;
|
|
11
|
-
export declare function buildEntitySummaryFv(elementFvId: string, elementSelectId: string, entityId: string): Promise<RcsbFvModulePublicInterface>;
|
|
11
|
+
export declare function buildEntitySummaryFv(elementFvId: string, elementSelectId: string, entityId: string, additionalConfig?: RcsbFvAdditionalConfig): Promise<RcsbFvModulePublicInterface>;
|
|
12
12
|
export declare function buildSingleEntitySummaryFv(elementId: string, entityId: string): Promise<RcsbFvModulePublicInterface>;
|
|
13
13
|
export declare function buildInstanceSequenceFv(elementFvId: string, elementSelectId: string, entryId: string, config?: InstanceSequenceConfig, additionalConfig?: RcsbFvAdditionalConfig): Promise<RcsbFvModulePublicInterface>;
|
|
14
14
|
export declare function buildMultipleInstanceSequenceFv(elementFvId: string, elementEntrySelectId: string, elementInstanceSelectId: string, entryIdList: Array<string>, config?: InstanceSequenceConfig, additionalConfig?: RcsbFvAdditionalConfig): Promise<RcsbFvModulePublicInterface>;
|
|
@@ -16,7 +16,7 @@ export function unmount(elementId) {
|
|
|
16
16
|
export function buildMultipleAlignmentSequenceFv(elementFvId, elementSelectId, upAcc, config = {}, additionalConfig) {
|
|
17
17
|
return RcsbFvUniprotBuilder.buildUniprotMultipleEntitySequenceFv(elementFvId, elementSelectId, upAcc, config, additionalConfig);
|
|
18
18
|
}
|
|
19
|
-
export function buildEntitySummaryFv(elementFvId, elementSelectId, entityId) {
|
|
19
|
+
export function buildEntitySummaryFv(elementFvId, elementSelectId, entityId, additionalConfig) {
|
|
20
20
|
return RcsbFvEntityBuilder.buildEntitySummaryFv(elementFvId, elementSelectId, entityId);
|
|
21
21
|
}
|
|
22
22
|
export function buildSingleEntitySummaryFv(elementId, entityId) {
|
|
@@ -41,7 +41,7 @@ class RcsbFvContextManager {
|
|
|
41
41
|
}
|
|
42
42
|
}
|
|
43
43
|
function buildRcsbFvSingleViewer(elementId, boardConfig) {
|
|
44
|
-
const config = Object.assign({ rowTitleWidth: 190,
|
|
44
|
+
const config = Object.assign({ rowTitleWidth: 190, tooltipGenerator: new RcsbFvTooltip_1.RcsbFvTooltip() }, boardConfig);
|
|
45
45
|
return new RcsbFv_1.RcsbFv({
|
|
46
46
|
rowConfigData: [],
|
|
47
47
|
boardConfigData: config,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { RcsbFvAdditionalConfig } from "../RcsbFvModule/RcsbFvModuleInterface";
|
|
2
2
|
import { RcsbFvModulePublicInterface } from "../RcsbFvModule/RcsbFvModuleInterface";
|
|
3
3
|
export declare class RcsbFvEntityBuilder {
|
|
4
|
-
static buildEntitySummaryFv(elementFvId: string, elementSelectId: string, entityId: string): Promise<RcsbFvModulePublicInterface>;
|
|
4
|
+
static buildEntitySummaryFv(elementFvId: string, elementSelectId: string, entityId: string, additionalConfig?: RcsbFvAdditionalConfig): Promise<RcsbFvModulePublicInterface>;
|
|
5
5
|
static buildSingleEntitySummaryFv(elementId: string, entityId: string): Promise<RcsbFvModulePublicInterface>;
|
|
6
6
|
static buildEntityFv(elementId: string, entityId: string, additionalConfig?: RcsbFvAdditionalConfig): Promise<RcsbFvModulePublicInterface>;
|
|
7
7
|
}
|
|
@@ -8,7 +8,7 @@ const RcsbFvCoreBuilder_1 = require("./RcsbFvCoreBuilder");
|
|
|
8
8
|
const RcsbFvUniprotBuilder_1 = require("./RcsbFvUniprotBuilder");
|
|
9
9
|
const TagDelimiter_1 = require("@rcsb/rcsb-api-tools/build/RcsbUtils/TagDelimiter");
|
|
10
10
|
class RcsbFvEntityBuilder {
|
|
11
|
-
static buildEntitySummaryFv(elementFvId, elementSelectId, entityId) {
|
|
11
|
+
static buildEntitySummaryFv(elementFvId, elementSelectId, entityId, additionalConfig) {
|
|
12
12
|
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
13
13
|
return new Promise((resolve, reject) => {
|
|
14
14
|
const pdbId = TagDelimiter_1.TagDelimiter.parseEntity(entityId).entryId;
|
|
@@ -20,7 +20,7 @@ class RcsbFvEntityBuilder {
|
|
|
20
20
|
config: {
|
|
21
21
|
entityId: entityId,
|
|
22
22
|
elementSelectId: elementSelectId,
|
|
23
|
-
additionalConfig: Object.assign({ rcsbContext: TagDelimiter_1.TagDelimiter.parseEntity(entityId) },
|
|
23
|
+
additionalConfig: Object.assign(Object.assign({ rcsbContext: TagDelimiter_1.TagDelimiter.parseEntity(entityId) }, customAdditionalConfig()), additionalConfig),
|
|
24
24
|
resolve: resolve
|
|
25
25
|
}
|
|
26
26
|
});
|
|
@@ -33,7 +33,7 @@ class RcsbFvEntityBuilder {
|
|
|
33
33
|
yield RcsbFvEntityBuilder.buildSingleEntitySummaryFv(elementFvId, entityId);
|
|
34
34
|
}
|
|
35
35
|
else {
|
|
36
|
-
yield RcsbFvUniprotBuilder_1.RcsbFvUniprotBuilder.buildUniprotEntityFv(elementFvId, t, entityId, Object.assign({ alignmentFilter: [entityId] },
|
|
36
|
+
yield RcsbFvUniprotBuilder_1.RcsbFvUniprotBuilder.buildUniprotEntityFv(elementFvId, t, entityId, Object.assign({ alignmentFilter: [entityId] }, customAdditionalConfig({
|
|
37
37
|
field: GqlTypes_1.FieldName.TargetId,
|
|
38
38
|
operation: GqlTypes_1.OperationType.Contains,
|
|
39
39
|
source: GqlTypes_1.Source.PdbInstance,
|
|
@@ -56,7 +56,7 @@ class RcsbFvEntityBuilder {
|
|
|
56
56
|
const entryId = TagDelimiter_1.TagDelimiter.parseEntity(entityId).entryId;
|
|
57
57
|
RcsbFvCoreBuilder_1.RcsbFvCoreBuilder.getPolymerEntityInstanceMapAndBuildFv(elementId, entryId, RcsbFvEntity_1.RcsbFvEntity, {
|
|
58
58
|
entityId: entityId,
|
|
59
|
-
additionalConfig: Object.assign({ rcsbContext: TagDelimiter_1.TagDelimiter.parseEntity(entityId) },
|
|
59
|
+
additionalConfig: Object.assign({ rcsbContext: TagDelimiter_1.TagDelimiter.parseEntity(entityId) }, customAdditionalConfig()),
|
|
60
60
|
resolve: resolve
|
|
61
61
|
});
|
|
62
62
|
});
|
|
@@ -76,7 +76,7 @@ class RcsbFvEntityBuilder {
|
|
|
76
76
|
}
|
|
77
77
|
}
|
|
78
78
|
exports.RcsbFvEntityBuilder = RcsbFvEntityBuilder;
|
|
79
|
-
function
|
|
79
|
+
function customAdditionalConfig(f) {
|
|
80
80
|
const filters = [{
|
|
81
81
|
field: GqlTypes_1.FieldName.Type,
|
|
82
82
|
operation: GqlTypes_1.OperationType.Equals,
|
|
@@ -8,7 +8,7 @@ import { PairwiseAlignmentInterface } from "../RcsbUtils/PairwiseAlignmentTools/
|
|
|
8
8
|
import { ActionMethods } from "../RcsbFvUI/Helper/ActionMethods";
|
|
9
9
|
export declare function unmount(elementId: string): void;
|
|
10
10
|
export declare function buildMultipleAlignmentSequenceFv(elementFvId: string, elementSelectId: string, upAcc: string, config?: UniprotSequenceConfig, additionalConfig?: RcsbFvAdditionalConfig): Promise<RcsbFvModulePublicInterface>;
|
|
11
|
-
export declare function buildEntitySummaryFv(elementFvId: string, elementSelectId: string, entityId: string): Promise<RcsbFvModulePublicInterface>;
|
|
11
|
+
export declare function buildEntitySummaryFv(elementFvId: string, elementSelectId: string, entityId: string, additionalConfig?: RcsbFvAdditionalConfig): Promise<RcsbFvModulePublicInterface>;
|
|
12
12
|
export declare function buildSingleEntitySummaryFv(elementId: string, entityId: string): Promise<RcsbFvModulePublicInterface>;
|
|
13
13
|
export declare function buildInstanceSequenceFv(elementFvId: string, elementSelectId: string, entryId: string, config?: InstanceSequenceConfig, additionalConfig?: RcsbFvAdditionalConfig): Promise<RcsbFvModulePublicInterface>;
|
|
14
14
|
export declare function buildMultipleInstanceSequenceFv(elementFvId: string, elementEntrySelectId: string, elementInstanceSelectId: string, entryIdList: Array<string>, config?: InstanceSequenceConfig, additionalConfig?: RcsbFvAdditionalConfig): Promise<RcsbFvModulePublicInterface>;
|
|
@@ -40,7 +40,7 @@ function unmount(elementId) {
|
|
|
40
40
|
function buildMultipleAlignmentSequenceFv(elementFvId, elementSelectId, upAcc, config = {}, additionalConfig) {
|
|
41
41
|
return RcsbFvUniprotBuilder_1.RcsbFvUniprotBuilder.buildUniprotMultipleEntitySequenceFv(elementFvId, elementSelectId, upAcc, config, additionalConfig);
|
|
42
42
|
}
|
|
43
|
-
function buildEntitySummaryFv(elementFvId, elementSelectId, entityId) {
|
|
43
|
+
function buildEntitySummaryFv(elementFvId, elementSelectId, entityId, additionalConfig) {
|
|
44
44
|
return RcsbFvEntityBuilder_1.RcsbFvEntityBuilder.buildEntitySummaryFv(elementFvId, elementSelectId, entityId);
|
|
45
45
|
}
|
|
46
46
|
function buildSingleEntitySummaryFv(elementId, entityId) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rcsb/rcsb-saguaro-app",
|
|
3
|
-
"version": "6.
|
|
3
|
+
"version": "6.3.0",
|
|
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.0
|
|
95
|
+
"@rcsb/rcsb-saguaro": "^3.1.0",
|
|
96
96
|
"@rcsb/rcsb-search-tools": "^0.0.14",
|
|
97
97
|
"ideogram": "^1.47.0",
|
|
98
98
|
"react-bootstrap": "^2.10.4",
|