molstar
Version:
A comprehensive macromolecular library.
39 lines (38 loc) • 1.6 kB
TypeScript
/**
* Copyright (c) 2018-2021 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>
*/
import { ParamDefinition as PD } from '../mol-util/param-definition';
import { StatefulPluginComponent } from '../mol-plugin-state/component';
import { PluginContext } from './context';
export declare type PluginLayoutControlsDisplay = 'outside' | 'portrait' | 'landscape' | 'reactive';
export declare const PluginLayoutStateParams: {
isExpanded: PD.BooleanParam;
showControls: PD.BooleanParam;
regionState: PD.Group<PD.Normalize<{
left: "full" | "collapsed" | "hidden";
top: "full" | "hidden";
right: "full" | "hidden";
bottom: "full" | "hidden";
}>>;
controlsDisplay: PD.Value<PluginLayoutControlsDisplay>;
};
export declare type PluginLayoutStateProps = PD.Values<typeof PluginLayoutStateParams>;
export declare type LeftPanelTabName = 'none' | 'root' | 'data' | 'states' | 'settings' | 'help';
export declare class PluginLayout extends StatefulPluginComponent<PluginLayoutStateProps> {
private context;
readonly events: {
updated: import("rxjs").Subject<unknown>;
};
private updateProps;
root: HTMLElement | undefined;
private rootState;
private expandedViewport;
setProps(props: Partial<PluginLayoutStateProps>): void;
setRoot(root: HTMLElement): void;
private getScrollElement;
private handleExpand;
constructor(context: PluginContext);
}