@hydroperx/tiles
Version:
Metro tile layout
31 lines (30 loc) • 753 B
TypeScript
import { TileSize } from "./enum/TileSize";
/**
* The state of a `Tiles` component, containing positions and labels.
*/
export declare class State {
groups: Map<string, {
index: number;
label: string;
}>;
tiles: Map<string, {
size: TileSize;
x: number;
y: number;
group: string;
}>;
/**
* Constructs `State` from JSON. The `object` argument
* may be a JSON serialized string or a plain object.
*/
static fromJSON(object: any): State;
/**
* Returns a plain object (**not** a string).
*/
toJSON(): any;
clear(): void;
set(state: State): void;
clone(): State;
groupExists(id: string): boolean;
tileExists(id: string): boolean;
}