Interface: Cell
Properties
area
area: number;bbox
bbox: Rect;boundary
boundary: boolean;The tile crosses the region outline (it was cut in "clip" mode, or sticks out in "overflow").
centroid
centroid: Vec;featured?
optional featured?: number;For a featured cell: its position in features. Featured cells get content first.
featuredItem?
optional featuredItem?: number;For a featured cell: the content item it's for, when its feature names one (Feature.item).
holes?
optional holes?: Polygon[];Holes in the visible shape, when a region hole lies wholly inside the tile. Absent otherwise. area and centroid account for them.
id
id: string;Stable id derived from the tile's position in the pattern.
index
index: number;Position in reading order (top-to-bottom, then left-to-right). Use it to assign content to cells.
merged?
optional merged?: string[];For a featured cell: ids of the tiles merged into it.
neighbors
neighbors: string[];Ids of cells that share an edge with this one in the underlying pattern.
original
original: Polygon;The full pattern tile before gap and edge handling.
polygon
polygon: Polygon;Visible shape: after gap and edge handling.
protoTile
protoTile: number;Which prototile this is a copy of (e.g. herringbone: 0 horizontal, 1 vertical).
tile?
optional tile?: Polygon;With edges: "window", for a cell the region outline cuts: the whole tile (after the gap), which renderers shape, round and fill, letting the region hide the rest. polygon is still the visible part (its largest piece, when the outline cuts the tile in two). See cellShape and visibleShapes.