UNPKG

chessground

Version:
91 lines 2.72 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.defaults = void 0; const fen = require("./fen"); const util_1 = require("./util"); function defaults() { return { pieces: fen.read(fen.initial), orientation: 'white', turnColor: 'white', coordinates: true, autoCastle: true, viewOnly: false, disableContextMenu: false, resizable: true, addPieceZIndex: false, pieceKey: false, highlight: { lastMove: true, check: true, }, animation: { enabled: true, duration: 200, }, movable: { free: true, color: 'both', showDests: true, events: {}, rookCastle: true, }, premovable: { enabled: true, showDests: true, castle: true, events: {}, }, predroppable: { enabled: false, events: {}, }, draggable: { enabled: true, distance: 3, autoDistance: true, showGhost: true, deleteOnDropOff: false, }, dropmode: { active: false, }, selectable: { enabled: true, }, stats: { dragged: !('ontouchstart' in window), }, events: {}, drawable: { enabled: true, visible: true, defaultSnapToValidMove: true, eraseOnClick: true, shapes: [], autoShapes: [], brushes: { green: { key: 'g', color: '#15781B', opacity: 1, lineWidth: 10 }, red: { key: 'r', color: '#882020', opacity: 1, lineWidth: 10 }, blue: { key: 'b', color: '#003088', opacity: 1, lineWidth: 10 }, yellow: { key: 'y', color: '#e68f00', opacity: 1, lineWidth: 10 }, paleBlue: { key: 'pb', color: '#003088', opacity: 0.4, lineWidth: 15 }, paleGreen: { key: 'pg', color: '#15781B', opacity: 0.4, lineWidth: 15 }, paleRed: { key: 'pr', color: '#882020', opacity: 0.4, lineWidth: 15 }, paleGrey: { key: 'pgr', color: '#4a4a4a', opacity: 0.35, lineWidth: 15, }, }, pieces: { baseUrl: 'https://lichess1.org/assets/piece/cburnett/', }, prevSvgHash: '', }, hold: util_1.timer(), }; } exports.defaults = defaults; //# sourceMappingURL=state.js.map