cos-design 3.5.1 → 3.5.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -5,6 +5,24 @@ All notable changes to this project will be documented in this file.
5
5
  The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
6
6
  and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
7
7
 
8
+ ## [3.5.3] - 2026-07-23
9
+
10
+ ### Changed
11
+
12
+ - `RippleWater` 重写为 WebGL 高度场水面:波光粼粼、物理扩散涟漪,默认湖蓝对角渐变
13
+ - `RippleWater` 新增波浪 / 波光 / 涟漪物理 / 交互等配置参数,侧边栏排序至天气背景之后
14
+
15
+ ## [3.5.2] - 2026-07-23
16
+
17
+ ### Changed
18
+
19
+ - `WeatherBackground` 性能优化:天空 / 日夜 / 云 / 雾预烘焙贴图,雪花与冰雹复用贴图池,支持 `prefers-reduced-motion` 静态降级
20
+ - `SmokeFog` 支持点击 / 触摸驱散雾气
21
+
22
+ ### Fixed
23
+
24
+ - `WeatherBackground` 补充 canvas 语义标签与 loading 状态可读性
25
+
8
26
  ## [3.5.1] - 2026-07-22
9
27
 
10
28
  ### Fixed
package/README.md CHANGED
@@ -48,13 +48,15 @@ pnpm add @cos-design/weather-background
48
48
  pnpm add @cos-design/fireworks
49
49
  ```
50
50
 
51
+ > 目录 `weatherBackground` → `@cos-design/weather-background`;依赖 `@cos-design/shared` 的组件会自动安装工具包。
52
+
51
53
  ### 最简示例
52
54
 
53
55
  ```tsx
54
56
  // 全量包
55
57
  import { Fireworks, ScrambleText, ScratchCard } from 'cos-design';
56
58
 
57
- // 或按需安装的子包
59
+ // 按需子包
58
60
  // import { WeatherBackground } from '@cos-design/weather-background';
59
61
 
60
62
  export default function Page() {
@@ -91,16 +93,16 @@ export default function Page() {
91
93
 
92
94
  | 组件 | 说明 |
93
95
  | ------------------- | ---------------------------------------------- |
96
+ | `WeatherBackground` | 天气背景(15 种场景 · Open-Meteo 实况 · 日夜) |
97
+ | `SmokeFog` | 烟雾雾气飘动 |
94
98
  | `MatrixRain` | 黑客帝国数字雨 |
95
99
  | `MeteorRain` | 流星雨穿越 |
96
100
  | `ParticleNetwork` | 粒子连线网络(支持触摸) |
97
101
  | `Aurora` | 极光渐变光带 |
98
102
  | `RippleWater` | 点击水波纹 |
99
- | `SmokeFog` | 烟雾雾气飘动 |
100
103
  | `CyberGrid` | 赛博透视地面 |
101
104
  | `Snowfall` | 雪花 / 樱花飘落 |
102
105
  | `Starfield` | 3D 纵深星空 |
103
- | `WeatherBackground` | 天气背景(15 种场景 · Open-Meteo 实况 · 日夜) |
104
106
 
105
107
  </details>
106
108