@esotericsoftware/spine-canvaskit 4.2.71 → 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.
- package/dist/esm/spine-canvaskit.min.mjs +2 -2
- package/dist/esm/spine-canvaskit.mjs +3 -3
- package/dist/esm/spine-canvaskit.mjs.map +2 -2
- package/dist/iife/spine-canvaskit.js +3 -3
- package/dist/iife/spine-canvaskit.js.map +2 -2
- package/dist/iife/spine-canvaskit.min.js +2 -2
- package/package.json +2 -2
|
@@ -6995,7 +6995,7 @@ var PhysicsConstraint = class {
|
|
|
6995
6995
|
}
|
|
6996
6996
|
if (a >= t) {
|
|
6997
6997
|
d = Math.pow(this.damping, 60 * t);
|
|
6998
|
-
const m = this.massInverse * t, e = this.strength, w = this.wind * f * skeleton.scaleX, g =
|
|
6998
|
+
const m = this.massInverse * t, e = this.strength, w = this.wind * f * skeleton.scaleX, g = this.gravity * f * skeleton.scaleY;
|
|
6999
6999
|
do {
|
|
7000
7000
|
if (x) {
|
|
7001
7001
|
this.xVelocity += (w - this.xOffset * e) * m;
|
|
@@ -7950,10 +7950,10 @@ var _Skeleton = class {
|
|
|
7950
7950
|
}
|
|
7951
7951
|
/** 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 }`.
|
|
7952
7952
|
* Note that this method will create temporary objects which can add to garbage collection pressure. Use `getBounds()` if garbage collection is a concern. */
|
|
7953
|
-
getBoundsRect() {
|
|
7953
|
+
getBoundsRect(clipper) {
|
|
7954
7954
|
let offset = new Vector2();
|
|
7955
7955
|
let size = new Vector2();
|
|
7956
|
-
this.getBounds(offset, size);
|
|
7956
|
+
this.getBounds(offset, size, void 0, clipper);
|
|
7957
7957
|
return { x: offset.x, y: offset.y, width: size.x, height: size.y };
|
|
7958
7958
|
}
|
|
7959
7959
|
/** Returns the axis aligned bounding box (AABB) of the region and mesh attachments for the current pose.
|