wholescreen.js
Version:
Minimal cross-browser wrapper of the Fullscreen API. Handles vendor prefixes for you!
23 lines (22 loc) • 715 B
TypeScript
interface IWholescreen {
readonly supported: boolean;
readonly active: boolean;
readonly element: Node;
events: {
change: string;
error: string;
};
props: {
element: string;
exit: string;
request: string;
supported: string;
};
request(element?: Node): void;
exit(): void;
toggle(element?: Node, active?: boolean): void;
on(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
off(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare const wholescreen: IWholescreen;
export default wholescreen;