MCPcopy
hub / github.com/diego3g/rocketredis / getWindowBounds

Function getWindowBounds

src/utils/windowBoundsController.ts:5–14  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

3import { config } from '../store/config'
4
5export const getWindowBounds = function (): Rectangle {
6 const { width, height, x, y } = config.get('windowBounds') as Rectangle
7
8 return {
9 width: width || 1100,
10 height: height || 700,
11 x,
12 y
13 }
14}
15
16export const setWindowBounds = function (bounds: Rectangle | undefined): void {
17 if (!bounds) {

Callers 1

createWindowFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected