Skip to content

Function: viewRect() ​

ts
function viewRect(
   el, 
   layout, 
   overscan
): Rect;

The part of the layout in view (in layout units), widened by overscan pixels and snapped outwards to a coarse grid so small scrolls give the same rectangle.

Parameters ​

ParameterType
elElement
layoutLayout
overscannumber

Returns ​

Rect

Hat tiling and isohedral tilings after Craig S. Kaplan's hatviz and Tactile (BSD 3-Clause).