molstar-partial-charges
Version:
Molstar plugin for partial charges
55 lines • 1.95 kB
TypeScript
import { PluginUIContext } from 'molstar/lib/commonjs/mol-plugin-ui/context';
import { BuiltInTrajectoryFormat } from 'molstar/lib/commonjs/mol-plugin-state/formats/trajectory';
import { AtomKey, Extensions, TargetWebApp } from './types';
export default class MolstarPartialCharges {
plugin: PluginUIContext;
constructor(plugin: PluginUIContext);
static create(target: string, extensions?: Extensions): Promise<MolstarPartialCharges>;
load(url: string, format?: BuiltInTrajectoryFormat, targetWebApp?: TargetWebApp): Promise<void>;
charges: {
getMethodNames: () => (string | undefined)[];
getTypeId: () => number;
setTypeId: (typeId: number) => void;
getMaxCharge: () => number;
};
color: {
default: () => Promise<void>;
alphaFold: () => Promise<void>;
absolute: (max: number) => Promise<void>;
relative: () => Promise<void>;
};
type: {
isDefaultApplicable: () => boolean;
default: () => Promise<void>;
ballAndStick: () => Promise<void>;
surface: () => Promise<void>;
};
behavior: {
focus: (key: AtomKey) => void;
focusRange: (range: {
residueStart: number;
residueEnd: number;
}) => void;
};
private readonly defaultProps;
private readonly ballAndStickTypeProps;
private readonly surfaceTypeProps;
private readonly partialChargesColorProps;
private readonly elementSymbolColorProps;
private readonly plddtColorProps;
private readonly physicalSizeProps;
private setInitialRepresentationState;
private updateType;
private updateColor;
private sanityCheck;
private updateGranularity;
private updateFocusColorTheme;
private getModel;
private isTypeIdValid;
}
declare global {
interface Window {
MolstarPartialCharges: typeof MolstarPartialCharges;
}
}
//# sourceMappingURL=viewer.d.ts.map