pdbe-molstar
Version:
Molstar implementation for PDBe
32 lines (31 loc) • 1.46 kB
TypeScript
import { CollapsableControls, CollapsableState } from 'molstar/lib/mol-plugin-ui/base';
import React from 'react';
import { StateGalleryManager } from './manager';
/** React state for `StateGalleryControls` */
interface StateGalleryControlsState {
/** Content of "Entry ID" text field */
entryId: string;
manager: StateGalleryManager | undefined;
/** `true` when initializing manager (fetching list of images) */
isLoading: boolean;
/** Mirrors `this.plugin.behaviors.state.isBusy` (`true` when loading a specific image) */
isBusy: boolean;
}
/** "3D State Gallery" section in Structure Tools (right panel) */
export declare class StateGalleryControls extends CollapsableControls<{}, StateGalleryControlsState> {
protected defaultState(): StateGalleryControlsState & CollapsableState;
componentDidMount(): void;
private get values();
private onChangeValues;
/** Load entry given by `this.state.entryId` */
private load;
private loadDisabled;
protected renderControls(): React.JSX.Element | null;
}
/** Part of "3D State Gallery" section related to a specific entry */
export declare function StateGalleryManagerControls(props: {
manager: StateGalleryManager;
}): import("react/jsx-runtime").JSX.Element;
/** Box in viewport with image title and arrows to move between images (3D states) */
export declare function StateGalleryTitleBox(): import("react/jsx-runtime").JSX.Element | null;
export {};