cm-chessboard 5.2.3 → 5.2.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
|
@@ -344,11 +344,12 @@ Currently possible extension points are defined in `Extension.js`.
|
|
|
344
344
|
|
|
345
345
|
```js
|
|
346
346
|
export const EXTENSION_POINT = {
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
347
|
+
positionChanged: "positionChanged", // the positions of the pieces was changed
|
|
348
|
+
boardChanged: "boardChanged", // the board (orientation) was changed
|
|
349
|
+
moveInputToggled: "moveInputToggled", // move input was enabled or disabled
|
|
350
|
+
moveInput: "moveInput", // move started, to validate or canceled // TODO validation not possible for now, see https://github.com/shaack/cm-chessboard/issues/82
|
|
351
|
+
redrawBoard: "redrawBoard", // called after redrawing the board
|
|
352
|
+
destroy: "destroy" // called, before the board is destroyed
|
|
352
353
|
}
|
|
353
354
|
```
|
|
354
355
|
|
package/package.json
CHANGED
|
@@ -10,8 +10,8 @@ export const EXTENSION_POINT = {
|
|
|
10
10
|
moveInputToggled: "moveInputToggled", // move input was enabled or disabled
|
|
11
11
|
moveInput: "moveInput", // move started, to validate or canceled // TODO validation not possible for now, see https://github.com/shaack/cm-chessboard/issues/82
|
|
12
12
|
moveInputStateChanged: "moveInput", // TODO deprecated, use `moveInput`
|
|
13
|
-
|
|
14
|
-
|
|
13
|
+
redrawBoard: "redrawBoard", // called after redrawing the board
|
|
14
|
+
destroy: "destroy" // called, before the board is destroyed
|
|
15
15
|
}
|
|
16
16
|
|
|
17
17
|
export class Extension {
|