@esotericsoftware/spine-canvaskit 4.2.70 → 4.2.72

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.
@@ -7138,7 +7138,7 @@ var spine = (() => {
7138
7138
  }
7139
7139
  if (a >= t) {
7140
7140
  d = Math.pow(this.damping, 60 * t);
7141
- const m = this.massInverse * t, e = this.strength, w = this.wind * f, g = (Skeleton.yDown ? -this.gravity : this.gravity) * f;
7141
+ const m = this.massInverse * t, e = this.strength, w = this.wind * f * skeleton.scaleX, g = this.gravity * f * skeleton.scaleY;
7142
7142
  do {
7143
7143
  if (x) {
7144
7144
  this.xVelocity += (w - this.xOffset * e) * m;
@@ -8093,10 +8093,10 @@ var spine = (() => {
8093
8093
  }
8094
8094
  /** Returns the axis aligned bounding box (AABB) of the region and mesh attachments for the current pose as `{ x: number, y: number, width: number, height: number }`.
8095
8095
  * Note that this method will create temporary objects which can add to garbage collection pressure. Use `getBounds()` if garbage collection is a concern. */
8096
- getBoundsRect() {
8096
+ getBoundsRect(clipper) {
8097
8097
  let offset = new Vector2();
8098
8098
  let size = new Vector2();
8099
- this.getBounds(offset, size);
8099
+ this.getBounds(offset, size, void 0, clipper);
8100
8100
  return { x: offset.x, y: offset.y, width: size.x, height: size.y };
8101
8101
  }
8102
8102
  /** Returns the axis aligned bounding box (AABB) of the region and mesh attachments for the current pose.