@metagl/sdk-render 1.0.4 → 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.
package/README.md CHANGED
@@ -166,20 +166,60 @@ SDK渲染引擎采用模块化架构,包含以下系统:
166
166
  - **测量系统**:用于在三维场景中进行各种测量操作
167
167
  - **3DTiles搜索系统**:处理3D Tiles模型搜索和信息展示
168
168
 
169
- ## 更新日志:
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)` 作为默认方向(正午时分的大致方向)
178
+
179
+ ### V1.0.5 (2026-03-24)
180
+
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)
170
203
 
171
204
  ### V1.0.4 (2026-03-23)
172
205
  - **CustomPrimitive Cesium 1.132+ 兼容性修复**
173
- - 问题原因:`VertexArray.fromGeometry` 不再支持对象字面量作为默认几何属性
206
+ - 根本原因:`VertexArray.fromGeometry` 不再支持对象字面量作为默认几何属性
174
207
  - 解决方案:使用实际的 `Cesium.GeometryAttribute` 实例和正确的 `values` 数组
175
- - 修改文件:`XbsjCustomPrimitive.js` 中的 `createVertexArray` 函数
176
- - 将 `normalAttribute`、`colorAttribute`、`textureCoordinate` 改为使用 `new Cesium.GeometryAttribute(...)`
208
+ - 修改 `CustomPrimitive.js` 中的 `createVertexArray` 函数
209
+ - 将 `normalAttribute`、`colorAttribute`、`textureCoordinate` 改为使用 `new Cesium.GeometryAttribute(...)` 而不是对象字面量
177
210
 
178
211
  - **空气质量监测面板科技风格更新**
179
- - 深蓝色渐变背景配发光边框效果
180
- - 动态扫描线和角落装饰
181
- - 大号发光数值配状态指示器
182
- - 改进的排版布局
212
+ - 深蓝色渐变背景配合发光边框效果
213
+ - 动画扫描线和角落装饰
214
+ - 大型发光数据值配合状态指示器
215
+ - 改进排版和布局
216
+
217
+ ### V1.0.0 (2026-03-04)
218
+ - **URL相机定位功能 (CameraUrlManager)**
219
+ - 从URL参数读取相机位置
220
+ - 相机移动时自动更新URL参数(带防抖优化)
221
+ - 支持自定义默认相机角度
222
+ - 支持相机位置变化回调
183
223
 
184
224
  ## 联系方式
185
225
 
package/README_EN.md CHANGED
@@ -166,21 +166,61 @@ The SDK rendering engine adopts a modular architecture, including the following
166
166
  - **Measurement System**: Performs various measurement operations in 3D scenes
167
167
  - **3DTiles Search System**: Handles 3D Tiles model search and information display
168
168
 
169
- ## Changelog
170
- - Release Date: 2026-03-23
169
+ ## Changelog
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)
178
+
179
+ ### V1.0.5 (2026-03-24)
180
+
181
+ #### Viewshed Analysis Feature Optimization
182
+ - **Picking Interaction Optimization**
183
+ - Fixed issue where first point was displayed prematurely in picking mode
184
+ - No visualization elements shown before picking starts, only created after clicking on map
185
+ - Added detailed debug logs for diagnosing picking issues
186
+ - Mouse move no longer sets picking position prematurely, waiting for first click
187
+
188
+ - **Viewshed Panel Style Optimization**
189
+ - Viewshed panel centered horizontally (left: 50% + transform: translateX(-50%))
190
+ - Maintains vertical position at top (top: 18px)
191
+
192
+ - **Multi-Viewshed Analysis System (ViewshedAnalysisSystem)**
193
+ - Supports LACDT.Obj.ViewshedAnalysis multi-frustum mode
194
+ - Implemented startPicking/stopPicking methods
195
+ - Added picking visualization Entity (green start point, yellow end point, arrow line)
196
+ - Real-time update of arrow line and frustum direction during mouse move
197
+ - Added right-click to cancel picking
198
+ - Hide ViewshedAnalysis during picking, show again after completion
199
+
200
+ #### Bug Fixes
201
+ - Fixed ShadowMap creation missing context parameter issue
202
+ - Fixed MouseEventSource missing animationFrameScheduler import (RxJS scheduler bug)
171
203
 
172
204
  ### V1.0.4 (2026-03-23)
173
- - Fixed CustomPrimitive rendering issue with Cesium 1.132+
205
+ - **CustomPrimitive Cesium 1.132+ Compatibility Fix**
174
206
  - Root cause: `VertexArray.fromGeometry` no longer supports object literals for default geometry attributes
175
207
  - Solution: Use actual `Cesium.GeometryAttribute` instances with proper `values` arrays
176
- - Modified `createVertexArray` function in `XbsjCustomPrimitive.js`
208
+ - Modified `createVertexArray` function in `CustomPrimitive.js`
177
209
  - Changed `normalAttribute`, `colorAttribute`, `textureCoordinate` to use `new Cesium.GeometryAttribute(...)` instead of object literals
178
- - Updated air quality monitoring panel with modern tech-style design
210
+
211
+ - **Air Quality Monitoring Panel Tech Style Update**
179
212
  - Deep blue gradient background with glowing border effects
180
213
  - Animated scan line and corner decorations
181
214
  - Large glowing data values with status indicators
182
215
  - Improved typography and layout
183
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
+
184
224
  ## Contact Information
185
225
 
186
226
  - **Official Documentation**: https://sdk.geovisearth.com/