new MergeConnectors(target, dest, coordMode, enableStructFragmentMerge)
Operation of merging two connectors as one.
Parameters:
Name | Type | Description |
---|---|---|
target |
Kekule.ChemStructureConnector | Source connector. |
dest |
Kekule.ChemStructureConnector | Destination connector. |
coordMode |
Int | Coord mode of current editor. |
enableStructFragmentMerge |
Bool | If true, molecule will be also merged when merging connectors between different molecule. |
Extends
Methods
-
(static) canMerge(target, dest, canMergeStructFragment) → {Bool}
-
A class method to check if two connectors can be merged
Parameters:
Name Type Description target
Kekule.ChemStructureConnector dest
Kekule.ChemStructureConnector canMergeStructFragment
Bool Returns:
- Type
- Bool
-
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: