remove chessground.config.resizable flags
parent
bbdd8999b3
commit
9bbf80c36b
|
@ -449,7 +449,6 @@ function renderPvBoard(ctrl: ParentCtrl): VNode | undefined {
|
|||
orientation,
|
||||
coordinates: false,
|
||||
viewOnly: true,
|
||||
resizable: false,
|
||||
drawable: {
|
||||
enabled: false,
|
||||
visible: false,
|
||||
|
|
|
@ -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: {
|
||||
|
|
|
@ -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]]),
|
||||
|
|
|
@ -8,7 +8,6 @@ window.onload = () => {
|
|||
|
||||
Chessground(board.firstChild as HTMLElement, {
|
||||
coordinates: false,
|
||||
resizable: false,
|
||||
drawable: { enabled: false, visible: false },
|
||||
viewOnly: true,
|
||||
fen: fen,
|
||||
|
|
Loading…
Reference in New Issue