@esotericsoftware/spine-webgl 4.1.8 → 4.1.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.
@@ -4420,6 +4420,22 @@ var spine = (() => {
4420
4420
  if (callback)
4421
4421
  callback(path, message);
4422
4422
  }
4423
+ loadAll() {
4424
+ let promise = new Promise((resolve, reject) => {
4425
+ let check = () => {
4426
+ if (this.isLoadingComplete()) {
4427
+ if (this.hasErrors())
4428
+ reject(this.errors);
4429
+ else
4430
+ resolve(this);
4431
+ return;
4432
+ }
4433
+ requestAnimationFrame(check);
4434
+ };
4435
+ requestAnimationFrame(check);
4436
+ });
4437
+ return promise;
4438
+ }
4423
4439
  setRawDataURI(path, data) {
4424
4440
  this.downloader.rawDataUris[this.pathPrefix + path] = data;
4425
4441
  }
@@ -6090,6 +6106,12 @@ var spine = (() => {
6090
6106
  }
6091
6107
  return null;
6092
6108
  }
6109
+ getBoundsRect() {
6110
+ let offset = new Vector2();
6111
+ let size = new Vector2();
6112
+ this.getBounds(offset, size);
6113
+ return { x: offset.x, y: offset.y, width: size.x, height: size.y };
6114
+ }
6093
6115
  getBounds(offset, size, temp = new Array(2)) {
6094
6116
  if (!offset)
6095
6117
  throw new Error("offset cannot be null.");