Class: BasicManipulationIaController

Kekule.Editor. BasicManipulationIaController

new BasicManipulationIaController(widget)

Controller for selecting, moving or rotating objects in editor.
Parameters:
Name Type Description
widget Kekule.Editor.BaseEditor Editor of current object being installed to.
Properties:
Name Type Description
selectMode Int Set the selectMode property of editor.
enableSelect Bool Whether select function is enabled.
enableMove Bool Whether move function is enabled. //@property {Bool} enableRemove Whether remove function is enabled.
enableResize Bool Whether resize of selection is allowed.
enableRotate Bool Whether rotate of selection is allowed.
enableGestureManipulation Bool Whether rotate and resize by touch gestures are allowed.
Source:

Extends

  • Kekule.Widget.BaseEditorIaController

Classes

ManipulationType
State

Methods

_maniplateObjsFrameEnd()

Called when a phrase of rotate/resize/move function ends.
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.
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.
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.
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.
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
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

Kekule.Editor. BasicManipulationIaController

new BasicManipulationIaController()

Source:

Classes

ManipulationType
State

Methods

_maniplateObjsFrameEnd()

Called when a phrase of rotate/resize/move function ends.
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.
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.
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.
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.
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
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