Skip to content

Function: visibleShapes() ​

ts
function visibleShapes(cell, layout): Shape[];

What of a cell shows, with the layout's rounded corners: its rounded shape (see cellShape), less whatever lies outside layout.view in a window layout, where the cut is sharp. One shape for most cells; a window cell the region outline cuts in two has more, largest first.

Parameters ​

ParameterType
cellCell
layoutPick<Layout, "cornerRadius" | "view">

Returns ​

Shape[]

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