()
| 64 | } |
| 65 | |
| 66 | export const defaultExecutorBounds = (): Rectangle => { |
| 67 | const currentDisplay = screen.getDisplayNearestPoint(screen.getCursorScreenPoint()) |
| 68 | const heightRatio = 0.8 |
| 69 | const width = Math.floor(Math.min(1000, 0.9 * currentDisplay.bounds.width)) |
| 70 | const height = Math.floor(Math.min(800, currentDisplay.bounds.height * heightRatio)) |
| 71 | const x = Math.floor(currentDisplay.bounds.x + (currentDisplay.bounds.width - width) / 2) |
| 72 | const y = Math.floor(currentDisplay.bounds.y + (currentDisplay.bounds.height - height) / 2) |
| 73 | return { x, y, height, width } |
| 74 | } |
| 75 | |
| 76 | const loadLastWindowSize = (): Rectangle => { |
| 77 | try { |
no outgoing calls
no test coverage detected