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:10](https://github.com/JiangJie/minigame-std/blob/ff3594872b1efbdbc13aabe99588385e855b50dc/src/std/platform/mod.ts#L10) 获取窗口信息。 ## Returns `Pick`\<`WindowInfo`, \| `"pixelRatio"` \| `"screenHeight"` \| `"screenTop"` \| `"screenWidth"` \| `"windowHeight"` \| `"windowWidth"`\>