diff --git a/example/CHANGELOG.md b/example/CHANGELOG.md index df1640b..f3ab59a 100644 --- a/example/CHANGELOG.md +++ b/example/CHANGELOG.md @@ -1,5 +1,12 @@ # example +## 0.4.2 + +### Patch Changes + +- Updated dependencies + - cesium-wind-layer@0.7.1 + ## 0.4.1 ### Patch Changes diff --git a/example/package.json b/example/package.json index 25ab8af..c48ea58 100644 --- a/example/package.json +++ b/example/package.json @@ -1,7 +1,7 @@ { "name": "example", "private": true, - "version": "0.4.1", + "version": "0.4.2", "type": "module", "scripts": { "dev": "vite", diff --git a/packages/cesium-wind-layer/CHANGELOG.md b/packages/cesium-wind-layer/CHANGELOG.md index 77b80f7..aa46d7d 100644 --- a/packages/cesium-wind-layer/CHANGELOG.md +++ b/packages/cesium-wind-layer/CHANGELOG.md @@ -1,5 +1,11 @@ # cesium-wind-layer +## 0.7.1 + +### Patch Changes + +- fix: update readme, add displayRange param + ## 0.7.0 ### Minor Changes diff --git a/packages/cesium-wind-layer/package.json b/packages/cesium-wind-layer/package.json index e90c7c7..1fa727d 100644 --- a/packages/cesium-wind-layer/package.json +++ b/packages/cesium-wind-layer/package.json @@ -1,6 +1,6 @@ { "name": "cesium-wind-layer", - "version": "0.7.0", + "version": "0.7.1", "publishConfig": { "access": "public" }, diff --git a/packages/cesium-wind-layer/readme.md b/packages/cesium-wind-layer/readme.md index 55586ed..f529804 100644 --- a/packages/cesium-wind-layer/readme.md +++ b/packages/cesium-wind-layer/readme.md @@ -75,7 +75,8 @@ const windLayer = new WindLayer(viewer, windData, { dropRateBump: 0.001, // Additional drop rate for slow particles colors: ['white'], // Colors for particles flipY: false, // Flip Y coordinates if needed - domain: undefined // Optional: domain for speed + domain: undefined, // Optional: domain for speed + displayRange: undefined, // Optional: display range for speed }); ``` @@ -102,6 +103,10 @@ interface WindLayerOptions { min?: number; // Minimum speed value for rendering max?: number; // Maximum speed value for rendering }; + displayRange?: { // Controls the speed display range for visualization. Default is undefined. + min?: number; // Minimum speed value for display + max?: number; // Maximum speed value for display + }; } ``` diff --git a/packages/cesium-wind-layer/readme.zh-CN.md b/packages/cesium-wind-layer/readme.zh-CN.md index 885b41f..cc7cae0 100644 --- a/packages/cesium-wind-layer/readme.zh-CN.md +++ b/packages/cesium-wind-layer/readme.zh-CN.md @@ -75,7 +75,8 @@ const windLayer = new WindLayer(viewer, windData, { dropRateBump: 0.001, // 慢速粒子的额外消失率 colors: ['white'], // 粒子颜色 flipY: false, // 是否翻转 Y 坐标 - domain: undefined // 速度渲染范围 + domain: undefined, // 速度渲染范围 + displayRange: undefined // 速度显示范围 }); ``` @@ -102,6 +103,10 @@ interface WindLayerOptions { min?: number; // 最小速度值 max?: number; // 最大速度值 }; + displayRange?: { // 速度显示范围(默认:undefined) + min?: number; // 最小速度值 + max?: number; // 最大速度值 + }; } ```