iflow-engine 1.2.0 → 1.2.1
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/index.d.ts +16 -1
- package/dist/components/measure-panel/index.d.ts +16 -0
- package/dist/components/measure-panel/types.d.ts +12 -2
- package/dist/components/right-key/index.d.ts +3 -0
- package/dist/iflow-engine.es.js +10931 -9922
- package/dist/iflow-engine.es.js.map +1 -1
- package/dist/iflow-engine.umd.js +240 -187
- package/dist/iflow-engine.umd.js.map +1 -1
- package/dist/locales/types.d.ts +38 -0
- package/dist/managers/engine-manager.d.ts +16 -1
- package/dist/managers/setting-dialog-manager.d.ts +50 -0
- package/dist/types/measure.d.ts +8 -4
- package/package.json +3 -3
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ThemeConfig } from '../../themes/types';
|
|
2
2
|
import { IBimComponent } from '../../types/component';
|
|
3
3
|
import { EngineOptions, ModelLoadOptions, EngineInfo } from './types';
|
|
4
|
-
import { MeasureMode } from '../../types/measure';
|
|
4
|
+
import { MeasureMode, ClearHeightDirection, ClearHeightSelectType } from '../../types/measure';
|
|
5
5
|
import { MeasureUnit, MeasurePrecision } from '../measure-panel/types';
|
|
6
6
|
import { SectionBoxRange } from '../section-box-panel/types';
|
|
7
7
|
import { ManagerRegistry } from '../../core/manager-registry';
|
|
@@ -132,6 +132,16 @@ export declare class Engine implements IBimComponent {
|
|
|
132
132
|
unit: MeasureUnit;
|
|
133
133
|
precision: MeasurePrecision;
|
|
134
134
|
}): void;
|
|
135
|
+
/**
|
|
136
|
+
* 设置净高测量朝向
|
|
137
|
+
* @param direction 0=朝下,1=朝上
|
|
138
|
+
*/
|
|
139
|
+
setClearHeightDirection(direction: ClearHeightDirection): void;
|
|
140
|
+
/**
|
|
141
|
+
* 设置净高测量选择对象类型
|
|
142
|
+
* @param selectType 'point'=选择点,'element'=选择构件
|
|
143
|
+
*/
|
|
144
|
+
setClearHeightSelectType(selectType: ClearHeightSelectType): void;
|
|
135
145
|
/**
|
|
136
146
|
* 激活剖切功能(统一入口)
|
|
137
147
|
* @param mode 剖切模式
|
|
@@ -287,6 +297,11 @@ export declare class Engine implements IBimComponent {
|
|
|
287
297
|
* 切换小地图显示状态
|
|
288
298
|
*/
|
|
289
299
|
toggleMiniMap(): void;
|
|
300
|
+
/**
|
|
301
|
+
* 获取小地图显示状态
|
|
302
|
+
* @returns true=显示,false=隐藏
|
|
303
|
+
*/
|
|
304
|
+
getMiniMapState(): boolean;
|
|
290
305
|
/**
|
|
291
306
|
* 获取漫游模式是否激活
|
|
292
307
|
* @returns 是否处于漫游模式
|
|
@@ -21,6 +21,8 @@ export declare class MeasurePanel implements IBimComponent {
|
|
|
21
21
|
private activeMode;
|
|
22
22
|
private isExpanded;
|
|
23
23
|
private result;
|
|
24
|
+
private clearHeightDirection;
|
|
25
|
+
private clearHeightSelectType;
|
|
24
26
|
/**
|
|
25
27
|
* 测量配置(单位/精度)
|
|
26
28
|
* 说明:
|
|
@@ -51,6 +53,9 @@ export declare class MeasurePanel implements IBimComponent {
|
|
|
51
53
|
private xyzZEl;
|
|
52
54
|
private clearBtn;
|
|
53
55
|
private settingsBtn;
|
|
56
|
+
private modeOptionsEl;
|
|
57
|
+
private directionBtns;
|
|
58
|
+
private selectTypeBtns;
|
|
54
59
|
private mainViewEl;
|
|
55
60
|
private settingsViewEl;
|
|
56
61
|
private unitSelectEl;
|
|
@@ -124,6 +129,17 @@ export declare class MeasurePanel implements IBimComponent {
|
|
|
124
129
|
* 创建“设置面板”DOM
|
|
125
130
|
*/
|
|
126
131
|
private createSettingsDom;
|
|
132
|
+
/**
|
|
133
|
+
* 创建净高模式选项区 DOM(朝向 + 选择对象)
|
|
134
|
+
*/
|
|
135
|
+
private createModeOptionsDom;
|
|
136
|
+
private createRadioItem;
|
|
137
|
+
private setClearHeightDirection;
|
|
138
|
+
private setClearHeightSelectType;
|
|
139
|
+
/**
|
|
140
|
+
* 应用净高选项状态(显隐 + 选中态)
|
|
141
|
+
*/
|
|
142
|
+
private applyClearHeightOptionsState;
|
|
127
143
|
private makeOption;
|
|
128
144
|
private makePrecisionOption;
|
|
129
145
|
/**
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { MeasureMode } from '../../types/measure';
|
|
2
|
-
export type { MeasureMode };
|
|
1
|
+
import { MeasureMode, ClearHeightDirection, ClearHeightSelectType } from '../../types/measure';
|
|
2
|
+
export type { MeasureMode, ClearHeightDirection, ClearHeightSelectType };
|
|
3
3
|
/**
|
|
4
4
|
* 距离/标高等“长度类”单位
|
|
5
5
|
*/
|
|
@@ -84,4 +84,14 @@ export interface MeasurePanelOptions {
|
|
|
84
84
|
* 说明:用户点击"保存设置"时触发,用于同步到引擎
|
|
85
85
|
*/
|
|
86
86
|
onConfigSave?: (config: MeasureConfig) => void;
|
|
87
|
+
/**
|
|
88
|
+
* 净高朝向变更回调
|
|
89
|
+
* @param direction 0=朝下,1=朝上
|
|
90
|
+
*/
|
|
91
|
+
onClearHeightDirectionChange?: (direction: ClearHeightDirection) => void;
|
|
92
|
+
/**
|
|
93
|
+
* 净高选择对象变更回调
|
|
94
|
+
* @param selectType 'point'=选择点,'element'=选择构件
|
|
95
|
+
*/
|
|
96
|
+
onClearHeightSelectTypeChange?: (selectType: ClearHeightSelectType) => void;
|
|
87
97
|
}
|
|
@@ -13,7 +13,10 @@ export declare class BimRightKey implements IBimComponent {
|
|
|
13
13
|
private onCloseCallback?;
|
|
14
14
|
private options?;
|
|
15
15
|
private mouseDownTime;
|
|
16
|
+
private mouseDownX;
|
|
17
|
+
private mouseDownY;
|
|
16
18
|
private readonly CLICK_THRESHOLD;
|
|
19
|
+
private readonly MOVE_THRESHOLD;
|
|
17
20
|
constructor(options?: RightKeyOptions);
|
|
18
21
|
init(): void;
|
|
19
22
|
setTheme(_theme: ThemeConfig): void;
|