Class: MergeNodesPreview

Kekule.ChemStructOperation. MergeNodesPreview

new MergeNodesPreview(target, dest, enableStructFragmentMerge)

Preview operation of merging two nodes as one. This operation just set the same position of merging nodes, but do not do the actual merge.
Parameters:
Name Type Description
target Kekule.ChemStructureNode Source node, all connectors to this node will be connected to toNode.
dest Kekule.ChemStructureNode Destination node.
enableStructFragmentMerge Bool If true, molecule will be also merged when merging nodes between different molecule.
Source:

Extends

Methods

getCommonSiblings(node1, node2) → {Array}

Returns nodes connected with both node1 and node2.
Parameters:
Name Type Description
node1 Kekule.ChemStructureNode
node2 Kekule.ChemStructureNode
Inherited From:
Source:
Returns:
Type
Array

Kekule.ChemStructOperation. MergeNodesPreview