@soonspacejs/plugin-cps-soonmanager 2.13.9 → 2.13.11
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/License/decrypt-v1.d.ts +2 -2
- package/dist/License/decrypt-v2.d.ts +3 -3
- package/dist/License/encryptInfo.d.ts +16 -16
- package/dist/License/types.d.ts +8 -8
- package/dist/WaterMark/index.d.ts +31 -31
- package/dist/batch-update-poi/index.d.ts +15 -15
- package/dist/batch-update-poi/types.d.ts +15 -16
- package/dist/batch-update-poi/utils.d.ts +18 -18
- package/dist/constants.d.ts +48 -48
- package/dist/data-source/index.d.ts +15 -15
- package/dist/data-source/request-types.d.ts +193 -193
- package/dist/data-source/types.d.ts +37 -37
- package/dist/data-source/utils/http-request.d.ts +72 -72
- package/dist/data-source/utils/http.d.ts +4 -4
- package/dist/data-source/utils/index.d.ts +4 -4
- package/dist/data-source/utils/mqtt.d.ts +4 -4
- package/dist/data-source/utils/socket.d.ts +4 -4
- package/dist/data-source/utils/utils.d.ts +18 -18
- package/dist/index.d.ts +255 -255
- package/dist/index.esm.js +4 -4
- package/dist/types.d.ts +338 -338
- package/dist/update-poi/index.d.ts +11 -11
- package/dist/update-poi/type.d.ts +7 -7
- package/dist/utils.d.ts +23 -23
- package/package.json +7 -7
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import { RequestHttpIntervalEnum, RequestParamsObjType, SourceEnvListInterface } from '../request-types';
|
|
2
|
-
export declare function has<T>(object: T, key: string): boolean;
|
|
3
|
-
export declare function isNumber(value: any):
|
|
4
|
-
export declare function isObject(value: any): boolean;
|
|
5
|
-
export declare function getEnvUrl(env: SourceEnvListInterface): string;
|
|
6
|
-
export declare function intervalUnitHandle(num: number, unit: RequestHttpIntervalEnum): number;
|
|
7
|
-
export declare function encodeFormData(data: RequestParamsObjType): string;
|
|
8
|
-
export declare function toString(str: any): any;
|
|
9
|
-
/**
|
|
10
|
-
* * 函数过滤器
|
|
11
|
-
* @param data 数据值
|
|
12
|
-
* @param funcStr 函数字符串
|
|
13
|
-
* @param toString 转为字符串
|
|
14
|
-
* @param errorCallBack 错误回调函数
|
|
15
|
-
* @param successCallBack 成功回调函数
|
|
16
|
-
* @returns
|
|
17
|
-
*/
|
|
18
|
-
export declare function newFunctionHandle(data: any, funcStr: string, extractData?: boolean, isToString?: boolean, errorCallBack?: (s: any) => void, successCallBack?: (s: any) => void): any;
|
|
1
|
+
import { RequestHttpIntervalEnum, RequestParamsObjType, SourceEnvListInterface } from '../request-types';
|
|
2
|
+
export declare function has<T>(object: T, key: string): boolean;
|
|
3
|
+
export declare function isNumber(value: any): value is number;
|
|
4
|
+
export declare function isObject(value: any): boolean;
|
|
5
|
+
export declare function getEnvUrl(env: SourceEnvListInterface): string;
|
|
6
|
+
export declare function intervalUnitHandle(num: number, unit: RequestHttpIntervalEnum): number;
|
|
7
|
+
export declare function encodeFormData(data: RequestParamsObjType): string;
|
|
8
|
+
export declare function toString(str: any): any;
|
|
9
|
+
/**
|
|
10
|
+
* * 函数过滤器
|
|
11
|
+
* @param data 数据值
|
|
12
|
+
* @param funcStr 函数字符串
|
|
13
|
+
* @param toString 转为字符串
|
|
14
|
+
* @param errorCallBack 错误回调函数
|
|
15
|
+
* @param successCallBack 成功回调函数
|
|
16
|
+
* @returns
|
|
17
|
+
*/
|
|
18
|
+
export declare function newFunctionHandle(data: any, funcStr: string, extractData?: boolean, isToString?: boolean, errorCallBack?: (s: any) => void, successCallBack?: (s: any) => void): any;
|
package/dist/index.d.ts
CHANGED
|
@@ -1,255 +1,255 @@
|
|
|
1
|
-
import SoonSpace, { TopologyNodeInfo } from 'soonspacejs';
|
|
2
|
-
import type { BaseObject3D, Group, TopologyInfo } from 'soonspacejs';
|
|
3
|
-
import { PoiNodeData } from '@soonspacejs/plugin-poi-renderer';
|
|
4
|
-
import EffectPlugin from '@soonspacejs/plugin-effect';
|
|
5
|
-
import AtmospherePlugin from '@soonspacejs/plugin-atmosphere';
|
|
6
|
-
import SoonFlow from '@soonflow/core';
|
|
7
|
-
import { AnimationPlayer } from 'umanager-animation-parser';
|
|
8
|
-
import { EventDispatcher } from 'three';
|
|
9
|
-
import { IMetadata, ITreeData, IInnerTreeData, IPoiData, ITopologyPath, ILoadSceneOptions, TPropertiesMap, TAnimationsMap, IPlayAnimationByIdOptions, TModelVisionsMap, IPresetEffectsOptions, TSpacesMap, ConstructorOptions, ISpaces, IFlatData, IProgress, IProgressEventMap } from './types';
|
|
10
|
-
declare class CpsSoonmanagerPlugin extends EventDispatcher<IProgressEventMap> {
|
|
11
|
-
#private;
|
|
12
|
-
readonly ssp: SoonSpace;
|
|
13
|
-
get path(): string;
|
|
14
|
-
set path(val: string);
|
|
15
|
-
progress: IProgress;
|
|
16
|
-
/**
|
|
17
|
-
* 场景 group 包裹
|
|
18
|
-
*/
|
|
19
|
-
sceneGroup: Group | null;
|
|
20
|
-
/**
|
|
21
|
-
* 场景元数据
|
|
22
|
-
*/
|
|
23
|
-
metaData: IMetadata | null;
|
|
24
|
-
/**
|
|
25
|
-
* 模型树
|
|
26
|
-
*/
|
|
27
|
-
treeData: ITreeData[] | null;
|
|
28
|
-
/**
|
|
29
|
-
* 扁平化模型树
|
|
30
|
-
*/
|
|
31
|
-
flatData: IFlatData[] | null;
|
|
32
|
-
faltDataMap: Map<string, IFlatData[]> | null;
|
|
33
|
-
/**
|
|
34
|
-
* poi 数据
|
|
35
|
-
*/
|
|
36
|
-
poiData: IPoiData[] | null;
|
|
37
|
-
/**
|
|
38
|
-
* 数据源
|
|
39
|
-
*/
|
|
40
|
-
dataSourceData: any | null;
|
|
41
|
-
/**
|
|
42
|
-
* 拓扑路径
|
|
43
|
-
*/
|
|
44
|
-
topologyData: TopologyInfo[] | null;
|
|
45
|
-
/**
|
|
46
|
-
* 自定义属性
|
|
47
|
-
*/
|
|
48
|
-
propertiesData: TPropertiesMap | null;
|
|
49
|
-
objectsAnimations: Map<string, Set<AnimationPlayer>>;
|
|
50
|
-
/**
|
|
51
|
-
* 动画
|
|
52
|
-
*/
|
|
53
|
-
animationsData: TAnimationsMap | null;
|
|
54
|
-
/**
|
|
55
|
-
* 模型视角
|
|
56
|
-
*/
|
|
57
|
-
modelVisionsData: TModelVisionsMap | null;
|
|
58
|
-
/**
|
|
59
|
-
* 空间数据
|
|
60
|
-
*/
|
|
61
|
-
spacesData: TSpacesMap | null;
|
|
62
|
-
/**
|
|
63
|
-
* effect 插件
|
|
64
|
-
*/
|
|
65
|
-
effectPlugin: EffectPlugin;
|
|
66
|
-
/**
|
|
67
|
-
* atomsphere 插件
|
|
68
|
-
*/
|
|
69
|
-
atmospherePlugin: AtmospherePlugin;
|
|
70
|
-
/**
|
|
71
|
-
* 流程引擎实咧
|
|
72
|
-
*/
|
|
73
|
-
soonflow: SoonFlow;
|
|
74
|
-
/**
|
|
75
|
-
* 流程数据
|
|
76
|
-
*/
|
|
77
|
-
flowData: any[] | null;
|
|
78
|
-
constructor(ssp: SoonSpace, option?: ConstructorOptions);
|
|
79
|
-
/**
|
|
80
|
-
* 设置 key
|
|
81
|
-
* @param key
|
|
82
|
-
*/
|
|
83
|
-
setKey(key: string): void;
|
|
84
|
-
/**
|
|
85
|
-
* 获取场景元数据
|
|
86
|
-
*/
|
|
87
|
-
fetchMetaData(): Promise<IMetadata>;
|
|
88
|
-
/**
|
|
89
|
-
* 获取场景树(旧版资源包使用)
|
|
90
|
-
* @returns
|
|
91
|
-
*/
|
|
92
|
-
fetchTreeData(): Promise<IInnerTreeData[]>;
|
|
93
|
-
fetchFlatData(): Promise<IFlatData[]>;
|
|
94
|
-
/**
|
|
95
|
-
* 获取 Poi 数据
|
|
96
|
-
* @returns
|
|
97
|
-
*/
|
|
98
|
-
fetchPoiData(): Promise<IPoiData[]>;
|
|
99
|
-
/**
|
|
100
|
-
* 获取数据源数据
|
|
101
|
-
* @returns
|
|
102
|
-
*/
|
|
103
|
-
fetchDataSourceData(): Promise<any>;
|
|
104
|
-
/**
|
|
105
|
-
* 获取拓扑路径
|
|
106
|
-
* @returns
|
|
107
|
-
*/
|
|
108
|
-
fetchTopologyData(): Promise<ITopologyPath[]>;
|
|
109
|
-
/**
|
|
110
|
-
* 获取自定义属性
|
|
111
|
-
* @returns
|
|
112
|
-
*/
|
|
113
|
-
fetchPropertiesData(): Promise<TPropertiesMap>;
|
|
114
|
-
/**
|
|
115
|
-
* 获取动画
|
|
116
|
-
* @returns
|
|
117
|
-
*/
|
|
118
|
-
fetchAnimationsData(): Promise<TAnimationsMap>;
|
|
119
|
-
/**
|
|
120
|
-
* 获取模型视角
|
|
121
|
-
* @returns
|
|
122
|
-
*/
|
|
123
|
-
fetchModelVisionsData(): Promise<TModelVisionsMap>;
|
|
124
|
-
/**
|
|
125
|
-
* 获取空间数据
|
|
126
|
-
* @returns
|
|
127
|
-
*/
|
|
128
|
-
fetchSpacesData(): Promise<Map<string, import("./types").BaseTreeNode<ISpaces>>>;
|
|
129
|
-
/**
|
|
130
|
-
* 格式化 Poi 数据完成 Poi Renderer 插件使用
|
|
131
|
-
*/
|
|
132
|
-
formatPoiData: (poiData: IPoiData) => PoiNodeData;
|
|
133
|
-
/**
|
|
134
|
-
* 初始化 Poi
|
|
135
|
-
*/
|
|
136
|
-
loadPoi(refreshByDataSource?: boolean, refreshByUserData?: boolean): Promise<void>;
|
|
137
|
-
/**
|
|
138
|
-
* 通过数据源刷新 poi
|
|
139
|
-
*/
|
|
140
|
-
refreshPoiByDataSource(): Promise<void>;
|
|
141
|
-
refreshByUserData(): Promise<void>;
|
|
142
|
-
runWithCode<T>(fn: (args: any) => T): Promise<T>;
|
|
143
|
-
/**
|
|
144
|
-
* 根据 id 获取树节点
|
|
145
|
-
*/
|
|
146
|
-
getTreeNodeById(id: ITreeData['id'], treeData: ITreeData[] | null, options: ILoadSceneOptions): ITreeData | undefined;
|
|
147
|
-
/**
|
|
148
|
-
* 设置 path
|
|
149
|
-
* @param path
|
|
150
|
-
*/
|
|
151
|
-
setPath(path: string): void;
|
|
152
|
-
/**
|
|
153
|
-
* 加载整个场景
|
|
154
|
-
*/
|
|
155
|
-
loadScene(options?: ILoadSceneOptions): Promise<undefined>;
|
|
156
|
-
/**
|
|
157
|
-
* 预设效果
|
|
158
|
-
*/
|
|
159
|
-
presetEffects(options?: IPresetEffectsOptions): Promise<void>;
|
|
160
|
-
/**
|
|
161
|
-
* 获取拓扑路径列表
|
|
162
|
-
*/
|
|
163
|
-
getTopologies(): Promise<TopologyInfo[]>;
|
|
164
|
-
/**
|
|
165
|
-
* 对 nodes 排序(只适用于线路结构的拓扑路径)
|
|
166
|
-
*/
|
|
167
|
-
sortTopologyNodes(topologyInfo: TopologyInfo, startNodeId?: TopologyNodeInfo['id']): TopologyInfo | undefined;
|
|
168
|
-
/**
|
|
169
|
-
* 播放动画
|
|
170
|
-
* @deprecated
|
|
171
|
-
*/
|
|
172
|
-
playAnimationById(id: string, animationIndex?: number, options?: IPlayAnimationByIdOptions): Promise<boolean>;
|
|
173
|
-
/**
|
|
174
|
-
* 播放动画
|
|
175
|
-
*/
|
|
176
|
-
playObjectAnimation(object: BaseObject3D, animationIndex?: number, { autoStopPrevious, onStart, onUpdate, }?: IPlayAnimationByIdOptions): Promise<boolean>;
|
|
177
|
-
/**
|
|
178
|
-
* 停止对象动画
|
|
179
|
-
*/
|
|
180
|
-
stopObjectAnimation(object: BaseObject3D): Promise<boolean>;
|
|
181
|
-
/**
|
|
182
|
-
* 飞向场景视角
|
|
183
|
-
* @param index
|
|
184
|
-
*/
|
|
185
|
-
flyToSceneFromVisionsData(index?: number): Promise<boolean>;
|
|
186
|
-
/**
|
|
187
|
-
* 飞向场景主视角
|
|
188
|
-
* @param fallback 是否使用默认视角
|
|
189
|
-
*/
|
|
190
|
-
flyToMainSceneFromVisionsData(fallback?: boolean): Promise<boolean>;
|
|
191
|
-
/**
|
|
192
|
-
* 飞向对象视角
|
|
193
|
-
* @param object
|
|
194
|
-
* @param index
|
|
195
|
-
*/
|
|
196
|
-
flyToObjectFromVisionsData(object: BaseObject3D, index?: number): Promise<boolean>;
|
|
197
|
-
/**
|
|
198
|
-
* 飞向对象默认视角
|
|
199
|
-
* @param fallback 是否使用默认视角
|
|
200
|
-
*/
|
|
201
|
-
flyToMainObjectFromVisionsData(object: BaseObject3D, fallback?: boolean): Promise<boolean>;
|
|
202
|
-
/**
|
|
203
|
-
* 加载流程数据
|
|
204
|
-
*/
|
|
205
|
-
loadFlowData(): Promise<{
|
|
206
|
-
nodes: {
|
|
207
|
-
inputs: import("@soonflow/plugin-soonmanager2-sync/dist/interface").Handle[];
|
|
208
|
-
outputs: import("@soonflow/plugin-soonmanager2-sync/dist/interface").Handle[];
|
|
209
|
-
isStartNode: boolean;
|
|
210
|
-
id: string;
|
|
211
|
-
name: string;
|
|
212
|
-
flowId: string;
|
|
213
|
-
type: import("@soonflow/plugin-soonmanager2-sync/dist/interface").FlowNodeTypesEnum;
|
|
214
|
-
config: string;
|
|
215
|
-
posX: number;
|
|
216
|
-
posY: number;
|
|
217
|
-
sortNum: number;
|
|
218
|
-
enable: boolean;
|
|
219
|
-
handlerList: import("@soonflow/plugin-soonmanager2-sync/dist/interface").Handle[];
|
|
220
|
-
}[];
|
|
221
|
-
edges: {
|
|
222
|
-
sourceNodeHandleId: string;
|
|
223
|
-
targetNodeHandleId: string;
|
|
224
|
-
id: string;
|
|
225
|
-
name: string;
|
|
226
|
-
type: string;
|
|
227
|
-
sourceHandlerId: string;
|
|
228
|
-
sourceNodeId: string;
|
|
229
|
-
targetHandlerId: string;
|
|
230
|
-
targetNodeId: string;
|
|
231
|
-
enable: boolean;
|
|
232
|
-
}[];
|
|
233
|
-
id: string;
|
|
234
|
-
name: string;
|
|
235
|
-
applyType: "AUTO" | "MANUAL";
|
|
236
|
-
pid: string | null;
|
|
237
|
-
nodeData: {
|
|
238
|
-
nodeList: import("@soonflow/plugin-soonmanager2-sync/dist/interface").Node[];
|
|
239
|
-
lineList: import("@soonflow/plugin-soonmanager2-sync/dist/interface").Edge[];
|
|
240
|
-
};
|
|
241
|
-
subFlows: import("@soonflow/plugin-soonmanager2-sync/dist/interface").FlowSyncData[];
|
|
242
|
-
}[]>;
|
|
243
|
-
/**
|
|
244
|
-
* 执行流程
|
|
245
|
-
* @param id 流程 id
|
|
246
|
-
*/
|
|
247
|
-
runFlowById(id: string): Promise<void>;
|
|
248
|
-
/**
|
|
249
|
-
* 获取空间下辖设备
|
|
250
|
-
*/
|
|
251
|
-
getSpaceAssets<T extends BaseObject3D = BaseObject3D>(space: BaseObject3D): Promise<T[]>;
|
|
252
|
-
}
|
|
253
|
-
export * from './types';
|
|
254
|
-
export * from './constants';
|
|
255
|
-
export default CpsSoonmanagerPlugin;
|
|
1
|
+
import SoonSpace, { TopologyNodeInfo } from 'soonspacejs';
|
|
2
|
+
import type { BaseObject3D, Group, TopologyInfo } from 'soonspacejs';
|
|
3
|
+
import { PoiNodeData } from '@soonspacejs/plugin-poi-renderer';
|
|
4
|
+
import EffectPlugin from '@soonspacejs/plugin-effect';
|
|
5
|
+
import AtmospherePlugin from '@soonspacejs/plugin-atmosphere';
|
|
6
|
+
import SoonFlow from '@soonflow/core';
|
|
7
|
+
import { AnimationPlayer } from 'umanager-animation-parser';
|
|
8
|
+
import { EventDispatcher } from 'three';
|
|
9
|
+
import { IMetadata, ITreeData, IInnerTreeData, IPoiData, ITopologyPath, ILoadSceneOptions, TPropertiesMap, TAnimationsMap, IPlayAnimationByIdOptions, TModelVisionsMap, IPresetEffectsOptions, TSpacesMap, ConstructorOptions, ISpaces, IFlatData, IProgress, IProgressEventMap } from './types';
|
|
10
|
+
declare class CpsSoonmanagerPlugin extends EventDispatcher<IProgressEventMap> {
|
|
11
|
+
#private;
|
|
12
|
+
readonly ssp: SoonSpace;
|
|
13
|
+
get path(): string;
|
|
14
|
+
set path(val: string);
|
|
15
|
+
progress: IProgress;
|
|
16
|
+
/**
|
|
17
|
+
* 场景 group 包裹
|
|
18
|
+
*/
|
|
19
|
+
sceneGroup: Group | null;
|
|
20
|
+
/**
|
|
21
|
+
* 场景元数据
|
|
22
|
+
*/
|
|
23
|
+
metaData: IMetadata | null;
|
|
24
|
+
/**
|
|
25
|
+
* 模型树
|
|
26
|
+
*/
|
|
27
|
+
treeData: ITreeData[] | null;
|
|
28
|
+
/**
|
|
29
|
+
* 扁平化模型树
|
|
30
|
+
*/
|
|
31
|
+
flatData: IFlatData[] | null;
|
|
32
|
+
faltDataMap: Map<string, IFlatData[]> | null;
|
|
33
|
+
/**
|
|
34
|
+
* poi 数据
|
|
35
|
+
*/
|
|
36
|
+
poiData: IPoiData[] | null;
|
|
37
|
+
/**
|
|
38
|
+
* 数据源
|
|
39
|
+
*/
|
|
40
|
+
dataSourceData: any | null;
|
|
41
|
+
/**
|
|
42
|
+
* 拓扑路径
|
|
43
|
+
*/
|
|
44
|
+
topologyData: TopologyInfo[] | null;
|
|
45
|
+
/**
|
|
46
|
+
* 自定义属性
|
|
47
|
+
*/
|
|
48
|
+
propertiesData: TPropertiesMap | null;
|
|
49
|
+
objectsAnimations: Map<string, Set<AnimationPlayer>>;
|
|
50
|
+
/**
|
|
51
|
+
* 动画
|
|
52
|
+
*/
|
|
53
|
+
animationsData: TAnimationsMap | null;
|
|
54
|
+
/**
|
|
55
|
+
* 模型视角
|
|
56
|
+
*/
|
|
57
|
+
modelVisionsData: TModelVisionsMap | null;
|
|
58
|
+
/**
|
|
59
|
+
* 空间数据
|
|
60
|
+
*/
|
|
61
|
+
spacesData: TSpacesMap | null;
|
|
62
|
+
/**
|
|
63
|
+
* effect 插件
|
|
64
|
+
*/
|
|
65
|
+
effectPlugin: EffectPlugin;
|
|
66
|
+
/**
|
|
67
|
+
* atomsphere 插件
|
|
68
|
+
*/
|
|
69
|
+
atmospherePlugin: AtmospherePlugin;
|
|
70
|
+
/**
|
|
71
|
+
* 流程引擎实咧
|
|
72
|
+
*/
|
|
73
|
+
soonflow: SoonFlow;
|
|
74
|
+
/**
|
|
75
|
+
* 流程数据
|
|
76
|
+
*/
|
|
77
|
+
flowData: any[] | null;
|
|
78
|
+
constructor(ssp: SoonSpace, option?: ConstructorOptions);
|
|
79
|
+
/**
|
|
80
|
+
* 设置 key
|
|
81
|
+
* @param key
|
|
82
|
+
*/
|
|
83
|
+
setKey(key: string): void;
|
|
84
|
+
/**
|
|
85
|
+
* 获取场景元数据
|
|
86
|
+
*/
|
|
87
|
+
fetchMetaData(): Promise<IMetadata>;
|
|
88
|
+
/**
|
|
89
|
+
* 获取场景树(旧版资源包使用)
|
|
90
|
+
* @returns
|
|
91
|
+
*/
|
|
92
|
+
fetchTreeData(): Promise<IInnerTreeData[]>;
|
|
93
|
+
fetchFlatData(): Promise<IFlatData[]>;
|
|
94
|
+
/**
|
|
95
|
+
* 获取 Poi 数据
|
|
96
|
+
* @returns
|
|
97
|
+
*/
|
|
98
|
+
fetchPoiData(): Promise<IPoiData[]>;
|
|
99
|
+
/**
|
|
100
|
+
* 获取数据源数据
|
|
101
|
+
* @returns
|
|
102
|
+
*/
|
|
103
|
+
fetchDataSourceData(): Promise<any>;
|
|
104
|
+
/**
|
|
105
|
+
* 获取拓扑路径
|
|
106
|
+
* @returns
|
|
107
|
+
*/
|
|
108
|
+
fetchTopologyData(): Promise<ITopologyPath[]>;
|
|
109
|
+
/**
|
|
110
|
+
* 获取自定义属性
|
|
111
|
+
* @returns
|
|
112
|
+
*/
|
|
113
|
+
fetchPropertiesData(): Promise<TPropertiesMap>;
|
|
114
|
+
/**
|
|
115
|
+
* 获取动画
|
|
116
|
+
* @returns
|
|
117
|
+
*/
|
|
118
|
+
fetchAnimationsData(): Promise<TAnimationsMap>;
|
|
119
|
+
/**
|
|
120
|
+
* 获取模型视角
|
|
121
|
+
* @returns
|
|
122
|
+
*/
|
|
123
|
+
fetchModelVisionsData(): Promise<TModelVisionsMap>;
|
|
124
|
+
/**
|
|
125
|
+
* 获取空间数据
|
|
126
|
+
* @returns
|
|
127
|
+
*/
|
|
128
|
+
fetchSpacesData(): Promise<Map<string, import("./types").BaseTreeNode<ISpaces>>>;
|
|
129
|
+
/**
|
|
130
|
+
* 格式化 Poi 数据完成 Poi Renderer 插件使用
|
|
131
|
+
*/
|
|
132
|
+
formatPoiData: (poiData: IPoiData) => PoiNodeData;
|
|
133
|
+
/**
|
|
134
|
+
* 初始化 Poi
|
|
135
|
+
*/
|
|
136
|
+
loadPoi(refreshByDataSource?: boolean, refreshByUserData?: boolean): Promise<void>;
|
|
137
|
+
/**
|
|
138
|
+
* 通过数据源刷新 poi
|
|
139
|
+
*/
|
|
140
|
+
refreshPoiByDataSource(): Promise<void>;
|
|
141
|
+
refreshByUserData(): Promise<void>;
|
|
142
|
+
runWithCode<T>(fn: (args: any) => T): Promise<T>;
|
|
143
|
+
/**
|
|
144
|
+
* 根据 id 获取树节点
|
|
145
|
+
*/
|
|
146
|
+
getTreeNodeById(id: ITreeData['id'], treeData: ITreeData[] | null, options: ILoadSceneOptions): ITreeData | undefined;
|
|
147
|
+
/**
|
|
148
|
+
* 设置 path
|
|
149
|
+
* @param path
|
|
150
|
+
*/
|
|
151
|
+
setPath(path: string): void;
|
|
152
|
+
/**
|
|
153
|
+
* 加载整个场景
|
|
154
|
+
*/
|
|
155
|
+
loadScene(options?: ILoadSceneOptions): Promise<undefined>;
|
|
156
|
+
/**
|
|
157
|
+
* 预设效果
|
|
158
|
+
*/
|
|
159
|
+
presetEffects(options?: IPresetEffectsOptions): Promise<void>;
|
|
160
|
+
/**
|
|
161
|
+
* 获取拓扑路径列表
|
|
162
|
+
*/
|
|
163
|
+
getTopologies(): Promise<TopologyInfo[]>;
|
|
164
|
+
/**
|
|
165
|
+
* 对 nodes 排序(只适用于线路结构的拓扑路径)
|
|
166
|
+
*/
|
|
167
|
+
sortTopologyNodes(topologyInfo: TopologyInfo, startNodeId?: TopologyNodeInfo['id']): TopologyInfo | undefined;
|
|
168
|
+
/**
|
|
169
|
+
* 播放动画
|
|
170
|
+
* @deprecated
|
|
171
|
+
*/
|
|
172
|
+
playAnimationById(id: string, animationIndex?: number, options?: IPlayAnimationByIdOptions): Promise<boolean>;
|
|
173
|
+
/**
|
|
174
|
+
* 播放动画
|
|
175
|
+
*/
|
|
176
|
+
playObjectAnimation(object: BaseObject3D, animationIndex?: number, { autoStopPrevious, onStart, onUpdate, }?: IPlayAnimationByIdOptions): Promise<boolean>;
|
|
177
|
+
/**
|
|
178
|
+
* 停止对象动画
|
|
179
|
+
*/
|
|
180
|
+
stopObjectAnimation(object: BaseObject3D): Promise<boolean>;
|
|
181
|
+
/**
|
|
182
|
+
* 飞向场景视角
|
|
183
|
+
* @param index
|
|
184
|
+
*/
|
|
185
|
+
flyToSceneFromVisionsData(index?: number): Promise<boolean>;
|
|
186
|
+
/**
|
|
187
|
+
* 飞向场景主视角
|
|
188
|
+
* @param fallback 是否使用默认视角
|
|
189
|
+
*/
|
|
190
|
+
flyToMainSceneFromVisionsData(fallback?: boolean): Promise<boolean>;
|
|
191
|
+
/**
|
|
192
|
+
* 飞向对象视角
|
|
193
|
+
* @param object
|
|
194
|
+
* @param index
|
|
195
|
+
*/
|
|
196
|
+
flyToObjectFromVisionsData(object: BaseObject3D, index?: number): Promise<boolean>;
|
|
197
|
+
/**
|
|
198
|
+
* 飞向对象默认视角
|
|
199
|
+
* @param fallback 是否使用默认视角
|
|
200
|
+
*/
|
|
201
|
+
flyToMainObjectFromVisionsData(object: BaseObject3D, fallback?: boolean): Promise<boolean>;
|
|
202
|
+
/**
|
|
203
|
+
* 加载流程数据
|
|
204
|
+
*/
|
|
205
|
+
loadFlowData(): Promise<{
|
|
206
|
+
nodes: {
|
|
207
|
+
inputs: import("@soonflow/plugin-soonmanager2-sync/dist/interface").Handle[];
|
|
208
|
+
outputs: import("@soonflow/plugin-soonmanager2-sync/dist/interface").Handle[];
|
|
209
|
+
isStartNode: boolean;
|
|
210
|
+
id: string;
|
|
211
|
+
name: string;
|
|
212
|
+
flowId: string;
|
|
213
|
+
type: import("@soonflow/plugin-soonmanager2-sync/dist/interface").FlowNodeTypesEnum;
|
|
214
|
+
config: string;
|
|
215
|
+
posX: number;
|
|
216
|
+
posY: number;
|
|
217
|
+
sortNum: number;
|
|
218
|
+
enable: boolean;
|
|
219
|
+
handlerList: import("@soonflow/plugin-soonmanager2-sync/dist/interface").Handle[];
|
|
220
|
+
}[];
|
|
221
|
+
edges: {
|
|
222
|
+
sourceNodeHandleId: string;
|
|
223
|
+
targetNodeHandleId: string;
|
|
224
|
+
id: string;
|
|
225
|
+
name: string;
|
|
226
|
+
type: string;
|
|
227
|
+
sourceHandlerId: string;
|
|
228
|
+
sourceNodeId: string;
|
|
229
|
+
targetHandlerId: string;
|
|
230
|
+
targetNodeId: string;
|
|
231
|
+
enable: boolean;
|
|
232
|
+
}[];
|
|
233
|
+
id: string;
|
|
234
|
+
name: string;
|
|
235
|
+
applyType: "AUTO" | "MANUAL";
|
|
236
|
+
pid: string | null;
|
|
237
|
+
nodeData: {
|
|
238
|
+
nodeList: import("@soonflow/plugin-soonmanager2-sync/dist/interface").Node[];
|
|
239
|
+
lineList: import("@soonflow/plugin-soonmanager2-sync/dist/interface").Edge[];
|
|
240
|
+
};
|
|
241
|
+
subFlows: import("@soonflow/plugin-soonmanager2-sync/dist/interface").FlowSyncData[];
|
|
242
|
+
}[]>;
|
|
243
|
+
/**
|
|
244
|
+
* 执行流程
|
|
245
|
+
* @param id 流程 id
|
|
246
|
+
*/
|
|
247
|
+
runFlowById(id: string): Promise<void>;
|
|
248
|
+
/**
|
|
249
|
+
* 获取空间下辖设备
|
|
250
|
+
*/
|
|
251
|
+
getSpaceAssets<T extends BaseObject3D = BaseObject3D>(space: BaseObject3D): Promise<T[]>;
|
|
252
|
+
}
|
|
253
|
+
export * from './types';
|
|
254
|
+
export * from './constants';
|
|
255
|
+
export default CpsSoonmanagerPlugin;
|