mirror of
https://github.com/th-ch/youtube-music.git
synced 2026-01-13 03:11:46 +00:00
QOL: Move source code under the src directory. (#1318)
This commit is contained in:
34
src/plugins/visualizer/vudio.d.ts
vendored
Normal file
34
src/plugins/visualizer/vudio.d.ts
vendored
Normal file
@ -0,0 +1,34 @@
|
||||
declare module 'vudio/umd/vudio' {
|
||||
interface NoneWaveformOptions {
|
||||
maxHeight?: number;
|
||||
minHeight?: number;
|
||||
spacing?: number;
|
||||
color?: string | string[];
|
||||
shadowBlur?: number;
|
||||
shadowColor?: string;
|
||||
fadeSide?: boolean;
|
||||
}
|
||||
|
||||
interface WaveformOptions extends NoneWaveformOptions{
|
||||
horizontalAlign: 'left' | 'center' | 'right';
|
||||
verticalAlign: 'top' | 'middle' | 'bottom';
|
||||
}
|
||||
|
||||
interface VudioOptions {
|
||||
effect?: 'waveform' | 'circlewave' | 'circlebar' | 'lighting';
|
||||
accuracy?: number;
|
||||
width?: number;
|
||||
height?: number;
|
||||
waveform?: WaveformOptions
|
||||
}
|
||||
|
||||
class Vudio {
|
||||
constructor(audio: HTMLAudioElement | MediaStream, canvas: HTMLCanvasElement, options: VudioOptions = {});
|
||||
|
||||
dance(): void;
|
||||
pause(): void;
|
||||
setOption(options: VudioOptions): void;
|
||||
}
|
||||
|
||||
export default Vudio;
|
||||
}
|
||||
Reference in New Issue
Block a user