cm-chessboard 8.12.2 → 8.12.3

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.
Files changed (2) hide show
  1. package/README.md +5 -0
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -84,7 +84,12 @@ You can also copy the `assets` folder from `cm-chessboard/assets` to your projec
84
84
 
85
85
  To enable the user to move the pieces, you have to enable the move input.
86
86
 
87
+ Markers are provided by the [Markers extension](https://shaack.com/projekte/cm-chessboard/examples/extensions/markers-extension.html) (not part of the core), so you need to import and enable it.
88
+
87
89
  ```javascript
90
+ import {Chessboard, FEN, INPUT_EVENT_TYPE} from "./path/to/Chessboard.js"
91
+ import {Markers} from "./path/to/extensions/markers/Markers.js"
92
+
88
93
  const board = new Chessboard(document.getElementById("board"), {
89
94
  position: FEN.start,
90
95
  assetsUrl: "../assets/",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cm-chessboard",
3
- "version": "8.12.2",
3
+ "version": "8.12.3",
4
4
  "description": "A JavaScript chessboard which is lightweight, ES6 module based, responsive, SVG rendered and without dependencies.",
5
5
  "keywords": [
6
6
  "chess",