refactor: sync managers and section box actions

Wire section box scale/reverse/reset to clipping APIs and sync demo artifacts.
This commit is contained in:
yuding
2026-02-04 18:20:30 +08:00
parent b12940f49c
commit 191c571f40
64 changed files with 10569 additions and 7065 deletions

View File

@@ -41,12 +41,8 @@ export class WalkControlManager extends BaseManager {
this.panel = new WalkControlPanel({
onPlanViewToggle: (isActive) => {
console.log('[WalkControl] 地图:', isActive);
if (isActive) {
this.registry.map?.show();
} else {
this.registry.map?.hide();
}
console.log('[WalkControl] 地图:', isActive);
this.registry.engine3d?.toggleMiniMap();
this.emit('walk:plan-view-toggle', { isActive });
},
onPathModeToggle: (isActive) => {
@@ -94,17 +90,7 @@ export class WalkControlManager extends BaseManager {
});
this.panel.init();
if (this.registry.map?.isOpen()) {
this.panel.setPlanViewActive(true);
}
this.subscribe('map:opened', () => {
this.panel?.setPlanViewActive(true);
});
this.subscribe('map:closed', () => {
this.panel?.setPlanViewActive(false);
});
if (this.registry.container) {
this.panel.element.style.position = 'absolute';