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 +5 -3
- package/package.json +1 -1
- package/src/view/ChessboardView.js +1 -1
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
|
|
454
|
+
## Usage with JS Frameworks
|
|
455
455
|
|
|
456
|
-
|
|
457
|
-
|
|
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
|
@@ -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.
|
|
67
|
+
wrapper.style.transform = "scale(0)"
|
|
68
68
|
wrapper.id = wrapperId
|
|
69
69
|
document.body.appendChild(wrapper)
|
|
70
70
|
const xhr = new XMLHttpRequest()
|