Handle %csl and %cal (arrows and highlights)

This commit is contained in:
DHTMLGoodies
2018-01-06 13:31:19 +01:00
parent 6db8d3806d
commit 0e28c13fef
4 changed files with 457 additions and 181 deletions

View File

@@ -25,6 +25,9 @@ class CHESS_JSON {
const PGN_KEY_ACTION_ARROW = "ar";
const PGN_KEY_ACTION_HIGHLIGHT = "sq";
const PGN_KEY_ACTION_CLR_HIGHLIGHT = "csl";
const PGN_KEY_ACTION_CLR_ARROW = "cal";
protected static $jsKeys = array('MOVE_FROM', 'MOVE_TO', 'MOVE_NOTATION', 'FEN','MOVE_COMMENT',
'MOVE_ACTION', 'MOVE_VARIATIONS', 'MOVE_MOVES','MOVE_CAPTURE','MOVE_PROMOTE_TO','MOVE_CASTLE',