import { IAtomSpec } from '@openchemistry/types'; import { IChemJson } from '@openchemistry/types'; import { IDisplayOptions } from '@openchemistry/types'; export declare class MoleculeMoljs { el: HTMLElement; cjson: IChemJson | string; cjsonHandler(): void; options: IDisplayOptions; optionsHandler(newValue: IDisplayOptions): void; rotate: boolean; cjsonData: IChemJson; optionsData: IDisplayOptions; cjsonHasChanged: boolean; viewer: any; currAtoms: IAtomSpec[]; currModel: any; rotateInterval: any; containerId: string; molViewer: HTMLDivElement; animationRequestId?: number; animationStartTime?: number; animationPreviousTime?: number; /** * The component is about to load and it has not * rendered yet. * * This is the best place to make any data updates * before the first render. * * componentWillLoad will only be called once. * * Uncomment the following lifecycle method if needed: * * componentWillLoad() { * console.log('Component is about to be rendered'); * } */ /** * The component has loaded and has already rendered. * * Updating data in this method will cause the * component to re-render. * * componentDidLoad only be called once. */ componentDidLoad(): void; /** * The component is about to update and re-render. * * Called multiple times throughout the life of * the component as it updates. * * componentWillUpdate is not called on the first render. * * Uncomment the following lifecycle method if needed: * * componentWillUpdate() { * console.log('Component will update and re-render'); * } */ /** * The component has just re-rendered. * * Called multiple times throughout the life of * the component as it updates. * * componentWillUpdate is not called on the * first render. */ componentDidUpdate(): void; /** * The component did unload and the element * will be destroyed. */ componentDidUnload(): void; setCjson(): void; convertCjson(): void; renderMolecule(): void; setAtoms(): void; stopAnimation(): void; startAnimation(): void; setVolume(): void; getCjson(): IChemJson; setOptions(): void; getOptions(): IDisplayOptions; handleRotate(): void; render(): any; }