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
|
@@ -0,0 +1,20 @@
|
|
|
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 { ComponentType } from 'react';
|
|
17
|
+
import { BaseProps } from '../../../modal.types';
|
|
18
|
+
declare type OwnProps = Omit<BaseProps, 'formState'>;
|
|
19
|
+
declare const AutomapContainer: ComponentType<OwnProps>;
|
|
20
|
+
export default AutomapContainer;
|
|
@@ -0,0 +1,32 @@
|
|
|
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 { BaseProps, BaseCallProps } from '../../../modal.types';
|
|
17
|
+
declare type Props = BaseProps & BaseCallProps;
|
|
18
|
+
export declare const automapSchema: {
|
|
19
|
+
title: string;
|
|
20
|
+
type: string;
|
|
21
|
+
required: string[];
|
|
22
|
+
properties: {
|
|
23
|
+
mode: {
|
|
24
|
+
title: string;
|
|
25
|
+
enum: string[];
|
|
26
|
+
enumNames: string[];
|
|
27
|
+
default: string;
|
|
28
|
+
};
|
|
29
|
+
};
|
|
30
|
+
};
|
|
31
|
+
declare const Automap: (props: Props) => JSX.Element;
|
|
32
|
+
export default Automap;
|
|
@@ -0,0 +1,16 @@
|
|
|
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
|
+
export { default } from './Automap.container';
|
|
@@ -0,0 +1,20 @@
|
|
|
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 { ComponentType } from 'react';
|
|
17
|
+
import { BondProps } from './Bond';
|
|
18
|
+
declare type OwnProps = Omit<BondProps, 'formState'>;
|
|
19
|
+
declare const BondContainer: ComponentType<OwnProps>;
|
|
20
|
+
export default BondContainer;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { BaseProps, BaseCallProps } from '../../../modal.types';
|
|
2
|
+
interface BondProps extends BaseProps {
|
|
3
|
+
center: number;
|
|
4
|
+
topology: number;
|
|
5
|
+
type: string;
|
|
6
|
+
}
|
|
7
|
+
declare type Props = BondProps & BaseCallProps;
|
|
8
|
+
declare const Bond: (props: Props) => JSX.Element;
|
|
9
|
+
export type { BondProps };
|
|
10
|
+
export default Bond;
|
|
@@ -0,0 +1,16 @@
|
|
|
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
|
+
export { default } from './Bond.container';
|
|
@@ -0,0 +1,20 @@
|
|
|
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 { ComponentType } from 'react';
|
|
17
|
+
import { RgroupLogicProps } from './RgroupLogic';
|
|
18
|
+
declare type OwnProps = Omit<RgroupLogicProps, 'formState'>;
|
|
19
|
+
declare const RgroupLogicContainer: ComponentType<OwnProps>;
|
|
20
|
+
export default RgroupLogicContainer;
|
|
@@ -0,0 +1,28 @@
|
|
|
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 { BaseProps, BaseCallProps } from '../../../modal.types';
|
|
17
|
+
interface RgroupLogicProps extends BaseProps {
|
|
18
|
+
frags: Set<number>;
|
|
19
|
+
ifthen: number;
|
|
20
|
+
label: number;
|
|
21
|
+
range: string;
|
|
22
|
+
resth: boolean;
|
|
23
|
+
rgroupLabels: Array<number>;
|
|
24
|
+
}
|
|
25
|
+
declare type Props = RgroupLogicProps & BaseCallProps;
|
|
26
|
+
declare const RgroupLogic: (props: Props) => JSX.Element;
|
|
27
|
+
export type { RgroupLogicProps };
|
|
28
|
+
export default RgroupLogic;
|
|
@@ -0,0 +1,19 @@
|
|
|
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 { RgroupLogicProps } from '../../RgroupLogic';
|
|
17
|
+
declare type Props = Pick<RgroupLogicProps, 'label' | 'rgroupLabels'>;
|
|
18
|
+
declare const IfThenSelect: (props: Props) => JSX.Element;
|
|
19
|
+
export default IfThenSelect;
|
package/dist/script/ui/views/modal/components/toolbox/RgroupLogic/components/IfThenSelect/index.d.ts
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
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
|
+
export { default } from './IfThenSelect';
|
|
@@ -0,0 +1,16 @@
|
|
|
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
|
+
export { default } from './IfThenSelect';
|
|
@@ -0,0 +1,16 @@
|
|
|
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
|
+
export { default } from './RgroupLogic.container';
|
|
@@ -0,0 +1,21 @@
|
|
|
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 Atom from './Atom';
|
|
17
|
+
import Bond from './Bond';
|
|
18
|
+
import AttachPoints from './Attach';
|
|
19
|
+
import Automap from './Automap';
|
|
20
|
+
import RgroupLogic from './RgroupLogic';
|
|
21
|
+
export { Atom, Bond, AttachPoints, Automap, RgroupLogic };
|
|
@@ -0,0 +1,28 @@
|
|
|
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
|
+
interface BaseProps {
|
|
17
|
+
className: string;
|
|
18
|
+
formState: {
|
|
19
|
+
errors: Record<string, string>;
|
|
20
|
+
result: Record<string, any>;
|
|
21
|
+
valid: boolean;
|
|
22
|
+
};
|
|
23
|
+
}
|
|
24
|
+
interface BaseCallProps {
|
|
25
|
+
onCancel: () => void;
|
|
26
|
+
onOk: (result: any) => void;
|
|
27
|
+
}
|
|
28
|
+
export type { BaseProps, BaseCallProps };
|
|
@@ -18,6 +18,7 @@ import { ToolbarItem } from '../../toolbar.types';
|
|
|
18
18
|
declare const bondCommon: ToolbarItem[];
|
|
19
19
|
declare const bondStereo: ToolbarItem[];
|
|
20
20
|
declare const bondQuery: ToolbarItem[];
|
|
21
|
+
declare const bondSpecial: ToolbarItem[];
|
|
21
22
|
declare const groupOptions: ToolbarItem[];
|
|
22
23
|
declare const groupDescriptors: GroupDescriptor[];
|
|
23
|
-
export { bondCommon, bondStereo, bondQuery, groupOptions, groupDescriptors };
|
|
24
|
+
export { bondCommon, bondStereo, bondQuery, bondSpecial, groupOptions, groupDescriptors };
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { LeftToolbarProps } from './LeftToolbar';
|
|
1
2
|
/****************************************************************************
|
|
2
3
|
* Copyright 2021 EPAM Systems
|
|
3
4
|
*
|
|
@@ -14,7 +15,6 @@
|
|
|
14
15
|
* limitations under the License.
|
|
15
16
|
***************************************************************************/
|
|
16
17
|
import { ComponentType } from 'react';
|
|
17
|
-
import { LeftToolbarProps } from './LeftToolbar';
|
|
18
18
|
declare type OwnProps = Pick<LeftToolbarProps, 'className'>;
|
|
19
19
|
declare const LeftToolbarContainer: ComponentType<OwnProps>;
|
|
20
20
|
export { LeftToolbarContainer };
|
|
@@ -1,7 +1,21 @@
|
|
|
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
|
+
***************************************************************************/
|
|
1
16
|
import { ToolbarGroupItemCallProps, ToolbarGroupItemProps } from '../ToolbarGroupItem';
|
|
2
17
|
interface LeftToolbarProps extends Omit<ToolbarGroupItemProps, 'id' | 'options'> {
|
|
3
18
|
className?: string;
|
|
4
|
-
isStandalone: boolean;
|
|
5
19
|
}
|
|
6
20
|
interface LeftToolbarCallProps extends ToolbarGroupItemCallProps {
|
|
7
21
|
}
|
|
@@ -1,3 +1,18 @@
|
|
|
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
|
+
***************************************************************************/
|
|
1
16
|
import { ToolbarGroupItemCallProps, ToolbarGroupItemProps } from '../../ToolbarGroupItem';
|
|
2
17
|
interface RGroupProps extends Omit<ToolbarGroupItemProps, 'id' | 'options'> {
|
|
3
18
|
height?: number;
|
|
@@ -1,3 +1,18 @@
|
|
|
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
|
+
***************************************************************************/
|
|
1
16
|
import { ToolbarGroupItemCallProps, ToolbarGroupItemProps } from '../../ToolbarGroupItem';
|
|
2
17
|
interface ShapeProps extends Omit<ToolbarGroupItemProps, 'id' | 'options'> {
|
|
3
18
|
height?: number;
|
|
@@ -17,7 +17,6 @@ declare const mediaSizes: {
|
|
|
17
17
|
topSeparatorsShowingWidth: number;
|
|
18
18
|
zoomShowingWidth: number;
|
|
19
19
|
infoShowingWidth: number;
|
|
20
|
-
reactionSeparatorShowingHeight: number;
|
|
21
20
|
bondCollapsableHeight: number;
|
|
22
21
|
rGroupCollapsableHeight: number;
|
|
23
22
|
shapeCollapsableHeight: number;
|
|
@@ -14,13 +14,13 @@
|
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
***************************************************************************/
|
|
16
16
|
declare type TopGroup = 'document' | 'edit' | 'zoom' | 'process' | 'meta';
|
|
17
|
-
declare type LeftGroup = 'select' | 'bond' | 'charge' | 'transform' | 'sgroup' | 'rgroup' | 'shape';
|
|
17
|
+
declare type LeftGroup = 'select' | 'bond' | 'charge' | 'transform' | 'sgroup' | 'rgroup' | 'shape' | 'text';
|
|
18
18
|
declare type BottomGroup = 'template-common' | 'template-lib';
|
|
19
19
|
declare type RightGroup = 'atom' | 'period-table';
|
|
20
20
|
declare type ToolbarGroupVariant = TopGroup | LeftGroup | BottomGroup | RightGroup;
|
|
21
21
|
declare type TopToolbarItemVariant = 'new' | 'open' | 'save' | 'undo' | 'redo' | 'cut' | 'copy' | 'paste' | 'zoom-in' | 'zoom-out' | 'zoom-list' | 'layout' | 'clean' | 'arom' | 'dearom' | 'cip' | 'check' | 'analyse' | 'recognize' | 'miew' | 'settings' | 'help' | 'about';
|
|
22
|
-
declare type LeftToolbarItemVariant = 'select' | 'select-lasso' | 'select-rectangle' | 'select-fragment' | 'erase' | 'bond-common' | 'bond-single' | 'bond-double' | 'bond-triple' | 'bond-stereo' | 'bond-up' | 'bond-down' | 'bond-updown' | 'bond-crossed' | 'bond-query' | 'bond-any' | 'bond-aromatic' | 'bond-singledouble' | 'bond-singlearomatic' | 'bond-doublearomatic' | 'chain' | 'charge-plus' | 'charge-minus' | 'transform-rotate' | 'transform-flip-h' | 'transform-flip-v' | 'sgroup' | 'sgroup-data' | 'reaction' | 'reaction-arrow' | 'reaction-plus' | 'reaction-automap' | 'reaction-map' | 'reaction-unmap' | 'rgroup-label' | 'rgroup-fragment' | 'rgroup-attpoints' | 'shape-ellipse' | 'shape-rectangle' | 'shape-line';
|
|
23
|
-
declare type BottomToolbarItemVariant = 'template-common' | 'template-lib';
|
|
22
|
+
declare type LeftToolbarItemVariant = 'select' | 'select-lasso' | 'select-rectangle' | 'select-fragment' | 'erase' | 'bond-common' | 'bond-single' | 'bond-double' | 'bond-triple' | 'bond-dative' | 'bond-stereo' | 'bond-up' | 'bond-down' | 'bond-updown' | 'bond-crossed' | 'bond-query' | 'bond-special' | 'bond-any' | 'bond-hydrogen' | 'bond-aromatic' | 'bond-singledouble' | 'bond-singlearomatic' | 'bond-doublearomatic' | 'chain' | 'charge-plus' | 'charge-minus' | 'transform-rotate' | 'transform-flip-h' | 'transform-flip-v' | 'sgroup' | 'sgroup-data' | 'reaction' | 'reaction-arrow' | 'reaction-arrow-equilibrium' | 'reaction-plus' | 'reaction-automap' | 'reaction-map' | 'reaction-unmap' | 'rgroup-label' | 'rgroup-fragment' | 'rgroup-attpoints' | 'shape-ellipse' | 'shape-rectangle' | 'shape-line' | 'text';
|
|
23
|
+
declare type BottomToolbarItemVariant = 'template-common' | 'template-lib' | 'enhanced-stereo';
|
|
24
24
|
declare type RightToolbarItemVariant = 'atom' | 'freq-atoms' | 'period-table';
|
|
25
25
|
declare type ToolbarItemVariant = TopToolbarItemVariant | LeftToolbarItemVariant | BottomToolbarItemVariant | RightToolbarItemVariant;
|
|
26
26
|
interface ToolbarItem {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "ketcher-react",
|
|
3
|
-
"version": "2.2
|
|
3
|
+
"version": "2.3.2",
|
|
4
4
|
"description": "Web-based molecule sketcher",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"homepage": "http://lifescience.opensource.epam.com/ketcher",
|
|
@@ -48,16 +48,18 @@
|
|
|
48
48
|
"@babel/runtime": "^7.12.5",
|
|
49
49
|
"clsx": "^1.1.1",
|
|
50
50
|
"core-js": "^3.6.5",
|
|
51
|
+
"draft-js": "^0.11.7",
|
|
51
52
|
"element-closest-polyfill": "^1.0.2",
|
|
52
53
|
"file-saver": "^2.0.2",
|
|
53
54
|
"font-face-observer": "^1.0.0",
|
|
54
55
|
"hoist-non-react-statics": "^3.3.2",
|
|
55
56
|
"jsonschema": "^1.4.0",
|
|
56
|
-
"ketcher-core": "^1.
|
|
57
|
+
"ketcher-core": "^1.1.2",
|
|
57
58
|
"lodash": "^4.17.20",
|
|
58
59
|
"normalize.css": "^8.0.1",
|
|
59
60
|
"prop-types": "^15.7.2",
|
|
60
61
|
"raphael": "^2.3.0",
|
|
62
|
+
"react-color": "^2.19.3",
|
|
61
63
|
"react-markdown": "^5.0.2",
|
|
62
64
|
"react-redux": "^7.2.1",
|
|
63
65
|
"react-virtualized": "^9.22.3",
|
|
@@ -93,7 +95,9 @@
|
|
|
93
95
|
"@testing-library/jest-dom": "^4.2.4",
|
|
94
96
|
"@testing-library/react": "^9.5.0",
|
|
95
97
|
"@testing-library/user-event": "^7.2.1",
|
|
98
|
+
"@types/draft-js": "^0.11.3",
|
|
96
99
|
"@types/jest": "^25.1.4",
|
|
100
|
+
"@types/lodash": "^4.14.170",
|
|
97
101
|
"@types/node": "^12.12.38",
|
|
98
102
|
"@types/react": "^16.9.27",
|
|
99
103
|
"@types/react-dom": "^16.9.7",
|
|
@@ -130,7 +134,7 @@
|
|
|
130
134
|
"stylelint-config-standard": "^20.0.0",
|
|
131
135
|
"stylelint-prettier": "^1.1.2",
|
|
132
136
|
"stylelint-scss": "^3.18.0",
|
|
133
|
-
"typescript": "^4.
|
|
137
|
+
"typescript": "^4.3.5"
|
|
134
138
|
},
|
|
135
139
|
"files": [
|
|
136
140
|
"dist"
|
|
@@ -1,57 +0,0 @@
|
|
|
1
|
-
export default element;
|
|
2
|
-
/****************************************************************************
|
|
3
|
-
* Copyright 2020 EPAM Systems
|
|
4
|
-
*
|
|
5
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
6
|
-
* you may not use this file except in compliance with the License.
|
|
7
|
-
* You may obtain a copy of the License at
|
|
8
|
-
*
|
|
9
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
-
*
|
|
11
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
12
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
13
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
14
|
-
* See the License for the specific language governing permissions and
|
|
15
|
-
* limitations under the License.
|
|
16
|
-
***************************************************************************/
|
|
17
|
-
declare const element: ({
|
|
18
|
-
label: string;
|
|
19
|
-
period: number;
|
|
20
|
-
group: number;
|
|
21
|
-
title: string;
|
|
22
|
-
state: string;
|
|
23
|
-
origin: string;
|
|
24
|
-
type: string;
|
|
25
|
-
atomic_mass: number;
|
|
26
|
-
leftH?: undefined;
|
|
27
|
-
} | {
|
|
28
|
-
label: string;
|
|
29
|
-
period: number;
|
|
30
|
-
group: number;
|
|
31
|
-
leftH: boolean;
|
|
32
|
-
title: string;
|
|
33
|
-
state: string;
|
|
34
|
-
origin: string;
|
|
35
|
-
type: string;
|
|
36
|
-
atomic_mass: number;
|
|
37
|
-
} | {
|
|
38
|
-
label: string;
|
|
39
|
-
period: number;
|
|
40
|
-
group: number;
|
|
41
|
-
title: string;
|
|
42
|
-
origin: string;
|
|
43
|
-
type: string;
|
|
44
|
-
atomic_mass: number;
|
|
45
|
-
state?: undefined;
|
|
46
|
-
leftH?: undefined;
|
|
47
|
-
} | {
|
|
48
|
-
label: string;
|
|
49
|
-
period: number;
|
|
50
|
-
group: number;
|
|
51
|
-
title: string;
|
|
52
|
-
origin: string;
|
|
53
|
-
atomic_mass: number;
|
|
54
|
-
state?: undefined;
|
|
55
|
-
type?: undefined;
|
|
56
|
-
leftH?: undefined;
|
|
57
|
-
} | null)[];
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
declare namespace _default {
|
|
2
|
-
export { parseCTab };
|
|
3
|
-
export { parseMol };
|
|
4
|
-
export { parseRxn };
|
|
5
|
-
export { prepareForSaving };
|
|
6
|
-
export { saveToMolfile };
|
|
7
|
-
}
|
|
8
|
-
export default _default;
|
|
9
|
-
declare function parseCTab(ctabLines: any): import("../struct").default;
|
|
10
|
-
declare function parseMol(ctabLines: any): import("../struct").default;
|
|
11
|
-
declare function parseRxn(ctabLines: any, shouldReactionRelayout: any): import("../struct").default;
|
|
12
|
-
declare namespace prepareForSaving {
|
|
13
|
-
export const MUL: (sgroup: any, mol: any) => void;
|
|
14
|
-
export { prepareSruForSaving as SRU };
|
|
15
|
-
export { prepareSupForSaving as SUP };
|
|
16
|
-
export { prepareDatForSaving as DAT };
|
|
17
|
-
export { prepareGenForSaving as GEN };
|
|
18
|
-
}
|
|
19
|
-
declare namespace saveToMolfile {
|
|
20
|
-
export { saveMulToMolfile as MUL };
|
|
21
|
-
export { saveSruToMolfile as SRU };
|
|
22
|
-
export { saveSupToMolfile as SUP };
|
|
23
|
-
export { saveDatToMolfile as DAT };
|
|
24
|
-
export { saveGenToMolfile as GEN };
|
|
25
|
-
}
|
|
26
|
-
declare function prepareSruForSaving(sgroup: any, mol: any): void;
|
|
27
|
-
declare function prepareSupForSaving(sgroup: any, mol: any): void;
|
|
28
|
-
declare function prepareDatForSaving(sgroup: any, mol: any): void;
|
|
29
|
-
declare function prepareGenForSaving(sgroup: any, mol: any): void;
|
|
30
|
-
declare function saveMulToMolfile(sgroup: any, mol: any, sgMap: any, atomMap: any, bondMap: any): string;
|
|
31
|
-
declare function saveSruToMolfile(sgroup: any, mol: any, sgMap: any, atomMap: any, bondMap: any): string;
|
|
32
|
-
declare function saveSupToMolfile(sgroup: any, mol: any, sgMap: any, atomMap: any, bondMap: any): string;
|
|
33
|
-
declare function saveDatToMolfile(sgroup: any, mol: any, sgMap: any, atomMap: any): string;
|
|
34
|
-
declare function saveGenToMolfile(sgroup: any, mol: any, sgMap: any, atomMap: any, bondMap: any): string;
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
export * from "./molfileFormat";
|
|
2
|
-
export default molfileManager;
|
|
3
|
-
export namespace molfileManager {
|
|
4
|
-
function stringify(struct: any, options: any): string;
|
|
5
|
-
function stringify(struct: any, options: any): string;
|
|
6
|
-
function parse(str: any, options: any): any;
|
|
7
|
-
function parse(str: any, options: any): any;
|
|
8
|
-
function version(molFileStr: any): string;
|
|
9
|
-
function version(molFileStr: any): string;
|
|
10
|
-
}
|
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
/****************************************************************************
|
|
2
|
-
* Copyright 2020 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 Struct from '../struct';
|
|
17
|
-
declare const END_V2000 = "2D 1 1.00000 0.00000 0";
|
|
18
|
-
declare type Mapping = {
|
|
19
|
-
[key in number]: number;
|
|
20
|
-
};
|
|
21
|
-
declare class Molfile {
|
|
22
|
-
molecule: Struct;
|
|
23
|
-
molfile: string | null;
|
|
24
|
-
reaction: boolean;
|
|
25
|
-
mapping: Mapping;
|
|
26
|
-
bondMapping: Mapping;
|
|
27
|
-
constructor();
|
|
28
|
-
parseCTFile(molfileLines: string[], shouldReactionRelayout?: boolean): any;
|
|
29
|
-
prepareSGroups(skipErrors: boolean, preserveIndigoDesc?: boolean): void;
|
|
30
|
-
getCTab(molecule: Struct, rgroups?: Map<any, any>): string;
|
|
31
|
-
saveMolecule(molecule: Struct, skipSGroupErrors: boolean, norgroups?: boolean, preserveIndigoDesc?: boolean): string;
|
|
32
|
-
writeHeader(): void;
|
|
33
|
-
write(str: string): void;
|
|
34
|
-
writeCR(str?: string): void;
|
|
35
|
-
writeWhiteSpace(length?: number): void;
|
|
36
|
-
writePadded(str: string, width: number): void;
|
|
37
|
-
writePaddedNumber(number: number, width: number): void;
|
|
38
|
-
writePaddedFloat(number: string | number, width: number, precision: number): void;
|
|
39
|
-
writeCTab2000Header(): void;
|
|
40
|
-
writeCTab2000(rgroups?: Map<any, any>): void;
|
|
41
|
-
private writeAtom;
|
|
42
|
-
private writeBond;
|
|
43
|
-
private writeAtomProps;
|
|
44
|
-
private writeAtomPropList;
|
|
45
|
-
}
|
|
46
|
-
export { END_V2000 };
|
|
47
|
-
export default Molfile;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare type MolfileFormat = 'v2000' | 'v3000';
|