mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2025-12-21 17:56:04 +08:00
[ts][phaser] Fix SkinsAndAnimationBoundsProvider.
This commit is contained in:
parent
3685fa7e35
commit
8f84f8daa5
@ -149,8 +149,8 @@ export class SkinsAndAnimationBoundsProvider
|
|||||||
const bounds = skeleton.getBoundsRect();
|
const bounds = skeleton.getBoundsRect();
|
||||||
minX = Math.min(minX, bounds.x);
|
minX = Math.min(minX, bounds.x);
|
||||||
minY = Math.min(minY, bounds.y);
|
minY = Math.min(minY, bounds.y);
|
||||||
maxX = Math.max(maxX, minX + bounds.width);
|
maxX = Math.max(maxX, bounds.x + bounds.width);
|
||||||
maxY = Math.max(maxY, minY + bounds.height);
|
maxY = Math.max(maxY, bounds.y + bounds.height);
|
||||||
}
|
}
|
||||||
const bounds = {
|
const bounds = {
|
||||||
x: minX,
|
x: minX,
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user