UNPKG

fractal-core

Version:

A minimalist and well crafted app, content or component is our conviction

36 lines (35 loc) 946 B
/** * Taken and adapted from: * https://github.com/marcj/css-element-queries/blob/master/src/ResizeSensor.js * Copyright Marc J. Schmidt. See the LICENSE (MIT) * directory of this distribution and at * https://github.com/marcj/css-element-queries/blob/master/LICENSE. */ export interface ExtHTMLElement extends HTMLElement { resizedAttached: EventQueue; resizeSensor: HTMLElement; } export declare class EventQueue { q: Array<EventListener>; constructor(); add(ev: any): void; call(): void; remove(ev: any): void; length(): number; } /** * Class for dimension change detection. */ export declare class ResizeSensor { element: ExtHTMLElement; callback: { (res: any): void; }; constructor(element: HTMLElement, callback: { (res: any): void; }); attachResizeEvent(element: ExtHTMLElement, resized: { (res: any): void; }): void; detach(ev: any): void; }