@newbiz/common-libs
Version:
신사업개발실 서비스/어드민 프론트엔드 공통 라이브러리
27 lines (26 loc) • 974 B
TypeScript
export interface IImageSize {
url: string;
width: number;
height: number;
}
export interface IScrollOption {
el: HTMLElement | Element | null;
marginTop?: number;
marginLeft?: number;
}
export interface IOpenWindowOption {
url: string;
id?: string;
features?: string;
onFocus?(this: GlobalEventHandlers, ev: FocusEvent): any;
onBlur?(this: GlobalEventHandlers, ev: FocusEvent): any;
onClose?(this: WindowEventHandlers, ev: BeforeUnloadEvent): any;
}
export declare const documentBody: HTMLElement | null;
export declare function getScrollOffsetX(): number;
export declare function getScrollOffsetY(): number;
export declare function getImageSize(url: string): Promise<IImageSize>;
export declare function freezeBody(): void;
export declare function unfreezeBody(): void;
export declare function scroll(scrollOption: IScrollOption): void;
export declare function openWindow(openWindowOption: IOpenWindowOption): Window | null;