mirror of
https://github.com/electron/electron.git
synced 2026-01-09 15:38:08 -05:00
docs: add note on DIP and DPI (#47080)
This commit is contained in:
@@ -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
|
## Events
|
||||||
|
|
||||||
The `screen` module emits the following events:
|
The `screen` module emits the following events:
|
||||||
|
|||||||
Reference in New Issue
Block a user