UNPKG

@logic-pad/core

Version:
28 lines (27 loc) 975 B
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 SameShapeRule extends RegionShapeRule { private static readonly CONFIGS; private static readonly EXAMPLE_GRID_LIGHT; private static readonly EXAMPLE_GRID_DARK; private static readonly SEARCH_VARIANTS; /** * **All <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: SameShapeRule;