@esotericsoftware/spine-webgl 4.2.34 → 4.2.35

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.
@@ -8727,8 +8727,8 @@ var spine = (() => {
8727
8727
  data.strength = input.readFloat();
8728
8728
  data.damping = input.readFloat();
8729
8729
  data.massInverse = input.readFloat();
8730
- data.wind = input.readFloat();
8731
- data.gravity = input.readFloat();
8730
+ data.wind = input.readFloat() * scale;
8731
+ data.gravity = input.readFloat() * scale;
8732
8732
  data.mix = input.readFloat();
8733
8733
  flags = input.readByte();
8734
8734
  if ((flags & 1) != 0)
@@ -9429,10 +9429,10 @@ var spine = (() => {
9429
9429
  timelines.push(readTimeline1(input, new PhysicsConstraintMassTimeline(frameCount, bezierCount, index), 1));
9430
9430
  break;
9431
9431
  case PHYSICS_WIND:
9432
- timelines.push(readTimeline1(input, new PhysicsConstraintWindTimeline(frameCount, bezierCount, index), 1));
9432
+ timelines.push(readTimeline1(input, new PhysicsConstraintWindTimeline(frameCount, bezierCount, index), scale));
9433
9433
  break;
9434
9434
  case PHYSICS_GRAVITY:
9435
- timelines.push(readTimeline1(input, new PhysicsConstraintGravityTimeline(frameCount, bezierCount, index), 1));
9435
+ timelines.push(readTimeline1(input, new PhysicsConstraintGravityTimeline(frameCount, bezierCount, index), scale));
9436
9436
  break;
9437
9437
  case PHYSICS_MIX:
9438
9438
  timelines.push(readTimeline1(input, new PhysicsConstraintMixTimeline(frameCount, bezierCount, index), 1));
@@ -10633,8 +10633,8 @@ var spine = (() => {
10633
10633
  data.strength = getValue(constraintMap, "strength", 100);
10634
10634
  data.damping = getValue(constraintMap, "damping", 1);
10635
10635
  data.massInverse = 1 / getValue(constraintMap, "mass", 1);
10636
- data.wind = getValue(constraintMap, "wind", 0);
10637
- data.gravity = getValue(constraintMap, "gravity", 0);
10636
+ data.wind = getValue(constraintMap, "wind", 0) * scale;
10637
+ data.gravity = getValue(constraintMap, "gravity", 0) * scale;
10638
10638
  data.mix = getValue(constraintMap, "mix", 1);
10639
10639
  data.inertiaGlobal = getValue(constraintMap, "inertiaGlobal", false);
10640
10640
  data.strengthGlobal = getValue(constraintMap, "strengthGlobal", false);
@@ -11250,6 +11250,7 @@ var spine = (() => {
11250
11250
  continue;
11251
11251
  }
11252
11252
  let timeline;
11253
+ let timelineScale = 1;
11253
11254
  if (timelineName == "inertia")
11254
11255
  timeline = new PhysicsConstraintInertiaTimeline(frames, frames, constraintIndex);
11255
11256
  else if (timelineName == "strength")
@@ -11258,15 +11259,17 @@ var spine = (() => {
11258
11259
  timeline = new PhysicsConstraintDampingTimeline(frames, frames, constraintIndex);
11259
11260
  else if (timelineName == "mass")
11260
11261
  timeline = new PhysicsConstraintMassTimeline(frames, frames, constraintIndex);
11261
- else if (timelineName == "wind")
11262
+ else if (timelineName == "wind") {
11262
11263
  timeline = new PhysicsConstraintWindTimeline(frames, frames, constraintIndex);
11263
- else if (timelineName == "gravity")
11264
+ timelineScale = scale;
11265
+ } else if (timelineName == "gravity") {
11264
11266
  timeline = new PhysicsConstraintGravityTimeline(frames, frames, constraintIndex);
11265
- else if (timelineName == "mix")
11267
+ timelineScale = scale;
11268
+ } else if (timelineName == "mix")
11266
11269
  timeline = new PhysicsConstraintMixTimeline(frames, frames, constraintIndex);
11267
11270
  else
11268
11271
  continue;
11269
- timelines.push(readTimeline12(timelineMap, timeline, 0, 1));
11272
+ timelines.push(readTimeline12(timelineMap, timeline, 0, timelineScale));
11270
11273
  }
11271
11274
  }
11272
11275
  }