| 22 | } |
| 23 | |
| 24 | export interface DanmuOverlayInstance { |
| 25 | sendComment?: (comment: { |
| 26 | id?: string; |
| 27 | txt: string; |
| 28 | duration?: number; |
| 29 | start?: number; |
| 30 | mode?: string; |
| 31 | style?: Record<string, string>; |
| 32 | }) => void; |
| 33 | clear?: () => void; |
| 34 | play?: () => void; |
| 35 | pause?: () => void; |
| 36 | stop?: () => void; |
| 37 | start?: () => void; |
| 38 | hide?: (mode?: string) => void; |
| 39 | show?: (mode?: string) => void; |
| 40 | setOpacity?: (opacity: number) => void; |
| 41 | setFontSize?: (size: number | string, channelSize?: number) => void; |
| 42 | setAllDuration?: (mode: string, duration: number) => void; |
| 43 | setArea?: (area: { start: number; end: number; lines?: number }) => void; |
| 44 | setPlayRate?: (mode: string, rate: number) => void; |
| 45 | } |
| 46 | |
| 47 | export interface DanmuRenderOptions { |
| 48 | shouldDisplay?: (message?: DanmakuMessage) => boolean; |
nothing calls this directly
no outgoing calls
no test coverage detected