onix-chess-game
Version:
Chess game board
26 lines (24 loc) • 866 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.createAnalyseGameState = void 0;
const onix_chess_1 = require("onix-chess");
const createAnalyseGameState = (props) => {
var _a;
const { locale, board, game } = props;
return {
intl: {
locale: locale !== null && locale !== void 0 ? locale : 'en-us'
},
board: {
is3d: !!board.is3d,
size: board.size,
piece: board.piece || 'alpha',
square: board.square || 'color-brown',
orientation: (_a = board.orientation) !== null && _a !== void 0 ? _a : 'white',
coordinates: !!board.coordinates
},
game: onix_chess_1.createGameState(props.game)
};
};
exports.createAnalyseGameState = createAnalyseGameState;
//# sourceMappingURL=AnalyseGameState.js.map