Class: AddConnector

Kekule.ChemStructOperation. AddConnector

new AddConnector(chemObject, parentObj, refSibling, connectedObjs)

Operation of adding a chem connector to a structure fragment / molecule.
Parameters:
Name Type Description
chemObject Kekule.ChemObject Target chem object.
parentObj Kekule.ChemObject Object should be added to.
refSibling Kekule.ChemObject If this property is set, chem object will be inserted before this sibling.
connectedObjs Array Objects that connected by this connector.
Properties:
Name Type Description
connectedObjs Array Objects that connected by this connector.
Source:

Extends

Methods

execute()

Execute this command.
Inherited From:
Source:

isReversible() → {Bool}

Indicate whether this command can be undone. Default is true. Descendants should override this method if unreversible.
Inherited From:
Source:
Returns:
Type
Bool

reverse()

Undo command execution.
Inherited From:
Source:

Kekule.ChemStructOperation. AddConnector

Methods

execute()

Execute this command.
Inherited From:
Source:

isReversible() → {Bool}

Indicate whether this command can be undone. Default is true. Descendants should override this method if unreversible.
Inherited From:
Source:
Returns:
Type
Bool

reverse()

Undo command execution.
Inherited From:
Source: