Skip to content

Function: renderToElement() ​

ts
function renderToElement(
   layout, 
   opts?, 
   doc?
): SVGSVGElement;

Render a layout to a live <svg> element.

Parameters ​

ParameterTypeDefault value
layoutLayoutundefined
optsRenderOptions{}
docDocumentglobalThis.document

Returns ​

SVGSVGElement

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