Class: MergeStructFragment

Kekule.ChemStructOperation. MergeStructFragment

new MergeStructFragment(target, dest)

Operation of merging two structure fragment as one.
Parameters:
Name Type Description
target Kekule.StructureFragment Source fragment.
dest Kekule.StructureFragment Destination fragment.
Properties:
Name Type Description
target Kekule.StructureFragment Source fragment, all connectors and nodes will be moved to dest fragment.
dest Kekule.StructureFragment Destination fragment.
mergedNodes Array Nodes moved from target to dest during merging.
mergedConnectors Array Connectors moved from target to dest during merging.
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. MergeStructFragment

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: