UNPKG

@qier-player/danmaku

Version:

Powerful danmaku, support many features.

18 lines (17 loc) 686 B
import Base from './base'; import type { Danmu, Commander, DanmakuOptionsInit } from '../types'; import { Danmaku } from '../danmaku'; export default abstract class BaseRolling<T extends Danmu> extends Base<T> { readonly danmaku: Danmaku; el: HTMLElement; objToElm: WeakMap<T, HTMLElement>; elmToObj: WeakMap<HTMLElement, T>; staticDanmu: T | null; constructor(danmaku: Danmaku, el: HTMLElement, config: Commander, options: DanmakuOptionsInit); mouseOverEventHandler(e: Event): void; mouseOutEventHandler(e: Event): void; mouseClickEventHandler(e: Event): void; removeElement(target: HTMLElement): void; reset(): void; dispose(): void; }