docs: add note on DIP and DPI (#47080)

This commit is contained in:
Erick Zhao
2025-05-15 14:51:49 -07:00
committed by GitHub
parent 77c58658c5
commit dc34e8732c

View File

@@ -58,6 +58,14 @@ app.whenReady().then(() => {
})
```
> [!NOTE]
> Screen coordinates used by this module are [`Point`](structures/point.md) structures.
> There are two kinds of coordinates available to the process:
>
> * **Physical screen points** are raw hardware pixels on a display.
> * **Device-independent pixel (DIP) points** are virtualized screen points scaled based on the DPI
> (dots per inch) of the display.
## Events
The `screen` module emits the following events: