Skip to content

Function: tileStyle() ​

ts
function tileStyle(
   frame, 
   cell, 
   o
): StyleMap;

A tile's element: placed over its cell's bounding box and clipped to its shape. Empty tiles (and every tile with safeArea) show their fill unless there's a backdrop.

Parameters ​

ParameterType
frameFrame
cellCell
o{ aspect?: number; backdrop?: boolean; clickable?: boolean; empty: boolean; focus?: Focus; safeArea?: SafeAreaProp; }
o.aspect?number
o.backdrop?boolean
o.clickable?boolean
o.emptyboolean
o.focus?Focus
o.safeArea?SafeAreaProp

Returns ​

StyleMap

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