ketcher-react 2.17.0-rc.3 → 2.18.0-rc.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/Icon/utils/iconNameToIcon.d.ts +3 -0
- package/dist/components/StructRender/StructRender.d.ts +1 -1
- package/dist/components/StructRender/types.d.ts +1 -0
- package/dist/index.css +1 -1
- package/dist/index.css.map +1 -1
- package/dist/index.js +1130 -1033
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +1125 -1028
- package/dist/index.modern.js.map +1 -1
- package/dist/script/editor/Editor.d.ts +2 -2
- package/dist/script/editor/tool/helper/isMacroMolecule.d.ts +5 -0
- package/dist/script/editor/tool/select.d.ts +1 -1
- package/dist/script/ui/action/index.d.ts +8 -0
- package/dist/script/ui/action/server.d.ts +88 -124
- package/dist/script/ui/views/toolbars/TopToolbar/ExternalFuncControls.d.ts +2 -1
- package/dist/script/ui/views/toolbars/TopToolbar/TopToolbar.container.d.ts +1 -1
- package/dist/script/ui/views/toolbars/TopToolbar/TopToolbar.d.ts +2 -1
- package/package.json +1 -1
- package/dist/script/ui/data/convert/keynorm.d.ts +0 -7
|
@@ -75,8 +75,8 @@ declare class Editor implements KetcherEditor {
|
|
|
75
75
|
setOrigin(): void;
|
|
76
76
|
tool(name?: any, opts?: any): Tool | null;
|
|
77
77
|
clear(): void;
|
|
78
|
-
renderAndRecoordinateStruct(struct: Struct): Struct;
|
|
79
|
-
struct(value?: Struct): Struct;
|
|
78
|
+
renderAndRecoordinateStruct(struct: Struct, needToCenterStruct?: boolean): Struct;
|
|
79
|
+
struct(value?: Struct, needToCenterStruct?: boolean): Struct;
|
|
80
80
|
structToAddFragment(value: Struct): Struct;
|
|
81
81
|
setOptions(opts: string): false | import("ketcher-core/dist/application/render/render.types").RenderOptions;
|
|
82
82
|
options(value?: any): import("ketcher-core/dist/application/render/render.types").RenderOptions;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { Editor } from '../../Editor';
|
|
2
|
+
declare const isMacroMolecule: (editor: Editor, id: number) => boolean;
|
|
3
|
+
declare const isMergingToMacroMolecule: (editor: Editor, dragCtx: any) => boolean;
|
|
4
|
+
declare const isBondingWithMacroMolecule: (editor: Editor, event: MouseEvent) => boolean | undefined;
|
|
5
|
+
export { isBondingWithMacroMolecule, isMacroMolecule, isMergingToMacroMolecule, };
|
|
@@ -26,7 +26,7 @@ declare class SelectTool implements Tool {
|
|
|
26
26
|
readonly isMoving = false;
|
|
27
27
|
constructor(editor: Editor, mode: SelectMode);
|
|
28
28
|
isSelectionRunning(): boolean;
|
|
29
|
-
mousedown(event: any):
|
|
29
|
+
mousedown(event: any): true | undefined;
|
|
30
30
|
mousemove(event: any): boolean;
|
|
31
31
|
mouseup(event: any): void;
|
|
32
32
|
dblclick(event: any): true | undefined;
|
|
@@ -488,6 +488,14 @@ declare const config: {
|
|
|
488
488
|
};
|
|
489
489
|
hidden: (options: any) => boolean;
|
|
490
490
|
};
|
|
491
|
+
'explicit-hydrogens': {
|
|
492
|
+
title: string;
|
|
493
|
+
action: {
|
|
494
|
+
thunk: (dispatch: any, getState: any) => void;
|
|
495
|
+
};
|
|
496
|
+
disabled: (editor: any, server: any, options: any) => boolean;
|
|
497
|
+
hidden: (options: any) => boolean;
|
|
498
|
+
};
|
|
491
499
|
clear: {
|
|
492
500
|
shortcut: string;
|
|
493
501
|
title: string;
|
|
@@ -1,125 +1,89 @@
|
|
|
1
1
|
export default config;
|
|
2
|
-
declare
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
export { title_6 as title };
|
|
91
|
-
export namespace action_6 {
|
|
92
|
-
const dialog_1: string;
|
|
93
|
-
export { dialog_1 as dialog };
|
|
94
|
-
}
|
|
95
|
-
export { action_6 as action };
|
|
96
|
-
export function disabled_6(editor: any, server: any, options: any): boolean;
|
|
97
|
-
export { disabled_6 as disabled };
|
|
98
|
-
export function hidden_6(options: any): boolean;
|
|
99
|
-
export { hidden_6 as hidden };
|
|
100
|
-
}
|
|
101
|
-
namespace recognize {
|
|
102
|
-
const title_7: string;
|
|
103
|
-
export { title_7 as title };
|
|
104
|
-
export namespace action_7 {
|
|
105
|
-
const dialog_2: string;
|
|
106
|
-
export { dialog_2 as dialog };
|
|
107
|
-
}
|
|
108
|
-
export { action_7 as action };
|
|
109
|
-
export function disabled_7(editor: any, server: any, options: any): boolean;
|
|
110
|
-
export { disabled_7 as disabled };
|
|
111
|
-
export function hidden_7(options: any): boolean;
|
|
112
|
-
export { hidden_7 as hidden };
|
|
113
|
-
}
|
|
114
|
-
namespace miew {
|
|
115
|
-
const title_8: string;
|
|
116
|
-
export { title_8 as title };
|
|
117
|
-
export namespace action_8 {
|
|
118
|
-
const dialog_3: string;
|
|
119
|
-
export { dialog_3 as dialog };
|
|
120
|
-
}
|
|
121
|
-
export { action_8 as action };
|
|
122
|
-
export function hidden_8(options: any): boolean;
|
|
123
|
-
export { hidden_8 as hidden };
|
|
124
|
-
}
|
|
125
|
-
}
|
|
2
|
+
declare const config: {
|
|
3
|
+
layout: {
|
|
4
|
+
shortcut: string;
|
|
5
|
+
title: string;
|
|
6
|
+
action: {
|
|
7
|
+
thunk: (dispatch: any, getState: any) => void;
|
|
8
|
+
};
|
|
9
|
+
disabled: (editor: any, server: any, options: any) => boolean;
|
|
10
|
+
hidden: (options: any) => boolean;
|
|
11
|
+
};
|
|
12
|
+
clean: {
|
|
13
|
+
shortcut: string;
|
|
14
|
+
title: string;
|
|
15
|
+
action: {
|
|
16
|
+
thunk: (dispatch: any, getState: any) => void;
|
|
17
|
+
};
|
|
18
|
+
disabled: (editor: any, server: any, options: any) => boolean;
|
|
19
|
+
hidden: (options: any) => boolean;
|
|
20
|
+
};
|
|
21
|
+
arom: {
|
|
22
|
+
shortcut: string;
|
|
23
|
+
title: string;
|
|
24
|
+
action: {
|
|
25
|
+
thunk: (dispatch: any, getState: any) => void;
|
|
26
|
+
};
|
|
27
|
+
disabled: (editor: any, server: any, options: any) => boolean;
|
|
28
|
+
hidden: (options: any) => boolean;
|
|
29
|
+
};
|
|
30
|
+
dearom: {
|
|
31
|
+
shortcut: string;
|
|
32
|
+
title: string;
|
|
33
|
+
action: {
|
|
34
|
+
thunk: (dispatch: any, getState: any) => void;
|
|
35
|
+
};
|
|
36
|
+
disabled: (editor: any, server: any, options: any) => boolean;
|
|
37
|
+
hidden: (options: any) => boolean;
|
|
38
|
+
};
|
|
39
|
+
cip: {
|
|
40
|
+
shortcut: string;
|
|
41
|
+
title: string;
|
|
42
|
+
action: {
|
|
43
|
+
thunk: (dispatch: any, getState: any) => void;
|
|
44
|
+
};
|
|
45
|
+
disabled: (editor: any, server: any, options: any) => boolean;
|
|
46
|
+
hidden: (options: any) => boolean;
|
|
47
|
+
};
|
|
48
|
+
check: {
|
|
49
|
+
shortcut: string;
|
|
50
|
+
title: string;
|
|
51
|
+
action: {
|
|
52
|
+
dialog: string;
|
|
53
|
+
};
|
|
54
|
+
disabled: (editor: any, server: any, options: any) => boolean;
|
|
55
|
+
hidden: (options: any) => boolean;
|
|
56
|
+
};
|
|
57
|
+
analyse: {
|
|
58
|
+
shortcut: string;
|
|
59
|
+
title: string;
|
|
60
|
+
action: {
|
|
61
|
+
dialog: string;
|
|
62
|
+
};
|
|
63
|
+
disabled: (editor: any, server: any, options: any) => boolean;
|
|
64
|
+
hidden: (options: any) => boolean;
|
|
65
|
+
};
|
|
66
|
+
recognize: {
|
|
67
|
+
title: string;
|
|
68
|
+
action: {
|
|
69
|
+
dialog: string;
|
|
70
|
+
};
|
|
71
|
+
disabled: (editor: any, server: any, options: any) => boolean;
|
|
72
|
+
hidden: (options: any) => boolean;
|
|
73
|
+
};
|
|
74
|
+
miew: {
|
|
75
|
+
title: string;
|
|
76
|
+
action: {
|
|
77
|
+
dialog: string;
|
|
78
|
+
};
|
|
79
|
+
hidden: (options: any) => boolean;
|
|
80
|
+
};
|
|
81
|
+
'explicit-hydrogens': {
|
|
82
|
+
title: string;
|
|
83
|
+
action: {
|
|
84
|
+
thunk: (dispatch: any, getState: any) => void;
|
|
85
|
+
};
|
|
86
|
+
disabled: (editor: any, server: any, options: any) => boolean;
|
|
87
|
+
hidden: (options: any) => boolean;
|
|
88
|
+
};
|
|
89
|
+
};
|
|
@@ -23,6 +23,7 @@ interface ExternalFuncProps {
|
|
|
23
23
|
onCheck: () => void;
|
|
24
24
|
onAnalyse: () => void;
|
|
25
25
|
onMiew: () => void;
|
|
26
|
+
onToggleExplicitHydrogens: () => void;
|
|
26
27
|
disabledButtons: string[];
|
|
27
28
|
hiddenButtons: string[];
|
|
28
29
|
indigoVerification: boolean;
|
|
@@ -30,5 +31,5 @@ interface ExternalFuncProps {
|
|
|
30
31
|
[key in string]: string;
|
|
31
32
|
};
|
|
32
33
|
}
|
|
33
|
-
export declare const ExternalFuncControls: ({ isCollapsed, onLayout, onClean, onAromatize, onDearomatize, onCalculate, onCheck, onAnalyse, onMiew, disabledButtons, indigoVerification, hiddenButtons, shortcuts, }: ExternalFuncProps) => import("react/jsx-runtime").JSX.Element;
|
|
34
|
+
export declare const ExternalFuncControls: ({ isCollapsed, onLayout, onClean, onAromatize, onDearomatize, onCalculate, onCheck, onAnalyse, onMiew, onToggleExplicitHydrogens, disabledButtons, indigoVerification, hiddenButtons, shortcuts, }: ExternalFuncProps) => import("react/jsx-runtime").JSX.Element;
|
|
34
35
|
export {};
|
|
@@ -13,5 +13,5 @@
|
|
|
13
13
|
* See the License for the specific language governing permissions and
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
***************************************************************************/
|
|
16
|
-
declare const TopToolbarContainer: import("react-redux").ConnectedComponent<({ className, disabledButtons, indigoVerification, hiddenButtons, shortcuts, onClear, onFileOpen, onSave, onUndo, onRedo, onCopy, onCopyMol, onCopyKet, onCopyImage, onCut, onPaste, currentZoom, onZoom, onZoomIn, onZoomOut, onSettingsOpen, onLayout, onClean, onAromatize, onDearomatize, onCalculate, onCheck, onAnalyse, onMiew, onFullscreen, onAbout, onHelp, togglerComponent, }: import("./TopToolbar").PanelProps) => import("react/jsx-runtime").JSX.Element, import("react-redux").Omit<import("./TopToolbar").PanelProps, "disabledButtons" | "indigoVerification" | "hiddenButtons" | "shortcuts" | "onClear" | "onFileOpen" | "onSave" | "onUndo" | "onRedo" | "onCopy" | "onCopyMol" | "onCopyKet" | "onCopyImage" | "onCut" | "onPaste" | "currentZoom" | "onZoom" | "onZoomIn" | "onZoomOut" | "onSettingsOpen" | "onLayout" | "onClean" | "onAromatize" | "onDearomatize" | "onCalculate" | "onCheck" | "onAnalyse" | "onMiew" | "onFullscreen" | "onAbout" | "onHelp">>;
|
|
16
|
+
declare const TopToolbarContainer: import("react-redux").ConnectedComponent<({ className, disabledButtons, indigoVerification, hiddenButtons, shortcuts, onClear, onFileOpen, onSave, onUndo, onRedo, onCopy, onCopyMol, onCopyKet, onCopyImage, onCut, onPaste, currentZoom, onZoom, onZoomIn, onZoomOut, onSettingsOpen, onLayout, onClean, onAromatize, onDearomatize, onCalculate, onCheck, onAnalyse, onMiew, onToggleExplicitHydrogens, onFullscreen, onAbout, onHelp, togglerComponent, }: import("./TopToolbar").PanelProps) => import("react/jsx-runtime").JSX.Element, import("react-redux").Omit<import("./TopToolbar").PanelProps, "disabledButtons" | "indigoVerification" | "hiddenButtons" | "shortcuts" | "onClear" | "onFileOpen" | "onSave" | "onUndo" | "onRedo" | "onCopy" | "onCopyMol" | "onCopyKet" | "onCopyImage" | "onCut" | "onPaste" | "currentZoom" | "onZoom" | "onZoomIn" | "onZoomOut" | "onSettingsOpen" | "onLayout" | "onClean" | "onAromatize" | "onDearomatize" | "onCalculate" | "onCheck" | "onAnalyse" | "onMiew" | "onToggleExplicitHydrogens" | "onFullscreen" | "onAbout" | "onHelp">>;
|
|
17
17
|
export { TopToolbarContainer };
|
|
@@ -47,10 +47,11 @@ export interface PanelProps {
|
|
|
47
47
|
onCheck: VoidFunction;
|
|
48
48
|
onAnalyse: VoidFunction;
|
|
49
49
|
onMiew: VoidFunction;
|
|
50
|
+
onToggleExplicitHydrogens: VoidFunction;
|
|
50
51
|
onFullscreen: VoidFunction;
|
|
51
52
|
onAbout: VoidFunction;
|
|
52
53
|
onHelp: VoidFunction;
|
|
53
54
|
togglerComponent?: JSX.Element;
|
|
54
55
|
}
|
|
55
|
-
export declare const TopToolbar: ({ className, disabledButtons, indigoVerification, hiddenButtons, shortcuts, onClear, onFileOpen, onSave, onUndo, onRedo, onCopy, onCopyMol, onCopyKet, onCopyImage, onCut, onPaste, currentZoom, onZoom, onZoomIn, onZoomOut, onSettingsOpen, onLayout, onClean, onAromatize, onDearomatize, onCalculate, onCheck, onAnalyse, onMiew, onFullscreen, onAbout, onHelp, togglerComponent, }: PanelProps) => import("react/jsx-runtime").JSX.Element;
|
|
56
|
+
export declare const TopToolbar: ({ className, disabledButtons, indigoVerification, hiddenButtons, shortcuts, onClear, onFileOpen, onSave, onUndo, onRedo, onCopy, onCopyMol, onCopyKet, onCopyImage, onCut, onPaste, currentZoom, onZoom, onZoomIn, onZoomOut, onSettingsOpen, onLayout, onClean, onAromatize, onDearomatize, onCalculate, onCheck, onAnalyse, onMiew, onToggleExplicitHydrogens, onFullscreen, onAbout, onHelp, togglerComponent, }: PanelProps) => import("react/jsx-runtime").JSX.Element;
|
|
56
57
|
export {};
|
package/package.json
CHANGED