iflow-engine 1.3.2 → 1.3.3
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/README.md +36 -16
- package/dist/{engine/src/components → components}/engine/index.d.ts +76 -2
- package/dist/{engine/src/core → core}/base-manager.d.ts +7 -0
- package/dist/iflow-engine.es.js +7204 -7262
- package/dist/iflow-engine.es.js.map +1 -1
- package/dist/iflow-engine.umd.js +569 -569
- package/dist/iflow-engine.umd.js.map +1 -1
- package/dist/{engine/src/locales → locales}/types.d.ts +8 -19
- package/dist/managers/engine-manager.d.ts +46 -0
- package/dist/{engine/src/managers → managers}/setting-dialog-manager.d.ts +32 -12
- package/package.json +2 -2
- package/dist/engine/src/managers/engine-manager.d.ts +0 -268
- /package/dist/{engine/src/bim-engine.d.ts → bim-engine.d.ts} +0 -0
- /package/dist/{engine/src/components → components}/ai-chat/index.d.ts +0 -0
- /package/dist/{engine/src/components → components}/ai-chat/types.d.ts +0 -0
- /package/dist/{engine/src/components → components}/button-group/index.d.ts +0 -0
- /package/dist/{engine/src/components → components}/button-group/index.type.d.ts +0 -0
- /package/dist/{engine/src/components → components}/button-group/toolbar/buttons/ai-chat/index.d.ts +0 -0
- /package/dist/{engine/src/components → components}/button-group/toolbar/buttons/fullscreen/index.d.ts +0 -0
- /package/dist/{engine/src/components → components}/button-group/toolbar/buttons/home/index.d.ts +0 -0
- /package/dist/{engine/src/components → components}/button-group/toolbar/buttons/info/icon.d.ts +0 -0
- /package/dist/{engine/src/components → components}/button-group/toolbar/buttons/info/index.d.ts +0 -0
- /package/dist/{engine/src/components → components}/button-group/toolbar/buttons/map/index.d.ts +0 -0
- /package/dist/{engine/src/components → components}/button-group/toolbar/buttons/measure/index.d.ts +0 -0
- /package/dist/{engine/src/components → components}/button-group/toolbar/buttons/property/index.d.ts +0 -0
- /package/dist/{engine/src/components → components}/button-group/toolbar/buttons/section/section-axis/index.d.ts +0 -0
- /package/dist/{engine/src/components → components}/button-group/toolbar/buttons/section/section-box/index.d.ts +0 -0
- /package/dist/{engine/src/components → components}/button-group/toolbar/buttons/section/section-menu/index.d.ts +0 -0
- /package/dist/{engine/src/components → components}/button-group/toolbar/buttons/section/section-plane/index.d.ts +0 -0
- /package/dist/{engine/src/components → components}/button-group/toolbar/buttons/setting/index.d.ts +0 -0
- /package/dist/{engine/src/components → components}/button-group/toolbar/buttons/walk/walk-bird/index.d.ts +0 -0
- /package/dist/{engine/src/components → components}/button-group/toolbar/buttons/walk/walk-menu/index.d.ts +0 -0
- /package/dist/{engine/src/components → components}/button-group/toolbar/buttons/walk/walk-person/index.d.ts +0 -0
- /package/dist/{engine/src/components → components}/button-group/toolbar/buttons/zoom-box/index.d.ts +0 -0
- /package/dist/{engine/src/components → components}/button-group/toolbar/index.d.ts +0 -0
- /package/dist/{engine/src/components → components}/collapse/index.d.ts +0 -0
- /package/dist/{engine/src/components → components}/collapse/types.d.ts +0 -0
- /package/dist/{engine/src/components → components}/description/index.d.ts +0 -0
- /package/dist/{engine/src/components → components}/description/types.d.ts +0 -0
- /package/dist/{engine/src/components → components}/dialog/index.d.ts +0 -0
- /package/dist/{engine/src/components → components}/dialog/index.type.d.ts +0 -0
- /package/dist/{engine/src/components → components}/engine/types.d.ts +0 -0
- /package/dist/{engine/src/components → components}/measure-panel/index.d.ts +0 -0
- /package/dist/{engine/src/components → components}/measure-panel/types.d.ts +0 -0
- /package/dist/{engine/src/components → components}/menu/buttons/four.d.ts +0 -0
- /package/dist/{engine/src/components → components}/menu/buttons/home.d.ts +0 -0
- /package/dist/{engine/src/components → components}/menu/buttons/info.d.ts +0 -0
- /package/dist/{engine/src/components → components}/menu/buttons/second.d.ts +0 -0
- /package/dist/{engine/src/components → components}/menu/index.d.ts +0 -0
- /package/dist/{engine/src/components → components}/menu/item.d.ts +0 -0
- /package/dist/{engine/src/components → components}/menu/types.d.ts +0 -0
- /package/dist/{engine/src/components → components}/right-key/index.d.ts +0 -0
- /package/dist/{engine/src/components → components}/right-key/types.d.ts +0 -0
- /package/dist/{engine/src/components → components}/section-axis-panel/index.d.ts +0 -0
- /package/dist/{engine/src/components → components}/section-axis-panel/types.d.ts +0 -0
- /package/dist/{engine/src/components → components}/section-box-panel/index.d.ts +0 -0
- /package/dist/{engine/src/components → components}/section-box-panel/types.d.ts +0 -0
- /package/dist/{engine/src/components → components}/section-plane-panel/index.d.ts +0 -0
- /package/dist/{engine/src/components → components}/section-plane-panel/types.d.ts +0 -0
- /package/dist/{engine/src/components → components}/tab/index.d.ts +0 -0
- /package/dist/{engine/src/components → components}/tab/index.type.d.ts +0 -0
- /package/dist/{engine/src/components → components}/tree/index.d.ts +0 -0
- /package/dist/{engine/src/components → components}/tree/tree-node.d.ts +0 -0
- /package/dist/{engine/src/components → components}/tree/types.d.ts +0 -0
- /package/dist/{engine/src/components → components}/walk-control-panel/index.d.ts +0 -0
- /package/dist/{engine/src/components → components}/walk-control-panel/types.d.ts +0 -0
- /package/dist/{engine/src/components → components}/walk-path-panel/index.d.ts +0 -0
- /package/dist/{engine/src/components → components}/walk-path-panel/types.d.ts +0 -0
- /package/dist/{engine/src/components → components}/walk-plan-view-panel/index.d.ts +0 -0
- /package/dist/{engine/src/core → core}/base-dialog-manager.d.ts +0 -0
- /package/dist/{engine/src/core → core}/event-emitter.d.ts +0 -0
- /package/dist/{engine/src/core → core}/manager-registry.d.ts +0 -0
- /package/dist/{engine/src/index.d.ts → index.d.ts} +0 -0
- /package/dist/{engine/src/locales → locales}/en-US.d.ts +0 -0
- /package/dist/{engine/src/locales → locales}/zh-CN.d.ts +0 -0
- /package/dist/{engine/src/managers → managers}/ai-chat-manager.d.ts +0 -0
- /package/dist/{engine/src/managers → managers}/button-group-manager.d.ts +0 -0
- /package/dist/{engine/src/managers → managers}/component-detail-manager.d.ts +0 -0
- /package/dist/{engine/src/managers → managers}/construct-tree-manager-btn.d.ts +0 -0
- /package/dist/{engine/src/managers → managers}/dialog-manager.d.ts +0 -0
- /package/dist/{engine/src/managers → managers}/engine-info-dialog-manager.d.ts +0 -0
- /package/dist/{engine/src/managers → managers}/measure-dialog-manager.d.ts +0 -0
- /package/dist/{engine/src/managers → managers}/right-key-manager.d.ts +0 -0
- /package/dist/{engine/src/managers → managers}/section-axis-dialog-manager.d.ts +0 -0
- /package/dist/{engine/src/managers → managers}/section-box-dialog-manager.d.ts +0 -0
- /package/dist/{engine/src/managers → managers}/section-plane-dialog-manager.d.ts +0 -0
- /package/dist/{engine/src/managers → managers}/toolbar-manager.d.ts +0 -0
- /package/dist/{engine/src/managers → managers}/walk-control-manager.d.ts +0 -0
- /package/dist/{engine/src/managers → managers}/walk-path-dialog-manager.d.ts +0 -0
- /package/dist/{engine/src/managers → managers}/walk-plan-view-dialog-manager.d.ts +0 -0
- /package/dist/{engine/src/services → services}/locale.d.ts +0 -0
- /package/dist/{engine/src/services → services}/theme.d.ts +0 -0
- /package/dist/{engine/src/themes → themes}/presets.d.ts +0 -0
- /package/dist/{engine/src/themes → themes}/types.d.ts +0 -0
- /package/dist/{engine/src/types → types}/component.d.ts +0 -0
- /package/dist/{engine/src/types → types}/events.d.ts +0 -0
- /package/dist/{engine/src/types → types}/measure.d.ts +0 -0
- /package/dist/{engine/src/utils → utils}/icon-manager.d.ts +0 -0
|
@@ -248,17 +248,6 @@ export interface TranslationDictionary {
|
|
|
248
248
|
};
|
|
249
249
|
/** 边线 */
|
|
250
250
|
edgeLine: string;
|
|
251
|
-
/** 显示地面 */
|
|
252
|
-
ground: string;
|
|
253
|
-
groundSize: string;
|
|
254
|
-
groundTypes: {
|
|
255
|
-
none: string;
|
|
256
|
-
concrete: string;
|
|
257
|
-
grass: string;
|
|
258
|
-
tile: string;
|
|
259
|
-
water: string;
|
|
260
|
-
wood: string;
|
|
261
|
-
};
|
|
262
251
|
/** 对比度 */
|
|
263
252
|
contrast: string;
|
|
264
253
|
/** 饱和度 */
|
|
@@ -267,14 +256,14 @@ export interface TranslationDictionary {
|
|
|
267
256
|
lightIntensity: string;
|
|
268
257
|
/** 环境背景 */
|
|
269
258
|
environment: string;
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
259
|
+
/** 显示背景 */
|
|
260
|
+
backgroundVisible: string;
|
|
261
|
+
/** 显示地面 */
|
|
262
|
+
ground: string;
|
|
263
|
+
/** 地面高度 */
|
|
264
|
+
groundElevation: string;
|
|
265
|
+
/** 地面高度单位 */
|
|
266
|
+
groundElevationUnit: string;
|
|
278
267
|
};
|
|
279
268
|
}
|
|
280
269
|
/**
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import { Engine, EngineOptions, ModelLoadOptions } from '../components/engine';
|
|
2
|
+
import { BaseManager } from '../core/base-manager';
|
|
3
|
+
import { RightKeyManager } from './right-key-manager';
|
|
4
|
+
import { ManagerRegistry } from '../core/manager-registry';
|
|
5
|
+
/**
|
|
6
|
+
* 3D 引擎管理器
|
|
7
|
+
* 封装底层 3D 引擎,提供模型加载、渲染控制等公共 API
|
|
8
|
+
*/
|
|
9
|
+
export declare class EngineManager extends BaseManager {
|
|
10
|
+
/** 容器元素 */
|
|
11
|
+
private container;
|
|
12
|
+
/** 引擎组件实例 */
|
|
13
|
+
private engineInstance;
|
|
14
|
+
/** 右键菜单管理器 */
|
|
15
|
+
rightKey: RightKeyManager | null;
|
|
16
|
+
constructor(container: HTMLElement, registry: ManagerRegistry);
|
|
17
|
+
/**
|
|
18
|
+
* 获取 Engine 组件实例
|
|
19
|
+
* 内部管理器通过此方法直接访问 Engine 组件的全部能力
|
|
20
|
+
* @returns Engine 组件实例,未初始化时返回 null
|
|
21
|
+
*/
|
|
22
|
+
getEngineComponent(): Engine | null;
|
|
23
|
+
/**
|
|
24
|
+
* 初始化 3D 引擎
|
|
25
|
+
* @param options 引擎配置选项
|
|
26
|
+
* @returns 是否初始化成功
|
|
27
|
+
*/
|
|
28
|
+
initialize(options?: Omit<EngineOptions, 'container'>): boolean;
|
|
29
|
+
/**
|
|
30
|
+
* 检查引擎是否已初始化
|
|
31
|
+
* @returns 是否已初始化
|
|
32
|
+
*/
|
|
33
|
+
isInitialized(): boolean;
|
|
34
|
+
/**
|
|
35
|
+
* 加载模型
|
|
36
|
+
* @param urls 模型 URL 数组
|
|
37
|
+
* @param options 加载选项
|
|
38
|
+
*/
|
|
39
|
+
loadModel(urls: string[], options?: ModelLoadOptions): void;
|
|
40
|
+
/** 暂停渲染 */
|
|
41
|
+
pauseRendering(): void;
|
|
42
|
+
/** 恢复渲染 */
|
|
43
|
+
resumeRendering(): void;
|
|
44
|
+
/** 销毁引擎管理器 */
|
|
45
|
+
destroy(): void;
|
|
46
|
+
}
|
|
@@ -2,7 +2,7 @@ import { BaseDialogManager } from '../core/base-dialog-manager';
|
|
|
2
2
|
import { ManagerRegistry } from '../core/manager-registry';
|
|
3
3
|
/**
|
|
4
4
|
* 设置弹窗管理器
|
|
5
|
-
*
|
|
5
|
+
* 管理全局设置面板,包含渲染模式、边线、光照/对比度/饱和度、环境背景、地面等设置项
|
|
6
6
|
*/
|
|
7
7
|
export declare class SettingDialogManager extends BaseDialogManager {
|
|
8
8
|
protected get dialogId(): string;
|
|
@@ -10,25 +10,38 @@ export declare class SettingDialogManager extends BaseDialogManager {
|
|
|
10
10
|
protected get dialogWidth(): number;
|
|
11
11
|
/** 边线开关状态 */
|
|
12
12
|
private edgeLineEnabled;
|
|
13
|
-
/**
|
|
14
|
-
private groundType;
|
|
15
|
-
/** 地面大小 */
|
|
16
|
-
private groundSize;
|
|
17
|
-
/** 对比度(0-200,100为默认值) */
|
|
13
|
+
/** 对比度(0-100,50为默认值) */
|
|
18
14
|
private contrastValue;
|
|
19
|
-
/** 饱和度(0-
|
|
15
|
+
/** 饱和度(0-100,50为默认值) */
|
|
20
16
|
private saturationValue;
|
|
21
|
-
/** 光照强度(0-
|
|
17
|
+
/** 光照强度(0-100,50为默认值) */
|
|
22
18
|
private lightIntensityValue;
|
|
23
|
-
/**
|
|
24
|
-
private
|
|
19
|
+
/** 环境背景列表(从底层引擎动态获取) */
|
|
20
|
+
private environmentList;
|
|
21
|
+
/** 当前选中的环境背景 ID */
|
|
22
|
+
private environmentId;
|
|
23
|
+
/** 是否显示背景 */
|
|
24
|
+
private backgroundVisible;
|
|
25
|
+
/** 地面列表(从底层引擎动态获取) */
|
|
26
|
+
private groundList;
|
|
27
|
+
/** 当前选中的地面 ID */
|
|
28
|
+
private groundId;
|
|
29
|
+
/** 地面高度(单位:m) */
|
|
30
|
+
private groundElevation;
|
|
31
|
+
/** 保存的对话框位置(用于 hide/show 时保持位置不变) */
|
|
32
|
+
private savedPosition;
|
|
25
33
|
constructor(registry: ManagerRegistry);
|
|
26
34
|
init(): void;
|
|
27
|
-
/**
|
|
35
|
+
/** 对话框位置:若有保存的位置则恢复,否则居中 */
|
|
28
36
|
protected getDialogPosition(): {
|
|
29
37
|
x: number;
|
|
30
38
|
y: number;
|
|
31
39
|
};
|
|
40
|
+
/**
|
|
41
|
+
* 从底层引擎加载当前状态(回显)
|
|
42
|
+
* 在 createContent() 前调用,保证 UI 和引擎状态同步
|
|
43
|
+
*/
|
|
44
|
+
private loadEngineState;
|
|
32
45
|
protected createContent(): HTMLElement;
|
|
33
46
|
/** 创建分隔线 */
|
|
34
47
|
private createDivider;
|
|
@@ -50,7 +63,7 @@ export declare class SettingDialogManager extends BaseDialogManager {
|
|
|
50
63
|
* 使用 ::-webkit-slider-thumb / ::-moz-range-thumb 伪元素
|
|
51
64
|
*/
|
|
52
65
|
private ensureSliderStyle;
|
|
53
|
-
/**
|
|
66
|
+
/** 创建环境背景区 */
|
|
54
67
|
private createEnvironmentSection;
|
|
55
68
|
/** 创建地面设置区 */
|
|
56
69
|
private createGroundSection;
|
|
@@ -61,4 +74,11 @@ export declare class SettingDialogManager extends BaseDialogManager {
|
|
|
61
74
|
* @param onChange 选中变化回调
|
|
62
75
|
*/
|
|
63
76
|
private createSelect;
|
|
77
|
+
/**
|
|
78
|
+
* 创建一个标签 + 开关的行
|
|
79
|
+
* @param labelText 标签文本
|
|
80
|
+
* @param enabled 当前开关状态
|
|
81
|
+
* @param onChange 状态变化回调
|
|
82
|
+
*/
|
|
83
|
+
private createToggleRow;
|
|
64
84
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "iflow-engine",
|
|
3
|
-
"version": "1.3.
|
|
3
|
+
"version": "1.3.3",
|
|
4
4
|
"description": "iFlow Engine SDK for Vue2, Vue3, React and HTML",
|
|
5
5
|
"main": "./dist/iflow-engine.umd.js",
|
|
6
6
|
"module": "./dist/iflow-engine.es.js",
|
|
@@ -59,7 +59,7 @@
|
|
|
59
59
|
"vite-plugin-dts": "^4.5.4"
|
|
60
60
|
},
|
|
61
61
|
"dependencies": {
|
|
62
|
-
"iflow-engine-base": "^2.0.
|
|
62
|
+
"iflow-engine-base": "^2.0.6",
|
|
63
63
|
"three": "^0.182.0"
|
|
64
64
|
}
|
|
65
65
|
}
|
|
@@ -1,268 +0,0 @@
|
|
|
1
|
-
import { EngineOptions, ModelLoadOptions, EngineInfo } from '../components/engine';
|
|
2
|
-
import { BaseManager } from '../core/base-manager';
|
|
3
|
-
import { RightKeyManager } from './right-key-manager';
|
|
4
|
-
import { MeasureMode, ClearHeightDirection, ClearHeightSelectType } from '../types/measure';
|
|
5
|
-
import { MeasureUnit, MeasurePrecision } from '../components/measure-panel/types';
|
|
6
|
-
import { SectionBoxRange } from '../components/section-box-panel/types';
|
|
7
|
-
import { ManagerRegistry } from '../core/manager-registry';
|
|
8
|
-
/**
|
|
9
|
-
* 3D 引擎管理器
|
|
10
|
-
* 封装底层 3D 引擎,提供模型加载、相机控制、测量等功能
|
|
11
|
-
*/
|
|
12
|
-
export declare class EngineManager extends BaseManager {
|
|
13
|
-
/** 容器元素 */
|
|
14
|
-
private container;
|
|
15
|
-
/** 引擎实例 */
|
|
16
|
-
private engineInstance;
|
|
17
|
-
/** 右键菜单管理器 */
|
|
18
|
-
rightKey: RightKeyManager | null;
|
|
19
|
-
constructor(container: HTMLElement, registry: ManagerRegistry);
|
|
20
|
-
/**
|
|
21
|
-
* 初始化 3D 引擎
|
|
22
|
-
* @param options 引擎配置选项
|
|
23
|
-
* @returns 是否初始化成功
|
|
24
|
-
*/
|
|
25
|
-
initialize(options?: Omit<EngineOptions, 'container'>): boolean;
|
|
26
|
-
/**
|
|
27
|
-
* 检查引擎是否已初始化
|
|
28
|
-
* @returns 是否已初始化
|
|
29
|
-
*/
|
|
30
|
-
isInitialized(): boolean;
|
|
31
|
-
/**
|
|
32
|
-
* 加载模型
|
|
33
|
-
* @param urls 模型 URL 数组
|
|
34
|
-
* @param options 加载选项
|
|
35
|
-
*/
|
|
36
|
-
loadModel(urls: string[], options?: ModelLoadOptions): void;
|
|
37
|
-
/**
|
|
38
|
-
* 获取底层引擎实例
|
|
39
|
-
* @returns 引擎实例
|
|
40
|
-
*/
|
|
41
|
-
getEngine(): any;
|
|
42
|
-
/** 相机回到初始位置 */
|
|
43
|
-
CameraGoHome(): void;
|
|
44
|
-
/** 暂停渲染 */
|
|
45
|
-
pauseRendering(): void;
|
|
46
|
-
/** 恢复渲染 */
|
|
47
|
-
resumeRendering(): void;
|
|
48
|
-
/**
|
|
49
|
-
* 激活测量模式
|
|
50
|
-
* @param mode 测量模式
|
|
51
|
-
*/
|
|
52
|
-
activateMeasure(mode: MeasureMode): void;
|
|
53
|
-
/** 停用测量模式 */
|
|
54
|
-
deactivateMeasure(): void;
|
|
55
|
-
/**
|
|
56
|
-
* 获取当前测量类型
|
|
57
|
-
* @returns 当前测量模式
|
|
58
|
-
*/
|
|
59
|
-
getCurrentMeasureType(): MeasureMode | null;
|
|
60
|
-
clearAllMeasures(): void;
|
|
61
|
-
saveMeasureSetting(setting: {
|
|
62
|
-
unit: MeasureUnit;
|
|
63
|
-
precision: MeasurePrecision;
|
|
64
|
-
}): void;
|
|
65
|
-
/**
|
|
66
|
-
* 设置净高测量朝向
|
|
67
|
-
* @param direction 0=朝下,1=朝上
|
|
68
|
-
*/
|
|
69
|
-
setClearHeightDirection(direction: ClearHeightDirection): void;
|
|
70
|
-
/**
|
|
71
|
-
* 设置净高测量选择对象类型
|
|
72
|
-
* @param selectType 'point'=选择点,'element'=选择构件
|
|
73
|
-
*/
|
|
74
|
-
setClearHeightSelectType(selectType: ClearHeightSelectType): void;
|
|
75
|
-
activeSection(mode: 'x' | 'y' | 'z' | 'box' | 'face'): void;
|
|
76
|
-
/**
|
|
77
|
-
* 获取当前激活的剖切模式
|
|
78
|
-
* @returns 当前剖切模式,未激活时返回 null
|
|
79
|
-
*/
|
|
80
|
-
getCurrentSectionMode(): 'x' | 'y' | 'z' | 'box' | 'face' | null;
|
|
81
|
-
/**
|
|
82
|
-
* 停用所有剖切功能
|
|
83
|
-
* @remarks 关闭剖切对话框时调用
|
|
84
|
-
*/
|
|
85
|
-
deactivateSection(): void;
|
|
86
|
-
/**
|
|
87
|
-
* 设置剖切盒范围
|
|
88
|
-
* @param range 各轴的剖切范围 (百分比 0-100)
|
|
89
|
-
* @remarks 仅在 'box' 模式下有效
|
|
90
|
-
*/
|
|
91
|
-
setSectionBoxRange(range: SectionBoxRange): void;
|
|
92
|
-
/**
|
|
93
|
-
* 隐藏剖切面(临时隐藏,可恢复)
|
|
94
|
-
* @remarks 配合 recoverSection() 使用
|
|
95
|
-
*/
|
|
96
|
-
hideSection(): void;
|
|
97
|
-
/**
|
|
98
|
-
* 恢复剖切面(从隐藏状态恢复)
|
|
99
|
-
* @remarks 恢复被 hideSection() 隐藏的剖切面
|
|
100
|
-
*/
|
|
101
|
-
recoverSection(): void;
|
|
102
|
-
fitSectionBoxToModel(): void;
|
|
103
|
-
/**
|
|
104
|
-
* 剖切盒适应(缩放到场景整体包围盒)
|
|
105
|
-
* @remarks 对接底层 clipping.scaleBox()
|
|
106
|
-
*/
|
|
107
|
-
scaleSectionBox(): void;
|
|
108
|
-
/**
|
|
109
|
-
* 反向剖切
|
|
110
|
-
* @remarks 对接底层 clipping.reverse()
|
|
111
|
-
*/
|
|
112
|
-
reverseSection(): void;
|
|
113
|
-
/** 激活框选放大功能 */
|
|
114
|
-
activateZoomBox(): void;
|
|
115
|
-
/** 激活第一人称漫游模式 */
|
|
116
|
-
activateFirstPersonMode(): void;
|
|
117
|
-
/** 停用第一人称漫游模式 */
|
|
118
|
-
deactivateFirstPersonMode(): void;
|
|
119
|
-
setWalkSpeed(speed: number): void;
|
|
120
|
-
setWalkGravity(enabled: boolean): void;
|
|
121
|
-
setWalkCollision(enabled: boolean): void;
|
|
122
|
-
toggleMiniMap(): void;
|
|
123
|
-
/**
|
|
124
|
-
* 获取小地图显示状态
|
|
125
|
-
* @returns true=显示,false=隐藏
|
|
126
|
-
*/
|
|
127
|
-
getMiniMapState(): boolean;
|
|
128
|
-
isFirstPersonModeActive(): boolean;
|
|
129
|
-
/**
|
|
130
|
-
* 获取当前选中的构件
|
|
131
|
-
* @returns 选中构件的 URL 和 ID,未选中时返回 null
|
|
132
|
-
*/
|
|
133
|
-
getSelectedComponent(): {
|
|
134
|
-
url: string;
|
|
135
|
-
id: string;
|
|
136
|
-
} | null;
|
|
137
|
-
/**
|
|
138
|
-
* 获取构件属性
|
|
139
|
-
* @param url 模型 URL
|
|
140
|
-
* @param id 构件 ID
|
|
141
|
-
* @param callback 回调函数,接收属性数据
|
|
142
|
-
*/
|
|
143
|
-
getComponentProperties(url: string, id: string, callback: (data: any) => void): void;
|
|
144
|
-
getTypeTreeData(): any[];
|
|
145
|
-
getLevelTreeData(): any[];
|
|
146
|
-
getMajorTreeData(): any[];
|
|
147
|
-
getEngineInfo(): EngineInfo | null;
|
|
148
|
-
/**
|
|
149
|
-
* 添加漫游点
|
|
150
|
-
* 将当前相机位置添加为一个漫游点
|
|
151
|
-
*/
|
|
152
|
-
pathRoamingAddPoint(): void;
|
|
153
|
-
/**
|
|
154
|
-
* 删除指定索引的漫游点
|
|
155
|
-
* @param index 要删除的漫游点索引
|
|
156
|
-
*/
|
|
157
|
-
pathRoamingRemovePoint(index: number): void;
|
|
158
|
-
/**
|
|
159
|
-
* 清除所有漫游点
|
|
160
|
-
*/
|
|
161
|
-
pathRoamingClearPoints(): void;
|
|
162
|
-
/**
|
|
163
|
-
* 获取所有漫游点
|
|
164
|
-
* @returns 漫游点数组
|
|
165
|
-
*/
|
|
166
|
-
pathRoamingGetPoints(): any[];
|
|
167
|
-
/**
|
|
168
|
-
* 跳转到指定漫游点
|
|
169
|
-
* @param index 目标漫游点索引
|
|
170
|
-
*/
|
|
171
|
-
pathRoamingJumpToPoint(index: number): void;
|
|
172
|
-
/**
|
|
173
|
-
* 播放漫游
|
|
174
|
-
* @param options 播放选项,包含时长、循环、回调等配置
|
|
175
|
-
*/
|
|
176
|
-
pathRoamingPlay(options?: {
|
|
177
|
-
duration?: number;
|
|
178
|
-
loop?: boolean;
|
|
179
|
-
onComplete?: () => void;
|
|
180
|
-
onPointComplete?: (pointIndex: number) => void;
|
|
181
|
-
}): void;
|
|
182
|
-
/**
|
|
183
|
-
* 停止漫游
|
|
184
|
-
*/
|
|
185
|
-
pathRoamingStop(): void;
|
|
186
|
-
/**
|
|
187
|
-
* 获取当前高亮(选中)的模型
|
|
188
|
-
* @returns 高亮模型对象,未选中时返回 null
|
|
189
|
-
*/
|
|
190
|
-
getHighlightModels(): any;
|
|
191
|
-
/**
|
|
192
|
-
* 高亮指定模型构件
|
|
193
|
-
*
|
|
194
|
-
* @param models - 要高亮的模型数组,格式: [{ url: string, ids: string[] }]
|
|
195
|
-
*
|
|
196
|
-
* @example
|
|
197
|
-
* manager.highlightModel([
|
|
198
|
-
* { url: 'https://xxx/models/xxx/', ids: [350518, 350520] }
|
|
199
|
-
* ]);
|
|
200
|
-
*/
|
|
201
|
-
highlightModel(models: {
|
|
202
|
-
url: string;
|
|
203
|
-
ids: number[];
|
|
204
|
-
}[]): void;
|
|
205
|
-
unhighlightAllModels(): void;
|
|
206
|
-
viewScaleToModel(models: {
|
|
207
|
-
url: string;
|
|
208
|
-
ids: number[];
|
|
209
|
-
}[]): void;
|
|
210
|
-
hideModels(models: {
|
|
211
|
-
url: string;
|
|
212
|
-
ids: number[];
|
|
213
|
-
}[]): void;
|
|
214
|
-
showModel(models: {
|
|
215
|
-
url: string;
|
|
216
|
-
ids: number[];
|
|
217
|
-
}[]): void;
|
|
218
|
-
/**
|
|
219
|
-
* 半透明指定模型
|
|
220
|
-
* @param models 要半透明的模型对象
|
|
221
|
-
*/
|
|
222
|
-
translucentModels(models: any): void;
|
|
223
|
-
/**
|
|
224
|
-
* 取消半透明
|
|
225
|
-
*/
|
|
226
|
-
unTranslucentModel(): void;
|
|
227
|
-
/**
|
|
228
|
-
* 隔离指定模型(隐藏其他)
|
|
229
|
-
* @param models 要隔离的模型对象
|
|
230
|
-
*/
|
|
231
|
-
isolateModels(models: any): void;
|
|
232
|
-
/**
|
|
233
|
-
* 半透明其他构件
|
|
234
|
-
* @param models 基准模型对象
|
|
235
|
-
*/
|
|
236
|
-
translucentOtherModels(models: any): void;
|
|
237
|
-
/**
|
|
238
|
-
* 显示所有模型
|
|
239
|
-
*/
|
|
240
|
-
showAllModels(): void;
|
|
241
|
-
/**
|
|
242
|
-
* 批量选择同类模型
|
|
243
|
-
* @param models 基准模型对象
|
|
244
|
-
*/
|
|
245
|
-
batchSelectSameTypeModel(models: any): void;
|
|
246
|
-
/**
|
|
247
|
-
* 批量选择同层模型
|
|
248
|
-
* @param models 基准模型对象
|
|
249
|
-
*/
|
|
250
|
-
batchSelectSameLevelModel(models: any): void;
|
|
251
|
-
/**
|
|
252
|
-
* 批量选择同层同类模型
|
|
253
|
-
* @param models 基准模型对象
|
|
254
|
-
*/
|
|
255
|
-
batchSelectSameLevelTypeModel(models: any): void;
|
|
256
|
-
/**
|
|
257
|
-
* 获取当前渲染模式
|
|
258
|
-
* @returns 'simple' | 'balance' | 'advanced'
|
|
259
|
-
*/
|
|
260
|
-
getRenderMode(): string;
|
|
261
|
-
/**
|
|
262
|
-
* 设置渲染模式
|
|
263
|
-
* @param mode 'simple' | 'balance' | 'advanced'
|
|
264
|
-
*/
|
|
265
|
-
setRenderMode(mode: 'simple' | 'balance' | 'advanced'): void;
|
|
266
|
-
/** 销毁引擎管理器 */
|
|
267
|
-
destroy(): void;
|
|
268
|
-
}
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
/package/dist/{engine/src/components → components}/button-group/toolbar/buttons/ai-chat/index.d.ts
RENAMED
|
File without changes
|
|
File without changes
|
/package/dist/{engine/src/components → components}/button-group/toolbar/buttons/home/index.d.ts
RENAMED
|
File without changes
|
/package/dist/{engine/src/components → components}/button-group/toolbar/buttons/info/icon.d.ts
RENAMED
|
File without changes
|
/package/dist/{engine/src/components → components}/button-group/toolbar/buttons/info/index.d.ts
RENAMED
|
File without changes
|
/package/dist/{engine/src/components → components}/button-group/toolbar/buttons/map/index.d.ts
RENAMED
|
File without changes
|
/package/dist/{engine/src/components → components}/button-group/toolbar/buttons/measure/index.d.ts
RENAMED
|
File without changes
|
/package/dist/{engine/src/components → components}/button-group/toolbar/buttons/property/index.d.ts
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
/package/dist/{engine/src/components → components}/button-group/toolbar/buttons/setting/index.d.ts
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
/package/dist/{engine/src/components → components}/button-group/toolbar/buttons/zoom-box/index.d.ts
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|