Skip to content

Function: layoutResolver() ​

ts
function layoutResolver(component): (options, layout, fit?) => Layout;

A layout from options, worked out again only when they change (compared by value; a cells function by identity). Returns layout itself when given.

Parameters ​

ParameterType
componentstring

Returns ​

(options, layout, fit?) => Layout

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