@metagl/sdk-render 1.0.5 → 1.0.7
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 +58 -36
- package/README_EN.md +25 -3
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -166,47 +166,69 @@ SDK渲染引擎采用模块化架构,包含以下系统:
|
|
|
166
166
|
- **测量系统**:用于在三维场景中进行各种测量操作
|
|
167
167
|
- **3DTiles搜索系统**:处理3D Tiles模型搜索和信息展示
|
|
168
168
|
|
|
169
|
-
##
|
|
169
|
+
## 更新日志
|
|
170
|
+
|
|
171
|
+
### V1.0.7 (2026-03-26)
|
|
172
|
+
|
|
173
|
+
#### 问题修复
|
|
174
|
+
- **适配 DC V5.0.0 版本**
|
|
175
|
+
- 由于 DC 将原生的 cesiumWidget 移除,DC 重写了新的 UI widgetContainer
|
|
176
|
+
- 添加对 DC UI 的兼容性支持,确保与 DC V5.0.0 版本正常工作
|
|
177
|
+
|
|
178
|
+
### V1.0.6 (2026-03-25)
|
|
179
|
+
|
|
180
|
+
#### 问题修复
|
|
181
|
+
- **SunLight direction 初始化修复**
|
|
182
|
+
- 修复 Cesium SunLight 在某些情况下 direction 属性未正确初始化的问题
|
|
183
|
+
- 添加 direction 属性检查,若不存在则手动设置默认太阳方向
|
|
184
|
+
- 使用 `Cartesian3(0, 0, 1)` 作为默认方向(正午时分的大致方向)
|
|
170
185
|
|
|
171
186
|
### V1.0.5 (2026-03-24)
|
|
172
187
|
|
|
173
|
-
####
|
|
174
|
-
-
|
|
175
|
-
-
|
|
176
|
-
-
|
|
177
|
-
-
|
|
178
|
-
-
|
|
179
|
-
|
|
180
|
-
-
|
|
181
|
-
-
|
|
182
|
-
-
|
|
183
|
-
|
|
184
|
-
-
|
|
185
|
-
-
|
|
186
|
-
-
|
|
187
|
-
-
|
|
188
|
-
-
|
|
189
|
-
-
|
|
190
|
-
-
|
|
191
|
-
|
|
192
|
-
####
|
|
193
|
-
-
|
|
194
|
-
-
|
|
188
|
+
#### 视域分析功能优化
|
|
189
|
+
- **拾取交互优化**
|
|
190
|
+
- 修复拾取模式下第一个点过早显示的问题
|
|
191
|
+
- 拾取开始前不显示可视化元素,只有在地图上点击后才创建
|
|
192
|
+
- 添加详细的调试日志用于诊断拾取问题
|
|
193
|
+
- 鼠标移动不再过早设置拾取位置,等待第一次点击
|
|
194
|
+
|
|
195
|
+
- **视域面板样式优化**
|
|
196
|
+
- 视域面板水平居中(left: 50% + transform: translateX(-50%))
|
|
197
|
+
- 保持垂直位置在顶部(top: 18px)
|
|
198
|
+
|
|
199
|
+
- **多视域分析系统 (ViewshedAnalysisSystem)**
|
|
200
|
+
- 支持 LACDT.Obj.ViewshedAnalysis 多视锥体模式
|
|
201
|
+
- 实现 startPicking/stopPicking 方法
|
|
202
|
+
- 添加拾取可视化 Entity(绿色起点、黄色终点、箭头线)
|
|
203
|
+
- 鼠标移动时实时更新箭头线和视锥体方向
|
|
204
|
+
- 添加右键取消拾取功能
|
|
205
|
+
- 拾取期间隐藏 ViewshedAnalysis,完成后重新显示
|
|
206
|
+
|
|
207
|
+
#### 问题修复
|
|
208
|
+
- 修复 ShadowMap 创建缺少 context 参数的问题
|
|
209
|
+
- 修复 MouseEventSource 缺少 animationFrameScheduler 导入的问题(RxJS scheduler bug)
|
|
195
210
|
|
|
196
211
|
### V1.0.4 (2026-03-23)
|
|
197
|
-
- **CustomPrimitive Cesium 1.132+
|
|
198
|
-
-
|
|
199
|
-
-
|
|
200
|
-
-
|
|
201
|
-
-
|
|
202
|
-
|
|
203
|
-
-
|
|
204
|
-
-
|
|
205
|
-
-
|
|
206
|
-
-
|
|
207
|
-
-
|
|
208
|
-
|
|
209
|
-
|
|
212
|
+
- **CustomPrimitive Cesium 1.132+ 兼容性修复**
|
|
213
|
+
- 根本原因:`VertexArray.fromGeometry` 不再支持对象字面量作为默认几何属性
|
|
214
|
+
- 解决方案:使用实际的 `Cesium.GeometryAttribute` 实例和正确的 `values` 数组
|
|
215
|
+
- 修改 `CustomPrimitive.js` 中的 `createVertexArray` 函数
|
|
216
|
+
- 将 `normalAttribute`、`colorAttribute`、`textureCoordinate` 改为使用 `new Cesium.GeometryAttribute(...)` 而不是对象字面量
|
|
217
|
+
|
|
218
|
+
- **空气质量监测面板科技风格更新**
|
|
219
|
+
- 深蓝色渐变背景配合发光边框效果
|
|
220
|
+
- 动画扫描线和角落装饰
|
|
221
|
+
- 大型发光数据值配合状态指示器
|
|
222
|
+
- 改进排版和布局
|
|
223
|
+
|
|
224
|
+
### V1.0.0 (2026-03-04)
|
|
225
|
+
- **URL相机定位功能 (CameraUrlManager)**
|
|
226
|
+
- 从URL参数读取相机位置
|
|
227
|
+
- 相机移动时自动更新URL参数(带防抖优化)
|
|
228
|
+
- 支持自定义默认相机角度
|
|
229
|
+
- 支持相机位置变化回调
|
|
230
|
+
|
|
231
|
+
## 联系方式
|
|
210
232
|
|
|
211
233
|
- **官方文档**:https://sdk.geovisearth.com/
|
|
212
234
|
- **邮箱支持**:sunyc@geovis.com.cn
|
package/README_EN.md
CHANGED
|
@@ -167,7 +167,21 @@ 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
|
-
|
|
170
|
+
|
|
171
|
+
### V1.0.7 (2026-03-26)
|
|
172
|
+
|
|
173
|
+
#### Bug Fixes
|
|
174
|
+
- **DC V5.0.0 Compatibility**
|
|
175
|
+
- DC removed the native cesiumWidget and rewrote a new UI widgetContainer
|
|
176
|
+
- Added compatibility support for DC UI to ensure proper operation with DC V5.0.0
|
|
177
|
+
|
|
178
|
+
### V1.0.6 (2026-03-25)
|
|
179
|
+
|
|
180
|
+
#### Bug Fixes
|
|
181
|
+
- **SunLight direction initialization fix**
|
|
182
|
+
- Fixed issue where Cesium SunLight direction property was not properly initialized in some cases
|
|
183
|
+
- Added direction property check, manually setting default sun direction if not present
|
|
184
|
+
- Using `Cartesian3(0, 0, 1)` as default direction (approximate noon sun direction)
|
|
171
185
|
|
|
172
186
|
### V1.0.5 (2026-03-24)
|
|
173
187
|
|
|
@@ -195,17 +209,25 @@ The SDK rendering engine adopts a modular architecture, including the following
|
|
|
195
209
|
- Fixed MouseEventSource missing animationFrameScheduler import (RxJS scheduler bug)
|
|
196
210
|
|
|
197
211
|
### V1.0.4 (2026-03-23)
|
|
198
|
-
-
|
|
212
|
+
- **CustomPrimitive Cesium 1.132+ Compatibility Fix**
|
|
199
213
|
- Root cause: `VertexArray.fromGeometry` no longer supports object literals for default geometry attributes
|
|
200
214
|
- Solution: Use actual `Cesium.GeometryAttribute` instances with proper `values` arrays
|
|
201
215
|
- Modified `createVertexArray` function in `CustomPrimitive.js`
|
|
202
216
|
- Changed `normalAttribute`, `colorAttribute`, `textureCoordinate` to use `new Cesium.GeometryAttribute(...)` instead of object literals
|
|
203
|
-
|
|
217
|
+
|
|
218
|
+
- **Air Quality Monitoring Panel Tech Style Update**
|
|
204
219
|
- Deep blue gradient background with glowing border effects
|
|
205
220
|
- Animated scan line and corner decorations
|
|
206
221
|
- Large glowing data values with status indicators
|
|
207
222
|
- Improved typography and layout
|
|
208
223
|
|
|
224
|
+
### V1.0.0 (2026-03-04)
|
|
225
|
+
- **URL Camera Positioning Feature (CameraUrlManager)**
|
|
226
|
+
- Read camera position from URL parameters
|
|
227
|
+
- Automatically update URL parameters when camera moves (with debounce optimization)
|
|
228
|
+
- Support for custom default camera angles
|
|
229
|
+
- Callback support for camera position changes
|
|
230
|
+
|
|
209
231
|
## Contact Information
|
|
210
232
|
|
|
211
233
|
- **Official Documentation**: https://sdk.geovisearth.com/
|