@qier-player/danmaku
Version:
Powerful danmaku, support many features.
14 lines (13 loc) • 629 B
TypeScript
import { Dispose } from './dispose';
export declare function getEle(el: HTMLElement | string | undefined | null): HTMLElement | null;
export declare function camel2line(str: string): string;
export declare function setStyle(el: HTMLElement, style: Partial<CSSStyleDeclaration>): void;
export declare function removeEle(el: Element): void;
export declare class DomListener implements Dispose {
private node;
private type;
private handler;
private options?;
constructor(node: EventTarget, type: string, handler: (e: any) => void, options?: boolean | AddEventListenerOptions | undefined);
dispose(): void;
}