@soonspacejs/plugin-cps-soonmanager 2.11.56 → 2.11.57
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/constants.d.ts +12 -8
- package/dist/index.d.ts +10 -1
- package/dist/index.esm.js +2 -2
- package/dist/types.d.ts +19 -0
- package/dist/utils.d.ts +5 -4
- package/package.json +5 -5
package/dist/constants.d.ts
CHANGED
|
@@ -5,35 +5,39 @@ export declare const META_DATA_FILE_PATH = "/SceneMetadata.json";
|
|
|
5
5
|
/**
|
|
6
6
|
* 签名文件
|
|
7
7
|
*/
|
|
8
|
-
export declare const SIGN_PATH
|
|
8
|
+
export declare const SIGN_PATH: string;
|
|
9
9
|
/**
|
|
10
10
|
* 模型树
|
|
11
11
|
*/
|
|
12
|
-
export declare const TREE_DATA_FILE_PATH
|
|
12
|
+
export declare const TREE_DATA_FILE_PATH: string;
|
|
13
13
|
/**
|
|
14
14
|
* poi
|
|
15
15
|
*/
|
|
16
|
-
export declare const POI_DATA_FILE_PATH
|
|
16
|
+
export declare const POI_DATA_FILE_PATH: string;
|
|
17
17
|
/**
|
|
18
18
|
* poi
|
|
19
19
|
*/
|
|
20
|
-
export declare const DATA_SOURCE_FILE_PATH
|
|
20
|
+
export declare const DATA_SOURCE_FILE_PATH: string;
|
|
21
21
|
/**
|
|
22
22
|
* 拓扑路径
|
|
23
23
|
*/
|
|
24
|
-
export declare const TOPOLOGY_DATA_FILE_PATH
|
|
24
|
+
export declare const TOPOLOGY_DATA_FILE_PATH: string;
|
|
25
25
|
/**
|
|
26
26
|
* 自定义属性
|
|
27
27
|
*/
|
|
28
|
-
export declare const PROPERTIES_DATA_FLEE_PATH
|
|
28
|
+
export declare const PROPERTIES_DATA_FLEE_PATH: string;
|
|
29
29
|
/**
|
|
30
30
|
* 帧动画
|
|
31
31
|
*/
|
|
32
|
-
export declare const ANIMATIONS_DATA_FILE_PATH
|
|
32
|
+
export declare const ANIMATIONS_DATA_FILE_PATH: string;
|
|
33
33
|
/**
|
|
34
34
|
* 模型视角
|
|
35
35
|
*/
|
|
36
|
-
export declare const MODEL_VISIONS_DATA_FILE_PATH
|
|
36
|
+
export declare const MODEL_VISIONS_DATA_FILE_PATH: string;
|
|
37
|
+
/**
|
|
38
|
+
* 空间
|
|
39
|
+
*/
|
|
40
|
+
export declare const SPACES_DATA_FILE_PATH: string;
|
|
37
41
|
/**
|
|
38
42
|
* 自定义属性 key
|
|
39
43
|
*/
|
package/dist/index.d.ts
CHANGED
|
@@ -4,7 +4,7 @@ import { PoiNodeData } from '@soonspacejs/plugin-poi-renderer';
|
|
|
4
4
|
import EffectPlugin from '@soonspacejs/plugin-effect';
|
|
5
5
|
import SoonFlow from '@soonflow/core';
|
|
6
6
|
import { Tween } from 'three/examples/jsm/libs/tween.module.js';
|
|
7
|
-
import { IMetadata, ITreeData, IPoiData, ITopologyPath, ILoadSceneOptions, TPropertiesMap, TAnimationsMap, IPlayAnimationByIdOptions, TModelVisionsMap, IPresetEffectsOptions, ConstructorOptions } from './types';
|
|
7
|
+
import { IMetadata, ITreeData, IPoiData, ITopologyPath, ILoadSceneOptions, TPropertiesMap, TAnimationsMap, IPlayAnimationByIdOptions, TModelVisionsMap, IPresetEffectsOptions, TSpacesMap, ConstructorOptions, ISpaces } from './types';
|
|
8
8
|
declare class CpsSoonmanagerPlugin {
|
|
9
9
|
#private;
|
|
10
10
|
readonly ssp: SoonSpace;
|
|
@@ -47,6 +47,10 @@ declare class CpsSoonmanagerPlugin {
|
|
|
47
47
|
* 模型视角
|
|
48
48
|
*/
|
|
49
49
|
modelVisionsData: TModelVisionsMap | null;
|
|
50
|
+
/**
|
|
51
|
+
* 空间数据
|
|
52
|
+
*/
|
|
53
|
+
spacesData: TSpacesMap | null;
|
|
50
54
|
/**
|
|
51
55
|
* effect 插件
|
|
52
56
|
*/
|
|
@@ -104,6 +108,7 @@ declare class CpsSoonmanagerPlugin {
|
|
|
104
108
|
* @returns
|
|
105
109
|
*/
|
|
106
110
|
fetchModelVisionsData(): Promise<TModelVisionsMap>;
|
|
111
|
+
fetchSpacesData(): Promise<Map<string, import("./types").BaseTreeNode<ISpaces>>>;
|
|
107
112
|
/**
|
|
108
113
|
* 格式化 Poi 数据完成 Poi Renderer 插件使用
|
|
109
114
|
*/
|
|
@@ -221,6 +226,10 @@ declare class CpsSoonmanagerPlugin {
|
|
|
221
226
|
* @param id 流程 id
|
|
222
227
|
*/
|
|
223
228
|
runFlowById(id: string): Promise<void>;
|
|
229
|
+
/**
|
|
230
|
+
* 获取空间下辖设备
|
|
231
|
+
*/
|
|
232
|
+
getSpaceAssets<T extends BaseObject3D = BaseObject3D>(space: BaseObject3D): Promise<T[]>;
|
|
224
233
|
}
|
|
225
234
|
export * from './types';
|
|
226
235
|
export * from './constants';
|