@rcsb/rcsb-saguaro-app 4.0.0-interfaces.3 → 4.0.0-interfaces.7
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/CHANGELOG.md +6 -3
- package/build/dist/RcsbFvWeb/RcsbFvBuilder/RcsbFvInstanceBuilder.d.ts +3 -3
- package/build/dist/RcsbFvWeb/RcsbFvModule/RcsbFvModuleInterface.d.ts +12 -10
- package/build/dist/RcsbUtils/TagDelimiter.d.ts +1 -0
- package/build/dist/app.js +3 -3
- package/build/dist/app.js.map +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -2,13 +2,16 @@
|
|
|
2
2
|
|
|
3
3
|
[Semantic Versioning](https://semver.org/)
|
|
4
4
|
|
|
5
|
-
## [4.0.0-interfaces] -
|
|
5
|
+
## [4.0.0-interfaces] - 2022-01-24
|
|
6
6
|
### Annotation collector improvements
|
|
7
|
-
- CollectAnnotationsInterface
|
|
7
|
+
- Added interface `CollectAnnotationsInterface` for generating new annotations internally (not exposed)
|
|
8
8
|
- `annotationGenerator?(annotations: Array<AnnotationFeatures>)` generates new annotations from the collected ones
|
|
9
9
|
- `annotationFilter?(annotations: Array<AnnotationFeatures>)` filter the collected annotations
|
|
10
|
-
- Both
|
|
10
|
+
- Both methods are called before annotations processing and thus, they should be configured in `RcsbAnnotationConfig.ac.json` or equivalent config file
|
|
11
11
|
- Checking content before adding generated features
|
|
12
|
+
- New callback attribute `InstanceSequenceConfig` > `beforeChangeCallback`. This function is called when instance
|
|
13
|
+
dropdown menu changes and before rendering the new 1D RcsbFv.
|
|
14
|
+
The callback may return a `RcsbContextType` object that will be included in the `additionalConfig`
|
|
12
15
|
|
|
13
16
|
## [4.0.0-master] - 2021-12-07
|
|
14
17
|
### Breaking change
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import { RcsbFvAdditionalConfig } from "../RcsbFvModule/RcsbFvModuleInterface";
|
|
2
|
+
import { RcsbContextType, RcsbFvAdditionalConfig } from "../RcsbFvModule/RcsbFvModuleInterface";
|
|
3
3
|
import { PolymerEntityInstanceInterface } from "../../RcsbCollectTools/Translators/PolymerEntityInstancesCollector";
|
|
4
4
|
import { OptionPropsInterface } from "../WebTools/SelectButton";
|
|
5
5
|
import { RcsbFvModulePublicInterface } from "../RcsbFvModule/RcsbFvModuleInterface";
|
|
@@ -13,7 +13,7 @@ declare type instanceModule = "interface" | "instance";
|
|
|
13
13
|
export interface InstanceSequenceConfig {
|
|
14
14
|
dropdownTitle?: string;
|
|
15
15
|
defaultValue?: string | undefined | null;
|
|
16
|
-
|
|
16
|
+
beforeChangeCallback?: (x: InstanceSequenceOnchangeInterface) => undefined | RcsbContextType;
|
|
17
17
|
onChangeCallback?: (x: InstanceSequenceOnchangeInterface) => void;
|
|
18
18
|
filterInstances?: Set<string>;
|
|
19
19
|
displayAuthId?: boolean;
|
|
@@ -24,6 +24,6 @@ export declare class RcsbFvInstanceBuilder {
|
|
|
24
24
|
static buildMultipleInstanceSequenceFv(elementFvId: string, elementEntrySelectId: string, elementInstanceSelectId: string, entryIdList: Array<string>, config: InstanceSequenceConfig, additionalConfig?: RcsbFvAdditionalConfig): Promise<RcsbFvModulePublicInterface>;
|
|
25
25
|
static buildInstanceSequenceFv(elementFvId: string, elementSelectId: string, entryId: string, config: InstanceSequenceConfig, additionalConfig?: RcsbFvAdditionalConfig): Promise<RcsbFvModulePublicInterface>;
|
|
26
26
|
static buildSelectorInstanceFv(instanceList: Array<PolymerEntityInstanceInterface>, elementFvId: string, elementSelectId: string, entryId: string, config: InstanceSequenceConfig, additionalConfig?: RcsbFvAdditionalConfig): Promise<RcsbFvModulePublicInterface>;
|
|
27
|
-
static buildInstanceFv(elementId: string, instanceId: string, additionalConfig?: RcsbFvAdditionalConfig,
|
|
27
|
+
static buildInstanceFv(elementId: string, instanceId: string, additionalConfig?: RcsbFvAdditionalConfig, module?: instanceModule): Promise<RcsbFvModulePublicInterface>;
|
|
28
28
|
}
|
|
29
29
|
export {};
|
|
@@ -5,6 +5,17 @@ import { PairwiseAlignmentInterface } from "../PairwiseAlignmentTools/PairwiseAl
|
|
|
5
5
|
import { AnnotationProcessingInterface } from "../../RcsbCollectTools/AnnotationCollector/AnnotationCollectorInterface";
|
|
6
6
|
import { SequenceCollectorInterface } from "../../RcsbCollectTools/SequenceCollector/SequenceCollectorInterface";
|
|
7
7
|
import { ExternalTrackBuilderInterface } from "../../RcsbCollectTools/FeatureTools/ExternalTrackBuilderInterface";
|
|
8
|
+
export declare type RcsbContextType = Partial<{
|
|
9
|
+
entryId: string;
|
|
10
|
+
entityId: string;
|
|
11
|
+
asymId: string;
|
|
12
|
+
authId: string;
|
|
13
|
+
upAcc: string;
|
|
14
|
+
chrId: string;
|
|
15
|
+
targetId: string;
|
|
16
|
+
queryId: string;
|
|
17
|
+
operatorIds: Array<string>;
|
|
18
|
+
}>;
|
|
8
19
|
export interface RcsbFvAdditionalConfig {
|
|
9
20
|
sources?: Array<Source>;
|
|
10
21
|
filters?: Array<FilterInput>;
|
|
@@ -16,16 +27,7 @@ export interface RcsbFvAdditionalConfig {
|
|
|
16
27
|
annotationProcessing?: AnnotationProcessingInterface;
|
|
17
28
|
sequenceCollector?: SequenceCollectorInterface;
|
|
18
29
|
externalTrackBuilder?: ExternalTrackBuilderInterface;
|
|
19
|
-
rcsbContext?:
|
|
20
|
-
entryId: string;
|
|
21
|
-
entityId: string;
|
|
22
|
-
asymId: string;
|
|
23
|
-
authId: string;
|
|
24
|
-
upAcc: string;
|
|
25
|
-
chrId: string;
|
|
26
|
-
targetId: string;
|
|
27
|
-
queryId: string;
|
|
28
|
-
}>;
|
|
30
|
+
rcsbContext?: RcsbContextType;
|
|
29
31
|
}
|
|
30
32
|
export interface RcsbFvModuleBuildInterface {
|
|
31
33
|
queryId?: string;
|