feat(registry): 注册 ComponentDetailManager 到全局 Registry 和 BimEngine
This commit is contained in:
@@ -147,6 +147,10 @@
|
||||
<button onclick="addCustomGroup()">加组</button>
|
||||
<button onclick="addCustomButton()">加按钮</button>
|
||||
</div>
|
||||
<div class="btn-container" style="margin-top: 8px;">
|
||||
<button onclick="setToolbarType('default')">默认样式</button>
|
||||
<button onclick="setToolbarType('glass-pill')">胶囊样式</button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- 4. 样式主题 -->
|
||||
@@ -300,6 +304,12 @@
|
||||
});
|
||||
}
|
||||
|
||||
function setToolbarType(type) {
|
||||
if (!engine || !engine.toolbar) return;
|
||||
engine.toolbar.setType(type);
|
||||
console.log('Toolbar type changed to:', type);
|
||||
}
|
||||
|
||||
// --- 主题操作 ---
|
||||
function setTheme(themeName) {
|
||||
if (engine) engine.setTheme(themeName);
|
||||
@@ -351,7 +361,7 @@
|
||||
const success = engine.engine.initialize({
|
||||
backgroundColor: 0x333333, // 深色背景
|
||||
version: 'v2', // WebGL 版本
|
||||
showStats: true, // 显示性能统计
|
||||
showStats: false, // 显示性能统计
|
||||
showViewCube: true // 显示视图立方体
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user