UNPKG

@reis/seki

Version:

Seki – A modern javascript based Go board renderer and player, that is simple to use, extensible, compact and intuitive.

26 lines (20 loc) 460 B
import BoardLayer from './board-layer.js' import {boardLayerTypes} from '../../constants/board.js' /** * Markup layer */ export default class MarkupLayer extends BoardLayer { //Type type = boardLayerTypes.MARKUP /** * Remove all (erase layer and clear grid) */ removeAll() { //Parent method super.removeAll() //Redraw grid layer to fill in erased gaps this.board .getLayer(boardLayerTypes.GRID) .redraw() } }