hz-particles 1.4.2 → 1.4.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.
- package/README.md +1 -1
- package/dist-lib/hz-particles-r3f.cjs +2 -2
- package/dist-lib/hz-particles-r3f.mjs +173 -146
- package/dist-lib/hz-particles.cjs +23 -20
- package/dist-lib/hz-particles.d.ts +4 -3
- package/dist-lib/hz-particles.mjs +423 -407
- package/package.json +1 -1
|
@@ -13,7 +13,7 @@ export interface ParticleSystemConfig {
|
|
|
13
13
|
emissionRate?: number;
|
|
14
14
|
emissionDuration?: number;
|
|
15
15
|
emissionDurationInfinite?: boolean;
|
|
16
|
-
emissionShape?: 'cube' | 'sphere' | 'square' | 'circle' | 'cylinder' | 'plain' | 'cone' | 'torus' | 'line' | 'hemisphere' | 'disc' | 'annulus' | 'capsule' | 'arc' | 'spiral' | 'frustum' | 'cubeSurface' | 'sphereSurface' | 'boxFrame' | 'polygon' | 'rectangle' | 'point';
|
|
16
|
+
emissionShape?: 'cube' | 'sphere' | 'square' | 'circle' | 'cylinder' | 'plain' | 'cone' | 'torus' | 'line' | 'hemisphere' | 'disc' | 'annulus' | 'capsule' | 'arc' | 'spiral' | 'frustum' | 'frustumSurface' | 'cubeSurface' | 'sphereSurface' | 'boxFrame' | 'polygon' | 'rectangle' | 'point';
|
|
17
17
|
particleSize?: number;
|
|
18
18
|
particleSpeed?: number;
|
|
19
19
|
particleColor?: [number, number, number];
|
|
@@ -50,6 +50,7 @@ export interface ParticleSystemConfig {
|
|
|
50
50
|
dampingStrength?: number;
|
|
51
51
|
attractorEnabled?: boolean;
|
|
52
52
|
attractorStrength?: number;
|
|
53
|
+
attractorReverse?: boolean;
|
|
53
54
|
attractorPosition?: [number, number, number];
|
|
54
55
|
emissionRotationX?: number;
|
|
55
56
|
emissionRotationY?: number;
|
|
@@ -330,7 +331,7 @@ export class ParticleSystem {
|
|
|
330
331
|
updateParticleColors(): void;
|
|
331
332
|
updateParticleVelocities(): void;
|
|
332
333
|
setGravity(gravityValue: number): void;
|
|
333
|
-
setAttractor(strength: number, position: [number, number, number]): void;
|
|
334
|
+
setAttractor(strength: number, position: [number, number, number], reverse?: boolean): void;
|
|
334
335
|
}
|
|
335
336
|
|
|
336
337
|
export class ParticleSystemManager {
|
|
@@ -435,7 +436,7 @@ export class ParticlePhysics {
|
|
|
435
436
|
destroy(): void;
|
|
436
437
|
setDamping(dampingValue: number): void;
|
|
437
438
|
setGravity(gravityValue: number): void;
|
|
438
|
-
setAttractor(strength: number, position: [number, number, number]): void;
|
|
439
|
+
setAttractor(strength: number, position: [number, number, number], reverse?: boolean): void;
|
|
439
440
|
}
|
|
440
441
|
|
|
441
442
|
export class ParticleTextureManager {
|