Class: MolChainRepositoryItem2D

Kekule.Editor. MolChainRepositoryItem2D

new MolChainRepositoryItem2D(atomCount, bondLength)

A repository class to generate lone carbon chains.
Parameters:
Name Type Description
atomCount Int Atom count on chain.
bondLength Float Default bond length to generate chain.
Properties:
Name Type Description
atomCount Int Atom count on chain.
bondLength Float Default bond length to generate chain.
negativeDirection Bool If true, the chain will be created as "VVVVV", else "^^^^^".
Source:

Extends

Methods

getRefLength() → {Float}

Returns ref length to adjust repository object coord and size in editor.
Inherited From:
Source:
Returns:
Type
Float

getScale() → {Float}

Returns default scale level of this repository object when adding to editor.
Inherited From:
Source:
Returns:
Type
Float

initialize()

Source: