Class: Length3DConfigs

Kekule.Render. Length3DConfigs

new Length3DConfigs()

Draw length and related options in 3D mode. In this class, every property value should be a float based on unitLength. To retrieve a value based on px, a easy way is call getActualLength(propName) method.
Properties:
Name Type Description
unitLength Float The unit length in px. Every other length are based on this property. For instance, if a bond length is 12 and unit length is 2px, then the actual bond length will be 24px.
fixedNodeRadius Float If vdW radius not used, this value is used for all atom's radius.
connectorRadius Float Connectors will be draw based on this radius in stick or ball_stick mode.
connectorLineWidth Float Connectors will be draw on this width in wire mode.
defBondLength Float Approximate length of bond defaultly (in autoScale mode).
Source:

Extends

  • Kekule.AbstractConfigs

Methods

getActualLength(propName) → {Float}

Get actual length in px for a config property.
Parameters:
Name Type Description
propName String
Source:
Returns:
Type
Float