0.3.0 • Published 9 years ago
@mohayonao/timeline v0.3.0
TIMELINE
simple timeline
Installation
npm install @mohayonao/timeline
API
Timeline
constructor(opts = {})
Instance attributes
context: object
interval: number
aheadTime: number
timerAPI: object
playbackTime: number
currentTime: number
state: string
events: object[]
Instance methods
start([ callback: function ]): self
stop([ reset: boolean ]): self
insert(time: number, callback: function, [ args: any[] ]): number
nextTick(time: number, callback: function, [ args: any[] ]): number
remove(schedId: number): number
removeAll(): void
Events
start
stop
process
processed
License
MIT