Skip to content

domain/windows/window-bounds

Defined in: app/src/domain/windows/window-bounds.ts:2

Where a window is on the screens, in screen pixels.

readonly height: number

Defined in: app/src/domain/windows/window-bounds.ts:6

readonly width: number

Defined in: app/src/domain/windows/window-bounds.ts:5

readonly x: number

Defined in: app/src/domain/windows/window-bounds.ts:3

readonly y: number

Defined in: app/src/domain/windows/window-bounds.ts:4

const minimumSize: object

Defined in: app/src/domain/windows/window-bounds.ts:10

The smallest window that the browser opens.

readonly height: 320 = 320

readonly width: 480 = 480

popupBounds(features, opener, workAreas?): WindowBounds

Defined in: app/src/domain/windows/window-bounds.ts:70

Where a popup that a page opens goes: the size and position that the page asked for in the features of window.open, or else beside the window of the page. As in other browsers, the popup lies on a screen and is at most as large as it: on the screen of the position that the page asked for, or else on the screen of the page’s window.

string

The features, such as width=500,height=600,left=20,top=40.

WindowBounds

The bounds of the window of the page.

readonly WindowBounds[] = []

The work areas of the screens.

WindowBounds


visibleBounds(bounds, workAreas): WindowBounds | undefined

Defined in: app/src/domain/windows/window-bounds.ts:23

The bounds of a window if enough of its top edge lies on one of the screens to grab it, at least at the smallest size; otherwise nothing, and the window opens where the system puts it. A window larger than that screen, such as one from a larger screen before, fits the screen, so that its title bar and the buttons on it are on the screen.

WindowBounds

Where the window was.

readonly WindowBounds[]

The work areas of the screens now.

WindowBounds | undefined