view src/app/waveform/waves-ui.d.ts @ 125:656176d22b96

Update column type
author Lucas Thompson <dev@lucas.im>
date Wed, 15 Mar 2017 13:41:30 +0000
parents e40a39acec25
children b08058753a06
line wrap: on
line source
/**
 * Created by lucas on 01/12/2016.
 */
declare const AmbientInstance: WavesUserInterface;

declare module 'waves-ui' {
  export default AmbientInstance;
}

interface WavesUserInterface {
  core: any;
  helpers: any;
  states: any;
  utils: Utilities;
}

interface MatrixEntity {
  getColumnCount(): number;
  getColumnHeight(): number;
  getColumn(n: number): Float32Array[] | number[][];
  getStepDuration(): number;
  getStartTime(): number;
}

interface MatrixEntityConstructor {
  new(): MatrixEntity;
}

interface PrefilledMatrixEntityConstructor {
  new(data: Float32Array[] | number[][],
      startTime: number,
      stepDuration: number): MatrixEntity;
}

interface Utilities {
  MatrixEntity: MatrixEntityConstructor;
  PrefilledMatrixEntity: PrefilledMatrixEntityConstructor;
  scales: any;
}