cm-chessboard 5.2.6 → 5.2.8
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 +4 -2
- package/package.json +2 -1
package/README.md
CHANGED
|
@@ -315,10 +315,12 @@ To allow easy removing of the marker, you have to define the marker type in your
|
|
|
315
315
|
const myMarkerType = {class: "myMarkerCssClass", slice: "myMarkerIdInSvg"}
|
|
316
316
|
// add
|
|
317
317
|
chessboard.addMarker(myMarkerType, "e4")
|
|
318
|
-
// remove
|
|
318
|
+
// remove a specific marker
|
|
319
319
|
chessboard.removeMarkers(myMarkerType, "e4")
|
|
320
320
|
// remove all "myMarkerType"
|
|
321
|
-
chessboard.removeMarkers(myMarkerType
|
|
321
|
+
chessboard.removeMarkers(myMarkerType)
|
|
322
|
+
// remove all markers
|
|
323
|
+
chessboard.removeMarkers()
|
|
322
324
|
```
|
|
323
325
|
|
|
324
326
|
## Extensions
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "cm-chessboard",
|
|
3
|
-
"version": "5.2.
|
|
3
|
+
"version": "5.2.8",
|
|
4
4
|
"description": "A JavaScript chessboard which is lightweight, ES6 module based, responsive, SVG rendered and without dependencies.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"chess",
|
|
@@ -13,6 +13,7 @@
|
|
|
13
13
|
"widget"
|
|
14
14
|
],
|
|
15
15
|
"type": "module",
|
|
16
|
+
"module": "./src/cm-chessboard/Chessboard.js",
|
|
16
17
|
"browser": "./src/cm-chessboard/Chessboard.js",
|
|
17
18
|
"scripts": {
|
|
18
19
|
"test": "tput setaf 4;echo 'Run test/index.html in your browser for unit testing.'; echo ''; exit 0"
|