visual-song 0.11.1 → 0.11.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.ts CHANGED
@@ -1,5 +1,34 @@
1
1
  import * as react from 'react';
2
2
 
3
+ declare enum EasingType {
4
+ Linear = 0,
5
+ InSine = 1,
6
+ OutSine = 2,
7
+ InOutSine = 3,
8
+ InQuad = 4,
9
+ OutQuad = 5,
10
+ InOutQuad = 6,
11
+ InCubic = 7,
12
+ OutCubic = 8,
13
+ InOutCubic = 9,
14
+ InQuart = 10,
15
+ OutQuart = 11,
16
+ InOutQuart = 12,
17
+ InQuint = 13,
18
+ OutQuint = 14,
19
+ InOutQuint = 15,
20
+ InExpo = 16,
21
+ OutExpo = 17,
22
+ InOutExpo = 18,
23
+ InCirc = 19,
24
+ OutCirc = 20,
25
+ InOutCirc = 21,
26
+ InBack = 22,
27
+ InElastic = 23,
28
+ InBounce = 24,
29
+ OutBounce = 25,
30
+ InOutBounce = 26
31
+ }
3
32
  type VisualSongRef = {
4
33
  IsInitialized(): boolean;
5
34
  loadAudioFile(file: File): void;
@@ -23,7 +52,7 @@ type VisualSongRef = {
23
52
  setVertexCount(count: number): void;
24
53
  getLastCompileError(): string;
25
54
  updateLayout(): void;
26
- setVertexShaderTransition(shader: string, mode: number, time: number, vertexCount: number, backgroundColor: Float32Array): boolean;
55
+ setVertexShaderTransition(shader: string, mode: number, time: number, vertexCount: number, backgroundColor: Float32Array, easingType: EasingType): boolean;
27
56
  _render(): void;
28
57
  };
29
58
  type Props = {
@@ -38,5 +67,5 @@ type Props = {
38
67
  };
39
68
  declare const VisualSong: react.ForwardRefExoticComponent<Props & react.RefAttributes<VisualSongRef>>;
40
69
 
41
- export { VisualSong, VisualSong as default };
70
+ export { EasingType, VisualSong, VisualSong as default };
42
71
  export type { VisualSongRef };