Skip to content

Interface: TileLayoutHandle ​

Properties ​

element ​

ts
readonly element: HTMLDivElement;

The layout element (with data-andamento), inside the element mounted into.


layout ​

ts
readonly layout: Layout;

The layout being shown.

Methods ​

destroy() ​

ts
destroy(): void;

Remove the layout (items are taken out of their tiles) and stop listening.

Returns ​

void


refresh() ​

ts
refresh(): void;

Render again, e.g. after changing what renderCell returns.

Returns ​

void


tileElement() ​

ts
tileElement(cellId): HTMLElement | undefined;

The element of the tile showing a cell, if it's in the DOM.

Parameters ​

ParameterType
cellIdstring

Returns ​

HTMLElement | undefined


update() ​

ts
update(changes): void;

Change some options (others stay as they are; pass undefined to clear one) and re-render.

Parameters ​

ParameterType
changesPartial<TileLayoutConfig>

Returns ​

void

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