visual-song 0.13.6 → 0.13.8
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 +2 -2
- package/dist/index.js +22 -20
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -48,7 +48,7 @@ type VisualSongAudioRef = {
|
|
|
48
48
|
setLoop(loop: boolean): void;
|
|
49
49
|
};
|
|
50
50
|
declare function useVisualSongAudio(file?: File): VisualSongAudioRef;
|
|
51
|
-
declare function
|
|
51
|
+
declare function useMainLoop(): (loop: boolean) => void;
|
|
52
52
|
type VisualSongRef = {
|
|
53
53
|
IsInitialized(): boolean;
|
|
54
54
|
getBackgroundColor(): Float32Array;
|
|
@@ -81,5 +81,5 @@ type Props = {
|
|
|
81
81
|
};
|
|
82
82
|
declare const VisualSong: react.ForwardRefExoticComponent<Props & react.RefAttributes<VisualSongRef>>;
|
|
83
83
|
|
|
84
|
-
export { EasingType, RenderMode, VisualSong, VisualSongProvider,
|
|
84
|
+
export { EasingType, RenderMode, VisualSong, VisualSongProvider, useMainLoop, useVisualSongAudio };
|
|
85
85
|
export type { VisualSongAudioRef, VisualSongRef };
|