@logic-pad/core
Version:
29 lines (28 loc) • 1.02 kB
TypeScript
import { AnyConfig } from '../config.js';
import GridData from '../grid.js';
import { Color, RuleState } from '../primitives.js';
import RegionShapeRule from './regionShapeRule.js';
import { SearchVariant } from './rule.js';
export default class UniqueShapeRule extends RegionShapeRule {
readonly title = "Unique Shape Areas";
private static readonly CONFIGS;
private static readonly EXAMPLE_GRID_LIGHT;
private static readonly EXAMPLE_GRID_DARK;
private static readonly SEARCH_VARIANTS;
/**
* **No two <color> areas have the same shape and size**
*
* @param color - The color of the regions to compare.
*/
constructor(color: Color);
get id(): string;
get explanation(): string;
get configs(): readonly AnyConfig[] | null;
createExampleGrid(): GridData;
get searchVariants(): SearchVariant[];
validateGrid(grid: GridData): RuleState;
copyWith({ color }: {
color?: Color;
}): this;
}
export declare const instance: UniqueShapeRule;