Skip to content

Function: cellsInRect() ​

ts
function cellsInRect(
   layout, 
   rect, 
   options?
): Cell[];

Cells meeting a rectangle (in layout units), in reading order: for marquee selection, or finding what's in view. With contain, only cells wholly inside it.

Parameters ​

ParameterType
layoutLayout
rectRect
options{ contain?: boolean; }
options.contain?boolean

Returns ​

Cell[]

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