cm-chessboard 7.6.10 → 7.6.11

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
@@ -451,10 +451,12 @@ you can call `chessboard.removeArrows(undefined, "e2")` and so on...
451
451
 
452
452
  To get all arrows, call `chessboard.getArrows()` without parameters, as with `removeArrows(type, from, to)`.
453
453
 
454
- ## Usage with React
454
+ ## Usage with JS Frameworks
455
455
 
456
- There exists a ticket from someone who is using cm-chessboard with react:
457
- https://github.com/shaack/cm-chessboard/issues/20
456
+ - Works with **Vue** out of the box
457
+ - Works with **Svelte** out of the box
458
+ - I don't use **React**, but there exists a ticket from someone who is using cm-chessboard with react: https://github.com/shaack/cm-chessboard/issues/20
459
+ - It should work also with **all other JS frameworks**, because cm-chessboard is written in standard ES6 and has **no dependencies**.
458
460
 
459
461
  ## Licenses
460
462
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cm-chessboard",
3
- "version": "7.6.10",
3
+ "version": "7.6.11",
4
4
  "description": "A JavaScript chessboard which is lightweight, ES6 module based, responsive, SVG rendered and without dependencies.",
5
5
  "keywords": [
6
6
  "chess",
@@ -64,7 +64,7 @@ export class ChessboardView {
64
64
  cacheSpriteToDiv(wrapperId, url) {
65
65
  if (!document.getElementById(wrapperId)) {
66
66
  const wrapper = document.createElement("div")
67
- wrapper.style.display = "none"
67
+ wrapper.style.transform = "scale(0)"
68
68
  wrapper.id = wrapperId
69
69
  document.body.appendChild(wrapper)
70
70
  const xhr = new XMLHttpRequest()