Timeline

Timeline

a list of objects in chronological order.

Constructor

new Timeline()

Source:

Members

(readonly) last

Source:
get last time of list

(readonly) length

Source:
get last time of list

Methods

add(time, object) → {Timeline}

Source:
add object in list
Parameters:
Name Type Description
time Number frame's time
object Object target
Returns:
An instance itself
Type
Timeline

get(time) → {Object}

Source:
get object at that time.
Parameters:
Name Type Description
time Number object's time
Returns:
object at that time
Type
Object

has(time) → {Boolean}

Source:
Check if timeline has object at that time.
Parameters:
Name Type Description
time Number object's time
Returns:
true: if has time, false: not
Type
Boolean

remove(time) → {Timeline}

Source:
remove object at that time.
Parameters:
Name Type Description
time Number object's time
Returns:
An instance itself
Type
Timeline