UNPKG

molstar

Version:

A comprehensive macromolecular library.

37 lines (36 loc) 1.64 kB
/** * Copyright (c) 2020 mol* contributors, licensed under MIT, See LICENSE file for more info. * * @author David Sehnal <david.sehnal@gmail.com> * @author Alexander Rose <alexander.rose@weirdbyte.de> */ /// <reference types="react" /> import { StructureComponentManager } from '../../mol-plugin-state/manager/structure/component'; import { ParamDefinition } from '../../mol-util/param-definition'; import { CollapsableControls, CollapsableState, PurePluginUIComponent } from '../base'; interface StructureComponentControlState extends CollapsableState { isDisabled: boolean; } export declare class StructureComponentControls extends CollapsableControls<{}, StructureComponentControlState> { protected defaultState(): StructureComponentControlState; componentDidMount(): void; renderControls(): JSX.Element; } interface AddComponentControlsState { params: ParamDefinition.Params; values: StructureComponentManager.AddParams; } interface AddComponentControlsProps { forSelection?: boolean; onApply: () => void; } export declare class AddComponentControls extends PurePluginUIComponent<AddComponentControlsProps, AddComponentControlsState> { createState(): AddComponentControlsState; state: AddComponentControlsState; get selectedStructures(): readonly import("../../mol-plugin-state/manager/structure/hierarchy-state").StructureRef[]; get currentStructures(): import("../../mol-plugin-state/manager/structure/hierarchy-state").StructureRef[]; apply: () => void; paramsChanged: (values: any) => void; render(): JSX.Element; } export {};