cm-chessboard 8.7.3 → 8.7.5
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/README.md +3 -5
- package/package.json +1 -1
- package/src/Chessboard.js +1 -2
package/README.md
CHANGED
|
@@ -389,9 +389,7 @@ const chessboard = new Chessboard(document.getElementById("board"), {
|
|
|
389
389
|
- License for the Wikimedia SVG-pieces (
|
|
390
390
|
chessboard-sprite.svg): [CC BY-SA 3.0](https://creativecommons.org/licenses/by-sa/3.0/)
|
|
391
391
|
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
You may also be interested in [cm-chess](https://github.com/shaack/cm-chess), it is like
|
|
395
|
-
[chess.js](https://github.com/jhlywa/chess.js), but in ES6 and can handle games and PGNs with variants, NAGs and
|
|
396
|
-
comments.
|
|
392
|
+
---
|
|
397
393
|
|
|
394
|
+
Find more high quality JavaScript modules from [shaack.com](https://shaack.com)
|
|
395
|
+
on [our projects page](https://shaack.com/works).
|
package/package.json
CHANGED
package/src/Chessboard.js
CHANGED
|
@@ -115,9 +115,8 @@ export class Chessboard {
|
|
|
115
115
|
return this.state.position.getPiece(square)
|
|
116
116
|
}
|
|
117
117
|
|
|
118
|
-
/** return the position object since 2024-04-20 (8.7.0) */
|
|
119
118
|
getPosition() {
|
|
120
|
-
return this.state.position
|
|
119
|
+
return this.state.position.getFen()
|
|
121
120
|
}
|
|
122
121
|
|
|
123
122
|
getOrientation() {
|