@arkane-network/arkane-connect
Version:
Arkane Connect - api library for 3th parties
25 lines (24 loc) • 756 B
TypeScript
export declare class PopupWindow {
private static CONST;
static openNew(url: string, options?: OpenWindowOptions): PopupWindow;
private readonly useOverlay;
private readonly id;
private win?;
private interval?;
constructor(url?: string, target?: string, features?: string, useOverlay?: boolean, replace?: boolean);
private setCloseInterval;
private clearCloseInterval;
close(): void;
readonly closed: boolean;
focus(): void;
postMessage(message: any, targetOrigin: string, transfer?: Transferable[]): void;
private closeOverlay;
private openOverlay;
private static uuidv4;
}
export interface OpenWindowOptions {
title?: string;
w?: number;
h?: number;
useOverlay?: boolean;
}