Skip to content

Function: watchView() ​

ts
function watchView(el, measure): () => void;

Call measure now and again (at most once a frame) whenever the page or any scrolling container scrolls, the window resizes or el does. Returns a function that stops it.

Parameters ​

ParameterType
elElement
measure() => void

Returns ​

() => void

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