Skip to content

Commit

Permalink
fix: update readme, add displayRange param
Browse files Browse the repository at this point in the history
  • Loading branch information
hongfaqiu committed Oct 30, 2024
1 parent e8f6f63 commit 77f6f2f
Show file tree
Hide file tree
Showing 6 changed files with 27 additions and 4 deletions.
7 changes: 7 additions & 0 deletions example/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# example

## 0.4.2

### Patch Changes

- Updated dependencies
- [email protected]

## 0.4.1

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion example/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "example",
"private": true,
"version": "0.4.1",
"version": "0.4.2",
"type": "module",
"scripts": {
"dev": "vite",
Expand Down
6 changes: 6 additions & 0 deletions packages/cesium-wind-layer/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# cesium-wind-layer

## 0.7.1

### Patch Changes

- fix: update readme, add displayRange param

## 0.7.0

### Minor Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/cesium-wind-layer/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "cesium-wind-layer",
"version": "0.7.0",
"version": "0.7.1",
"publishConfig": {
"access": "public"
},
Expand Down
7 changes: 6 additions & 1 deletion packages/cesium-wind-layer/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
});
```

Expand All @@ -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
};
}
```

Expand Down
7 changes: 6 additions & 1 deletion packages/cesium-wind-layer/readme.zh-CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,8 @@ const windLayer = new WindLayer(viewer, windData, {
dropRateBump: 0.001, // 慢速粒子的额外消失率
colors: ['white'], // 粒子颜色
flipY: false, // 是否翻转 Y 坐标
domain: undefined // 速度渲染范围
domain: undefined, // 速度渲染范围
displayRange: undefined // 速度显示范围
});
```

Expand All @@ -102,6 +103,10 @@ interface WindLayerOptions {
min?: number; // 最小速度值
max?: number; // 最大速度值
};
displayRange?: { // 速度显示范围(默认:undefined)
min?: number; // 最小速度值
max?: number; // 最大速度值
};
}
```

Expand Down

0 comments on commit 77f6f2f

Please sign in to comment.