@rickosborne/hexgrid
Version:
Rick Osborne's collection of hexagonal grid-related code.
20 lines • 705 B
TypeScript
import type { HexLayout, PointXY } from "./orientation";
import type { BareQRSPoint } from "./qrs.js";
export interface QRWithXY extends PointXY, BareQRSPoint {
corners: PointXY[];
}
/**
* Generate a hex grid which completely covers a rectangle of the
* given dimensions.
*/
export declare const coverRect: (width: number, height: number, layout: HexLayout) => QRWithXY[];
/**
* Build a rudimentary SVG for the described grid. Intended more
* for testing and visual inspection than for anything significant.
*/
export declare const svgForHexGrid: (grid: {
height: number;
hexes: QRWithXY[];
width: number;
}, layout: HexLayout) => string;
//# sourceMappingURL=covering-grid.d.ts.map