()
| 3 | import { config } from '../store/config' |
| 4 | |
| 5 | export 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 | |
| 16 | export const setWindowBounds = function (bounds: Rectangle | undefined): void { |
| 17 | if (!bounds) { |