0.3.0 • Published 10 years ago
@mohayonao/timeline v0.3.0
TIMELINE
simple timeline
Installation
npm install @mohayonao/timelineAPI
Timeline
constructor(opts = {})
Instance attributes
context: objectinterval: numberaheadTime: numbertimerAPI: objectplaybackTime: numbercurrentTime: numberstate: stringevents: object[]
Instance methods
start([ callback: function ]): selfstop([ reset: boolean ]): selfinsert(time: number, callback: function, [ args: any[] ]): numbernextTick(time: number, callback: function, [ args: any[] ]): numberremove(schedId: number): numberremoveAll(): void
Events
startstopprocessprocessed
License
MIT