@rcsb/rcsb-saguaro-3d
Version:
RCSB Molstar/Saguaro Web App
39 lines (38 loc) • 1.36 kB
TypeScript
import { ChainInfo, OperatorInfo, SaguaroPluginModelMapType } from "../RcsbFvStructure/StructureViewerInterface";
interface AssemblyModelStateInterface {
modelId: string;
entryId: string;
assemblyId: string;
labelAsymId: string;
operator: OperatorInfo;
}
export declare class AssemblyModelSate {
private modelMap;
private state;
constructor(modelMap?: SaguaroPluginModelMapType);
setMap(modelMap: SaguaroPluginModelMapType): void;
getMap(): SaguaroPluginModelMapType;
set(state: Partial<AssemblyModelStateInterface>): void;
get(key: keyof AssemblyModelStateInterface): string | OperatorInfo | undefined;
getString(key: keyof Omit<AssemblyModelStateInterface, "operator">): string;
getOperator(): OperatorInfo | undefined;
forEach(f: (v: {
entryId: string;
assemblyId: string;
chains: Array<ChainInfo>;
}, k: string) => void): void;
entries(): IterableIterator<[string, {
entryId: string;
assemblyId: string;
chains: Array<ChainInfo>;
}]>;
setOperator(asymId?: string, opName?: string): void;
getModelChainInfo(modelId: string): {
entryId: string;
assemblyId: string;
chains: Array<ChainInfo>;
} | undefined;
getChainInfo(asymId?: string): ChainInfo | undefined;
private setFirstModel;
}
export {};