ViewPositionAccessor

new ViewPositionAccessor(view)

Parameters:
NameTypeDescription
viewView

The view.

Methods

getCurrentPosition() → {Point}

Get the current position.

Returns:

The position.

Type: 
Point

setCurrentPosition(position, silentopt) → {boolean}

Set the current position.

Parameters:
NameTypeAttributesDescription
positionPoint

The position.

silentboolean<optional>

Flag to fire event or not.

Returns:

True if possible and in bounds.

Type: 
boolean