(width: number, height: number)
| 42 | typeof (obj as Promise<unknown>).then === 'function'; |
| 43 | |
| 44 | const getBoxPositionOnWindowCenter = (width: number, height: number) => ({ |
| 45 | left: window.outerWidth / 2 + (window.screenX || window.screenLeft || 0) - width / 2, |
| 46 | top: window.outerHeight / 2 + (window.screenY || window.screenTop || 0) - height / 2, |
| 47 | }); |
| 48 | |
| 49 | const getBoxPositionOnScreenCenter = (width: number, height: number) => ({ |
| 50 | top: (window.screen.height - height) / 2, |
no outgoing calls
no test coverage detected
searching dependent graphs…