UNPKG

minigame-std

Version:

Mini Game Standard Development Library.

32 lines (23 loc) 657 B
[**minigame-std**](../../../README.md) *** [minigame-std](../../../README.md) / [platform](../README.md) / getWindowInfo # Function: getWindowInfo() ```ts function getWindowInfo(): Pick<WindowInfo, | "pixelRatio" | "screenHeight" | "screenTop" | "screenWidth" | "windowHeight" | "windowWidth"> ``` Defined in: [src/std/platform/mod.ts:11](https://github.com/JiangJie/minigame-std/blob/fdb22241c47c2e98329a4c62befde728957e03ee/src/std/platform/mod.ts#L11) 获取窗口信息。 ## Returns `Pick`\<`WindowInfo`, \| `"pixelRatio"` \| `"screenHeight"` \| `"screenTop"` \| `"screenWidth"` \| `"windowHeight"` \| `"windowWidth"`\>