chessgroundx
Version:
Extended lichess.org Chess UI
9 lines (8 loc) • 330 B
TypeScript
import { DrawShape } from './draw';
export interface SyncableShape {
shape: DrawShape;
current: boolean;
hash: Hash;
}
export declare type Hash = string;
export declare function syncShapes(shapes: SyncableShape[], root: HTMLElement | SVGElement, renderShape: (shape: SyncableShape) => HTMLElement | SVGElement): void;