new StructureInsertIaController()
Base IA Controller to insert structure objects (bonds, structure fragments...) into editor.
Extends
Methods
-
_maniplateObjsFrameEnd()
-
Called when a phrase of rotate/resize/move function ends.
-
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. -
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. -
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. -
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.
-
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()
-
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