Options
All
  • Public
  • Public/Protected
  • All
Menu

Options for Main constructor

Hierarchy

  • IMainOpts

Index

Properties

analyser

analyser: AnalyserAdapter

an analyser that will provide music data for the visualizations

Optional cancelAnimationFrame

cancelAnimationFrame: function

Custom cancelAnimationFrame. Useful for testing/custom frame-rate control. Use together with requestAnimationFrame

Type declaration

    • (reqId: any): void
    • Parameters

      • reqId: any

      Returns void

canvas

canvas: HTMLCanvasElement

Canvas element in which the visualization will be rendered

Optional requestAnimationFrame

requestAnimationFrame: function

Custom requestAnimationFrame. Useful for testing/custom frame-rate control. Use together with cancelAnimationFrame

Type declaration

    • (callback: function): any
    • Parameters

      • callback: function
          • (): void
          • Returns void

      Returns any

Optional resourcePrefix

resourcePrefix: string

Override baked-in resource url prefix for builtin resources

Optional showStat

showStat: boolean

show or hide performance stats