@metagl/sdk-render 1.0.5 → 1.0.6

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.
Files changed (3) hide show
  1. package/README.md +51 -36
  2. package/README_EN.md +18 -3
  3. package/package.json +1 -1
package/README.md CHANGED
@@ -166,47 +166,62 @@ SDK渲染引擎采用模块化架构,包含以下系统:
166
166
  - **测量系统**:用于在三维场景中进行各种测量操作
167
167
  - **3DTiles搜索系统**:处理3D Tiles模型搜索和信息展示
168
168
 
169
- ## Changelog
169
+ ## 更新日志
170
+
171
+ ### V1.0.6 (2026-03-25)
172
+
173
+ #### 问题修复
174
+ - **SunLight direction 初始化修复**
175
+ - 修复 Cesium SunLight 在某些情况下 direction 属性未正确初始化的问题
176
+ - 添加 direction 属性检查,若不存在则手动设置默认太阳方向
177
+ - 使用 `Cartesian3(0, 0, 1)` 作为默认方向(正午时分的大致方向)
170
178
 
171
179
  ### V1.0.5 (2026-03-24)
172
180
 
173
- #### Viewshed Analysis Feature Optimization
174
- - **Picking Interaction Optimization**
175
- - Fixed issue where first point was displayed prematurely in picking mode
176
- - No visualization elements shown before picking starts, only created after clicking on map
177
- - Added detailed debug logs for diagnosing picking issues
178
- - Mouse move no longer sets picking position prematurely, waiting for first click
179
-
180
- - **Viewshed Panel Style Optimization**
181
- - Viewshed panel centered horizontally (left: 50% + transform: translateX(-50%))
182
- - Maintains vertical position at top (top: 18px)
183
-
184
- - **Multi-Viewshed Analysis System (ViewshedAnalysisSystem)**
185
- - Supports LACDT.Obj.ViewshedAnalysis multi-frustum mode
186
- - Implemented startPicking/stopPicking methods
187
- - Added picking visualization Entity (green start point, yellow end point, arrow line)
188
- - Real-time update of arrow line and frustum direction during mouse move
189
- - Added right-click to cancel picking
190
- - Hide ViewshedAnalysis during picking, show again after completion
191
-
192
- #### Bug Fixes
193
- - Fixed ShadowMap creation missing context parameter issue
194
- - Fixed MouseEventSource missing animationFrameScheduler import (RxJS scheduler bug)
181
+ #### 视域分析功能优化
182
+ - **拾取交互优化**
183
+ - 修复拾取模式下第一个点过早显示的问题
184
+ - 拾取开始前不显示可视化元素,只有在地图上点击后才创建
185
+ - 添加详细的调试日志用于诊断拾取问题
186
+ - 鼠标移动不再过早设置拾取位置,等待第一次点击
187
+
188
+ - **视域面板样式优化**
189
+ - 视域面板水平居中(left: 50% + transform: translateX(-50%)
190
+ - 保持垂直位置在顶部(top: 18px
191
+
192
+ - **多视域分析系统 (ViewshedAnalysisSystem)**
193
+ - 支持 LACDT.Obj.ViewshedAnalysis 多视锥体模式
194
+ - 实现 startPicking/stopPicking 方法
195
+ - 添加拾取可视化 Entity(绿色起点、黄色终点、箭头线)
196
+ - 鼠标移动时实时更新箭头线和视锥体方向
197
+ - 添加右键取消拾取功能
198
+ - 拾取期间隐藏 ViewshedAnalysis,完成后重新显示
199
+
200
+ #### 问题修复
201
+ - 修复 ShadowMap 创建缺少 context 参数的问题
202
+ - 修复 MouseEventSource 缺少 animationFrameScheduler 导入的问题(RxJS scheduler bug
195
203
 
196
204
  ### V1.0.4 (2026-03-23)
197
- - **CustomPrimitive Cesium 1.132+ Compatibility Fix**
198
- - Root cause: `VertexArray.fromGeometry` no longer supports object literals for default geometry attributes
199
- - Solution: Use actual `Cesium.GeometryAttribute` instances with proper `values` arrays
200
- - Modified `createVertexArray` function in `CustomPrimitive.js`
201
- - Changed `normalAttribute`, `colorAttribute`, `textureCoordinate` to use `new Cesium.GeometryAttribute(...)` instead of object literals
202
-
203
- - **Air Quality Monitoring Panel Tech Style Update**
204
- - Deep blue gradient background with glowing border effects
205
- - Animated scan line and corner decorations
206
- - Large glowing data values with status indicators
207
- - Improved typography and layout
208
-
209
- ## Contact Information
205
+ - **CustomPrimitive Cesium 1.132+ 兼容性修复**
206
+ - 根本原因:`VertexArray.fromGeometry` 不再支持对象字面量作为默认几何属性
207
+ - 解决方案:使用实际的 `Cesium.GeometryAttribute` 实例和正确的 `values` 数组
208
+ - 修改 `CustomPrimitive.js` 中的 `createVertexArray` 函数
209
+ - `normalAttribute`、`colorAttribute`、`textureCoordinate` 改为使用 `new Cesium.GeometryAttribute(...)` 而不是对象字面量
210
+
211
+ - **空气质量监测面板科技风格更新**
212
+ - 深蓝色渐变背景配合发光边框效果
213
+ - 动画扫描线和角落装饰
214
+ - 大型发光数据值配合状态指示器
215
+ - 改进排版和布局
216
+
217
+ ### V1.0.0 (2026-03-04)
218
+ - **URL相机定位功能 (CameraUrlManager)**
219
+ - 从URL参数读取相机位置
220
+ - 相机移动时自动更新URL参数(带防抖优化)
221
+ - 支持自定义默认相机角度
222
+ - 支持相机位置变化回调
223
+
224
+ ## 联系方式
210
225
 
211
226
  - **官方文档**:https://sdk.geovisearth.com/
212
227
  - **邮箱支持**:sunyc@geovis.com.cn
package/README_EN.md CHANGED
@@ -167,7 +167,14 @@ The SDK rendering engine adopts a modular architecture, including the following
167
167
  - **3DTiles Search System**: Handles 3D Tiles model search and information display
168
168
 
169
169
  ## Changelog
170
- - Release Date: 2026-03-24
170
+
171
+ ### V1.0.6 (2026-03-25)
172
+
173
+ #### Bug Fixes
174
+ - **SunLight direction initialization fix**
175
+ - Fixed issue where Cesium SunLight direction property was not properly initialized in some cases
176
+ - Added direction property check, manually setting default sun direction if not present
177
+ - Using `Cartesian3(0, 0, 1)` as default direction (approximate noon sun direction)
171
178
 
172
179
  ### V1.0.5 (2026-03-24)
173
180
 
@@ -195,17 +202,25 @@ The SDK rendering engine adopts a modular architecture, including the following
195
202
  - Fixed MouseEventSource missing animationFrameScheduler import (RxJS scheduler bug)
196
203
 
197
204
  ### V1.0.4 (2026-03-23)
198
- - Fixed CustomPrimitive rendering issue with Cesium 1.132+
205
+ - **CustomPrimitive Cesium 1.132+ Compatibility Fix**
199
206
  - Root cause: `VertexArray.fromGeometry` no longer supports object literals for default geometry attributes
200
207
  - Solution: Use actual `Cesium.GeometryAttribute` instances with proper `values` arrays
201
208
  - Modified `createVertexArray` function in `CustomPrimitive.js`
202
209
  - Changed `normalAttribute`, `colorAttribute`, `textureCoordinate` to use `new Cesium.GeometryAttribute(...)` instead of object literals
203
- - Updated air quality monitoring panel with modern tech-style design
210
+
211
+ - **Air Quality Monitoring Panel Tech Style Update**
204
212
  - Deep blue gradient background with glowing border effects
205
213
  - Animated scan line and corner decorations
206
214
  - Large glowing data values with status indicators
207
215
  - Improved typography and layout
208
216
 
217
+ ### V1.0.0 (2026-03-04)
218
+ - **URL Camera Positioning Feature (CameraUrlManager)**
219
+ - Read camera position from URL parameters
220
+ - Automatically update URL parameters when camera moves (with debounce optimization)
221
+ - Support for custom default camera angles
222
+ - Callback support for camera position changes
223
+
209
224
  ## Contact Information
210
225
 
211
226
  - **Official Documentation**: https://sdk.geovisearth.com/
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@metagl/sdk-render",
3
- "version": "1.0.5",
3
+ "version": "1.0.6",
4
4
  "description": "Earth SDK Render",
5
5
  "main": "lacdt.render.js",
6
6
  "module": "./esm/lacdt.render.js",