hz-particles 1.2.0 → 1.4.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 +286 -235
- package/dist-lib/hz-particles-r3f.cjs +2 -2
- package/dist-lib/hz-particles-r3f.d.ts +2 -0
- package/dist-lib/hz-particles-r3f.mjs +136 -125
- package/dist-lib/hz-particles.cjs +72 -30
- package/dist-lib/hz-particles.d.ts +16 -1
- package/dist-lib/hz-particles.mjs +3715 -3596
- package/package.json +2 -2
|
@@ -80,7 +80,16 @@ export interface ParticleSystemConfig {
|
|
|
80
80
|
cylinderVelocityDirection?: string;
|
|
81
81
|
bloomIntensity?: number;
|
|
82
82
|
rotation?: number;
|
|
83
|
-
|
|
83
|
+
/**
|
|
84
|
+
* Particle orientation. `fixed`/`random`/`velocity` are billboard modes; `oriented` locks the
|
|
85
|
+
* quad to a fixed world-space plane (Euler `orientX/Y/Z`); `cylindrical` keeps it upright while
|
|
86
|
+
* facing the camera horizontally (edge-on from directly above/below).
|
|
87
|
+
*/
|
|
88
|
+
rotationMode?: 'fixed' | 'random' | 'velocity' | 'oriented' | 'cylindrical';
|
|
89
|
+
/** Euler angles in radians for `rotationMode: 'oriented'`. */
|
|
90
|
+
orientX?: number;
|
|
91
|
+
orientY?: number;
|
|
92
|
+
orientZ?: number;
|
|
84
93
|
minRotation?: number;
|
|
85
94
|
maxRotation?: number;
|
|
86
95
|
aspectRatio?: number;
|
|
@@ -121,6 +130,12 @@ export interface ParticleSystemConfig {
|
|
|
121
130
|
script?: string;
|
|
122
131
|
glbModelData?: string;
|
|
123
132
|
displayUnit?: 'm' | 'cm';
|
|
133
|
+
/** Delay in seconds before this emitter starts, for relative sequencing of emitters. */
|
|
134
|
+
startAt?: number;
|
|
135
|
+
/** Enable keyframe animation of system parameters over time (driven by the unified clock). */
|
|
136
|
+
keyframesEnabled?: boolean;
|
|
137
|
+
/** Per-parameter keyframe tracks (value + curve/easing), keyed by config field name. */
|
|
138
|
+
keyframes?: Record<string, unknown>;
|
|
124
139
|
onAppearanceChange?: ((config: ParticleSystemConfig) => void) | null;
|
|
125
140
|
onColorChange?: ((config: ParticleSystemConfig) => void) | null;
|
|
126
141
|
onSizeChange?: ((config: ParticleSystemConfig) => void) | null;
|