cm-chessboard 6.0.3 → 6.0.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
CHANGED
|
@@ -20,11 +20,13 @@ aspects of chess games.
|
|
|
20
20
|
|
|
21
21
|
## Extensions
|
|
22
22
|
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
- [
|
|
26
|
-
- [
|
|
27
|
-
- [
|
|
23
|
+
The core of cm-chessboard is small, fast and reduced to the essentials. You can extend its functionality with extensions.
|
|
24
|
+
|
|
25
|
+
- [Accessibility Extension](https://shaack.com/projekte/cm-chessboard/examples/extensions/chessboard-accessibility-extension.html) - makes the chessboard more accessible
|
|
26
|
+
- [Arrows Extension](https://shaack.com/projekte/cm-chessboard/examples/extensions/chessboard-arrows-extension.html) - renders arrows on the chessboard
|
|
27
|
+
- [Markers Extension](https://shaack.com/projekte/cm-chessboard/examples/extensions/chessboard-markers-extension.html) 🆕 - create markers on specific squares
|
|
28
|
+
- [PromotionDialog Extension](https://shaack.com/projekte/cm-chessboard/examples/extensions/chessboard-promotion-dialog-extension.html) - shows a dialog to select the piece to promote to
|
|
29
|
+
- [RenderVideo Extension](https://shaack.com/projekte/cm-chessboard/examples/extensions/chessboard-render-video-extension.html) 🆕 - renders a video from the pieces movement on the board
|
|
28
30
|
|
|
29
31
|
## Demo and repository
|
|
30
32
|
|
|
@@ -10,7 +10,8 @@
|
|
|
10
10
|
<body>
|
|
11
11
|
<h1><a href="../..">cm-chessboard</a></h1>
|
|
12
12
|
<h2>Example: RenderVideo extension</h2>
|
|
13
|
-
<p>
|
|
13
|
+
<p>With this extension you can render a video from the pieces movement on the board.</p>
|
|
14
|
+
<p>It renders .mp4 files in macOS Safari and .webm files in Chrome Browser.</p>
|
|
14
15
|
<div class="board board-small" id="board"></div>
|
|
15
16
|
<video id="videoOut" controls="controls"></video>
|
|
16
17
|
<br/>
|
|
@@ -12,10 +12,6 @@
|
|
|
12
12
|
<h2>Example: Custom markers, left and right click, mark squares and log to console.</h2>
|
|
13
13
|
<div class="board" id="board1"></div>
|
|
14
14
|
<div class="board" id="board2"></div>
|
|
15
|
-
<br style="clear: both"/>
|
|
16
|
-
<div>
|
|
17
|
-
<button onclick="window.removeDots()" class="btn btn-primary">Remove all dots</button>
|
|
18
|
-
</div>
|
|
19
15
|
<script type="module">
|
|
20
16
|
import {Chessboard, INPUT_EVENT_TYPE, SQUARE_SELECT_TYPE} from "../src/cm-chessboard/Chessboard.js"
|
|
21
17
|
import {FEN} from "../src/cm-chessboard/model/Position.js"
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "cm-chessboard",
|
|
3
|
-
"version": "6.0.
|
|
3
|
+
"version": "6.0.4",
|
|
4
4
|
"description": "A JavaScript chessboard which is lightweight, ES6 module based, responsive, SVG rendered and without dependencies.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"chess",
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
"type": "git",
|
|
23
23
|
"url": "git+https://github.com/shaack/cm-chessboard.git"
|
|
24
24
|
},
|
|
25
|
-
"author": "Stefan Haack (
|
|
25
|
+
"author": "Stefan Haack (shaack.com)",
|
|
26
26
|
"license": "MIT",
|
|
27
27
|
"bugs": {
|
|
28
28
|
"url": "https://github.com/shaack/cm-chessboard/issues"
|