Class: MolBondIaController

Kekule.Editor. MolBondIaController

new MolBondIaController()

Controller to add bond or change bond property.
Properties:
Name Type Description
allowBondingToBond Bool Whether bond-bond connection (e.g., in Zeise salt) is allowed.
enableBondModification Bool Whether modification existing bond is enabled.
autoSwitchBondOrder Bool If true, click on bond will switch bond order between single, double and triple.
startingObj Kekule.ChemStructureObject
endingObj Kekule.ChemStructureObject
bondType String
bondOrder Int
bondStereo Int //@property {Bool} autoCreateNewStructFragment Whether a new molecule is created when a bond appointed to a blank space in editor.
Source:

Extends

Classes

State

Methods

_maniplateObjsFrameEnd()

Called when a phrase of rotate/resize/move function ends.
Inherited From:
Source:

beginManipulation(currCoord, e)

Begin a manipulation. Descendants may override this method.
Parameters:
Name Type Description
currCoord Hash Current coord of pointer (mouse or touch)
e Object Pointer (mouse or touch) event parameter.
Inherited From:
Source:

doExecManipulationStep(currCoord, e)

Do actual manipulation based on mouse/touch move step. Descendants may override this method.
Parameters:
Name Type Description
currCoord Hash Current coord of pointer (mouse or touch)
e Object Pointer (mouse or touch) event parameter.
Inherited From:
Source:

doExecManipulationStepWithExplicitTransformParams(currCoord, e)

Do actual manipulation based on mouse/touch move step. Descendants may override this method.
Parameters:
Name Type Description
currCoord Hash Current coord of pointer (mouse or touch)
e Object Pointer (mouse or touch) event parameter.
Inherited From:
Source:

execManipulationStep()

Do manipulation based on mouse/touch move step. //@param {Hash} currCoord Current coord of pointer (mouse or touch) //@param {Object} e Pointer (mouse or touch) event parameter.
Inherited From:
Source:

getCoordOnSelectionRotationRegion(screenCoord) → {Variant}

Check if screenCoord is on near-outside of selection bound and returns which corner is the neraest.
Parameters:
Name Type Description
screenCoord Hash
Inherited From:
Source:
Returns:
If on rotation region, a nearest corner flag (from @link Kekule.Editor.BoxRegion} will be returned, else false will be returned.
Type
Variant

initialize()

Source:

isBond(obj)

Check if an object is a modifiable bond.
Parameters:
Name Type Description
obj Object
Source:

isInActualConstrainedRotation() → {Bool}

Check if currently in real constrained rotation and the constrains are not suppressed (e.g., pressing the Alt key).
Inherited From:
Source:
Returns:
Type
Bool

modifyBond(bond)

Change property of an existing bond
Parameters:
Name Type Description
bond Kekule.Bond
Source: