elementArray.push(gameDiv);
if (!!this.vr.reserve) elementArray.push(reserveBottom);
const boardElt = document.querySelector(".game");
elementArray.push(gameDiv);
if (!!this.vr.reserve) elementArray.push(reserveBottom);
const boardElt = document.querySelector(".game");
if (this.choices.length > 0 && !!boardElt) {
// No choices to show at first drawing
const offset = [boardElt.offsetTop, boardElt.offsetLeft];
if (this.choices.length > 0 && !!boardElt) {
// No choices to show at first drawing
const offset = [boardElt.offsetTop, boardElt.offsetLeft];
- "M0,0 L0," + (2 * arrowWidth) + " " +
- "L" + (2 * arrowWidth) + "," + arrowWidth + " z"
+ "M0,0 L0," + (3 * arrowWidth) + " L" +
+ (2 * arrowWidth) + "," + (1.5 * arrowWidth) + " z"
// Cancel current drawing and circles, if any
this.cancelResetArrows();
// Cancel current drawing and circles, if any
this.cancelResetArrows();
if (!this.selectedPiece) return;
// Drag'n drop. Selected piece is no longer needed:
this.selectedPiece.parentNode.removeChild(this.selectedPiece);
delete this.selectedPiece;
this.selectedPiece = null;
this.processMoveAttempt(e);
if (!this.selectedPiece) return;
// Drag'n drop. Selected piece is no longer needed:
this.selectedPiece.parentNode.removeChild(this.selectedPiece);
delete this.selectedPiece;
this.selectedPiece = null;
this.processMoveAttempt(e);
this.movingArrow = { x: -1, y: -1 };
this.processArrowAttempt(e);
}
this.movingArrow = { x: -1, y: -1 };
this.processArrowAttempt(e);
}