@rcsb/rcsb-saguaro-3d
Version:
RCSB Molstar/Saguaro Web App
29 lines (28 loc) • 1.39 kB
TypeScript
import { StructureRepresentationPresetProvider } from "molstar/lib/mol-plugin-state/builder/structure/representation-preset";
import { TargetAlignments } from "@rcsb/rcsb-api-tools/lib/RcsbGraphQL/Types/Borrego/GqlTypes";
import { StructureBuilder } from "molstar/lib/mol-plugin-state/builder/structure";
import { StructureRepresentationBuilder } from "molstar/lib/mol-plugin-state/builder/structure/representation";
import { RigidTransformType } from "../../../StructureUtils/StructureLoaderInterface";
type RepresentationParamsType = {
pdb?: {
entryId: string;
entityId: string;
} | {
entryId: string;
instanceId: string;
};
transform?: RigidTransformType[];
targetAlignment?: TargetAlignments;
};
type ComponentType = Awaited<ReturnType<InstanceType<typeof StructureBuilder>["tryCreateComponentFromExpression"]>>;
type RepresentationType = ReturnType<InstanceType<typeof StructureRepresentationBuilder>["buildRepresentation"]>;
type ComponentMapType = Record<string, ComponentType>;
type RepresentationMapType = Record<string, RepresentationType>;
export declare const AlignmentRepresentationPresetProvider: StructureRepresentationPresetProvider<RepresentationParamsType, {
components?: undefined;
representations?: undefined;
} | {
components: ComponentMapType;
representations: RepresentationMapType;
}>;
export {};