ApplesauceOS
Read Markdown ↗Download .md

getScreenInfo

Read panel dimensions.

js
getScreenInfo()

Arguments

No arguments.

Returns

{width, height} in native pixels in portrait orientation. No scale field.

Example

js
console.log(JSON.stringify(getScreenInfo()));

Notes

Swap screen width and height for landscape. Do not infer coordinate scale from these dimensions.

All JavaScript APIs · Automation playbook