@flighthq/particles 0.5.1-next.903.f434bc2 → 0.5.1-next.905.5fbf787
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/README.md
CHANGED
|
@@ -13,5 +13,5 @@ Import the supported application-facing API from `@flighthq/particles`. The `@fl
|
|
|
13
13
|
This package is part of the locked-version Flight SDK graph. Applications may instead install and import `@flighthq/sdk` when package-level tree shaking is sufficient.
|
|
14
14
|
|
|
15
15
|
- [Flight project](https://github.com/flighthq/flight)
|
|
16
|
-
- [Source for @flighthq/particles@0.5.1-next.
|
|
17
|
-
- [License](https://github.com/flighthq/flight/blob/
|
|
16
|
+
- [Source for @flighthq/particles@0.5.1-next.905.5fbf787](https://github.com/flighthq/flight/tree/5fbf7874064c384307542d68b4dcb6a895ff0dcf/packages/particles)
|
|
17
|
+
- [License](https://github.com/flighthq/flight/blob/5fbf7874064c384307542d68b4dcb6a895ff0dcf/LICENSE.md)
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@flighthq/particles",
|
|
3
|
-
"version": "0.5.1-next.
|
|
3
|
+
"version": "0.5.1-next.905.5fbf787",
|
|
4
4
|
"author": "Joshua Granick and other contributors",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
@@ -38,10 +38,10 @@
|
|
|
38
38
|
"clean:dist": "tsx ../../scripts/clean-package-dist.ts"
|
|
39
39
|
},
|
|
40
40
|
"dependencies": {
|
|
41
|
-
"@flighthq/entity": "0.5.1-next.
|
|
42
|
-
"@flighthq/geometry": "0.5.1-next.
|
|
43
|
-
"@flighthq/signals": "0.5.1-next.
|
|
44
|
-
"@flighthq/types": "0.5.1-next.
|
|
41
|
+
"@flighthq/entity": "0.5.1-next.905.5fbf787",
|
|
42
|
+
"@flighthq/geometry": "0.5.1-next.905.5fbf787",
|
|
43
|
+
"@flighthq/signals": "0.5.1-next.905.5fbf787",
|
|
44
|
+
"@flighthq/types": "0.5.1-next.905.5fbf787"
|
|
45
45
|
},
|
|
46
46
|
"devDependencies": {
|
|
47
47
|
"@flighthq/math": "*",
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { createParticleEmitterConfig } from './particleEmitterConfig';
|
|
1
|
+
import { createParticleEmitterConfig, initializeParticleEmitterConfig } from './particleEmitterConfig';
|
|
2
2
|
|
|
3
3
|
describe('createParticleEmitterConfig', () => {
|
|
4
4
|
it('returns defaults when called with no arguments', () => {
|
|
@@ -67,3 +67,8 @@ describe('createParticleEmitterConfig', () => {
|
|
|
67
67
|
expect(a).not.toBe(b);
|
|
68
68
|
});
|
|
69
69
|
});
|
|
70
|
+
describe('initializeParticleEmitterConfig', () => {
|
|
71
|
+
it('is the construction initializer of createParticleEmitterConfig', () => {
|
|
72
|
+
expect(typeof initializeParticleEmitterConfig).toBe('function');
|
|
73
|
+
});
|
|
74
|
+
});
|
|
@@ -2,6 +2,7 @@ import {
|
|
|
2
2
|
createParticleEmitterSignals,
|
|
3
3
|
enableParticleEmitterSignals,
|
|
4
4
|
getParticleEmitterSignals,
|
|
5
|
+
initializeParticleEmitterSignals,
|
|
5
6
|
} from './particleEmitterSignals';
|
|
6
7
|
import { createParticleEmitterState } from './particleEmitterState';
|
|
7
8
|
|
|
@@ -40,3 +41,8 @@ describe('getParticleEmitterSignals', () => {
|
|
|
40
41
|
expect(getParticleEmitterSignals(state)).toBeNull();
|
|
41
42
|
});
|
|
42
43
|
});
|
|
44
|
+
describe('initializeParticleEmitterSignals', () => {
|
|
45
|
+
it('is the construction initializer of createParticleEmitterSignals', () => {
|
|
46
|
+
expect(typeof initializeParticleEmitterSignals).toBe('function');
|
|
47
|
+
});
|
|
48
|
+
});
|
|
@@ -2,6 +2,7 @@ import {
|
|
|
2
2
|
PARTICLE_VELOCITY_STRIDE,
|
|
3
3
|
createParticleEmitterState,
|
|
4
4
|
ensureParticleEmitterStateCapacity,
|
|
5
|
+
initializeParticleEmitterState,
|
|
5
6
|
} from './particleEmitterState';
|
|
6
7
|
|
|
7
8
|
describe('createParticleEmitterState', () => {
|
|
@@ -74,3 +75,8 @@ describe('ensureParticleEmitterStateCapacity', () => {
|
|
|
74
75
|
expect(state.colorDeath.length).toBeGreaterThanOrEqual(8 * 3);
|
|
75
76
|
});
|
|
76
77
|
});
|
|
78
|
+
describe('initializeParticleEmitterState', () => {
|
|
79
|
+
it('is the construction initializer of createParticleEmitterState', () => {
|
|
80
|
+
expect(typeof initializeParticleEmitterState).toBe('function');
|
|
81
|
+
});
|
|
82
|
+
});
|
|
@@ -1,4 +1,8 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import {
|
|
2
|
+
createParticleObjectsState,
|
|
3
|
+
ensureParticleObjectsStateCapacity,
|
|
4
|
+
initializeParticleObjectsState,
|
|
5
|
+
} from './particleObjectsState';
|
|
2
6
|
|
|
3
7
|
describe('createParticleObjectsState', () => {
|
|
4
8
|
it('allocates arrays sized to capacity', () => {
|
|
@@ -32,3 +36,8 @@ describe('ensureParticleObjectsStateCapacity', () => {
|
|
|
32
36
|
expect(state.velocities.length).toBeGreaterThanOrEqual(40);
|
|
33
37
|
});
|
|
34
38
|
});
|
|
39
|
+
describe('initializeParticleObjectsState', () => {
|
|
40
|
+
it('is the construction initializer of createParticleObjectsState', () => {
|
|
41
|
+
expect(typeof initializeParticleObjectsState).toBe('function');
|
|
42
|
+
});
|
|
43
|
+
});
|