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,22 +1,46 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
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, Box2Abs } from 'ketcher-core';
|
|
17
|
+
import ReObject from './ReObject';
|
|
18
|
+
import ReStruct from './ReStruct';
|
|
19
|
+
import Render from '..';
|
|
20
|
+
interface ElemAttr {
|
|
21
|
+
text: string;
|
|
22
|
+
path: any;
|
|
23
|
+
rbb: {
|
|
24
|
+
x: number;
|
|
25
|
+
y: number;
|
|
26
|
+
width: number;
|
|
27
|
+
height: number;
|
|
28
|
+
};
|
|
29
|
+
}
|
|
30
|
+
declare class ReAtom extends ReObject {
|
|
31
|
+
a: Atom;
|
|
10
32
|
showLabel: boolean;
|
|
11
33
|
hydrogenOnTheLeft: boolean;
|
|
12
34
|
color: string;
|
|
13
35
|
component: number;
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
36
|
+
label?: ElemAttr;
|
|
37
|
+
constructor(atom: Atom);
|
|
38
|
+
static isSelectable(): true;
|
|
39
|
+
getVBoxObj(render: Render): Box2Abs | null;
|
|
40
|
+
drawHighlight(render: Render): any;
|
|
41
|
+
makeHighlightPlate(render: Render): any;
|
|
42
|
+
makeSelectionPlate(restruct: ReStruct, paper: any, styles: any): any;
|
|
43
|
+
show(restruct: ReStruct, aid: number, options: any): void;
|
|
22
44
|
}
|
|
45
|
+
export declare function getColorFromStereoLabel(options: any, stereoLabel: any): any;
|
|
46
|
+
export default ReAtom;
|
|
@@ -1,30 +1,40 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
*
|
|
4
|
-
*
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
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 { Bond } from 'ketcher-core';
|
|
17
|
+
import ReObject from './ReObject';
|
|
18
|
+
import ReStruct from './ReStruct';
|
|
19
|
+
import Render from '..';
|
|
20
|
+
declare class ReBond extends ReObject {
|
|
13
21
|
b: Bond;
|
|
14
22
|
doubleBondShift: number;
|
|
15
|
-
drawHighlight(render: any): any;
|
|
16
|
-
makeHighlightPlate(render: any): any;
|
|
17
|
-
makeSelectionPlate(restruct: any, paper: any, options: any): any;
|
|
18
|
-
show(restruct: any, bid: number, options: object): void;
|
|
19
23
|
path: any;
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
24
|
+
neihbid1: number;
|
|
25
|
+
neihbid2: number;
|
|
26
|
+
boldStereo?: boolean;
|
|
27
|
+
rbb?: {
|
|
28
|
+
x: number;
|
|
29
|
+
y: number;
|
|
30
|
+
width: number;
|
|
31
|
+
height: number;
|
|
32
|
+
};
|
|
33
|
+
constructor(bond: Bond);
|
|
34
|
+
static isSelectable(): boolean;
|
|
35
|
+
drawHighlight(render: Render): any;
|
|
36
|
+
makeHighlightPlate(render: Render): any;
|
|
37
|
+
makeSelectionPlate(restruct: ReStruct, paper: any, options: any): any;
|
|
38
|
+
show(restruct: ReStruct, bid: number, options: any): void;
|
|
29
39
|
}
|
|
30
|
-
|
|
40
|
+
export default ReBond;
|
|
@@ -1,12 +1,8 @@
|
|
|
1
1
|
export default ReDataSGroupData;
|
|
2
|
-
declare
|
|
3
|
-
|
|
2
|
+
declare class ReDataSGroupData extends ReObject {
|
|
3
|
+
static isSelectable(): boolean;
|
|
4
4
|
constructor(sgroup: any);
|
|
5
5
|
sgroup: any;
|
|
6
6
|
highlightPath(render: any): any;
|
|
7
|
-
drawHighlight(render: any): any;
|
|
8
|
-
makeSelectionPlate(restruct: any, paper: any, styles: any): any;
|
|
9
|
-
}
|
|
10
|
-
declare namespace ReDataSGroupData {
|
|
11
|
-
function isSelectable(): boolean;
|
|
12
7
|
}
|
|
8
|
+
import ReObject from "./ReObject";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export default ReFrag;
|
|
2
|
-
declare
|
|
3
|
-
|
|
2
|
+
declare class ReFrag extends ReObject {
|
|
3
|
+
static isSelectable(): boolean;
|
|
4
4
|
constructor(frag: any);
|
|
5
5
|
item: any;
|
|
6
6
|
fragGetAtoms(restruct: any, fid: any): any[];
|
|
@@ -8,9 +8,5 @@ declare class ReFrag {
|
|
|
8
8
|
calcBBox(restruct: any, fid: any, render: any): undefined;
|
|
9
9
|
_draw(render: any, fid: any, attrs: any): any;
|
|
10
10
|
draw(render: any): null;
|
|
11
|
-
drawHighlight(render: any): void;
|
|
12
|
-
setHighlight(highLight: any, render: any): void;
|
|
13
|
-
}
|
|
14
|
-
declare namespace ReFrag {
|
|
15
|
-
function isSelectable(): boolean;
|
|
16
11
|
}
|
|
12
|
+
import ReObject from "./ReObject";
|
|
@@ -1,16 +1,12 @@
|
|
|
1
1
|
export default ReLoop;
|
|
2
|
-
declare
|
|
3
|
-
|
|
2
|
+
declare class ReLoop extends ReObject {
|
|
3
|
+
static isSelectable(): boolean;
|
|
4
4
|
constructor(loop: any);
|
|
5
5
|
loop: any;
|
|
6
|
-
visel: Visel;
|
|
7
6
|
centre: Vec2;
|
|
8
7
|
radius: Vec2;
|
|
9
8
|
show(restruct: any, rlid: any, options: any): void;
|
|
10
9
|
isValid(struct: any, rlid: any): any;
|
|
11
10
|
}
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
}
|
|
15
|
-
import Visel from "./visel";
|
|
16
|
-
import Vec2 from "../../util/vec2";
|
|
11
|
+
import ReObject from "./ReObject";
|
|
12
|
+
import { Vec2 } from "ketcher-core/dist/domain/entities/Vec2";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export default ReRGroup;
|
|
2
|
-
declare
|
|
3
|
-
|
|
2
|
+
declare class ReRGroup extends ReObject {
|
|
3
|
+
static isSelectable(): boolean;
|
|
4
4
|
constructor(rgroup: any);
|
|
5
5
|
labelBox: Box2Abs | null;
|
|
6
6
|
item: any;
|
|
@@ -9,10 +9,7 @@ declare class ReRGroup {
|
|
|
9
9
|
calcBBox(render: any): any;
|
|
10
10
|
draw(render: any, options: any): {};
|
|
11
11
|
_draw(render: any, rgid: any, attrs: any): any;
|
|
12
|
-
drawHighlight(render: any): any;
|
|
13
12
|
show(restruct: any, id: any, options: any): void;
|
|
14
13
|
}
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
}
|
|
18
|
-
import Box2Abs from "../../util/box2abs";
|
|
14
|
+
import ReObject from "./ReObject";
|
|
15
|
+
import { Box2Abs } from "ketcher-core/dist/domain/entities/Box2Abs";
|
|
@@ -1,13 +1,9 @@
|
|
|
1
1
|
export default ReRxnArrow;
|
|
2
|
-
declare
|
|
3
|
-
|
|
2
|
+
declare class ReRxnArrow extends ReObject {
|
|
3
|
+
static isSelectable(): boolean;
|
|
4
4
|
constructor(arrow: any);
|
|
5
5
|
item: any;
|
|
6
6
|
highlightPath(render: any): any;
|
|
7
|
-
drawHighlight(render: any): any;
|
|
8
|
-
makeSelectionPlate(restruct: any, paper: any, styles: any): any;
|
|
9
7
|
show(restruct: any, id: any, options: any): void;
|
|
10
8
|
}
|
|
11
|
-
|
|
12
|
-
function isSelectable(): boolean;
|
|
13
|
-
}
|
|
9
|
+
import ReObject from "./ReObject";
|
|
@@ -1,13 +1,9 @@
|
|
|
1
1
|
export default ReRxnPlus;
|
|
2
|
-
declare
|
|
3
|
-
|
|
2
|
+
declare class ReRxnPlus extends ReObject {
|
|
3
|
+
static isSelectable(): boolean;
|
|
4
4
|
constructor(plus: any);
|
|
5
5
|
item: any;
|
|
6
6
|
highlightPath(render: any): any;
|
|
7
|
-
drawHighlight(render: any): any;
|
|
8
|
-
makeSelectionPlate(restruct: any, paper: any, styles: any): any;
|
|
9
7
|
show(restruct: any, id: any, options: any): void;
|
|
10
8
|
}
|
|
11
|
-
|
|
12
|
-
function isSelectable(): boolean;
|
|
13
|
-
}
|
|
9
|
+
import ReObject from "./ReObject";
|
|
@@ -1,12 +1,9 @@
|
|
|
1
1
|
export default ReSGroup;
|
|
2
|
-
declare
|
|
3
|
-
|
|
2
|
+
declare class ReSGroup extends ReObject {
|
|
3
|
+
static isSelectable(): boolean;
|
|
4
4
|
constructor(sgroup: any);
|
|
5
5
|
item: any;
|
|
6
6
|
draw(remol: any, sgroup: any): any;
|
|
7
|
-
drawHighlight(render: any): void;
|
|
8
7
|
show(restruct: any): void;
|
|
9
8
|
}
|
|
10
|
-
|
|
11
|
-
function isSelectable(): boolean;
|
|
12
|
-
}
|
|
9
|
+
import ReObject from "./ReObject";
|
|
@@ -1,13 +1,12 @@
|
|
|
1
1
|
export default Visel;
|
|
2
|
-
declare function Visel(type: any): void;
|
|
3
2
|
declare class Visel {
|
|
4
3
|
constructor(type: any);
|
|
5
4
|
type: any;
|
|
6
5
|
paths: any[];
|
|
7
6
|
boxes: any[];
|
|
8
7
|
boundingBox: any;
|
|
8
|
+
exts: any[];
|
|
9
9
|
add(path: any, bb: any, ext: any): void;
|
|
10
10
|
clear(): void;
|
|
11
|
-
exts: any[] | undefined;
|
|
12
11
|
translate(x: any, y: any, ...args: any[]): void;
|
|
13
12
|
}
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
***************************************************************************/
|
|
16
16
|
import { Dispatch } from 'redux';
|
|
17
|
-
declare type ToolVariant = 'about' | 'analyse' | 'arom' | 'bond-any' | 'bond-aromatic' | 'bond-crossed' | 'bond-double' | 'bond-doublearomatic' | 'bond-down' | 'bond-single' | 'bond-singlearomatic' | 'bond-singledouble' | 'bond-triple' | 'bond-up' | 'bond-updown' | 'chain' | 'charge-minus' | 'charge-plus' | 'check' | 'chiral-flag' | 'cip' | 'clean' | 'copy' | 'cut' | 'dearom' | 'dropdown' | 'enhanced-stereo' | 'erase' | 'generic-groups' | 'help' | 'layout' | 'logo' | 'miew' | 'new' | 'open' | 'paste' | 'period-table' | 'reaction-arrow' | 'reaction-automap' | 'reaction-map' | 'reaction-plus' | 'reaction-unmap' | 'recognize' | 'redo' | 'rgroup-attpoints' | 'rgroup-fragment' | 'rgroup-label' | 'save' | 'select-fragment' | 'select-lasso' | 'select-rectangle' | 'settings' | 'sgroup' | 'sgroup-data' | 'template-0' | 'template-1' | 'template-2' | 'template-3' | 'template-4' | 'template-5' | 'template-6' | 'template-7' | 'template-lib' | 'transform-flip-h' | 'transform-flip-v' | 'transform-rotate' | 'zoom-in' | 'zoom-out' | 'shape-circle' | 'shape-rectangle' | 'shape-polyline' | 'shape-line' | 'undo';
|
|
17
|
+
declare type ToolVariant = 'about' | 'analyse' | 'arom' | 'bond-any' | 'bond-hydrogen' | 'bond-aromatic' | 'bond-crossed' | 'bond-dative' | 'bond-double' | 'bond-doublearomatic' | 'bond-down' | 'bond-single' | 'bond-singlearomatic' | 'bond-singledouble' | 'bond-triple' | 'bond-up' | 'bond-updown' | 'chain' | 'charge-minus' | 'charge-plus' | 'check' | 'chiral-flag' | 'cip' | 'clean' | 'copy' | 'cut' | 'dearom' | 'dropdown' | 'enhanced-stereo' | 'erase' | 'generic-groups' | 'help' | 'layout' | 'logo' | 'miew' | 'new' | 'open' | 'paste' | 'period-table' | 'reaction-arrow' | 'reaction-automap' | 'reaction-map' | 'reaction-plus' | 'reaction-unmap' | 'recognize' | 'redo' | 'rgroup-attpoints' | 'rgroup-fragment' | 'rgroup-label' | 'save' | 'select-fragment' | 'select-lasso' | 'select-rectangle' | 'settings' | 'sgroup' | 'sgroup-data' | 'template-0' | 'template-1' | 'template-2' | 'template-3' | 'template-4' | 'template-5' | 'template-6' | 'template-7' | 'template-lib' | 'text' | 'transform-flip-h' | 'transform-flip-v' | 'transform-rotate' | 'zoom-in' | 'zoom-out' | 'shape-circle' | 'shape-rectangle' | 'shape-polyline' | 'shape-line' | 'undo';
|
|
18
18
|
declare type Editor = any;
|
|
19
19
|
declare type Server = any;
|
|
20
20
|
declare type Options = any;
|
|
@@ -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.
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
|
|
1
|
+
export default debugObj;
|
|
2
|
+
declare const debugObj: {
|
|
2
3
|
'force-update': {
|
|
3
4
|
shortcut: string;
|
|
4
5
|
action: (editor: any) => void;
|
|
@@ -8,4 +9,3 @@ declare var _default: {
|
|
|
8
9
|
action: (editor: any) => void;
|
|
9
10
|
};
|
|
10
11
|
};
|
|
11
|
-
export default _default;
|