cm-chessboard 5.1.2 → 5.1.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 +2 -3
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -14,8 +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 and supports multiple piece sets](https://shaack.com/projekte/cm-chessboard/examples/different-styles.html)
|
|
16
16
|
- Uses SVG for rendering
|
|
17
|
-
- [Allows adding **
|
|
18
|
-
extensions** to extend the functionality](https://shaack.com/projekte/cm-chessboard/examples/extensions/chessboard-arrows-extension.html)
|
|
17
|
+
- [Allows adding **extensions** to extend the functionality](https://shaack.com/projekte/cm-chessboard/examples/extensions/chessboard-arrows-extension.html)
|
|
19
18
|
|
|
20
19
|
## Extensions 🆕
|
|
21
20
|
|
|
@@ -373,7 +372,7 @@ const chessboard = new Chessboard(document.getElementById("board"), {
|
|
|
373
372
|
### registerMethod(name, callback)
|
|
374
373
|
|
|
375
374
|
Add methods to the main chessboard from your extension with `this.registerMethod("name", callback)`
|
|
376
|
-
like `addArrow(
|
|
375
|
+
like `addArrow(type, rom, to)` in the
|
|
377
376
|
[Arrows extension](https://shaack.com/projekte/cm-chessboard/examples/extensions/chessboard-arrows-extension.html).
|
|
378
377
|
|
|
379
378
|
```js
|