cm-chessboard 8.3.3 → 8.3.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 +1 -1
- package/package.json +1 -1
- package/src/model/Extension.js +2 -2
package/README.md
CHANGED
|
@@ -87,7 +87,7 @@ To enable the user to move the pieces, you have to enable the move input.
|
|
|
87
87
|
const board = new Chessboard(document.getElementById("board"), {
|
|
88
88
|
position: FEN.start,
|
|
89
89
|
assetsUrl: "../assets/",
|
|
90
|
-
extensions: [{class: Markers}] // Looks better with markers
|
|
90
|
+
extensions: [{class: Markers}] // Looks better with markers. (Don't forget to also include the CSS for the markers)
|
|
91
91
|
})
|
|
92
92
|
|
|
93
93
|
board.enableMoveInput(inputHandler) // This enables the move input
|
package/package.json
CHANGED
package/src/model/Extension.js
CHANGED
|
@@ -12,7 +12,7 @@ export const EXTENSION_POINT = {
|
|
|
12
12
|
beforeRedrawBoard: "beforeRedrawBoard", // called before redrawing the board
|
|
13
13
|
afterRedrawBoard: "afterRedrawBoard", // called after redrawing the board
|
|
14
14
|
redrawBoard: "redrawBoard", // called after redrawing the board, DEPRECATED, use afterRedrawBoard 2023-09-18
|
|
15
|
-
animation: "animation", // called on animation start, end and on every animation frame
|
|
15
|
+
animation: "animation", // called on animation start, end, and on every animation frame
|
|
16
16
|
destroy: "destroy" // called, before the board is destroyed
|
|
17
17
|
}
|
|
18
18
|
|
|
@@ -23,7 +23,7 @@ export class Extension {
|
|
|
23
23
|
}
|
|
24
24
|
|
|
25
25
|
registerExtensionPoint(name, callback) {
|
|
26
|
-
if(name === EXTENSION_POINT.redrawBoard) {
|
|
26
|
+
if(name === EXTENSION_POINT.redrawBoard) { // deprecated 2023-09-18
|
|
27
27
|
console.warn("EXTENSION_POINT.redrawBoard is deprecated, use EXTENSION_POINT.afterRedrawBoard")
|
|
28
28
|
name = EXTENSION_POINT.afterRedrawBoard
|
|
29
29
|
}
|