ketcher-react
Version:
Web-based molecule sketcher
107 lines (106 loc) • 3.15 kB
TypeScript
export function appUpdate(data: any): (dispatch: any) => void;
export function saveSettings(newSettings: any): {
type: string;
data: any;
};
export function changeRound(roundName: any, value: any): {
type: string;
data: {
[x: number]: any;
};
};
export function setStruct(str: any): {
type: string;
data: {
structStr: any;
};
};
export function changeVersion(version: any): {
type: string;
data: {
version: any;
};
};
export function changeImage(file: any): {
type: string;
data: {
file: any;
structStr: null;
};
};
export function shouldFragment(isFrag: any): {
type: string;
data: {
fragment: any;
};
};
export function checkOpts(data: any): {
type: string;
data: any;
};
export namespace initOptionsState {
namespace app {
const server: boolean;
const templates: boolean;
const functionalGroups: boolean;
const saltsAndSolvents: boolean;
}
namespace analyse {
const values: null;
const roundWeight: number;
const roundMass: number;
const roundElAnalysis: number;
}
namespace check {
const checkOptions: string[];
}
namespace recognize {
const file: null;
const structStr: null;
const fragment: boolean;
const version: null;
}
const settings: Record<string, any> & Record<string, string>;
function getSettings(): void;
function getSettings(): void;
function getServerSettings(): {
'render-coloring': any;
'render-font-size': any;
'render-font-size-unit': any;
'render-font-size-sub': any;
'render-font-size-sub-unit': any;
'image-resolution': number;
'bond-length': any;
'bond-length-unit': any;
'render-bond-thickness': any;
'render-bond-thickness-unit': any;
'render-bond-spacing': number;
'render-stereo-bond-width': any;
'render-stereo-bond-width-unit': any;
'render-hash-spacing': any;
'render-hash-spacing-unit': any;
'reaction-component-margin-size': any;
'reaction-component-margin-size-unit': any;
};
function getServerSettings(): {
'render-coloring': any;
'render-font-size': any;
'render-font-size-unit': any;
'render-font-size-sub': any;
'render-font-size-sub-unit': any;
'image-resolution': number;
'bond-length': any;
'bond-length-unit': any;
'render-bond-thickness': any;
'render-bond-thickness-unit': any;
'render-bond-spacing': number;
'render-stereo-bond-width': any;
'render-stereo-bond-width-unit': any;
'render-hash-spacing': any;
'render-hash-spacing-unit': any;
'reaction-component-margin-size': any;
'reaction-component-margin-size-unit': any;
};
}
export default optionsReducer;
declare function optionsReducer(state: {} | undefined, action: any): {};