UNPKG

chessfield

Version:

A TypeScript+ThreeJS library to render a 3D chessboard

16 lines (15 loc) 424 B
import * as cg from 'chessground/types'; import * as cf from './chessfield.types'; export interface HeadlessState { pieces: cg.Pieces; orientation: cg.Color; camera: cf.Camera; angle: cf.Angle; turnColor: cg.Color; lastMove?: cg.Key[]; coordinatesOnSquares: boolean; } export interface ChessfieldState extends HeadlessState { dom: cg.Dom; } export declare function defaults(): HeadlessState;