UNPKG

vue-window-bridge

Version:

Vue composable for managing multiple windows across displays, with cross-window communication

22 lines (19 loc) 697 B
import * as vue from 'vue'; interface MultiWindowOptions { debug?: boolean; preferredScreen?: number; fullscreen?: boolean; } declare const useMultiWindow: (options?: MultiWindowOptions) => { childWindow: vue.Ref<Window | null, Window | null>; isChildWindowOpen: vue.Ref<boolean, boolean>; receivedData: vue.Ref<any, any>; openWindowOnSecondMonitor: (path: string) => Promise<Window | null>; sendDataToParent: (data: any) => void; sendDataToChild: (data: any) => void; closeChildWindow: () => void; isChildWindow: () => boolean; requestFullscreenForSelf: () => void; cleanup: () => void; }; export { type MultiWindowOptions, useMultiWindow };