UNPKG

@illandril/foundryvtt-types

Version:

Type definitions for the Foundry VTT client, used by Illandril's modules

20 lines (15 loc) 358 B
type Position = { x: number; y: number; }; type MeasureDistanceOptions = { gridSpaces?: boolean; }; declare global { class GridLayer extends CanvasLayer { get isHexagonal(): boolean; get grid(): foundry.grid.BaseGrid; measureDistance(origin: Position, target: Position, option?: MeasureDistanceOptions): number; } } export type {};