hz-particles 1.4.2 → 1.5.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/README.md +12 -4
- package/dist-lib/hz-particles-r3f.cjs +2 -2
- package/dist-lib/hz-particles-r3f.mjs +203 -174
- package/dist-lib/hz-particles.cjs +160 -28
- package/dist-lib/hz-particles.d.ts +11 -3
- package/dist-lib/hz-particles.mjs +1327 -978
- 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;
|
|
@@ -122,6 +123,13 @@ export interface ParticleSystemConfig {
|
|
|
122
123
|
emissionTrailShapeAmplitude?: number;
|
|
123
124
|
emissionTrailShapeFrequency?: number;
|
|
124
125
|
emissionTrailShapeSpeed?: number;
|
|
126
|
+
shapeStrokeEnabled?: boolean;
|
|
127
|
+
shapeStrokeWidth?: number;
|
|
128
|
+
shapeStrokeSegments?: number;
|
|
129
|
+
shapeStrokeShape?: 'straight' | 'zigzag' | 'sine' | 'spiral';
|
|
130
|
+
shapeStrokeAmplitude?: number;
|
|
131
|
+
shapeStrokeFrequency?: number;
|
|
132
|
+
shapeStrokeSpeed?: number;
|
|
125
133
|
shapeDisplay?: boolean;
|
|
126
134
|
followSystemTranslation?: boolean;
|
|
127
135
|
followSystemId?: number | null;
|
|
@@ -330,7 +338,7 @@ export class ParticleSystem {
|
|
|
330
338
|
updateParticleColors(): void;
|
|
331
339
|
updateParticleVelocities(): void;
|
|
332
340
|
setGravity(gravityValue: number): void;
|
|
333
|
-
setAttractor(strength: number, position: [number, number, number]): void;
|
|
341
|
+
setAttractor(strength: number, position: [number, number, number], reverse?: boolean): void;
|
|
334
342
|
}
|
|
335
343
|
|
|
336
344
|
export class ParticleSystemManager {
|
|
@@ -435,7 +443,7 @@ export class ParticlePhysics {
|
|
|
435
443
|
destroy(): void;
|
|
436
444
|
setDamping(dampingValue: number): void;
|
|
437
445
|
setGravity(gravityValue: number): void;
|
|
438
|
-
setAttractor(strength: number, position: [number, number, number]): void;
|
|
446
|
+
setAttractor(strength: number, position: [number, number, number], reverse?: boolean): void;
|
|
439
447
|
}
|
|
440
448
|
|
|
441
449
|
export class ParticleTextureManager {
|