Foundry Virtual Tabletop - API Documentation - Version 14
    Preparing search index...

    Interface TokenHexagonalShapeData

    The hexagonal shape of a Token.

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

    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