@metagl/sdk-render 1.0.4 → 1.0.5

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,22 +166,47 @@ SDK渲染引擎采用模块化架构,包含以下系统:
166
166
  - **测量系统**:用于在三维场景中进行各种测量操作
167
167
  - **3DTiles搜索系统**:处理3D Tiles模型搜索和信息展示
168
168
 
169
- ## 更新日志:
169
+ ## Changelog
170
+
171
+ ### V1.0.5 (2026-03-24)
172
+
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)
170
195
 
171
196
  ### V1.0.4 (2026-03-23)
172
- - **CustomPrimitive Cesium 1.132+ 兼容性修复**
173
- - 问题原因:`VertexArray.fromGeometry` 不再支持对象字面量作为默认几何属性
174
- - 解决方案:使用实际的 `Cesium.GeometryAttribute` 实例和正确的 `values` 数组
175
- - 修改文件:`XbsjCustomPrimitive.js` 中的 `createVertexArray` 函数
176
- - `normalAttribute`、`colorAttribute`、`textureCoordinate` 改为使用 `new Cesium.GeometryAttribute(...)`
177
-
178
- - **空气质量监测面板科技风格更新**
179
- - 深蓝色渐变背景配发光边框效果
180
- - 动态扫描线和角落装饰
181
- - 大号发光数值配状态指示器
182
- - 改进的排版布局
183
-
184
- ## 联系方式
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
185
210
 
186
211
  - **官方文档**:https://sdk.geovisearth.com/
187
212
  - **邮箱支持**:sunyc@geovis.com.cn
package/README_EN.md CHANGED
@@ -166,14 +166,39 @@ 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
+ - Release Date: 2026-03-24
171
+
172
+ ### V1.0.5 (2026-03-24)
173
+
174
+ #### Viewshed Analysis Feature Optimization
175
+ - **Picking Interaction Optimization**
176
+ - Fixed issue where first point was displayed prematurely in picking mode
177
+ - No visualization elements shown before picking starts, only created after clicking on map
178
+ - Added detailed debug logs for diagnosing picking issues
179
+ - Mouse move no longer sets picking position prematurely, waiting for first click
180
+
181
+ - **Viewshed Panel Style Optimization**
182
+ - Viewshed panel centered horizontally (left: 50% + transform: translateX(-50%))
183
+ - Maintains vertical position at top (top: 18px)
184
+
185
+ - **Multi-Viewshed Analysis System (ViewshedAnalysisSystem)**
186
+ - Supports LACDT.Obj.ViewshedAnalysis multi-frustum mode
187
+ - Implemented startPicking/stopPicking methods
188
+ - Added picking visualization Entity (green start point, yellow end point, arrow line)
189
+ - Real-time update of arrow line and frustum direction during mouse move
190
+ - Added right-click to cancel picking
191
+ - Hide ViewshedAnalysis during picking, show again after completion
192
+
193
+ #### Bug Fixes
194
+ - Fixed ShadowMap creation missing context parameter issue
195
+ - Fixed MouseEventSource missing animationFrameScheduler import (RxJS scheduler bug)
171
196
 
172
197
  ### V1.0.4 (2026-03-23)
173
198
  - Fixed CustomPrimitive rendering issue with Cesium 1.132+
174
199
  - Root cause: `VertexArray.fromGeometry` no longer supports object literals for default geometry attributes
175
200
  - Solution: Use actual `Cesium.GeometryAttribute` instances with proper `values` arrays
176
- - Modified `createVertexArray` function in `XbsjCustomPrimitive.js`
201
+ - Modified `createVertexArray` function in `CustomPrimitive.js`
177
202
  - Changed `normalAttribute`, `colorAttribute`, `textureCoordinate` to use `new Cesium.GeometryAttribute(...)` instead of object literals
178
203
  - Updated air quality monitoring panel with modern tech-style design
179
204
  - Deep blue gradient background with glowing border effects