|
| 1 | +import { cEmitter } from "modules/cEmitter.class"; |
| 2 | +import { cOption, cList, __LYRIC__ } from "modules/c.interface"; |
| 3 | +import { cBase } from "modules/cBase.class"; |
| 4 | +import "../scss/cplayer.scss"; |
| 5 | +declare class cPlayer extends cEmitter { |
| 6 | + static version: string; |
| 7 | + protected dragging: { |
| 8 | + contain: boolean; |
| 9 | + target: HTMLElement | undefined; |
| 10 | + }; |
| 11 | + protected now: number; |
| 12 | + CBASE: cBase; |
| 13 | + protected options: cOption; |
| 14 | + protected transLock: boolean; |
| 15 | + music: HTMLAudioElement; |
| 16 | + protected __LIST__: { |
| 17 | + [propName: string]: HTMLElement; |
| 18 | + img: HTMLImageElement; |
| 19 | + }; |
| 20 | + protected __LYRIC__: __LYRIC__; |
| 21 | + constructor(options: cOption); |
| 22 | + volume(vl?: number | void): number | undefined; |
| 23 | + isMuted(): boolean; |
| 24 | + play(): this; |
| 25 | + pause(): this | undefined; |
| 26 | + previous(): this | undefined; |
| 27 | + next(): this | undefined; |
| 28 | + to(now: number): this; |
| 29 | + private _toggle(now?); |
| 30 | + isPaused(): boolean; |
| 31 | + hasLyric(id?: number): boolean; |
| 32 | + showLyric(): this; |
| 33 | + hideLyric(): this; |
| 34 | + hasList(): boolean; |
| 35 | + showList(): this; |
| 36 | + hideList(): this; |
| 37 | + private _refreshList(); |
| 38 | + add(u: cList): this; |
| 39 | + remove(id: number): this; |
| 40 | + lyric(content?: undefined): string | this | undefined; |
| 41 | + refreshLyric(isTrans?: boolean): void; |
| 42 | + updateTime(time?: number | void, func?: (time: number) => void): void; |
| 43 | + private _slideLyric(time); |
| 44 | + translate(): false | undefined; |
| 45 | + length: number; |
| 46 | +} |
| 47 | +export { cPlayer }; |
0 commit comments