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,68 +0,0 @@
|
|
|
1
|
-
export default SGroup;
|
|
2
|
-
declare function SGroup(type: any): void;
|
|
3
|
-
declare class SGroup {
|
|
4
|
-
constructor(type: any);
|
|
5
|
-
type: any;
|
|
6
|
-
id: number;
|
|
7
|
-
label: number;
|
|
8
|
-
bracketBox: any;
|
|
9
|
-
bracketDir: Vec2;
|
|
10
|
-
areas: any[];
|
|
11
|
-
highlight: boolean;
|
|
12
|
-
highlighting: any;
|
|
13
|
-
selected: boolean;
|
|
14
|
-
selectionPlate: any;
|
|
15
|
-
atoms: any[];
|
|
16
|
-
patoms: any[];
|
|
17
|
-
bonds: any[];
|
|
18
|
-
xBonds: any[];
|
|
19
|
-
neiAtoms: any[];
|
|
20
|
-
pp: any;
|
|
21
|
-
data: {
|
|
22
|
-
mul: number;
|
|
23
|
-
connectivity: string;
|
|
24
|
-
name: string;
|
|
25
|
-
subscript: string;
|
|
26
|
-
attached: boolean;
|
|
27
|
-
absolute: boolean;
|
|
28
|
-
showUnits: boolean;
|
|
29
|
-
nCharsToDisplay: number;
|
|
30
|
-
tagChar: string;
|
|
31
|
-
daspPos: number;
|
|
32
|
-
fieldType: string;
|
|
33
|
-
fieldName: string;
|
|
34
|
-
fieldValue: string;
|
|
35
|
-
units: string;
|
|
36
|
-
query: string;
|
|
37
|
-
queryOp: string;
|
|
38
|
-
};
|
|
39
|
-
getAttr(attr: any): any;
|
|
40
|
-
getAttrs(): {};
|
|
41
|
-
setAttr(attr: any, value: any): any;
|
|
42
|
-
checkAttr(attr: any, value: any): boolean;
|
|
43
|
-
}
|
|
44
|
-
declare namespace SGroup {
|
|
45
|
-
namespace TYPES {
|
|
46
|
-
const MUL: number;
|
|
47
|
-
const SRU: number;
|
|
48
|
-
const SUP: number;
|
|
49
|
-
const DAT: number;
|
|
50
|
-
const GEN: number;
|
|
51
|
-
}
|
|
52
|
-
function filterAtoms(atoms: any, map: any): any[];
|
|
53
|
-
function removeNegative(atoms: any): any[];
|
|
54
|
-
function filter(mol: any, sg: any, atomMap: any): void;
|
|
55
|
-
function clone(sgroup: any, aidMap: any): SGroup;
|
|
56
|
-
function addAtom(sgroup: any, aid: any): void;
|
|
57
|
-
function removeAtom(sgroup: any, aid: any): void;
|
|
58
|
-
function getCrossBonds(inBonds: any, xBonds: any, mol: any, parentAtomSet: any): void;
|
|
59
|
-
function bracketPos(sg: any, mol: any, xbonds: any): void;
|
|
60
|
-
function getBracketParameters(mol: any, xbonds: any, atomSet: any, bb: any, d: any, n: any): any[];
|
|
61
|
-
function getObjBBox(atoms: any, mol: any): Box2Abs;
|
|
62
|
-
function getAtoms(mol: any, sg: any): any;
|
|
63
|
-
function getBonds(mol: any, sg: any): any[];
|
|
64
|
-
function prepareMulForSaving(sgroup: any, mol: any): void;
|
|
65
|
-
function getMassCentre(mol: any, atoms: any): Vec2;
|
|
66
|
-
}
|
|
67
|
-
import Vec2 from "../../util/vec2";
|
|
68
|
-
import Box2Abs from "../../util/box2abs";
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
export function moleculeToStruct(graphItem: any): Struct;
|
|
2
|
-
export function atomToStruct(source: any): Atom;
|
|
3
|
-
export function rglabelToStruct(source: any): Atom;
|
|
4
|
-
export function atomListToStruct(source: any): Atom;
|
|
5
|
-
export function bondToStruct(source: any): Bond;
|
|
6
|
-
export function sgroupToStruct(source: any): SGroup;
|
|
7
|
-
import Struct from "../../../chem/struct";
|
|
8
|
-
import { Atom } from "../../../chem/struct";
|
|
9
|
-
import { Bond } from "../../../chem/struct";
|
|
10
|
-
import { SGroup } from "../../../chem/struct";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export function rxnToStruct(graphItem: any, struct: any): any;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function simpleObjectToStruct(graphItem: any, struct: any): any;
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
declare namespace _default {
|
|
2
|
-
export { toGraph };
|
|
3
|
-
export { fromGraph };
|
|
4
|
-
}
|
|
5
|
-
export default _default;
|
|
6
|
-
/**
|
|
7
|
-
* @param {import('ketcher-core').Struct} struct
|
|
8
|
-
* @returns {import('ketcher-core').Graph} */
|
|
9
|
-
declare function toGraph(struct: import('ketcher-core').Struct): import('ketcher-core').Graph;
|
|
10
|
-
/**
|
|
11
|
-
* @param {import('ketcher-core').Graph} graph
|
|
12
|
-
* @returns {import('ketcher-core').Struct} */
|
|
13
|
-
declare function fromGraph(graph: import('ketcher-core').Graph): import('ketcher-core').Struct;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export function headerToGraph(struct: any): {} | null;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export default function validate(graph: any): void;
|