The hexagonal shape of a Token.

interface TokenHexagonalShapeData {
    anchor: Point;
    center: Point;
    offsets: { even: GridOffset2D[]; odd: GridOffset2D[] };
    points: number[];
}

Properties

anchor: Point

The snapping anchor in normalized coordiantes, i.e. the top-left grid hex center in the snapped position

center: Point

The center of the shape in normalized coordiantes

offsets: { even: GridOffset2D[]; odd: GridOffset2D[] }

The occupied offsets in even/odd rows/columns

points: number[]

The points in normalized coordinates