test page
Forked chessboard.js 0.3.0 with Annotation Overlay
info
pass 'overlay: true' to cfg when initialising board
Adds the following methods:
- .addArrowAnnotation(source_square,target_square)
- .removeArrowAnnotation(source_square,target_square)
- .clearAnnotations()
demo
The following board will highlight available moves of a peice with arrows
while hovering with mouse:
todo
- browser detection for SVG support / graceful degredation
- support for multiple colours / styles
- other annotations (e.g. text, outlines)
- offer as plugin for vanilla chessboard.js??