@flighthq/particleemitter 0.3.0-next.906.07cea63 → 0.3.0

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/package.json CHANGED
@@ -1,6 +1,8 @@
1
1
  {
2
2
  "name": "@flighthq/particleemitter",
3
- "version": "0.3.0-next.906.07cea63",
3
+ "version": "0.3.0",
4
+ "author": "Joshua Granick and other contributors",
5
+ "license": "MIT",
4
6
  "repository": {
5
7
  "type": "git",
6
8
  "url": "https://github.com/flighthq/flight.git",
@@ -36,12 +38,12 @@
36
38
  "clean:dist": "tsx ../../scripts/clean-package-dist.ts"
37
39
  },
38
40
  "dependencies": {
39
- "@flighthq/scene2d": "0.3.0-next.906.07cea63",
40
- "@flighthq/geometry": "0.3.0-next.906.07cea63",
41
- "@flighthq/node": "0.3.0-next.906.07cea63",
42
- "@flighthq/particles": "0.3.0-next.906.07cea63",
43
- "@flighthq/scene3d": "0.3.0-next.906.07cea63",
44
- "@flighthq/types": "0.3.0-next.906.07cea63"
41
+ "@flighthq/scene2d": "0.3.0",
42
+ "@flighthq/geometry": "0.3.0",
43
+ "@flighthq/node": "0.3.0",
44
+ "@flighthq/particles": "0.3.0",
45
+ "@flighthq/scene3d": "0.3.0",
46
+ "@flighthq/types": "0.3.0"
45
47
  },
46
48
  "devDependencies": {
47
49
  "@flighthq/math": "*",
@@ -8,7 +8,7 @@ import { updateParticleEmitter2D } from './updateParticleEmitter2D';
8
8
 
9
9
  function makeAtlas(): TextureAtlas {
10
10
  return {
11
- image: null,
11
+ texture: null,
12
12
  regions: [{ id: 0, x: 0, y: 0, width: 32, height: 32, pivotX: null, pivotY: null }],
13
13
  } as TextureAtlas;
14
14
  }
@@ -32,7 +32,7 @@ function makeAtlasRegion(id = 0, x = 0, y = 0, width = 32, height = 32): Texture
32
32
  }
33
33
 
34
34
  function makeAtlas(...regions: TextureAtlasRegion[]): TextureAtlas {
35
- return { image: null, regions } as TextureAtlas;
35
+ return { texture: null, regions } as TextureAtlas;
36
36
  }
37
37
 
38
38
  describe('appendParticleEmitter2DParticle', () => {
@@ -6,7 +6,7 @@ import { prewarmParticleEmitter2D } from './prewarmParticleEmitter2D';
6
6
 
7
7
  function makeAtlas(): TextureAtlas {
8
8
  return {
9
- image: null,
9
+ texture: null,
10
10
  regions: [{ id: 0, x: 0, y: 0, width: 32, height: 32, pivotX: null, pivotY: null }],
11
11
  } as TextureAtlas;
12
12
  }
@@ -13,7 +13,7 @@ import { isParticleEmitter2DComplete, updateParticleEmitter2D } from './updatePa
13
13
 
14
14
  function makeAtlas(): TextureAtlas {
15
15
  return {
16
- image: null,
16
+ texture: null,
17
17
  regions: [{ id: 0, x: 0, y: 0, width: 32, height: 32, pivotX: null, pivotY: null }],
18
18
  } as TextureAtlas;
19
19
  }
@@ -319,7 +319,7 @@ describe('updateParticleEmitter2D', () => {
319
319
 
320
320
  it('advances flipbook frame based on age and frameRate', () => {
321
321
  const atlas = {
322
- image: null,
322
+ texture: null,
323
323
  regions: [
324
324
  { id: 0, x: 0, y: 0, width: 16, height: 16, pivotX: null, pivotY: null },
325
325
  { id: 1, x: 16, y: 0, width: 16, height: 16, pivotX: null, pivotY: null },