@@ -70,11 +70,12 @@ const windLayer = new WindLayer(viewer, windData, {
7070 particlesTextureSize: 100 , // Size of the particle texture. Determines the maximum number of particles (size squared).
7171 particleHeight: 1000 , // Height of particles above ground
7272 lineWidth: 10.0 , // Width of particle trails
73- speedFactor: 1.0 , // Speed multiplier
74- dropRate: 0.003 , // Rate at which particles are dropped
75- dropRateBump: 0.001 , // Additional drop rate for slow particles
76- colors: [' white' ], // Colors for particles
77- flipY: false // Flip Y coordinates if needed
73+ speedFactor: 1.0 , // Speed multiplier
74+ dropRate: 0.003 , // Rate at which particles are dropped
75+ dropRateBump: 0.001 , // Additional drop rate for slow particles
76+ colors: [' white' ], // Colors for particles
77+ flipY: false , // Flip Y coordinates if needed
78+ domain: undefined // Optional: domain for speed
7879});
7980```
8081
@@ -88,15 +89,19 @@ Main class for wind visualization.
8889
8990``` typescript
9091interface WindLayerOptions {
91- particlesTextureSize: number ; // Size of the particle texture. Determines the maximum number of particles (size squared). (default: 100)
92- particleHeight: number ; // Height of particles (default: 0)
93- lineWidth: number ; // Width of particle lines (default: 10.0)
94- speedFactor: number ; // Speed multiplier (default: 1.0)
95- dropRate: number ; // Particle drop rate (default: 0.003)
96- dropRateBump: number ; // Additional drop rate (default: 0.001)
97- colors: string []; // Array of colors for particles
98- flipY: boolean ; // Flip Y coordinates (default: false)
99- useViewerBounds: boolean ; // Use viewer bounds to generate particles (default: false)
92+ particlesTextureSize: number ; // Size of the particle texture. Determines the maximum number of particles (size squared). Default is 100.
93+ particleHeight: number ; // Height of particles above the ground in meters. Default is 0.
94+ lineWidth: number ; // Width of particle trails in pixels. Default is 10.0.
95+ speedFactor: number ; // Factor to adjust the speed of particles. Default is 1.0.
96+ dropRate: number ; // Rate at which particles are dropped (reset). Default is 0.003.
97+ dropRateBump: number ; // Additional drop rate for slow-moving particles. Default is 0.001.
98+ colors: string []; // Array of colors for particles. Can be used to create color gradients. Default is ['white'].
99+ flipY: boolean ; // Whether to flip the Y-axis of the wind data. Default is false.
100+ useViewerBounds: boolean ; // Whether to use the viewer bounds to generate particles. Default is false.
101+ domain? : { // Controls the speed rendering range. Default is undefined.
102+ min? : number ; // Minimum speed value for rendering
103+ max? : number ; // Maximum speed value for rendering
104+ };
100105}
101106```
102107
0 commit comments