0.3.0 • Published 9 years ago

@mohayonao/timeline v0.3.0

Weekly downloads
1
License
MIT
Repository
github
Last release
9 years ago

TIMELINE

Build Status NPM Version License

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