1 repository
Rounding floating point coordinates to whole pixel values to ensure sharp rendering on displays.
Distinct from Snap Points: Unlike snap points for draggables, this is a rendering-level coordinate rounding process.
Explore 1 awesome GitHub repository matching user interface & experience · Pixel Snapping. Refine with filters or upvote what's useful.
Taffy is a layout engine that calculates the size and position of user interface components. It is a language-agnostic tool that computes element geometry using Flexbox and Grid algorithms. The engine operates on custom tree structures and node storage through a trait-based interface. This design allows it to be integrated into various programming languages and custom memory management systems. The system handles UI layout computation, including leaf node measurement and floating point pixel snapping to prevent blurring on displays. It utilizes layout result caching to avoid redundant calcul
Converts calculated floating point coordinates to integer pixel values to prevent sub-pixel blurring.