UNPKG

xgplayer

Version:
74 lines (73 loc) 1.71 kB
export default Controls; export type IControlsConfig = { [propName: string]: any; disable?: boolean; autoHide?: boolean; mode?: "flex" | "normal" | "bottom"; initShow?: boolean; }; /** * @typedef {{ * disable?: boolean, * autoHide?: boolean, * mode?: "flex"|"normal"|"bottom", * initShow?: boolean, * [propName: string]: any * }} IControlsConfig */ declare class Controls extends Plugin { /** * @type IControlsConfig */ static get defaultConfig(): IControlsConfig; beforeCreate(args: any): void; /** * @type { HTMLElement} * @readonly */ readonly left: HTMLElement; /** * @type { HTMLElement} * @readonly */ readonly center: HTMLElement; /** * @type { HTMLElement} * @readonly */ readonly right: HTMLElement; /** * @type { HTMLElement} * @readonly */ readonly innerRoot: HTMLElement; onMouseEnter: (e: any) => void; onMouseLeave: () => void; focus(): void; focusAwhile(): void; blur(): void; recoverAutoHide(): void; pauseAutoHide(): void; show(): void; /** * @type {string} */ get mode(): string; /** * * @param {} plugin * @param { {config?: {[propName: string]: any}, position?:string, root?: HTMLElement, pluginName?: string}} options * @param { string } name * @returns { any } */ registerPlugin(plugin: any, options: { config?: { [propName: string]: any; }; position?: string; root?: HTMLElement; pluginName?: string; }, name: string): any; render(): string; } import Plugin from "../../plugin";