UNPKG

@logic-pad/core

Version:
24 lines (23 loc) 947 B
import GridData from '../grid.js'; import { State } from '../primitives.js'; import MultiEntrySymbol from './multiEntrySymbol.js'; export default abstract class CustomSymbol extends MultiEntrySymbol { readonly description: string; readonly grid: GridData; /** * **A custom symbol** * * @param description - The description of the symbol. Leave this empty to hide the description. * @param grid - The thumbnail grid of the rule, preferably 5x4 in size. * @param x - The x-coordinate of the symbol. * @param y - The y-coordinate of the symbol. */ constructor(description: string, grid: GridData, x: number, y: number); get explanation(): string; createExampleGrid(): GridData; validateSymbol(_grid: GridData): State; get validateWithSolution(): boolean; withDescription(description: string): this; withGrid(grid: GridData): this; } export declare const instance: undefined;