wgo
Version:
JavaScript library for game of Go
7 lines (6 loc) • 455 B
TypeScript
import { SVGDrawHandler, SVGBoardConfig, BoardObjectSVGElements } from '../types';
import { FieldBoardObject } from '../../BoardBase';
export default abstract class SVGFieldDrawHandler implements SVGDrawHandler {
abstract createElement(config: SVGBoardConfig, addDef: (def: SVGElement) => void): SVGElement | BoardObjectSVGElements;
updateElement(elem: BoardObjectSVGElements, boardObject: FieldBoardObject, config: SVGBoardConfig): void;
}