Class Index | File Index

Classes


Class lime.animation.MoveTo


Extends lime.animation.Animation.

Defined in: moveto.js.

Class Summary
Constructor Attributes Constructor Name and Description
 
lime.animation.MoveTo(position, opt_y)
Move element to specific position Also accepts two numbers (x and y)
Field Summary
Field Attributes Field Name and Description
 
Fields borrowed from class lime.animation.Animation:
isPlaying_, targets
Method Summary
Method Attributes Method Name and Description
<private>  
Calculate animations duration based on its speed.
 
 
 
setSpeed(speed)
Helper function that sets tha animation duration based on the size of the delta.
 
update(t, target)
Methods borrowed from class lime.animation.Animation:
addTarget, cloneParam, enableOptimizations, getDirector, getDuration, getEasing, getTargetProp, initTarget, play, removeTarget, reverse, setDuration, setEasing, step_, stop, updateAll, useTransitions
Class Detail
lime.animation.MoveTo(position, opt_y)
Move element to specific position Also accepts two numbers (x and y)
Parameters:
{(goog.math.Coordinate|number)} position
New position value.
{number=} opt_y
Optionaly use x,y
Field Detail
scope
Method Detail
<private> calcDurationFromSpeed_()
Calculate animations duration based on its speed.

clearTransition(target)
Parameters:
target
See:
lime.animation.Animation#clearTransition

makeTargetProp(target)
Parameters:
target
See:
lime.animation.Animation#makeTargetProp

{lime.animation.MoveTo} setSpeed(speed)
Helper function that sets tha animation duration based on the size of the delta. 1 unit means 100px/sec. Calculation is based on first target node.
Parameters:
{number} speed
Speed value.
Returns:
{lime.animation.MoveTo} Object itself.

update(t, target)
Parameters:
t
target
See:
lime.animation.Animation#update

Documentation generated by JsDoc Toolkit 2.4.0 on Thu Jun 30 2011 11:27:21 GMT+0300 (EEST)