iflow-engine 1.1.5 → 1.1.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/dist/{components → engine/src/components}/button-group/index.d.ts +1 -1
- package/dist/{components → engine/src/components}/button-group/index.type.d.ts +3 -0
- package/dist/engine/src/components/button-group/toolbar/buttons/ai-chat/index.d.ts +3 -0
- package/dist/engine/src/components/button-group/toolbar/buttons/fullscreen/index.d.ts +3 -0
- package/dist/engine/src/components/button-group/toolbar/buttons/home/index.d.ts +3 -0
- package/dist/engine/src/components/button-group/toolbar/buttons/info/index.d.ts +3 -0
- package/dist/engine/src/components/button-group/toolbar/buttons/map/index.d.ts +3 -0
- package/dist/engine/src/components/button-group/toolbar/buttons/measure/index.d.ts +3 -0
- package/dist/engine/src/components/button-group/toolbar/buttons/property/index.d.ts +3 -0
- package/dist/engine/src/components/button-group/toolbar/buttons/section/section-axis/index.d.ts +3 -0
- package/dist/engine/src/components/button-group/toolbar/buttons/section/section-box/index.d.ts +3 -0
- package/dist/engine/src/components/button-group/toolbar/buttons/section/section-menu/index.d.ts +3 -0
- package/dist/engine/src/components/button-group/toolbar/buttons/section/section-plane/index.d.ts +3 -0
- package/dist/engine/src/components/button-group/toolbar/buttons/setting/index.d.ts +3 -0
- package/dist/engine/src/components/button-group/toolbar/buttons/walk/walk-bird/index.d.ts +3 -0
- package/dist/engine/src/components/button-group/toolbar/buttons/walk/walk-menu/index.d.ts +3 -0
- package/dist/engine/src/components/button-group/toolbar/buttons/walk/walk-person/index.d.ts +3 -0
- package/dist/engine/src/components/button-group/toolbar/buttons/zoom-box/index.d.ts +3 -0
- package/dist/{components → engine/src/components}/engine/index.d.ts +11 -2
- package/dist/engine/src/components/menu/buttons/four.d.ts +3 -0
- package/dist/engine/src/components/menu/buttons/home.d.ts +3 -0
- package/dist/engine/src/components/menu/buttons/info.d.ts +3 -0
- package/dist/engine/src/components/menu/buttons/second.d.ts +3 -0
- package/dist/{components → engine/src/components}/walk-path-panel/index.d.ts +4 -1
- package/dist/{core → engine/src/core}/base-dialog-manager.d.ts +2 -0
- package/dist/{core → engine/src/core}/base-manager.d.ts +2 -2
- package/dist/{core → engine/src/core}/manager-registry.d.ts +5 -9
- package/dist/{managers → engine/src/managers}/ai-chat-manager.d.ts +2 -1
- package/dist/{managers → engine/src/managers}/button-group-manager.d.ts +2 -1
- package/dist/{managers → engine/src/managers}/component-detail-manager.d.ts +2 -1
- package/dist/{managers → engine/src/managers}/construct-tree-manager-btn.d.ts +2 -1
- package/dist/{managers → engine/src/managers}/dialog-manager.d.ts +2 -1
- package/dist/{managers → engine/src/managers}/engine-info-dialog-manager.d.ts +2 -0
- package/dist/{managers → engine/src/managers}/engine-manager.d.ts +2 -1
- package/dist/{managers → engine/src/managers}/measure-dialog-manager.d.ts +2 -0
- package/dist/{managers → engine/src/managers}/right-key-manager.d.ts +2 -1
- package/dist/{managers → engine/src/managers}/section-axis-dialog-manager.d.ts +2 -0
- package/dist/{managers → engine/src/managers}/section-box-dialog-manager.d.ts +2 -0
- package/dist/{managers → engine/src/managers}/section-plane-dialog-manager.d.ts +2 -0
- package/dist/{managers → engine/src/managers}/toolbar-manager.d.ts +2 -1
- package/dist/{managers → engine/src/managers}/walk-control-manager.d.ts +2 -1
- package/dist/{managers → engine/src/managers}/walk-path-dialog-manager.d.ts +2 -0
- package/dist/{managers → engine/src/managers}/walk-plan-view-dialog-manager.d.ts +2 -0
- package/dist/iflow-engine.es.js +5665 -5515
- package/dist/iflow-engine.es.js.map +1 -1
- package/dist/iflow-engine.umd.js +163 -163
- package/dist/iflow-engine.umd.js.map +1 -1
- package/package.json +1 -1
- package/dist/components/button-group/toolbar/buttons/ai-chat/index.d.ts +0 -2
- package/dist/components/button-group/toolbar/buttons/fullscreen/index.d.ts +0 -2
- package/dist/components/button-group/toolbar/buttons/home/index.d.ts +0 -2
- package/dist/components/button-group/toolbar/buttons/info/index.d.ts +0 -2
- package/dist/components/button-group/toolbar/buttons/map/index.d.ts +0 -2
- package/dist/components/button-group/toolbar/buttons/measure/index.d.ts +0 -2
- package/dist/components/button-group/toolbar/buttons/property/index.d.ts +0 -2
- package/dist/components/button-group/toolbar/buttons/section/section-axis/index.d.ts +0 -2
- package/dist/components/button-group/toolbar/buttons/section/section-box/index.d.ts +0 -2
- package/dist/components/button-group/toolbar/buttons/section/section-menu/index.d.ts +0 -2
- package/dist/components/button-group/toolbar/buttons/section/section-plane/index.d.ts +0 -2
- package/dist/components/button-group/toolbar/buttons/setting/index.d.ts +0 -2
- package/dist/components/button-group/toolbar/buttons/walk/walk-bird/index.d.ts +0 -2
- package/dist/components/button-group/toolbar/buttons/walk/walk-menu/index.d.ts +0 -2
- package/dist/components/button-group/toolbar/buttons/walk/walk-person/index.d.ts +0 -2
- package/dist/components/button-group/toolbar/buttons/zoom-box/index.d.ts +0 -2
- package/dist/components/menu/buttons/four.d.ts +0 -2
- package/dist/components/menu/buttons/home.d.ts +0 -2
- package/dist/components/menu/buttons/info.d.ts +0 -2
- package/dist/components/menu/buttons/second.d.ts +0 -2
- /package/dist/{bim-engine.d.ts → engine/src/bim-engine.d.ts} +0 -0
- /package/dist/{components → engine/src/components}/ai-chat/index.d.ts +0 -0
- /package/dist/{components → engine/src/components}/ai-chat/types.d.ts +0 -0
- /package/dist/{components → engine/src/components}/button-group/toolbar/buttons/info/icon.d.ts +0 -0
- /package/dist/{components → engine/src/components}/button-group/toolbar/index.d.ts +0 -0
- /package/dist/{components → engine/src/components}/collapse/index.d.ts +0 -0
- /package/dist/{components → engine/src/components}/collapse/types.d.ts +0 -0
- /package/dist/{components → engine/src/components}/description/index.d.ts +0 -0
- /package/dist/{components → engine/src/components}/description/types.d.ts +0 -0
- /package/dist/{components → engine/src/components}/dialog/index.d.ts +0 -0
- /package/dist/{components → engine/src/components}/dialog/index.type.d.ts +0 -0
- /package/dist/{components → engine/src/components}/engine/types.d.ts +0 -0
- /package/dist/{components → engine/src/components}/measure-panel/index.d.ts +0 -0
- /package/dist/{components → engine/src/components}/measure-panel/types.d.ts +0 -0
- /package/dist/{components → engine/src/components}/menu/index.d.ts +0 -0
- /package/dist/{components → engine/src/components}/menu/item.d.ts +0 -0
- /package/dist/{components → engine/src/components}/menu/types.d.ts +0 -0
- /package/dist/{components → engine/src/components}/right-key/index.d.ts +0 -0
- /package/dist/{components → engine/src/components}/right-key/types.d.ts +0 -0
- /package/dist/{components → engine/src/components}/section-axis-panel/index.d.ts +0 -0
- /package/dist/{components → engine/src/components}/section-axis-panel/types.d.ts +0 -0
- /package/dist/{components → engine/src/components}/section-box-panel/index.d.ts +0 -0
- /package/dist/{components → engine/src/components}/section-box-panel/types.d.ts +0 -0
- /package/dist/{components → engine/src/components}/section-plane-panel/index.d.ts +0 -0
- /package/dist/{components → engine/src/components}/section-plane-panel/types.d.ts +0 -0
- /package/dist/{components → engine/src/components}/tab/index.d.ts +0 -0
- /package/dist/{components → engine/src/components}/tab/index.type.d.ts +0 -0
- /package/dist/{components → engine/src/components}/tree/index.d.ts +0 -0
- /package/dist/{components → engine/src/components}/tree/tree-node.d.ts +0 -0
- /package/dist/{components → engine/src/components}/tree/types.d.ts +0 -0
- /package/dist/{components → engine/src/components}/walk-control-panel/index.d.ts +0 -0
- /package/dist/{components → engine/src/components}/walk-control-panel/types.d.ts +0 -0
- /package/dist/{components → engine/src/components}/walk-path-panel/types.d.ts +0 -0
- /package/dist/{components → engine/src/components}/walk-plan-view-panel/index.d.ts +0 -0
- /package/dist/{core → engine/src/core}/event-emitter.d.ts +0 -0
- /package/dist/{index.d.ts → engine/src/index.d.ts} +0 -0
- /package/dist/{locales → engine/src/locales}/en-US.d.ts +0 -0
- /package/dist/{locales → engine/src/locales}/types.d.ts +0 -0
- /package/dist/{locales → engine/src/locales}/zh-CN.d.ts +0 -0
- /package/dist/{services → engine/src/services}/locale.d.ts +0 -0
- /package/dist/{services → engine/src/services}/theme.d.ts +0 -0
- /package/dist/{themes → engine/src/themes}/presets.d.ts +0 -0
- /package/dist/{themes → engine/src/themes}/types.d.ts +0 -0
- /package/dist/{types → engine/src/types}/component.d.ts +0 -0
- /package/dist/{types → engine/src/types}/events.d.ts +0 -0
- /package/dist/{types → engine/src/types}/measure.d.ts +0 -0
- /package/dist/{utils → engine/src/utils}/icon-manager.d.ts +0 -0
|
@@ -4,7 +4,7 @@ import { IBimComponent } from '../../types/component';
|
|
|
4
4
|
import { EngineEvents } from '../../types/events';
|
|
5
5
|
export declare class BimButtonGroup implements IBimComponent {
|
|
6
6
|
private container;
|
|
7
|
-
|
|
7
|
+
protected options: ButtonGroupOptions;
|
|
8
8
|
private groups;
|
|
9
9
|
private activeBtnIds;
|
|
10
10
|
private btnRefs;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { ManagerRegistry } from '../../core/manager-registry';
|
|
1
2
|
export type ButtonType = 'button' | 'menu';
|
|
2
3
|
/** 按钮组样式类型 */
|
|
3
4
|
export type ButtonGroupType = 'default' | 'glass-pill';
|
|
@@ -76,6 +77,8 @@ export interface ButtonGroupOptions extends ButtonGroupColors {
|
|
|
76
77
|
showLabel?: boolean;
|
|
77
78
|
visibility?: Record<string, boolean>;
|
|
78
79
|
className?: string;
|
|
80
|
+
/** Manager 注册表实例(用于事件通信) */
|
|
81
|
+
registry?: ManagerRegistry;
|
|
79
82
|
}
|
|
80
83
|
export interface ClickPayload {
|
|
81
84
|
button: OptButton;
|
|
@@ -4,19 +4,23 @@ import { EngineOptions, ModelLoadOptions, EngineInfo } from './types';
|
|
|
4
4
|
import { MeasureMode } from '../../types/measure';
|
|
5
5
|
import { MeasureUnit, MeasurePrecision } from '../measure-panel/types';
|
|
6
6
|
import { SectionBoxRange } from '../section-box-panel/types';
|
|
7
|
+
import { ManagerRegistry } from '../../core/manager-registry';
|
|
7
8
|
export type { EngineOptions, ModelLoadOptions, EngineInfo };
|
|
8
9
|
/**
|
|
9
10
|
* 创建 Engine 实例的工厂函数
|
|
10
11
|
* 兼容旧代码直接 import { createEngine } 的方式
|
|
11
12
|
*/
|
|
12
|
-
export declare const createEngine: (options: EngineOptions) => Engine;
|
|
13
|
+
export declare const createEngine: (options: EngineOptions, registry: ManagerRegistry) => Engine;
|
|
13
14
|
/**
|
|
14
15
|
* 3D 引擎组件
|
|
15
16
|
* 负责创建和管理第三方 3D 引擎实例
|
|
16
17
|
*/
|
|
17
18
|
export declare class Engine implements IBimComponent {
|
|
19
|
+
/** 第三方 3D 引擎实例 */
|
|
18
20
|
/** 第三方 3D 引擎实例 */
|
|
19
21
|
private engine;
|
|
22
|
+
/** 管理器注册表实例 */
|
|
23
|
+
private registry;
|
|
20
24
|
/** 引擎挂载的容器元素 */
|
|
21
25
|
private container;
|
|
22
26
|
/** 引擎容器 ID(用于传递给 createEngine) */
|
|
@@ -41,7 +45,7 @@ export declare class Engine implements IBimComponent {
|
|
|
41
45
|
* 构造函数
|
|
42
46
|
* @param options 3D 引擎配置选项
|
|
43
47
|
*/
|
|
44
|
-
constructor(options: EngineOptions);
|
|
48
|
+
constructor(options: EngineOptions, registry: ManagerRegistry);
|
|
45
49
|
/**
|
|
46
50
|
* 初始化组件 (接口实现)
|
|
47
51
|
* 创建 div 容器并初始化引擎
|
|
@@ -88,6 +92,11 @@ export declare class Engine implements IBimComponent {
|
|
|
88
92
|
* 销毁 3D 引擎,释放 GPU 资源
|
|
89
93
|
*/
|
|
90
94
|
dispose(): void;
|
|
95
|
+
/**
|
|
96
|
+
* 调整渲染器尺寸
|
|
97
|
+
* 容器大小变化时调用,自动更新渲染器、相机投影矩阵和后处理合成器
|
|
98
|
+
*/
|
|
99
|
+
resize(): void;
|
|
91
100
|
/**
|
|
92
101
|
* 激活测量功能
|
|
93
102
|
* @param mode 测量类型
|
|
@@ -1,17 +1,20 @@
|
|
|
1
1
|
import { ThemeConfig } from '../../themes/types';
|
|
2
2
|
import { IBimComponent } from '../../types/component';
|
|
3
|
+
import { ManagerRegistry } from '../../core/manager-registry';
|
|
3
4
|
/**
|
|
4
5
|
* 路径漫游面板组件
|
|
5
6
|
* 提供漫游点的添加、删除、跳转和播放功能
|
|
6
7
|
*/
|
|
7
8
|
export declare class WalkPathPanel implements IBimComponent {
|
|
8
9
|
element: HTMLElement;
|
|
9
|
-
/**
|
|
10
|
+
/** 管理器注册表実例 */
|
|
10
11
|
private registry;
|
|
12
|
+
/** 管理器注册表实例 */
|
|
11
13
|
/** 国际化订阅取消函数 */
|
|
12
14
|
private unsubscribeLocale;
|
|
13
15
|
/** 主题订阅取消函数 */
|
|
14
16
|
private unsubscribeTheme;
|
|
17
|
+
constructor(registry: ManagerRegistry);
|
|
15
18
|
/** 漫游点列表 */
|
|
16
19
|
private points;
|
|
17
20
|
/** 漫游时间(毫秒) */
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { BaseManager } from './base-manager';
|
|
2
|
+
import { ManagerRegistry } from './manager-registry';
|
|
2
3
|
import { BimDialog } from '../components/dialog';
|
|
3
4
|
/** 对话框配置选项 */
|
|
4
5
|
export interface DialogManagerOptions {
|
|
@@ -16,6 +17,7 @@ export declare abstract class BaseDialogManager extends BaseManager {
|
|
|
16
17
|
protected dialog: BimDialog | null;
|
|
17
18
|
/** 对话框是否可见 */
|
|
18
19
|
protected isVisible: boolean;
|
|
20
|
+
constructor(registry: ManagerRegistry);
|
|
19
21
|
/** 对话框唯一标识(子类必须实现) */
|
|
20
22
|
protected abstract get dialogId(): string;
|
|
21
23
|
/** 对话框标题,支持国际化 key(子类必须实现) */
|
|
@@ -2,7 +2,7 @@ import { ManagerRegistry } from './manager-registry';
|
|
|
2
2
|
import { EngineEvents } from '../types/events';
|
|
3
3
|
/**
|
|
4
4
|
* Manager 抽象基类
|
|
5
|
-
* -
|
|
5
|
+
* - 通过构造函数接收 Registry 实例
|
|
6
6
|
* - 自动管理事件订阅的清理
|
|
7
7
|
*/
|
|
8
8
|
export declare abstract class BaseManager {
|
|
@@ -10,7 +10,7 @@ export declare abstract class BaseManager {
|
|
|
10
10
|
protected registry: ManagerRegistry;
|
|
11
11
|
/** 事件订阅列表,用于自动清理 */
|
|
12
12
|
private subscriptions;
|
|
13
|
-
constructor();
|
|
13
|
+
constructor(registry: ManagerRegistry);
|
|
14
14
|
/**
|
|
15
15
|
* 订阅事件(自动追踪,destroy 时自动取消)
|
|
16
16
|
* @param event 事件名称
|
|
@@ -16,12 +16,10 @@ import { EngineInfoDialogManager } from '../managers/engine-info-dialog-manager'
|
|
|
16
16
|
import { ComponentDetailManager } from '../managers/component-detail-manager';
|
|
17
17
|
import { AiChatManager } from '../managers/ai-chat-manager';
|
|
18
18
|
/**
|
|
19
|
-
* Manager 注册表 -
|
|
20
|
-
*
|
|
19
|
+
* Manager 注册表 - 实例模式
|
|
20
|
+
* 每个 BimEngine 创建独立的 Registry 实例,替代旧的全局单例
|
|
21
21
|
*/
|
|
22
22
|
export declare class ManagerRegistry {
|
|
23
|
-
/** 单例实例 */
|
|
24
|
-
private static instance;
|
|
25
23
|
/** 事件发射器 */
|
|
26
24
|
private eventEmitter;
|
|
27
25
|
/** 主容器元素 */
|
|
@@ -60,11 +58,9 @@ export declare class ManagerRegistry {
|
|
|
60
58
|
componentDetail: ComponentDetailManager | null;
|
|
61
59
|
/** AI 聊天管理器 */
|
|
62
60
|
aiChat: AiChatManager | null;
|
|
63
|
-
|
|
64
|
-
/**
|
|
65
|
-
|
|
66
|
-
/** 重置单例(用于测试或重新初始化) */
|
|
67
|
-
static reset(): void;
|
|
61
|
+
constructor();
|
|
62
|
+
/** 重置(清理事件和引用) */
|
|
63
|
+
reset(): void;
|
|
68
64
|
/**
|
|
69
65
|
* 发送事件
|
|
70
66
|
* @param event 事件名称
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { Message, QuestionOption, StepStatus } from '../components/ai-chat/types';
|
|
2
|
+
import { ManagerRegistry } from '../core/manager-registry';
|
|
2
3
|
/**
|
|
3
4
|
* AI 聊天管理器
|
|
4
5
|
* 管理 AI 聊天组件的生命周期和消息交互
|
|
@@ -10,7 +11,7 @@ export declare class AiChatManager {
|
|
|
10
11
|
private registry;
|
|
11
12
|
/** 是否已初始化 */
|
|
12
13
|
private initialized;
|
|
13
|
-
constructor();
|
|
14
|
+
constructor(registry: ManagerRegistry);
|
|
14
15
|
/**
|
|
15
16
|
* 初始化 AI 聊天组件
|
|
16
17
|
* 创建 AiChat 实例并注册事件
|
|
@@ -2,6 +2,7 @@ import { BimButtonGroup } from '../components/button-group';
|
|
|
2
2
|
import { ButtonGroupOptions } from '../components/button-group/index.type';
|
|
3
3
|
import { ThemeConfig } from '../themes/types';
|
|
4
4
|
import { BaseManager } from '../core/base-manager';
|
|
5
|
+
import { ManagerRegistry } from '../core/manager-registry';
|
|
5
6
|
/**
|
|
6
7
|
* 按钮组管理器
|
|
7
8
|
* 统一管理多个按钮组的创建、主题更新和销毁
|
|
@@ -11,7 +12,7 @@ export declare class ButtonGroupManager extends BaseManager {
|
|
|
11
12
|
private groups;
|
|
12
13
|
/** 容器元素 */
|
|
13
14
|
private container;
|
|
14
|
-
constructor(container: HTMLElement);
|
|
15
|
+
constructor(container: HTMLElement, registry: ManagerRegistry);
|
|
15
16
|
/**
|
|
16
17
|
* 创建按钮组
|
|
17
18
|
* @param id 按钮组 ID
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { BaseManager } from '../core/base-manager';
|
|
2
|
+
import { ManagerRegistry } from '../core/manager-registry';
|
|
2
3
|
export declare class ComponentDetailManager extends BaseManager {
|
|
3
4
|
private dialogId;
|
|
4
5
|
private dialog;
|
|
@@ -7,7 +8,7 @@ export declare class ComponentDetailManager extends BaseManager {
|
|
|
7
8
|
private unsubscribeDeselected;
|
|
8
9
|
private tabInstance;
|
|
9
10
|
private propertiesData;
|
|
10
|
-
constructor();
|
|
11
|
+
constructor(registry: ManagerRegistry);
|
|
11
12
|
init(): void;
|
|
12
13
|
show(): void;
|
|
13
14
|
private createDialog;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { ButtonGroupColors, ButtonConfig } from '../components/button-group/index.type';
|
|
2
2
|
import { BaseManager } from '../core/base-manager';
|
|
3
|
+
import { ManagerRegistry } from '../core/manager-registry';
|
|
3
4
|
/**
|
|
4
5
|
* 构件树管理器
|
|
5
6
|
*
|
|
@@ -27,7 +28,7 @@ export declare class ConstructTreeManagerBtn extends BaseManager {
|
|
|
27
28
|
* 创建构件树管理器
|
|
28
29
|
* @param container - 按钮挂载的容器元素
|
|
29
30
|
*/
|
|
30
|
-
constructor(container: HTMLElement);
|
|
31
|
+
constructor(container: HTMLElement, registry: ManagerRegistry);
|
|
31
32
|
/**
|
|
32
33
|
* 初始化按钮
|
|
33
34
|
* 创建按钮容器和按钮组,添加构件树按钮
|
|
@@ -2,10 +2,11 @@ import { BimDialog } from '../components/dialog';
|
|
|
2
2
|
import { DialogOptions } from '../components/dialog/index.type';
|
|
3
3
|
import { ThemeConfig } from '../themes/types';
|
|
4
4
|
import { BaseManager } from '../core/base-manager';
|
|
5
|
+
import { ManagerRegistry } from '../core/manager-registry';
|
|
5
6
|
export declare class DialogManager extends BaseManager {
|
|
6
7
|
private container;
|
|
7
8
|
private activeDialogs;
|
|
8
|
-
constructor(container: HTMLElement);
|
|
9
|
+
constructor(container: HTMLElement, registry: ManagerRegistry);
|
|
9
10
|
create(options: Omit<DialogOptions, 'container'>): BimDialog;
|
|
10
11
|
updateTheme(theme: ThemeConfig): void;
|
|
11
12
|
destroy(): void;
|
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
import { BaseDialogManager } from '../core/base-dialog-manager';
|
|
2
|
+
import { ManagerRegistry } from '../core/manager-registry';
|
|
2
3
|
export declare class EngineInfoDialogManager extends BaseDialogManager {
|
|
3
4
|
protected get dialogId(): string;
|
|
4
5
|
protected get dialogTitle(): string;
|
|
5
6
|
protected get dialogWidth(): number;
|
|
7
|
+
constructor(registry: ManagerRegistry);
|
|
6
8
|
init(): void;
|
|
7
9
|
protected getDialogPosition(): {
|
|
8
10
|
x: number;
|
|
@@ -4,6 +4,7 @@ import { RightKeyManager } from './right-key-manager';
|
|
|
4
4
|
import { MeasureMode } from '../types/measure';
|
|
5
5
|
import { MeasureUnit, MeasurePrecision } from '../components/measure-panel/types';
|
|
6
6
|
import { SectionBoxRange } from '../components/section-box-panel/types';
|
|
7
|
+
import { ManagerRegistry } from '../core/manager-registry';
|
|
7
8
|
/**
|
|
8
9
|
* 3D 引擎管理器
|
|
9
10
|
* 封装底层 3D 引擎,提供模型加载、相机控制、测量等功能
|
|
@@ -15,7 +16,7 @@ export declare class EngineManager extends BaseManager {
|
|
|
15
16
|
private engineInstance;
|
|
16
17
|
/** 右键菜单管理器 */
|
|
17
18
|
rightKey: RightKeyManager | null;
|
|
18
|
-
constructor(container: HTMLElement);
|
|
19
|
+
constructor(container: HTMLElement, registry: ManagerRegistry);
|
|
19
20
|
/**
|
|
20
21
|
* 初始化 3D 引擎
|
|
21
22
|
* @param options 引擎配置选项
|
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
import { BaseDialogManager } from '../core/base-dialog-manager';
|
|
2
|
+
import { ManagerRegistry } from '../core/manager-registry';
|
|
2
3
|
import { MeasureConfig, MeasureResult } from '../components/measure-panel/types';
|
|
3
4
|
import { MeasureMode } from '../types/measure';
|
|
4
5
|
export declare class MeasureDialogManager extends BaseDialogManager {
|
|
5
6
|
private panel;
|
|
6
7
|
private config;
|
|
7
8
|
private unsubscribeMeasureChanged;
|
|
9
|
+
constructor(registry: ManagerRegistry);
|
|
8
10
|
protected get dialogId(): string;
|
|
9
11
|
protected get dialogTitle(): string;
|
|
10
12
|
protected get dialogWidth(): number;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { BaseManager } from '../core/base-manager';
|
|
2
|
+
import { ManagerRegistry } from '../core/manager-registry';
|
|
2
3
|
import { MenuItemConfig } from '../components/menu/item';
|
|
3
4
|
/**
|
|
4
5
|
* 右键菜单管理器
|
|
@@ -11,7 +12,7 @@ export declare class RightKeyManager extends BaseManager {
|
|
|
11
12
|
private rightKeyPanel;
|
|
12
13
|
/** 上下文处理器列表 */
|
|
13
14
|
private contextHandlers;
|
|
14
|
-
constructor(container: HTMLElement);
|
|
15
|
+
constructor(container: HTMLElement, registry: ManagerRegistry);
|
|
15
16
|
/** 销毁管理器 */
|
|
16
17
|
destroy(): void;
|
|
17
18
|
/**
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { BaseDialogManager } from '../core/base-dialog-manager';
|
|
2
|
+
import { ManagerRegistry } from '../core/manager-registry';
|
|
2
3
|
import { SectionAxis } from '../components/section-axis-panel/types';
|
|
3
4
|
/**
|
|
4
5
|
* 轴向剖切对话框管理器
|
|
@@ -7,6 +8,7 @@ import { SectionAxis } from '../components/section-axis-panel/types';
|
|
|
7
8
|
export declare class SectionAxisDialogManager extends BaseDialogManager {
|
|
8
9
|
/** 轴向剖切面板实例 */
|
|
9
10
|
private panel;
|
|
11
|
+
constructor(registry: ManagerRegistry);
|
|
10
12
|
/** 对话框唯一标识 */
|
|
11
13
|
protected get dialogId(): string;
|
|
12
14
|
/** 对话框标题(国际化 key) */
|
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
import { BaseDialogManager } from '../core/base-dialog-manager';
|
|
2
|
+
import { ManagerRegistry } from '../core/manager-registry';
|
|
2
3
|
import { SectionBoxRange } from '../components/section-box-panel/types';
|
|
3
4
|
export declare class SectionBoxDialogManager extends BaseDialogManager {
|
|
4
5
|
private panel;
|
|
5
6
|
private unsubscribeSectionMove;
|
|
7
|
+
constructor(registry: ManagerRegistry);
|
|
6
8
|
/** 对话框唯一标识 */
|
|
7
9
|
protected get dialogId(): string;
|
|
8
10
|
/** 对话框标题(国际化 key) */
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { BaseDialogManager } from '../core/base-dialog-manager';
|
|
2
|
+
import { ManagerRegistry } from '../core/manager-registry';
|
|
2
3
|
/**
|
|
3
4
|
* 拾取面剖切对话框管理器
|
|
4
5
|
* 继承自 BaseDialogManager,提供拾取面剖切功能的对话框管理
|
|
@@ -6,6 +7,7 @@ import { BaseDialogManager } from '../core/base-dialog-manager';
|
|
|
6
7
|
export declare class SectionPlaneDialogManager extends BaseDialogManager {
|
|
7
8
|
/** 剖切面板实例 */
|
|
8
9
|
private panel;
|
|
10
|
+
constructor(registry: ManagerRegistry);
|
|
9
11
|
/** 对话框唯一标识 */
|
|
10
12
|
protected get dialogId(): string;
|
|
11
13
|
/** 对话框标题(国际化 key) */
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { ButtonGroupColors, ButtonConfig } from '../components/button-group/index.type';
|
|
2
2
|
import { ThemeConfig } from '../themes/types';
|
|
3
3
|
import { BaseManager } from '../core/base-manager';
|
|
4
|
+
import { ManagerRegistry } from '../core/manager-registry';
|
|
4
5
|
/**
|
|
5
6
|
* 工具栏管理器
|
|
6
7
|
* 提供工具栏按钮的添加、显示/隐藏、主题更新等功能
|
|
@@ -12,7 +13,7 @@ export declare class ToolbarManager extends BaseManager {
|
|
|
12
13
|
private toolbarContainer;
|
|
13
14
|
/** 主容器元素 */
|
|
14
15
|
private container;
|
|
15
|
-
constructor(container: HTMLElement);
|
|
16
|
+
constructor(container: HTMLElement, registry: ManagerRegistry);
|
|
16
17
|
/** 初始化工具栏 */
|
|
17
18
|
private init;
|
|
18
19
|
/**
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { BaseManager } from '../core/base-manager';
|
|
2
|
+
import { ManagerRegistry } from '../core/manager-registry';
|
|
2
3
|
import { WalkControlPanel } from '../components/walk-control-panel';
|
|
3
4
|
/**
|
|
4
5
|
* 漫游控制管理器
|
|
@@ -9,7 +10,7 @@ export declare class WalkControlManager extends BaseManager {
|
|
|
9
10
|
panel: WalkControlPanel | null;
|
|
10
11
|
/** 路径漫游对话框管理器 */
|
|
11
12
|
private pathManager;
|
|
12
|
-
constructor();
|
|
13
|
+
constructor(registry: ManagerRegistry);
|
|
13
14
|
/** 初始化管理器 */
|
|
14
15
|
init(): void;
|
|
15
16
|
/** 显示漫游控制面板 */
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { BaseDialogManager } from '../core/base-dialog-manager';
|
|
2
|
+
import { ManagerRegistry } from '../core/manager-registry';
|
|
2
3
|
/**
|
|
3
4
|
* 漫游路径对话框管理器
|
|
4
5
|
* 继承自 BaseDialogManager,提供漫游路径配置的对话框管理功能
|
|
@@ -6,6 +7,7 @@ import { BaseDialogManager } from '../core/base-dialog-manager';
|
|
|
6
7
|
export declare class WalkPathDialogManager extends BaseDialogManager {
|
|
7
8
|
/** 漫游路径面板实例 */
|
|
8
9
|
private panel;
|
|
10
|
+
constructor(registry: ManagerRegistry);
|
|
9
11
|
/** 对话框唯一标识 */
|
|
10
12
|
protected get dialogId(): string;
|
|
11
13
|
/** 对话框标题(国际化 key) */
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { BaseDialogManager } from '../core/base-dialog-manager';
|
|
2
|
+
import { ManagerRegistry } from '../core/manager-registry';
|
|
2
3
|
/**
|
|
3
4
|
* 漫游平面图对话框管理器
|
|
4
5
|
* 继承自 BaseDialogManager,提供漫游平面图的对话框管理功能
|
|
@@ -6,6 +7,7 @@ import { BaseDialogManager } from '../core/base-dialog-manager';
|
|
|
6
7
|
export declare class WalkPlanViewDialogManager extends BaseDialogManager {
|
|
7
8
|
/** 漫游平面图面板实例 */
|
|
8
9
|
private panel;
|
|
10
|
+
constructor(registry: ManagerRegistry);
|
|
9
11
|
/** 对话框唯一标识 */
|
|
10
12
|
protected get dialogId(): string;
|
|
11
13
|
/** 对话框标题(国际化 key) */
|