@yangyongtao/gaea 1.1.27 → 1.1.28

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
@@ -1,5 +1,10 @@
1
1
  # Changelog
2
2
 
3
+ ## [1.1.28] - 2026-09-01
4
+
5
+ ### Changed
6
+ - 海塘图标按 `haitangyizhangtu` 规则改为等级图标:`_initScreenIcons` 优先使用每条海塘自身的 `imgUrl`(`child.imgUrl || cfg.img`),默认 10 条海塘分别配置 `海塘-{level}级.png`(沿浦/霞关/下在=3级、大渔=2级、三茆/信智/雾城/渔岙/流岐岙=4级、木林=5级)
7
+
3
8
  ## [1.1.27] - 2026-09-01
4
9
 
5
10
  ### Added
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yangyongtao/gaea",
3
- "version": "1.1.27",
3
+ "version": "1.1.28",
4
4
  "description": "Gaea 3D visualization component library - Vue 3 components based on Godot WASM engine. Includes WMTS layer loading, camera view control, Vite plugin auto-injection, etc.",
5
5
  "type": "module",
6
6
  "main": "src/index.cjs",
@@ -171,16 +171,16 @@ const defaultConfig = {
171
171
  /** 图层树分类数据(默认数据,接口数据会合并进来) */
172
172
  layerCategories: [
173
173
  { key: 'seawall', text: '海塘', visible: true, children: [
174
- { text: '沿浦海塘', position: { x: 27.220705, y: 120.457998, z: 20 } },
175
- { text: '霞关海塘', position: { x: 27.171059, y: 120.467901, z: 20 } },
176
- { text: '三茆海塘', position: { x: 27.193284, y: 120.464411, z: 20 } },
177
- { text: '大渔海塘', position: { x: 27.39027, y: 120.599554, z: 20 } },
178
- { text: '信智海塘', position: { x: 27.300806, y: 120.544077, z: 20 } },
179
- { text: '下在海塘', position: { x: 27.215789, y: 120.445849, z: 10 } },
180
- { text: '木林海塘', position: { x: 27.193183, y: 120.424486, z: 20 } },
181
- { text: '雾城海塘', position: { x: 27.27682, y: 120.518917, z: 20 } },
182
- { text: '渔岙海塘', position: { x: 27.403744, y: 120.557879, z: 20 } },
183
- { text: '流岐岙海塘', position: { x: 27.318176, y: 120.542761, z: 20 } },
174
+ { text: '沿浦海塘', level: '3', imgUrl: '/image/screenIcon/海塘-3级.png', position: { x: 27.220705, y: 120.457998, z: 20 } },
175
+ { text: '霞关海塘', level: '3', imgUrl: '/image/screenIcon/海塘-3级.png', position: { x: 27.171059, y: 120.467901, z: 20 } },
176
+ { text: '三茆海塘', level: '4', imgUrl: '/image/screenIcon/海塘-4级.png', position: { x: 27.193284, y: 120.464411, z: 20 } },
177
+ { text: '大渔海塘', level: '2', imgUrl: '/image/screenIcon/海塘-2级.png', position: { x: 27.39027, y: 120.599554, z: 20 } },
178
+ { text: '信智海塘', level: '4', imgUrl: '/image/screenIcon/海塘-4级.png', position: { x: 27.300806, y: 120.544077, z: 20 } },
179
+ { text: '下在海塘', level: '3', imgUrl: '/image/screenIcon/海塘-3级.png', position: { x: 27.215789, y: 120.445849, z: 10 } },
180
+ { text: '木林海塘', level: '5', imgUrl: '/image/screenIcon/海塘-5级.png', position: { x: 27.193183, y: 120.424486, z: 20 } },
181
+ { text: '雾城海塘', level: '4', imgUrl: '/image/screenIcon/海塘-4级.png', position: { x: 27.27682, y: 120.518917, z: 20 } },
182
+ { text: '渔岙海塘', level: '4', imgUrl: '/image/screenIcon/海塘-4级.png', position: { x: 27.403744, y: 120.557879, z: 20 } },
183
+ { text: '流岐岙海塘', level: '4', imgUrl: '/image/screenIcon/海塘-4级.png', position: { x: 27.318176, y: 120.542761, z: 20 } },
184
184
  ]},
185
185
  { key: 'hydrometricStations', text: '水文站', visible: true, children: [
186
186
  { text: '灵溪', stcd: '7010CK01', sttp: 'ZQ', position: { x: 27.5014, y: 120.3847, z: 100 } },
@@ -870,7 +870,7 @@ export class GaeaApp {
870
870
  this.addScreenIcon({
871
871
  name: child.text,
872
872
  text: child.text,
873
- imgUrl: cfg.img,
873
+ imgUrl: child.imgUrl || cfg.img,
874
874
  method: cfg.method,
875
875
  position: child.position,
876
876
  offset: cfg.offset,