jigsawpuzzlegame 1.0.9 → 1.0.10

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.
@@ -1895,6 +1895,11 @@ export class JigsawPuzzle {
1895
1895
  if (!this.tmpImage.parentNode) {
1896
1896
  this.puzzle.container.appendChild(this.tmpImage);
1897
1897
  }
1898
+ // Call onReady callback when puzzle is ready (image loaded and displayed)
1899
+ // This is needed when loading from savedData since we skip state 10
1900
+ if (this.options.onReady) {
1901
+ this.options.onReady();
1902
+ }
1898
1903
  this.state = 20;
1899
1904
  break;
1900
1905
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "jigsawpuzzlegame",
3
- "version": "1.0.9",
3
+ "version": "1.0.10",
4
4
  "description": "A class for creating a jigsaw puzzle",
5
5
  "keywords": [
6
6
  "jigsaw",