@esotericsoftware/spine-core 4.2.2 → 4.2.3

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.
@@ -50,7 +50,6 @@ var spine = (() => {
50
50
  IkConstraintTimeline: () => IkConstraintTimeline,
51
51
  IntSet: () => IntSet,
52
52
  Interpolation: () => Interpolation,
53
- JitterEffect: () => JitterEffect,
54
53
  MathUtils: () => MathUtils,
55
54
  MeshAttachment: () => MeshAttachment,
56
55
  MixBlend: () => MixBlend,
@@ -94,7 +93,6 @@ var spine = (() => {
94
93
  SlotData: () => SlotData,
95
94
  SpacingMode: () => SpacingMode,
96
95
  StringSet: () => StringSet,
97
- SwirlEffect: () => SwirlEffect,
98
96
  Texture: () => Texture,
99
97
  TextureAtlas: () => TextureAtlas,
100
98
  TextureAtlasPage: () => TextureAtlasPage,
@@ -9176,58 +9174,6 @@ var spine = (() => {
9176
9174
  }(new Float32Array(1));
9177
9175
  }
9178
9176
  })();
9179
-
9180
- // spine-core/src/vertexeffects/JitterEffect.ts
9181
- var JitterEffect = class {
9182
- constructor(jitterX, jitterY) {
9183
- this.jitterX = 0;
9184
- this.jitterY = 0;
9185
- this.jitterX = jitterX;
9186
- this.jitterY = jitterY;
9187
- }
9188
- begin(skeleton) {
9189
- }
9190
- transform(position, uv, light, dark) {
9191
- position.x += MathUtils.randomTriangular(-this.jitterX, this.jitterY);
9192
- position.y += MathUtils.randomTriangular(-this.jitterX, this.jitterY);
9193
- }
9194
- end() {
9195
- }
9196
- };
9197
-
9198
- // spine-core/src/vertexeffects/SwirlEffect.ts
9199
- var _SwirlEffect = class {
9200
- constructor(radius) {
9201
- this.centerX = 0;
9202
- this.centerY = 0;
9203
- this.radius = 0;
9204
- this.angle = 0;
9205
- this.worldX = 0;
9206
- this.worldY = 0;
9207
- this.radius = radius;
9208
- }
9209
- begin(skeleton) {
9210
- this.worldX = skeleton.x + this.centerX;
9211
- this.worldY = skeleton.y + this.centerY;
9212
- }
9213
- transform(position, uv, light, dark) {
9214
- let radAngle = this.angle * MathUtils.degreesToRadians;
9215
- let x = position.x - this.worldX;
9216
- let y = position.y - this.worldY;
9217
- let dist = Math.sqrt(x * x + y * y);
9218
- if (dist < this.radius) {
9219
- let theta = _SwirlEffect.interpolation.apply(0, radAngle, (this.radius - dist) / this.radius);
9220
- let cos = Math.cos(theta);
9221
- let sin = Math.sin(theta);
9222
- position.x = cos * x - sin * y + this.worldX;
9223
- position.y = sin * x + cos * y + this.worldY;
9224
- }
9225
- }
9226
- end() {
9227
- }
9228
- };
9229
- var SwirlEffect = _SwirlEffect;
9230
- SwirlEffect.interpolation = new PowOut(2);
9231
9177
  return src_exports;
9232
9178
  })();
9233
9179
  //# sourceMappingURL=spine-core.js.map