@esotericsoftware/spine-canvas 4.1.7 → 4.1.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.
@@ -4379,6 +4379,22 @@ var spine = (() => {
4379
4379
  if (callback)
4380
4380
  callback(path, message);
4381
4381
  }
4382
+ loadAll() {
4383
+ let promise = new Promise((resolve, reject) => {
4384
+ let check = () => {
4385
+ if (this.isLoadingComplete()) {
4386
+ if (this.hasErrors())
4387
+ reject(this.errors);
4388
+ else
4389
+ resolve(this);
4390
+ return;
4391
+ }
4392
+ requestAnimationFrame(check);
4393
+ };
4394
+ requestAnimationFrame(check);
4395
+ });
4396
+ return promise;
4397
+ }
4382
4398
  setRawDataURI(path, data) {
4383
4399
  this.downloader.rawDataUris[this.pathPrefix + path] = data;
4384
4400
  }
@@ -6049,6 +6065,12 @@ var spine = (() => {
6049
6065
  }
6050
6066
  return null;
6051
6067
  }
6068
+ getBoundsRect() {
6069
+ let offset = new Vector2();
6070
+ let size = new Vector2();
6071
+ this.getBounds(offset, size);
6072
+ return { x: offset.x, y: offset.y, width: size.x, height: size.y };
6073
+ }
6052
6074
  getBounds(offset, size, temp = new Array(2)) {
6053
6075
  if (!offset)
6054
6076
  throw new Error("offset cannot be null.");