cm-chessboard 8.1.0 → 8.1.1

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,9 +344,12 @@ Currently possible extension points are defined in `Extension.js`.
344
344
  export const EXTENSION_POINT = {
345
345
  positionChanged: "positionChanged", // the positions of the pieces was changed
346
346
  boardChanged: "boardChanged", // the board (orientation) was changed
347
+ boardResized: "boardResized", // the board was resized
347
348
  moveInputToggled: "moveInputToggled", // move input was enabled or disabled
348
349
  moveInput: "moveInput", // move started, moving over a square, validating or canceled
349
- redrawBoard: "redrawBoard", // called after redrawing the board
350
+ beforeRedrawBoard: "beforeRedrawBoard", // called before redrawing the board
351
+ afterRedrawBoard: "afterRedrawBoard", // called after redrawing the board
352
+ redrawBoard: "redrawBoard", // called after redrawing the board, DEPRECATED, use afterRedrawBoard
350
353
  animation: "animation", // called on animation start, end and on every animation frame
351
354
  destroy: "destroy" // called, before the board is destroyed
352
355
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cm-chessboard",
3
- "version": "8.1.0",
3
+ "version": "8.1.1",
4
4
  "description": "A JavaScript chessboard which is lightweight, ES6 module based, responsive, SVG rendered and without dependencies.",
5
5
  "keywords": [
6
6
  "chess",
@@ -38,9 +38,9 @@ export class ChessboardView {
38
38
  this.container.addEventListener("touchstart", this.pointerDownListener, {passive: false})
39
39
 
40
40
  this.createSvgAndGroups()
41
- this.updateMetrics()
41
+ // this.updateMetrics()
42
42
  this.handleResize()
43
- this.redrawBoard()
43
+ // this.redrawBoard()
44
44
  }
45
45
 
46
46
  pointerDownHandler(e) {