ketcher-react 2.2.0 → 2.3.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/LICENSE +1 -1
- package/dist/Editor.d.ts +3 -0
- package/dist/contexts/appContext.d.ts +6 -0
- package/dist/contexts/index.d.ts +3 -2
- package/dist/hooks/index.d.ts +1 -0
- package/dist/hooks/useAppContext.d.ts +1 -0
- package/dist/hooks/useResizeObserver.d.ts +1 -1
- package/dist/hooks/useSettingsContext.d.ts +1 -1
- package/dist/index.css +3 -2
- package/dist/index.css.map +1 -1
- package/dist/index.d.ts +2 -0
- package/dist/index.js +16256 -21706
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +16169 -21618
- package/dist/index.modern.js.map +1 -1
- package/dist/script/api.d.ts +2 -2
- package/dist/script/builders/ketcher/KetcherBuilder.d.ts +1 -1
- package/dist/script/editor/Editor.d.ts +11 -4
- package/dist/script/editor/actions/bond.d.ts +24 -24
- package/dist/script/editor/actions/reaction.d.ts +1 -1
- package/dist/script/editor/actions/text.d.ts +6 -0
- package/dist/script/editor/actions/utils.d.ts +1 -2
- package/dist/script/editor/operations/CanvasLoad.d.ts +1 -1
- package/dist/script/editor/operations/EnhancedFlagMove.d.ts +1 -1
- package/dist/script/editor/operations/FragmentStereoFlag.d.ts +3 -5
- package/dist/script/editor/operations/LoopMove.d.ts +1 -1
- package/dist/script/editor/operations/OperationType.d.ts +5 -0
- package/dist/script/editor/operations/Text/TextCreateDelete.d.ts +41 -0
- package/dist/script/{chem/struct/simpleObject.d.ts → editor/operations/Text/TextMove.d.ts} +12 -15
- package/dist/script/{util/pool.d.ts → editor/operations/Text/TextUpdate.d.ts} +14 -10
- package/dist/script/editor/operations/Text/index.d.ts +3 -0
- package/dist/script/editor/operations/atom/AtomAttr.d.ts +1 -1
- package/dist/script/editor/operations/atom/AtomMove.d.ts +1 -1
- package/dist/script/editor/operations/base.d.ts +2 -2
- package/dist/script/editor/operations/bond/BondAttr.d.ts +1 -1
- package/dist/script/editor/operations/bond/BondMove.d.ts +1 -1
- package/dist/script/editor/operations/bond/index.d.ts +15 -0
- package/dist/script/{util/pile.d.ts → editor/operations/calcimplicitH.d.ts} +8 -10
- package/dist/script/editor/operations/fragment.d.ts +1 -1
- package/dist/script/editor/operations/fragmentStereoAtom.d.ts +1 -1
- package/dist/script/editor/operations/index.d.ts +2 -0
- package/dist/script/editor/operations/rxn/index.d.ts +18 -1
- package/dist/script/editor/operations/rxn/plus/RxnPlusMove.d.ts +1 -1
- package/dist/script/editor/operations/sgroup/index.d.ts +1 -1
- package/dist/script/editor/operations/sgroup/sgroupHierarchy.d.ts +0 -2
- package/dist/script/editor/operations/simpleObject.d.ts +9 -11
- package/dist/script/editor/shared/action.d.ts +2 -2
- package/dist/script/editor/shared/utils.d.ts +2 -2
- package/dist/script/editor/tool/attach.d.ts +4 -1
- package/dist/script/editor/tool/enhanced-stereo.d.ts +2 -1
- package/dist/script/editor/tool/helper/lasso.d.ts +3 -0
- package/dist/script/editor/tool/helper/locate.d.ts +2 -0
- package/dist/script/editor/tool/index.d.ts +2 -0
- package/dist/script/editor/tool/reactionarrow.d.ts +4 -4
- package/dist/script/editor/tool/rotate.d.ts +1 -1
- package/dist/script/editor/tool/text.d.ts +27 -0
- package/dist/script/editor/utils/elementOffset.d.ts +1 -1
- package/dist/script/index.d.ts +1 -1
- package/dist/script/ketcher.d.ts +1 -2
- package/dist/script/render/draw.d.ts +13 -7
- package/dist/script/render/index.d.ts +5 -5
- package/dist/script/render/restruct/GeneralEnumTypes.d.ts +35 -0
- package/dist/script/render/restruct/ReEnhancedFlag.d.ts +28 -0
- package/dist/script/render/restruct/ReObject.d.ts +32 -0
- package/dist/script/render/restruct/ReSimpleObject.d.ts +40 -0
- package/dist/script/render/restruct/ReStruct.d.ts +110 -0
- package/dist/script/render/restruct/ReText.d.ts +38 -0
- package/dist/script/render/restruct/index.d.ts +5 -84
- package/dist/script/render/restruct/reatom.d.ts +41 -17
- package/dist/script/render/restruct/rebond.d.ts +36 -26
- package/dist/script/render/restruct/redatasgroupdata.d.ts +3 -7
- package/dist/script/render/restruct/refrag.d.ts +3 -7
- package/dist/script/render/restruct/reloop.d.ts +4 -8
- package/dist/script/render/restruct/rergroup.d.ts +4 -7
- package/dist/script/render/restruct/rerxnarrow.d.ts +3 -7
- package/dist/script/render/restruct/rerxnplus.d.ts +3 -7
- package/dist/script/render/restruct/resgroup.d.ts +3 -6
- package/dist/script/render/restruct/visel.d.ts +1 -2
- package/dist/script/render/util.d.ts +1 -1
- package/dist/script/ui/action/action.types.d.ts +1 -1
- package/dist/script/ui/action/atoms.d.ts +1 -1
- package/dist/script/ui/action/debug.d.ts +2 -2
- package/dist/script/ui/action/index.d.ts +392 -2
- package/dist/script/ui/action/templates.d.ts +10 -1
- package/dist/script/ui/action/tools.d.ts +16 -1
- package/dist/script/ui/component/form/colorPicker/ColorPicker.d.ts +12 -0
- package/dist/script/{chem/molfile/molfile.test.d.ts → ui/component/form/colorPicker/ColorPicker.test.d.ts} +0 -0
- package/dist/script/ui/component/view/savebutton.d.ts +1 -5
- package/dist/script/ui/data/convert/structConverter.d.ts +3 -3
- package/dist/script/ui/data/convert/structconv.d.ts +6 -4
- package/dist/script/ui/data/schema/options-schema.d.ts +25 -167
- package/dist/script/ui/data/schema/struct-schema.d.ts +20 -2
- package/dist/script/ui/data/templates.d.ts +1 -1
- package/dist/script/ui/dialog/index.d.ts +43 -7
- package/dist/script/ui/dialog/template/TemplateLib.d.ts +1 -1
- package/dist/script/ui/dialog/template/TemplateTable.d.ts +1 -1
- package/dist/script/ui/dialog/toolbox/enhancedStereo.d.ts +2 -0
- package/dist/script/ui/state/constants.d.ts +7 -0
- package/dist/script/ui/state/editor/index.d.ts +1 -2
- package/dist/script/ui/state/modal/form.d.ts +10 -2
- package/dist/script/ui/state/options/index.d.ts +4 -3
- package/dist/script/ui/state/shared.d.ts +1 -1
- package/dist/script/ui/views/components/Dialog/Dialog.d.ts +6 -8
- package/dist/script/ui/views/components/Dialog/index.d.ts +1 -1
- package/dist/script/ui/views/components/index.d.ts +1 -2
- package/dist/script/ui/views/modal/Modal.d.ts +4 -7
- package/dist/script/{format/chemGraph/toGraph/simpleObjectToGraph.d.ts → ui/views/modal/components/Text/Text.d.ts} +4 -5
- package/dist/script/ui/views/modal/components/Text/TextButton/TextButton.d.ts +14 -0
- package/dist/script/ui/views/modal/components/Text/TextButton/index.d.ts +1 -0
- package/dist/script/{util/scale.d.ts → ui/views/modal/components/Text/index.d.ts} +2 -8
- package/dist/script/ui/views/modal/components/document/Open/Open.container.d.ts +18 -0
- package/dist/script/ui/views/modal/components/document/Open/Open.d.ts +24 -2
- package/dist/script/ui/views/modal/components/document/Open/index.d.ts +1 -1
- package/dist/script/ui/views/modal/components/document/Save/SaveImageTab.d.ts +4 -0
- package/dist/script/ui/views/modal/components/meta/Settings/Settings.d.ts +16 -1
- package/dist/script/ui/views/modal/components/meta/Settings/components/Accordion/Accordion.d.ts +35 -13
- package/dist/script/ui/views/modal/components/toolbox/Atom/Atom.container.d.ts +20 -0
- package/dist/script/ui/views/modal/components/toolbox/Atom/Atom.d.ts +36 -0
- package/dist/script/ui/views/modal/components/toolbox/Atom/ElementNumber/ElementNumber.d.ts +6 -0
- package/dist/script/ui/views/modal/components/toolbox/Atom/ElementNumber/index.d.ts +16 -0
- package/dist/script/ui/views/modal/components/toolbox/Atom/index.d.ts +16 -0
- package/dist/script/ui/views/modal/components/toolbox/Attach/Attach.container.d.ts +20 -0
- package/dist/script/ui/views/modal/components/toolbox/Attach/Attach.d.ts +24 -0
- package/dist/script/ui/views/modal/components/toolbox/Attach/index.d.ts +16 -0
- package/dist/script/ui/views/modal/components/toolbox/Automap/Automap.container.d.ts +20 -0
- package/dist/script/ui/views/modal/components/toolbox/Automap/Automap.d.ts +32 -0
- package/dist/script/ui/views/modal/components/toolbox/Automap/index.d.ts +16 -0
- package/dist/script/ui/views/modal/components/toolbox/Bond/Bond.container.d.ts +20 -0
- package/dist/script/ui/views/modal/components/toolbox/Bond/Bond.d.ts +10 -0
- package/dist/script/ui/views/modal/components/toolbox/Bond/index.d.ts +16 -0
- package/dist/script/ui/views/modal/components/toolbox/RgroupLogic/RgroupLogic.container.d.ts +20 -0
- package/dist/script/ui/views/modal/components/toolbox/RgroupLogic/RgroupLogic.d.ts +28 -0
- package/dist/script/ui/views/modal/components/toolbox/RgroupLogic/components/IfThenSelect/IfThenSelect.d.ts +19 -0
- package/dist/script/ui/views/modal/components/toolbox/RgroupLogic/components/IfThenSelect/index.d.ts +16 -0
- package/dist/script/ui/views/modal/components/toolbox/RgroupLogic/components/index.d.ts +16 -0
- package/dist/script/ui/views/modal/components/toolbox/RgroupLogic/index.d.ts +16 -0
- package/dist/script/ui/views/modal/components/toolbox/index.d.ts +21 -0
- package/dist/script/ui/views/modal/modal.types.d.ts +28 -0
- package/dist/script/ui/views/toolbars/LeftToolbar/Bond/options.d.ts +2 -1
- package/dist/script/ui/views/toolbars/LeftToolbar/LeftToolbar.container.d.ts +1 -1
- package/dist/script/ui/views/toolbars/LeftToolbar/LeftToolbar.d.ts +15 -1
- package/dist/script/ui/views/toolbars/LeftToolbar/RGroup/RGroup.d.ts +15 -0
- package/dist/script/ui/views/toolbars/LeftToolbar/Shape/Shape.d.ts +15 -0
- package/dist/script/ui/views/toolbars/mediaSizes.d.ts +0 -1
- package/dist/script/ui/views/toolbars/toolbar.types.d.ts +3 -3
- package/package.json +7 -3
- package/dist/script/chem/element-color.d.ts +0 -2
- package/dist/script/chem/element.d.ts +0 -57
- package/dist/script/chem/generics.d.ts +0 -5
- package/dist/script/chem/molfile/common.d.ts +0 -34
- package/dist/script/chem/molfile/index.d.ts +0 -10
- package/dist/script/chem/molfile/molfile.d.ts +0 -47
- package/dist/script/chem/molfile/molfileFormat.d.ts +0 -1
- package/dist/script/chem/molfile/parseSGroup.d.ts +0 -42
- package/dist/script/chem/molfile/utils.d.ts +0 -66
- package/dist/script/chem/molfile/v2000.d.ts +0 -10
- package/dist/script/chem/molfile/v3000.d.ts +0 -10
- package/dist/script/chem/sdf.d.ts +0 -10
- package/dist/script/chem/smiles/cis_trans.d.ts +0 -25
- package/dist/script/chem/smiles/dfs.d.ts +0 -53
- package/dist/script/chem/smiles/index.d.ts +0 -5
- package/dist/script/chem/smiles/stereocenters.d.ts +0 -26
- package/dist/script/chem/struct/atom.d.ts +0 -66
- package/dist/script/chem/struct/atomlist.d.ts +0 -10
- package/dist/script/chem/struct/bond.d.ts +0 -72
- package/dist/script/chem/struct/fragment.d.ts +0 -50
- package/dist/script/chem/struct/index.d.ts +0 -137
- package/dist/script/chem/struct/rgroup.d.ts +0 -19
- package/dist/script/chem/struct/sgforest.d.ts +0 -42
- package/dist/script/chem/struct/sgroup.d.ts +0 -68
- package/dist/script/format/chemGraph/convertStruct.d.ts +0 -2
- package/dist/script/format/chemGraph/fromGraph/moleculeToStruct.d.ts +0 -10
- package/dist/script/format/chemGraph/fromGraph/rgroupToStruct.d.ts +0 -3
- package/dist/script/format/chemGraph/fromGraph/rxnToStruct.d.ts +0 -1
- package/dist/script/format/chemGraph/fromGraph/simpleObjectToStruct.d.ts +0 -1
- package/dist/script/format/chemGraph/index.d.ts +0 -13
- package/dist/script/format/chemGraph/toGraph/headerToGraph.d.ts +0 -1
- package/dist/script/format/chemGraph/toGraph/moleculeToGraph.d.ts +0 -4
- package/dist/script/format/chemGraph/toGraph/prepare.d.ts +0 -14
- package/dist/script/format/chemGraph/toGraph/rgroupToGraph.d.ts +0 -5
- package/dist/script/format/chemGraph/toGraph/rxnToGraph.d.ts +0 -10
- package/dist/script/format/graphValidator.d.ts +0 -1
- package/dist/script/format/schemes/moleculeSchema.d.ts +0 -596
- package/dist/script/format/schemes/rgroupSchema.d.ts +0 -60
- package/dist/script/format/schemes/rootSchema.d.ts +0 -102
- package/dist/script/format/schemes/rxnSchemas.d.ts +0 -58
- package/dist/script/format/schemes/simpleObjectSchema.d.ts +0 -45
- package/dist/script/format/utils.d.ts +0 -1
- package/dist/script/render/restruct/reenhancedflag.d.ts +0 -15
- package/dist/script/render/restruct/reobject.d.ts +0 -15
- package/dist/script/render/restruct/resimpleobject.d.ts +0 -23
- package/dist/script/ui/dialog/toolbox/atom.d.ts +0 -2
- package/dist/script/ui/dialog/toolbox/attach.d.ts +0 -2
- package/dist/script/ui/dialog/toolbox/automap.d.ts +0 -18
- package/dist/script/ui/dialog/toolbox/bond.d.ts +0 -2
- package/dist/script/ui/dialog/toolbox/enhanced-stereo.d.ts +0 -2
- package/dist/script/ui/dialog/toolbox/rgroup-logic.d.ts +0 -2
- package/dist/script/util/banner.d.ts +0 -0
- package/dist/script/util/box2abs.d.ts +0 -23
- package/dist/script/util/vec2.d.ts +0 -75
|
@@ -1,3 +1,393 @@
|
|
|
1
1
|
export * from "./action.types";
|
|
2
|
-
|
|
3
|
-
|
|
2
|
+
export default config;
|
|
3
|
+
declare const config: {
|
|
4
|
+
'template-lib': {
|
|
5
|
+
shortcut: string;
|
|
6
|
+
title: string;
|
|
7
|
+
action: {
|
|
8
|
+
dialog: string;
|
|
9
|
+
};
|
|
10
|
+
disabled: (editor: any, server: any, options: any) => boolean;
|
|
11
|
+
};
|
|
12
|
+
zoom: {
|
|
13
|
+
selected: (editor: any) => any;
|
|
14
|
+
};
|
|
15
|
+
'zoom-out': {
|
|
16
|
+
shortcut: string[];
|
|
17
|
+
title: string;
|
|
18
|
+
disabled: (editor: any) => boolean;
|
|
19
|
+
action: (editor: any) => void;
|
|
20
|
+
};
|
|
21
|
+
'zoom-in': {
|
|
22
|
+
shortcut: string[];
|
|
23
|
+
title: string;
|
|
24
|
+
disabled: (editor: any) => boolean;
|
|
25
|
+
action: (editor: any) => void;
|
|
26
|
+
};
|
|
27
|
+
'select-lasso': {
|
|
28
|
+
title: string;
|
|
29
|
+
shortcut: string;
|
|
30
|
+
action: {
|
|
31
|
+
tool: string;
|
|
32
|
+
opts: string;
|
|
33
|
+
};
|
|
34
|
+
};
|
|
35
|
+
'select-rectangle': {
|
|
36
|
+
title: string;
|
|
37
|
+
shortcut: string;
|
|
38
|
+
action: {
|
|
39
|
+
tool: string;
|
|
40
|
+
opts: string;
|
|
41
|
+
};
|
|
42
|
+
};
|
|
43
|
+
'select-fragment': {
|
|
44
|
+
title: string;
|
|
45
|
+
shortcut: string;
|
|
46
|
+
action: {
|
|
47
|
+
tool: string;
|
|
48
|
+
opts: string;
|
|
49
|
+
};
|
|
50
|
+
};
|
|
51
|
+
erase: {
|
|
52
|
+
title: string;
|
|
53
|
+
shortcut: string[];
|
|
54
|
+
action: {
|
|
55
|
+
tool: string;
|
|
56
|
+
opts: number;
|
|
57
|
+
};
|
|
58
|
+
};
|
|
59
|
+
chain: {
|
|
60
|
+
title: string;
|
|
61
|
+
action: {
|
|
62
|
+
tool: string;
|
|
63
|
+
};
|
|
64
|
+
};
|
|
65
|
+
'enhanced-stereo': {
|
|
66
|
+
shortcut: string;
|
|
67
|
+
title: string;
|
|
68
|
+
action: {
|
|
69
|
+
tool: string;
|
|
70
|
+
};
|
|
71
|
+
};
|
|
72
|
+
'charge-plus': {
|
|
73
|
+
shortcut: string;
|
|
74
|
+
title: string;
|
|
75
|
+
action: {
|
|
76
|
+
tool: string;
|
|
77
|
+
opts: number;
|
|
78
|
+
};
|
|
79
|
+
};
|
|
80
|
+
'charge-minus': {
|
|
81
|
+
shortcut: string;
|
|
82
|
+
title: string;
|
|
83
|
+
action: {
|
|
84
|
+
tool: string;
|
|
85
|
+
opts: number;
|
|
86
|
+
};
|
|
87
|
+
};
|
|
88
|
+
'transform-rotate': {
|
|
89
|
+
shortcut: string;
|
|
90
|
+
title: string;
|
|
91
|
+
action: {
|
|
92
|
+
tool: string;
|
|
93
|
+
};
|
|
94
|
+
};
|
|
95
|
+
'transform-flip-h': {
|
|
96
|
+
shortcut: string;
|
|
97
|
+
title: string;
|
|
98
|
+
action: {
|
|
99
|
+
tool: string;
|
|
100
|
+
opts: string;
|
|
101
|
+
};
|
|
102
|
+
};
|
|
103
|
+
'transform-flip-v': {
|
|
104
|
+
shortcut: string;
|
|
105
|
+
title: string;
|
|
106
|
+
action: {
|
|
107
|
+
tool: string;
|
|
108
|
+
opts: string;
|
|
109
|
+
};
|
|
110
|
+
};
|
|
111
|
+
sgroup: {
|
|
112
|
+
shortcut: string;
|
|
113
|
+
title: string;
|
|
114
|
+
action: {
|
|
115
|
+
tool: string;
|
|
116
|
+
};
|
|
117
|
+
};
|
|
118
|
+
'sgroup-data': {
|
|
119
|
+
shortcut: string;
|
|
120
|
+
title: string;
|
|
121
|
+
action: {
|
|
122
|
+
tool: string;
|
|
123
|
+
opts: string;
|
|
124
|
+
};
|
|
125
|
+
};
|
|
126
|
+
'reaction-arrow': {
|
|
127
|
+
title: string;
|
|
128
|
+
action: {
|
|
129
|
+
tool: string;
|
|
130
|
+
opts: import("ketcher-core").RxnArrowMode;
|
|
131
|
+
};
|
|
132
|
+
};
|
|
133
|
+
'reaction-arrow-equilibrium': {
|
|
134
|
+
title: string;
|
|
135
|
+
action: {
|
|
136
|
+
tool: string;
|
|
137
|
+
opts: import("ketcher-core").RxnArrowMode;
|
|
138
|
+
};
|
|
139
|
+
};
|
|
140
|
+
'reaction-plus': {
|
|
141
|
+
title: string;
|
|
142
|
+
action: {
|
|
143
|
+
tool: string;
|
|
144
|
+
};
|
|
145
|
+
};
|
|
146
|
+
'reaction-map': {
|
|
147
|
+
title: string;
|
|
148
|
+
action: {
|
|
149
|
+
tool: string;
|
|
150
|
+
};
|
|
151
|
+
};
|
|
152
|
+
'reaction-unmap': {
|
|
153
|
+
title: string;
|
|
154
|
+
action: {
|
|
155
|
+
tool: string;
|
|
156
|
+
};
|
|
157
|
+
};
|
|
158
|
+
'rgroup-label': {
|
|
159
|
+
shortcut: string;
|
|
160
|
+
title: string;
|
|
161
|
+
action: {
|
|
162
|
+
tool: string;
|
|
163
|
+
};
|
|
164
|
+
};
|
|
165
|
+
'rgroup-fragment': {
|
|
166
|
+
shortcut: string[];
|
|
167
|
+
title: string;
|
|
168
|
+
action: {
|
|
169
|
+
tool: string;
|
|
170
|
+
};
|
|
171
|
+
};
|
|
172
|
+
'rgroup-attpoints': {
|
|
173
|
+
shortcut: string;
|
|
174
|
+
title: string;
|
|
175
|
+
action: {
|
|
176
|
+
tool: string;
|
|
177
|
+
};
|
|
178
|
+
};
|
|
179
|
+
'shape-ellipse': {
|
|
180
|
+
title: string;
|
|
181
|
+
action: {
|
|
182
|
+
tool: string;
|
|
183
|
+
opts: import("ketcher-core").SimpleObjectMode;
|
|
184
|
+
};
|
|
185
|
+
};
|
|
186
|
+
'shape-rectangle': {
|
|
187
|
+
title: string;
|
|
188
|
+
action: {
|
|
189
|
+
tool: string;
|
|
190
|
+
opts: import("ketcher-core").SimpleObjectMode;
|
|
191
|
+
};
|
|
192
|
+
};
|
|
193
|
+
'shape-line': {
|
|
194
|
+
title: string;
|
|
195
|
+
action: {
|
|
196
|
+
tool: string;
|
|
197
|
+
opts: import("ketcher-core").SimpleObjectMode;
|
|
198
|
+
};
|
|
199
|
+
};
|
|
200
|
+
text: {
|
|
201
|
+
title: string;
|
|
202
|
+
action: {
|
|
203
|
+
tool: string;
|
|
204
|
+
};
|
|
205
|
+
};
|
|
206
|
+
'force-update': {
|
|
207
|
+
shortcut: string;
|
|
208
|
+
action: (editor: any) => void;
|
|
209
|
+
};
|
|
210
|
+
'qs-serialize': {
|
|
211
|
+
shortcut: string;
|
|
212
|
+
action: (editor: any) => void;
|
|
213
|
+
};
|
|
214
|
+
layout: {
|
|
215
|
+
shortcut: string;
|
|
216
|
+
title: string;
|
|
217
|
+
action: {
|
|
218
|
+
thunk: (dispatch: any, getState: any) => void;
|
|
219
|
+
};
|
|
220
|
+
disabled: (editor: any, server: any, options: any) => boolean;
|
|
221
|
+
hidden: (options: any) => boolean;
|
|
222
|
+
};
|
|
223
|
+
clean: {
|
|
224
|
+
shortcut: string;
|
|
225
|
+
title: string;
|
|
226
|
+
action: {
|
|
227
|
+
thunk: (dispatch: any, getState: any) => void;
|
|
228
|
+
};
|
|
229
|
+
disabled: (editor: any, server: any, options: any) => boolean;
|
|
230
|
+
hidden: (options: any) => boolean;
|
|
231
|
+
};
|
|
232
|
+
arom: {
|
|
233
|
+
title: string;
|
|
234
|
+
action: {
|
|
235
|
+
thunk: (dispatch: any, getState: any) => void;
|
|
236
|
+
};
|
|
237
|
+
disabled: (editor: any, server: any, options: any) => boolean;
|
|
238
|
+
hidden: (options: any) => boolean;
|
|
239
|
+
};
|
|
240
|
+
dearom: {
|
|
241
|
+
title: string;
|
|
242
|
+
action: {
|
|
243
|
+
thunk: (dispatch: any, getState: any) => void;
|
|
244
|
+
};
|
|
245
|
+
disabled: (editor: any, server: any, options: any) => boolean;
|
|
246
|
+
hidden: (options: any) => boolean;
|
|
247
|
+
};
|
|
248
|
+
cip: {
|
|
249
|
+
shortcut: string;
|
|
250
|
+
title: string;
|
|
251
|
+
action: {
|
|
252
|
+
thunk: (dispatch: any, getState: any) => void;
|
|
253
|
+
};
|
|
254
|
+
disabled: (editor: any, server: any, options: any) => boolean;
|
|
255
|
+
hidden: (options: any) => boolean;
|
|
256
|
+
};
|
|
257
|
+
check: {
|
|
258
|
+
title: string;
|
|
259
|
+
action: {
|
|
260
|
+
dialog: string;
|
|
261
|
+
};
|
|
262
|
+
disabled: (editor: any, server: any, options: any) => boolean;
|
|
263
|
+
hidden: (options: any) => boolean;
|
|
264
|
+
};
|
|
265
|
+
analyse: {
|
|
266
|
+
title: string;
|
|
267
|
+
action: {
|
|
268
|
+
dialog: string;
|
|
269
|
+
};
|
|
270
|
+
disabled: (editor: any, server: any, options: any) => boolean;
|
|
271
|
+
hidden: (options: any) => boolean;
|
|
272
|
+
};
|
|
273
|
+
recognize: {
|
|
274
|
+
title: string;
|
|
275
|
+
action: {
|
|
276
|
+
dialog: string;
|
|
277
|
+
};
|
|
278
|
+
disabled: (editor: any, server: any, options: any) => any;
|
|
279
|
+
hidden: (options: any) => boolean;
|
|
280
|
+
};
|
|
281
|
+
miew: {
|
|
282
|
+
title: string;
|
|
283
|
+
action: {
|
|
284
|
+
dialog: string;
|
|
285
|
+
};
|
|
286
|
+
disabled: () => boolean;
|
|
287
|
+
hidden: (options: any) => boolean;
|
|
288
|
+
};
|
|
289
|
+
new: {
|
|
290
|
+
shortcut: string;
|
|
291
|
+
title: string;
|
|
292
|
+
action: {
|
|
293
|
+
thunk: (dispatch: any, getState: any) => void;
|
|
294
|
+
};
|
|
295
|
+
};
|
|
296
|
+
open: {
|
|
297
|
+
shortcut: string;
|
|
298
|
+
title: string;
|
|
299
|
+
action: {
|
|
300
|
+
dialog: string;
|
|
301
|
+
};
|
|
302
|
+
};
|
|
303
|
+
save: {
|
|
304
|
+
shortcut: string;
|
|
305
|
+
title: string;
|
|
306
|
+
action: {
|
|
307
|
+
dialog: string;
|
|
308
|
+
};
|
|
309
|
+
};
|
|
310
|
+
undo: {
|
|
311
|
+
shortcut: string;
|
|
312
|
+
title: string;
|
|
313
|
+
action: (editor: any) => void;
|
|
314
|
+
disabled: (editor: any) => boolean;
|
|
315
|
+
};
|
|
316
|
+
redo: {
|
|
317
|
+
shortcut: string[];
|
|
318
|
+
title: string;
|
|
319
|
+
action: (editor: any) => void;
|
|
320
|
+
disabled: (editor: any) => boolean;
|
|
321
|
+
};
|
|
322
|
+
cut: {
|
|
323
|
+
shortcut: string;
|
|
324
|
+
title: string;
|
|
325
|
+
action: () => void;
|
|
326
|
+
disabled: (editor: any) => boolean;
|
|
327
|
+
};
|
|
328
|
+
copy: {
|
|
329
|
+
shortcut: string;
|
|
330
|
+
title: string;
|
|
331
|
+
action: () => void;
|
|
332
|
+
disabled: (editor: any) => boolean;
|
|
333
|
+
};
|
|
334
|
+
paste: {
|
|
335
|
+
shortcut: string;
|
|
336
|
+
title: string;
|
|
337
|
+
action: () => void;
|
|
338
|
+
selected: ({ actions }: {
|
|
339
|
+
actions: any;
|
|
340
|
+
}) => any;
|
|
341
|
+
};
|
|
342
|
+
settings: {
|
|
343
|
+
title: string;
|
|
344
|
+
action: {
|
|
345
|
+
dialog: string;
|
|
346
|
+
};
|
|
347
|
+
};
|
|
348
|
+
help: {
|
|
349
|
+
shortcut: string[];
|
|
350
|
+
title: string;
|
|
351
|
+
action: {
|
|
352
|
+
dialog: string;
|
|
353
|
+
};
|
|
354
|
+
};
|
|
355
|
+
about: {
|
|
356
|
+
title: string;
|
|
357
|
+
action: {
|
|
358
|
+
dialog: string;
|
|
359
|
+
};
|
|
360
|
+
};
|
|
361
|
+
'reaction-automap': {
|
|
362
|
+
title: string;
|
|
363
|
+
action: {
|
|
364
|
+
dialog: string;
|
|
365
|
+
};
|
|
366
|
+
disabled: (editor: any, server: any, options: any) => boolean;
|
|
367
|
+
};
|
|
368
|
+
'period-table': {
|
|
369
|
+
title: string;
|
|
370
|
+
action: {
|
|
371
|
+
dialog: string;
|
|
372
|
+
};
|
|
373
|
+
};
|
|
374
|
+
'select-all': {
|
|
375
|
+
title: string;
|
|
376
|
+
shortcut: string;
|
|
377
|
+
action: {
|
|
378
|
+
thunk: (dispatch: any, getState: any) => void;
|
|
379
|
+
};
|
|
380
|
+
};
|
|
381
|
+
'deselect-all': {
|
|
382
|
+
title: string;
|
|
383
|
+
shortcut: string;
|
|
384
|
+
action: (editor: any) => void;
|
|
385
|
+
};
|
|
386
|
+
'select-descriptors': {
|
|
387
|
+
title: string;
|
|
388
|
+
shortcut: string;
|
|
389
|
+
action: {
|
|
390
|
+
thunk: (dispatch: any, getState: any) => void;
|
|
391
|
+
};
|
|
392
|
+
};
|
|
393
|
+
};
|
|
@@ -102,6 +102,14 @@ declare var _default: {
|
|
|
102
102
|
title: string;
|
|
103
103
|
action: {
|
|
104
104
|
tool: string;
|
|
105
|
+
opts: RxnArrowMode;
|
|
106
|
+
};
|
|
107
|
+
};
|
|
108
|
+
'reaction-arrow-equilibrium': {
|
|
109
|
+
title: string;
|
|
110
|
+
action: {
|
|
111
|
+
tool: string;
|
|
112
|
+
opts: RxnArrowMode;
|
|
105
113
|
};
|
|
106
114
|
};
|
|
107
115
|
'reaction-plus': {
|
|
@@ -164,6 +172,13 @@ declare var _default: {
|
|
|
164
172
|
opts: SimpleObjectMode;
|
|
165
173
|
};
|
|
166
174
|
};
|
|
175
|
+
text: {
|
|
176
|
+
title: string;
|
|
177
|
+
action: {
|
|
178
|
+
tool: string;
|
|
179
|
+
};
|
|
180
|
+
};
|
|
167
181
|
};
|
|
168
182
|
export default _default;
|
|
169
|
-
import {
|
|
183
|
+
import { RxnArrowMode } from "ketcher-core/dist/domain/entities/RxnArrow";
|
|
184
|
+
import { SimpleObjectMode } from "ketcher-core/dist/domain/entities/SimpleObject";
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
interface ColorPickerProps {
|
|
2
|
+
value: string;
|
|
3
|
+
name: string;
|
|
4
|
+
schema: any;
|
|
5
|
+
type?: string;
|
|
6
|
+
}
|
|
7
|
+
interface ColorPickerCallProps {
|
|
8
|
+
onChange: (value: string) => void;
|
|
9
|
+
}
|
|
10
|
+
declare type Props = ColorPickerProps & ColorPickerCallProps;
|
|
11
|
+
declare const ColorPicker: (props: Props) => JSX.Element;
|
|
12
|
+
export default ColorPicker;
|
|
File without changes
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/****************************************************************************
|
|
2
|
-
* Copyright
|
|
2
|
+
* Copyright 2021 EPAM Systems
|
|
3
3
|
*
|
|
4
4
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
5
|
* you may not use this file except in compliance with the License.
|
|
@@ -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
|
-
import { SupportedFormat } from 'ketcher-core';
|
|
17
|
-
export declare function couldBeSaved(struct:
|
|
16
|
+
import { Struct, SupportedFormat } from 'ketcher-core';
|
|
17
|
+
export declare function couldBeSaved(struct: Struct, format: SupportedFormat): string | null;
|
|
@@ -2,12 +2,14 @@ export function fromElement(selem: any): any;
|
|
|
2
2
|
export function toElement(elem: any): any;
|
|
3
3
|
export function fromStereoLabel(stereoLabel: any): {
|
|
4
4
|
type: null;
|
|
5
|
-
|
|
5
|
+
orNumber?: undefined;
|
|
6
|
+
andNumber?: undefined;
|
|
6
7
|
} | {
|
|
7
8
|
type: any;
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
9
|
+
orNumber: number;
|
|
10
|
+
andNumber: number;
|
|
11
|
+
} | undefined;
|
|
12
|
+
export function toStereoLabel(stereoLabel: any): any;
|
|
11
13
|
export function fromBond(sbond: any): {
|
|
12
14
|
type: string;
|
|
13
15
|
topology: any;
|
|
@@ -1,168 +1,26 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
/****************************************************************************
|
|
2
|
+
* Copyright 2021 EPAM Systems
|
|
3
|
+
*
|
|
4
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
* you may not use this file except in compliance with the License.
|
|
6
|
+
* You may obtain a copy of the License at
|
|
7
|
+
*
|
|
8
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
*
|
|
10
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
* See the License for the specific language governing permissions and
|
|
14
|
+
* limitations under the License.
|
|
15
|
+
***************************************************************************/
|
|
16
|
+
import { Schema } from 'jsonschema';
|
|
17
|
+
declare type ExtendedSchema = Schema & {
|
|
18
|
+
enumNames?: Array<string>;
|
|
19
|
+
default?: any;
|
|
20
|
+
};
|
|
21
|
+
export declare const SERVER_OPTIONS: string[];
|
|
22
|
+
export declare const MIEW_OPTIONS: string[];
|
|
23
|
+
declare const optionsSchema: ExtendedSchema;
|
|
5
24
|
export default optionsSchema;
|
|
6
|
-
declare
|
|
7
|
-
|
|
8
|
-
const type: string;
|
|
9
|
-
const required: never[];
|
|
10
|
-
const properties: {
|
|
11
|
-
miewMode: {
|
|
12
|
-
title: string;
|
|
13
|
-
enum: string[];
|
|
14
|
-
enumNames: string[];
|
|
15
|
-
default: string;
|
|
16
|
-
};
|
|
17
|
-
miewTheme: {
|
|
18
|
-
title: string;
|
|
19
|
-
enum: string[];
|
|
20
|
-
enumNames: string[];
|
|
21
|
-
default: string;
|
|
22
|
-
};
|
|
23
|
-
miewAtomLabel: {
|
|
24
|
-
title: string;
|
|
25
|
-
enum: string[];
|
|
26
|
-
enumNames: string[];
|
|
27
|
-
default: string;
|
|
28
|
-
};
|
|
29
|
-
showAtomIds: {
|
|
30
|
-
title: string;
|
|
31
|
-
type: string;
|
|
32
|
-
default: boolean;
|
|
33
|
-
};
|
|
34
|
-
showBondIds: {
|
|
35
|
-
title: string;
|
|
36
|
-
type: string;
|
|
37
|
-
default: boolean;
|
|
38
|
-
};
|
|
39
|
-
showHalfBondIds: {
|
|
40
|
-
title: string;
|
|
41
|
-
type: string;
|
|
42
|
-
default: boolean;
|
|
43
|
-
};
|
|
44
|
-
showLoopIds: {
|
|
45
|
-
title: string;
|
|
46
|
-
type: string;
|
|
47
|
-
default: boolean;
|
|
48
|
-
};
|
|
49
|
-
'smart-layout': {
|
|
50
|
-
title: string;
|
|
51
|
-
type: string;
|
|
52
|
-
default: boolean;
|
|
53
|
-
};
|
|
54
|
-
'ignore-stereochemistry-errors': {
|
|
55
|
-
title: string;
|
|
56
|
-
type: string;
|
|
57
|
-
default: boolean;
|
|
58
|
-
};
|
|
59
|
-
'mass-skip-error-on-pseudoatoms': {
|
|
60
|
-
title: string;
|
|
61
|
-
type: string;
|
|
62
|
-
default: boolean;
|
|
63
|
-
};
|
|
64
|
-
'gross-formula-add-rsites': {
|
|
65
|
-
title: string;
|
|
66
|
-
type: string;
|
|
67
|
-
default: boolean;
|
|
68
|
-
};
|
|
69
|
-
'gross-formula-add-isotopes': {
|
|
70
|
-
title: string;
|
|
71
|
-
type: string;
|
|
72
|
-
default: boolean;
|
|
73
|
-
};
|
|
74
|
-
showValenceWarnings: {
|
|
75
|
-
title: string;
|
|
76
|
-
type: string;
|
|
77
|
-
default: boolean;
|
|
78
|
-
};
|
|
79
|
-
atomColoring: {
|
|
80
|
-
title: string;
|
|
81
|
-
type: string;
|
|
82
|
-
default: boolean;
|
|
83
|
-
};
|
|
84
|
-
hideStereoFlags: {
|
|
85
|
-
title: string;
|
|
86
|
-
type: string;
|
|
87
|
-
default: boolean;
|
|
88
|
-
};
|
|
89
|
-
font: {
|
|
90
|
-
title: string;
|
|
91
|
-
type: string;
|
|
92
|
-
default: string;
|
|
93
|
-
};
|
|
94
|
-
fontsz: {
|
|
95
|
-
title: string;
|
|
96
|
-
type: string;
|
|
97
|
-
default: number;
|
|
98
|
-
minimum: number;
|
|
99
|
-
maximum: number;
|
|
100
|
-
};
|
|
101
|
-
fontszsub: {
|
|
102
|
-
title: string;
|
|
103
|
-
type: string;
|
|
104
|
-
default: number;
|
|
105
|
-
minimum: number;
|
|
106
|
-
maximum: number;
|
|
107
|
-
};
|
|
108
|
-
carbonExplicitly: {
|
|
109
|
-
title: string;
|
|
110
|
-
type: string;
|
|
111
|
-
default: boolean;
|
|
112
|
-
};
|
|
113
|
-
showCharge: {
|
|
114
|
-
title: string;
|
|
115
|
-
type: string;
|
|
116
|
-
default: boolean;
|
|
117
|
-
};
|
|
118
|
-
showValence: {
|
|
119
|
-
title: string;
|
|
120
|
-
type: string;
|
|
121
|
-
default: boolean;
|
|
122
|
-
};
|
|
123
|
-
showHydrogenLabels: {
|
|
124
|
-
title: string;
|
|
125
|
-
enum: string[];
|
|
126
|
-
default: string;
|
|
127
|
-
};
|
|
128
|
-
aromaticCircle: {
|
|
129
|
-
title: string;
|
|
130
|
-
type: string;
|
|
131
|
-
default: boolean;
|
|
132
|
-
};
|
|
133
|
-
doubleBondWidth: {
|
|
134
|
-
title: string;
|
|
135
|
-
type: string;
|
|
136
|
-
default: number;
|
|
137
|
-
minimum: number;
|
|
138
|
-
maximum: number;
|
|
139
|
-
};
|
|
140
|
-
bondThickness: {
|
|
141
|
-
title: string;
|
|
142
|
-
type: string;
|
|
143
|
-
default: number;
|
|
144
|
-
minimum: number;
|
|
145
|
-
maximum: number;
|
|
146
|
-
};
|
|
147
|
-
stereoBondWidth: {
|
|
148
|
-
title: string;
|
|
149
|
-
type: string;
|
|
150
|
-
default: number;
|
|
151
|
-
minimum: number;
|
|
152
|
-
maximum: number;
|
|
153
|
-
};
|
|
154
|
-
resetToSelect: {
|
|
155
|
-
title: string;
|
|
156
|
-
enum: (string | boolean)[];
|
|
157
|
-
enumNames: string[];
|
|
158
|
-
default: string;
|
|
159
|
-
};
|
|
160
|
-
rotationStep: {
|
|
161
|
-
title: string;
|
|
162
|
-
type: string;
|
|
163
|
-
minimum: number;
|
|
164
|
-
maximum: number;
|
|
165
|
-
default: number;
|
|
166
|
-
};
|
|
167
|
-
};
|
|
168
|
-
}
|
|
25
|
+
export declare function getDefaultOptions(): Record<string, any>;
|
|
26
|
+
export declare function validation(settings: any): Record<string, string> | null;
|