Skip to main content

Module use_device_pixel_grid

Module use_device_pixel_grid 

Source
Expand description

Where the screen’s pixels fall under an element: how large one device pixel is, and how far the element’s box starts past the device-pixel grid, kept current as the page zooms, moves to a screen of another density, or lays the element out anew.

Structs§

PixelGrid
One device pixel in CSS pixels, and the nudge that puts an element’s content on the device-pixel grid.

Functions§

use_device_pixel_grid
The device-pixel grid under the element given the returned onmounted handler, updated for as long as the calling component is mounted.