cm-chessboard 4.3.3 → 4.3.6
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
CHANGED
|
@@ -2,8 +2,6 @@
|
|
|
2
2
|
|
|
3
3
|
A JavaScript chessboard which is lightweight, ES6 module based, responsive, SVG rendered and **without dependencies**.
|
|
4
4
|
|
|
5
|
-
It works on desktop (current versions of Chrome, Firefox, Safari, Edge), and mobile (Android and iOS).
|
|
6
|
-
|
|
7
5
|
cm-chessboard is the main chessboard of
|
|
8
6
|
[chessmail.eu](https://www.chessmail.eu) and [chessmail.de](https://www.chessmail.de). It is also used
|
|
9
7
|
in [chess-console](https://shaack.com/projekte/chess-console/examples/load-pgn.html) and in
|
|
@@ -365,7 +363,7 @@ const chessboard = new Chessboard(document.getElementById("board"), {
|
|
|
365
363
|
position: "start",
|
|
366
364
|
extensions: // list of used extensions
|
|
367
365
|
[{
|
|
368
|
-
class: MyCoolChessboardExtension, //
|
|
366
|
+
class: MyCoolChessboardExtension, // the class of the extension
|
|
369
367
|
props: {
|
|
370
368
|
// configure the extension here
|
|
371
369
|
}
|
|
@@ -395,7 +393,7 @@ const chessboard = new Chessboard(document.getElementById("board"), {
|
|
|
395
393
|
[{
|
|
396
394
|
class: Accessibility,
|
|
397
395
|
props: {
|
|
398
|
-
brailleNotationInAlt: true, // show the braille notation of the
|
|
396
|
+
brailleNotationInAlt: true, // show the braille notation of the position in the alt attribute of the SVG image
|
|
399
397
|
boardAsTable: true, // display the board additionally as HTML table
|
|
400
398
|
movePieceForm: true, // display a form to move a piece (from, to, move)
|
|
401
399
|
piecesAsList: true, // display the pieces additionally as List
|
package/package.json
CHANGED
|
@@ -37,7 +37,7 @@ export class Accessibility extends Extension {
|
|
|
37
37
|
constructor(chessboard, props) {
|
|
38
38
|
super(chessboard, props)
|
|
39
39
|
this.props = {
|
|
40
|
-
brailleNotationInAlt: true, // show the braille notation of the
|
|
40
|
+
brailleNotationInAlt: true, // show the braille notation of the position in the alt attribute of the SVG image
|
|
41
41
|
boardAsTable: false, // display the board additionally as HTML table
|
|
42
42
|
movePieceForm: false, // display a form to move a piece (from, to, move)
|
|
43
43
|
piecesAsList: false, // display the pieces additionally as List
|