cm-chessboard 4.5.3 → 4.5.4
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 +9 -3
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -14,7 +14,7 @@ aspects of chess games.
|
|
|
14
14
|
- [Can handle moves input via click or drag](https://shaack.com/projekte/cm-chessboard/examples/validate-moves.html)
|
|
15
15
|
- [Styleable via css](https://shaack.com/projekte/cm-chessboard/examples/different-styles.html)
|
|
16
16
|
- [Supports multiple piece sets](https://shaack.com/projekte/cm-chessboard/examples/different-styles.html)
|
|
17
|
-
- [Supports an optimized usage for visually impaired people](https://shaack.com/projekte/cm-chessboard/examples/
|
|
17
|
+
- [Supports an optimized usage for visually impaired people](https://shaack.com/projekte/cm-chessboard/examples/extensions/chessboard-accessibility-extension.html)
|
|
18
18
|
🆕
|
|
19
19
|
- Uses SVG for rendering
|
|
20
20
|
- Vanilla JavaScript modules in ECMAScript 6 syntax
|
|
@@ -372,13 +372,13 @@ const chessboard = new Chessboard(document.getElementById("board"), {
|
|
|
372
372
|
})
|
|
373
373
|
```
|
|
374
374
|
|
|
375
|
-
###
|
|
375
|
+
### `Accessibility` extension
|
|
376
376
|
|
|
377
377
|
This extension ensures that visual impaired people can better use the chessboard. It displays the braille notation
|
|
378
378
|
of the current position in the alt tag of the board image and enables a form to move the pieces via text input. It
|
|
379
379
|
can also display the board as HTML table and the pieces as list.
|
|
380
380
|
|
|
381
|
-
See example [Accessibility extension](https://shaack.com/projekte/cm-chessboard/examples/
|
|
381
|
+
See example [Accessibility extension](https://shaack.com/projekte/cm-chessboard/examples/extensions/chessboard-accessibility-extension.html)
|
|
382
382
|
|
|
383
383
|
#### Usage
|
|
384
384
|
|
|
@@ -405,6 +405,12 @@ const chessboard = new Chessboard(document.getElementById("board"), {
|
|
|
405
405
|
})
|
|
406
406
|
```
|
|
407
407
|
|
|
408
|
+
### `Arrows` extension
|
|
409
|
+
|
|
410
|
+
To draw arrows on the board.
|
|
411
|
+
|
|
412
|
+
See example [Arrows extension](https://shaack.com/projekte/cm-chessboard/examples/extensions/chessboard-arrows-extension.html)
|
|
413
|
+
|
|
408
414
|
## Usage with React
|
|
409
415
|
|
|
410
416
|
There exists a ticket from someone who is using cm-chessboard with react:
|