Releases: hongfaqiu/cesium-wind-layer
Releases · hongfaqiu/cesium-wind-layer
[email protected]
Minor Changes
-
feat: add event system for wind layer
- Add event system for data and options changes
- Add WindLayerEventType and WindLayerEventCallback types
- Implement addEventListener and removeEventListener methods
- Add event dispatching for data and options updates
- Improve texture recreation when updating wind data
[email protected]
Patch Changes
-
fix: calculate frame rate only during initialization
- Move frame rate calculation to initialization phase
- Use timestamp array to measure frames in the last second
- Calculate FPS once with 120 frames sample for better accuracy
- Store frame rate adjustment factor for consistent particle speed
[email protected]
Patch Changes
- fix: fix default render options
[email protected]
Patch Changes
-
fix: adjust particle speed based on actual frame rate
- Add real-time frame rate measurement to normalize particle speed
- Update frame rate calculation every 500ms for better performance
- Apply frame rate adjustment (60/fps) to maintain consistent particle movement speed across different devices
[email protected]
Minor Changes
-
feat: enhance wind layer visualization and data query
-
Improve particle system performance and coverage
- Fix particle distribution in certain areas
- Optimize particle generation algorithm
- Adjust particle visibility calculation
- Add 5% buffer to view range for smoother transitions
-
Enhance wind data query functionality
- Refactor WindDataAtLonLat interface with clear structure
- Add bilinear interpolation for wind data
- Separate original and interpolated data in query results
- Add detailed JSDoc comments for better type documentation
BREAKING CHANGE: WindDataAtLonLat interface structure has changed. Now returns data in 'original' and 'interpolated' sub-objects.
-
[email protected]
Patch Changes
- Tilting the camera angle still displays particles
[email protected]
Patch Changes
- Color correctly represents speed
[email protected]
Patch Changes
- fix: quickly adapt to camera changes
[email protected]
Minor Changes
-
feat: add useViewerBounds option and improve UI
- Add useViewerBounds option to control particle generation range
- Move layer visibility control to title bar
- Update default line width to 10.0
- Add base pixel size offset to prevent particles from being too small
- Update types and documentation
[email protected]
Minor Changes
- feat: Terrain occlusion support & add zoomTo method