@alepot55/chessboardjs 2.3.7 → 2.3.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/chessboard.cjs.js +1171 -1204
- package/dist/chessboard.css +8 -0
- package/dist/chessboard.esm.js +1171 -1204
- package/dist/chessboard.iife.js +1171 -1204
- package/dist/chessboard.umd.js +1171 -1204
- package/package.json +1 -1
- package/src/components/Piece.js +1 -13
- package/src/core/Chessboard.js +700 -325
- package/src/core/ChessboardConfig.js +18 -33
- package/src/core/ChessboardFactory.js +0 -5
- package/src/core/index.js +34 -15
- package/src/errors/messages.js +0 -1
- package/src/index.js +13 -13
- package/src/services/AnimationService.js +57 -82
- package/src/services/BoardService.js +40 -34
- package/src/services/CoordinateService.js +25 -84
- package/src/services/EventService.js +41 -104
- package/src/services/MoveService.js +63 -266
- package/src/services/PieceService.js +21 -64
- package/src/services/PositionService.js +26 -40
- package/src/services/ValidationService.js +54 -131
- package/src/services/index.js +1 -0
- package/src/styles/board.css +8 -0
- package/src/utils/listenerManager.js +62 -0
- package/src/utils/validation.js +1 -5
package/dist/chessboard.css
CHANGED
|
@@ -105,6 +105,14 @@
|
|
|
105
105
|
|
|
106
106
|
.highlighted {
|
|
107
107
|
box-shadow: inset 0 0 10px var(--highlightSquare);
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
body.chessboardjs-dragging {
|
|
111
|
+
touch-action: none !important;
|
|
112
|
+
overscroll-behavior: contain !important;
|
|
113
|
+
position: fixed !important;
|
|
114
|
+
width: 100vw !important;
|
|
115
|
+
overflow: hidden !important;
|
|
108
116
|
}/* Piece-specific styles */
|
|
109
117
|
.piece {
|
|
110
118
|
position: absolute;
|