Class: BasicMolManipulationIaController

Kekule.Editor. BasicMolManipulationIaController

new BasicMolManipulationIaController()

Advanced controller for selecting, moving or rotating chem objects in molecule (ctab) based editor.
Properties:
Name Type Description
enableMagneticMerge Bool Whether nearing node will be merged when moving their position.
enableNodeMerge Bool Whether node merging is allowed.
enableNeighborNodeMerge Bool Whether neighboring node merging is allowed.
enableConnectorMerge Bool Whether connector merging is allowed.
enableStructFragmentMerge Bool Whether node or connector merging between different molecule is allowed.
enableConstrainedMove Bool
enableConstrainedRotate Bool
enableConstrainedResize Bool
enableDirectedMove Bool When true, pres shift key during moving will cause object moves only at X or Y direction.
Source:

Extends

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

isInActualConstrainedRotation() → {Bool}

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

Kekule.Editor. BasicMolManipulationIaController

new BasicMolManipulationIaController()

Source:

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

isInActualConstrainedRotation() → {Bool}

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