UNPKG

@rickosborne/hexgrid

Version:

Rick Osborne's collection of hexagonal grid-related code.

36 lines 929 B
export interface HexOrientation { b0: number; b1: number; b2: number; b3: number; f0: number; f1: number; f2: number; f3: number; start60Deg: number; type: HexOrientationName; } export interface HexOrientations { flat: typeof ORIENTATION_FLAT; pointy: typeof ORIENTATION_POINTY; } export declare const FLAT = "flat"; export declare const POINTY = "pointy"; export type HexOrientationName = keyof HexOrientations; export declare const ORIENTATION_POINTY: Readonly<HexOrientation>; export declare const ORIENTATION_FLAT: Readonly<HexOrientation>; export interface PointXY { x: number; y: number; } export interface HexLayout { orientation: HexOrientation; origin: PointXY; /** * The smallest useful unit in this layout. Pixel values * will be rounded to it. */ resolution: number; size: PointXY; } //# sourceMappingURL=orientation.d.ts.map