feat: upgrade to v1.3.2 with settings panel overhaul, clear height enhancements and bug fixes
- Overhaul settings dialog: add edge line toggle, contrast/saturation/light intensity sliders, environment and ground type selectors - Add clear height measurement options: direction (up/down) and select type (point/element) with radio button UI - Fix right-click context menu triggering during model drag rotation (add move threshold) - Fix measure dialog event listener leak (on → off for cleanup) - Update mini map API to use engine.minMap.toggle() - Replace text-based measure icons with proper SVG assets (净高/净距/坐标/面积) - Add i18n keys for all new settings and clear height options (zh-CN / en-US) - Bump iflow-engine-base dependency to ^2.0.5 - Rebuild dist and sync demo libs
This commit is contained in:
@@ -182,6 +182,16 @@
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- 8. 构件树数据 -->
|
||||
<div class="control-group">
|
||||
<h2>🌳 构件树 (Tree Data)</h2>
|
||||
<div class="btn-container">
|
||||
<button onclick="getLevelTree()">楼层树</button>
|
||||
<button onclick="getTypeTree()">类型树</button>
|
||||
<button onclick="getMajorTree()">专业树</button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- 5. 3D 引擎 -->
|
||||
<div class="control-group">
|
||||
<h2>🎮 3D 引擎 (Engine3D)</h2>
|
||||
@@ -438,8 +448,9 @@
|
||||
|
||||
try {
|
||||
const modelUrls = [
|
||||
'https://lyz-1259524260.cos.ap-guangzhou.myqcloud.com/iflow/models/417664a3-76c8-4d94-9344-1337246a5d4e/',
|
||||
'https://lyz-1259524260.cos.ap-guangzhou.myqcloud.com/iflow/models/e49a5fd1-3018-4938-9a52-6862b56a190b/'
|
||||
'https://lyz-1259524260.cos.ap-guangzhou.myqcloud.com/iflow/models/974feae2-4be3-4e85-9d5e-ea655b0c890d/',
|
||||
'https://lyz-1259524260.cos.ap-guangzhou.myqcloud.com/iflow/models/6129815d-9ae4-4414-a9ab-e7c3ee1b2584/',
|
||||
'https://lyz-1259524260.cos.ap-guangzhou.myqcloud.com/iflow/models/8ddf95f4-28cc-4218-94c3-165e69fa51b1/'
|
||||
];
|
||||
|
||||
engine.engine.loadModel(modelUrls, {
|
||||
@@ -521,6 +532,34 @@
|
||||
engine.propertyPanel.show();
|
||||
}
|
||||
|
||||
// --- 构件树数据 ---
|
||||
function getLevelTree() {
|
||||
if (!engine || !engine.engine || !engine.engine.isInitialized()) {
|
||||
alert('请先初始化 3D 引擎并加载模型!');
|
||||
return;
|
||||
}
|
||||
const data = engine.engine.getLevelTreeData();
|
||||
console.log('🌳 楼层树数据:', data);
|
||||
}
|
||||
|
||||
function getTypeTree() {
|
||||
if (!engine || !engine.engine || !engine.engine.isInitialized()) {
|
||||
alert('请先初始化 3D 引擎并加载模型!');
|
||||
return;
|
||||
}
|
||||
const data = engine.engine.getTypeTreeData();
|
||||
console.log('🌳 类型树数据:', data);
|
||||
}
|
||||
|
||||
function getMajorTree() {
|
||||
if (!engine || !engine.engine || !engine.engine.isInitialized()) {
|
||||
alert('请先初始化 3D 引擎并加载模型!');
|
||||
return;
|
||||
}
|
||||
const data = engine.engine.getMajorTreeData();
|
||||
console.log('🌳 专业树数据:', data);
|
||||
}
|
||||
|
||||
/**
|
||||
* 更新引擎状态显示
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user