更新图钉 API 文档及代码
This commit is contained in:
@@ -12,6 +12,7 @@ import { BaseManager } from '../core/base-manager';
|
||||
import { RightKeyManager } from './right-key-manager';
|
||||
import type { MenuItemConfig } from '../components/menu/item';
|
||||
import { ManagerRegistry } from '../core/manager-registry';
|
||||
import type { DrawingPinRecord } from '../types/events';
|
||||
|
||||
/**
|
||||
* 3D 引擎管理器
|
||||
@@ -302,6 +303,14 @@ export class EngineManager extends BaseManager {
|
||||
return this.engineInstance.jumpToCamera(cameraData);
|
||||
}
|
||||
|
||||
public setMainViewPort(viewData: any): void {
|
||||
if (!this.engineInstance) {
|
||||
console.warn('[EngineManager] 3D Engine not initialized.');
|
||||
return;
|
||||
}
|
||||
this.engineInstance.setMainViewPort(viewData);
|
||||
}
|
||||
|
||||
public getConstructTreeData(): { level: any[]; type: any[]; major: any[] } {
|
||||
if (!this.engineInstance) {
|
||||
console.warn('[EngineManager] 3D Engine not initialized.');
|
||||
@@ -322,6 +331,19 @@ export class EngineManager extends BaseManager {
|
||||
this.engineInstance.getComponentProperties(url, id, callback);
|
||||
}
|
||||
|
||||
public setPinRecords(records: DrawingPinRecord[]): void {
|
||||
console.log('[EngineManager] setPinRecords called, records count:', records.length);
|
||||
if (!this.engineInstance) {
|
||||
console.warn('[EngineManager] 3D Engine not initialized.');
|
||||
return;
|
||||
}
|
||||
this.engineInstance.setPinRecords(records);
|
||||
}
|
||||
|
||||
public setPinList(records: DrawingPinRecord[]): void {
|
||||
this.setPinRecords(records);
|
||||
}
|
||||
|
||||
public registerRightKeyHandler(handler: (e: MouseEvent) => MenuItemConfig[] | null): void {
|
||||
if (!this.rightKey) {
|
||||
console.warn('[EngineManager] RightKey manager not initialized.');
|
||||
|
||||
Reference in New Issue
Block a user