@logic-pad/core
Version:
32 lines (31 loc) • 1 kB
TypeScript
import { AnyConfig } from '../config.js';
import GridData from '../grid.js';
import NumberSymbol from './numberSymbol.js';
export default class AreaNumberSymbol extends NumberSymbol {
readonly title = "Area Number";
private static readonly CONFIGS;
private static readonly EXAMPLE_GRID;
/**
* **Area Numbers must equal region sizes**
*
* @param x - The x-coordinate of the symbol.
* @param y - The y-coordinate of the symbol.
* @param number - The area number.
*/
constructor(x: number, y: number, number: number);
get id(): string;
get explanation(): string;
get configs(): readonly AnyConfig[] | null;
createExampleGrid(): GridData;
countTiles(grid: GridData): {
completed: number;
possible: number;
} | null;
copyWith({ x, y, number, }: {
x?: number;
y?: number;
number?: number;
}): this;
withNumber(number: number): this;
}
export declare const instance: AreaNumberSymbol;