@rcsb/rcsb-saguaro-3d
Version:
RCSB Molstar/Saguaro Web App
42 lines (41 loc) • 2.39 kB
TypeScript
import { RcsbFv3DAbstract } from "./RcsbFv3DAbstract";
import { RcsbFvAdditionalConfig, RcsbFvModulePublicInterface, RcsbModuleDataProviderInterface } from "@rcsb/rcsb-saguaro-app/lib/RcsbFvWeb/RcsbFvModule/RcsbFvModuleInterface";
import { LoadMolstarInterface, LoadMolstarReturnType } from "../RcsbFvStructure/StructureViewers/MolstarViewer/MolstarActionManager";
import { ViewerProps } from "@rcsb/rcsb-molstar/build/src/viewer";
import { RcsbFv3DCssConfig } from "./RcsbFv3DComponent";
import { MsaPfvManagerInterface } from "../RcsbFvSequence/SequenceViews/RcsbView/PfvManagerFactoryImplementation/MsaPfvManagerFactory";
import { LoadParamsProviderInterface } from "../RcsbFvStructure/StructureUtils/StructureLoaderInterface";
import { AlignmentTrajectoryParamsType } from "../RcsbFvStructure/StructureViewers/MolstarViewer/TrajectoryPresetProvider/AlignmentTrajectoryPresetProvider";
import { AbstractViewInterface } from "../RcsbFvSequence/SequenceViews/AbstractView";
import { TrajectoryHierarchyPresetProvider } from "molstar/lib/mol-plugin-state/builder/structure/hierarchy-preset";
import { ReactNode } from "react";
export interface RcsbFv3DDataProviderInterface {
elementId?: string;
config: {
dataProvider: RcsbModuleDataProviderInterface;
loadParamsProvider?: LoadParamsProviderInterface<{
entryId: string;
instanceId: string;
}, LoadMolstarInterface<AlignmentTrajectoryParamsType, LoadMolstarReturnType>>;
title?: string;
subtitle?: string;
additionalContent?(props: AbstractViewInterface): ReactNode;
};
additionalConfig?: RcsbFvAdditionalConfig;
molstarProps?: Partial<ViewerProps>;
cssConfig?: RcsbFv3DCssConfig;
trajectoryProvider?: TrajectoryHierarchyPresetProvider<AlignmentTrajectoryParamsType, LoadMolstarReturnType>;
}
type AlignmentLoadMolstarType = LoadMolstarInterface<AlignmentTrajectoryParamsType, LoadMolstarReturnType>;
export declare class RcsbFv3DAlignmentProvider extends RcsbFv3DAbstract<MsaPfvManagerInterface<[RcsbModuleDataProviderInterface]>, AlignmentLoadMolstarType | undefined, LoadMolstarReturnType, {
viewerElement: string | HTMLElement;
viewerProps: Partial<ViewerProps>;
}, {
context: {
id: string;
};
module: RcsbFvModulePublicInterface;
}> {
constructor(params: RcsbFv3DDataProviderInterface);
}
export {};