Releases: hongfaqiu/cesium-wind-layer
Releases · hongfaqiu/cesium-wind-layer
[email protected]
Minor Changes
-
feat(wind-layer): refactor lineWidth to support min-max range
BREAKING CHANGE: lineWidth option now requires min-max range object instead of single number
- Change lineWidth type from number to { min: number, max: number }
- Set default lineWidth range to { min: 1, max: 2 }
- Update shader to support dynamic line width based on particle speed
- Update types and documentation
- Update example to demonstrate new lineWidth configuration
- Add lineWidth range control in ControlPanel component
This change allows for more dynamic and visually appealing particle trails by varying
the line width based on wind speed, similar to how line length works.
[email protected]
Minor Changes
-
feat: add line length range control
- Add lineLength option to control particle trail length range
- Change lineLength type from number to { min: number; max: number }
- Set default lineLength range to { min: 20, max: 100 }
- Set default lineWidth to 5.0
- Update control panel UI to support lineLength range adjustment
- Add different lineLength ranges for wind and ocean data
[email protected]
Minor Changes
-
770381e: feat: add dynamic option to control particle animation
- Add new
dynamic
option to WindLayerOptions to control particle animation state - Add dynamic switch control in ControlPanel component
- Set default value of dynamic option to true
- Update types and documentation
This change allows users to toggle between animated and static particle states.
- Add new
Patch Changes
- 7fc0dbf: fix: dont limit cesium version
[email protected]
Patch Changes
-
fix: normalize particle speed and length across different refresh rates
- Add frameRateAdjustment uniform to normalize particle movement
- Adjust trail length calculation based on frame rate
- Ensure consistent particle behavior regardless of display refresh rate
[email protected]
Patch Changes
- fix: reduce unnecessary texture recreation
[email protected]
Patch Changes
-
fix: optimize frame rate calculation and shader performance
- Remove redundant interval uniform from shader
- Calculate interval directly in shader to reduce data transfer
- Only update frame rate when FPS > 50 to avoid performance degradation
- Replace requestAnimationFrame with setInterval for stable frame rate updates
[email protected]
Patch Changes
- fix: frame rate calculate
[email protected]
Patch Changes
- fix: resolve options deep copy issue in deepMerge function
[email protected]
Patch Changes
- fix: update readme, add displayRange param
[email protected]
Minor Changes
-
feat: add domain and displayRange options for wind layer
Changes:- domain controls the rendering range for color mapping
- displayRange controls particle visibility
- Both options fallback to data's min/max when undefined
- Early visibility check in fragment shader for better performance