@nightingale-elements/nightingale-structure
Version:
Nightingale Structure
24 lines • 844 B
TypeScript
import "molstar/lib/mol-util/polyfill";
import { PluginContext } from "molstar/lib/mol-plugin/context";
type SequencePosition = {
chain: string;
position: number;
};
type Range = {
chain: string;
start: number;
end: number;
};
export type StructureViewer = {
plugin: PluginContext;
loadPdb(pdb: string): Promise<void>;
loadCifUrl(url: string, isBinary?: boolean): Promise<void>;
highlight(ranges: Range[]): void;
clearHighlight(): void;
changeHighlightColor(color: number): void;
handleResize(): void;
applyColorTheme(colorTheme?: string): void;
};
export declare const getStructureViewer: (container: HTMLDivElement, onHighlightClick: (sequencePositions: SequencePosition[]) => void, colorTheme?: string) => Promise<StructureViewer>;
export {};
//# sourceMappingURL=structure-viewer.d.ts.map