remove chessground.config.resizable flags

benediktwerner-cg-resize
Thibault Duplessis 2021-06-17 08:48:01 +02:00
parent bbdd8999b3
commit 9bbf80c36b
4 changed files with 0 additions and 4 deletions

View File

@ -449,7 +449,6 @@ function renderPvBoard(ctrl: ParentCtrl): VNode | undefined {
orientation,
coordinates: false,
viewOnly: true,
resizable: false,
drawable: {
enabled: false,
visible: false,

View File

@ -15,7 +15,6 @@ export const initWith = (node: HTMLElement, fen: string, orientation: Color, lm?
orientation,
coordinates: false,
viewOnly: !node.getAttribute('data-playable'),
resizable: false,
fen,
lastMove: lm && (lm[1] === '@' ? [lm.slice(2)] : [lm[0] + lm[1], lm[2] + lm[3]]),
drawable: {

View File

@ -16,7 +16,6 @@ export const init = (node: HTMLElement) => {
config = {
coordinates: false,
viewOnly: true,
resizable: false,
fen,
orientation,
lastMove: lm && (lm[1] === '@' ? [lm.slice(2)] : [lm[0] + lm[1], lm[2] + lm[3]]),

View File

@ -8,7 +8,6 @@ window.onload = () => {
Chessground(board.firstChild as HTMLElement, {
coordinates: false,
resizable: false,
drawable: { enabled: false, visible: false },
viewOnly: true,
fen: fen,