UNPKG

ranui

Version:

A framework-agnostic Web Components UI library built on native custom elements, with TypeScript types, light/dark theming, SSR and PWA support.

21 lines (20 loc) 842 B
import type { PlayerVisualSignals } from './store'; export interface PlayerVisualEffectRefs { playBtn: HTMLElement; playBtnIcon: HTMLElement; progress: HTMLElement; progressValue: HTMLElement; progressDot: HTMLElement; progressBuffer: HTMLElement; timeCurrent: HTMLElement; timeDuration: HTMLElement; volumeIconGlyph: HTMLElement; volumeProgress: HTMLElement; } /** * One effect per visual concern that used to be written from several handler * methods each (see components/player/index.ts on* handlers). Handlers only * write the signals in `core/store.ts`; these effects own the DOM writes, so * each concern has exactly one place that touches the DOM for it. */ export declare function createPlaybackVisualEffects(refs: PlayerVisualEffectRefs, signals: PlayerVisualSignals): Array<() => void>;