UNPKG

survey-creator-core

Version:

A framework-independent core package of the SurveyJS Survey Creator component. With Survey Creator, you can visually design complex, interactive JSON forms and surveys in a drag-and-drop interface.

32 lines (31 loc) 1.37 kB
export declare class DomWindowHelper { static isAvailable(): boolean; static isFileReaderAvailable(): boolean; static getLocation(): Location; static getVisualViewport(): VisualViewport | null; static getInnerWidth(): number; static getInnerHeight(): number; static getDevicePixelRatio(): number; static getWindow(): Window; static hasOwn(propertyName: string): boolean; static getSelection(): Selection | null; static requestAnimationFrame(callback: FrameRequestCallback): number; static addEventListener(type: string, listener: (e?: any) => void): void; static removeEventListener(type: string, listener: (e?: any) => void): void; static matchMedia(mediaQueryString: string): { matches: boolean; } | null; } export declare class DomDocumentHelper { static isAvailable(): boolean; static getBody(): HTMLElement; static getDocumentElement(): HTMLElement; static getDocument(): Document; static getCookie(): string; static setCookie(newCookie: string): void; static activeElementBlur(): Document; static createElement(tagName: string): HTMLElement; static getComputedStyle(elt: Element): CSSStyleDeclaration; static addEventListener(type: string, listener: (e?: any) => void): void; static removeEventListener(type: string, listener: (e?: any) => void): void; }