Skip to content

Function: focusStyle() ​

ts
function focusStyle(
   frame, 
   cell, 
   focus, 
   aspect?
): StyleMap;

The --andamento-object-position a tile sets for its content's focal point, which coverStyle uses as its object-position. Exact with the image's aspect (given, or the focus's own; see objectPosition); without, the focus as a percentage, which CSS keeps at the same place in the tile's box rather than in the middle of what shows.

Parameters ​

ParameterType
frameFrame
cellCell
focusFocus
aspect?number

Returns ​

StyleMap

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