UNPKG

nice-ui

Version:

React design system, components, and utilities

23 lines (22 loc) 1.09 kB
import * as React from 'react'; import { IBoardLayout } from './types'; export interface BoardProps extends IBoardLayout { size?: undefined | -3 | -2 | -1 | 0 | 1 | 2 | 3; noRuler?: boolean; onClick?: (e: React.MouseEvent) => void; onRightClick?: (e: React.MouseEvent) => void; } export interface IBoardState { } export declare class Board extends React.Component<BoardProps, IBoardState> { static lineCnt: number; shouldComponentUpdate(nextProps: any): boolean; renderCheckers(): React.ReactElement<any, string | React.JSXElementConstructor<any>>[]; renderRuler(): React.ReactElement<any, string | React.JSXElementConstructor<any>>[]; renderLines(): React.ReactElement<any, string | React.JSXElementConstructor<any>>[][]; renderFigures(): React.ReactElement<any, string | React.JSXElementConstructor<any>>[]; renderHighlights(): React.ReactElement<any, string | React.JSXElementConstructor<any>>[]; renderBorders(): React.ReactElement<any, string | React.JSXElementConstructor<any>>[]; render(): React.JSX.Element; } export default Board;