@soonspacejs/plugin-cps-soonmanager 2.9.6 → 2.9.8
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/index.d.ts +20 -12
- package/dist/index.esm.js +2 -2
- package/dist/types.d.ts +4 -5
- package/package.json +9 -4
package/dist/index.d.ts
CHANGED
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
import SoonSpace, { AnimationOptions, TopologyNodeInfo } from 'soonspacejs';
|
|
2
2
|
import type { BaseObject3D, TopologyInfo } from 'soonspacejs/types/Library';
|
|
3
|
+
import SoonFlow from '@soonflow/core';
|
|
3
4
|
import { Tween } from '@tweenjs/tween.js';
|
|
4
|
-
import { PoiNodeData } from '@soonspacejs/plugin-poi-renderer';
|
|
5
5
|
import { IMetadata, ITreeData, IPoiData, ITopologyPath, ILoadSceneOptions, TPropertiesMap, TAnimationsMap, IPlayAnimationByIdOptions, TModelVisionsMap, IPresetEffectsOptions, ConstructorOptions } from './types';
|
|
6
6
|
declare class CpsSoonmanagerPlugin {
|
|
7
7
|
#private;
|
|
8
8
|
readonly ssp: SoonSpace;
|
|
9
|
-
_path: string;
|
|
10
9
|
get path(): string;
|
|
11
10
|
set path(val: string);
|
|
12
11
|
/**
|
|
@@ -20,7 +19,7 @@ declare class CpsSoonmanagerPlugin {
|
|
|
20
19
|
/**
|
|
21
20
|
* poi 数据
|
|
22
21
|
*/
|
|
23
|
-
poiData:
|
|
22
|
+
poiData: IPoiData[] | null;
|
|
24
23
|
/**
|
|
25
24
|
* 拓扑路径
|
|
26
25
|
*/
|
|
@@ -29,6 +28,7 @@ declare class CpsSoonmanagerPlugin {
|
|
|
29
28
|
* 自定义属性
|
|
30
29
|
*/
|
|
31
30
|
propertiesData: TPropertiesMap | null;
|
|
31
|
+
objectsAnimations: Map<string, Set<Tween<any>>>;
|
|
32
32
|
/**
|
|
33
33
|
* 动画
|
|
34
34
|
*/
|
|
@@ -37,7 +37,14 @@ declare class CpsSoonmanagerPlugin {
|
|
|
37
37
|
* 模型视角
|
|
38
38
|
*/
|
|
39
39
|
modelVisionsData: TModelVisionsMap | null;
|
|
40
|
-
|
|
40
|
+
/**
|
|
41
|
+
* 流程引擎实咧
|
|
42
|
+
*/
|
|
43
|
+
soonflow: SoonFlow;
|
|
44
|
+
/**
|
|
45
|
+
* 流程数据
|
|
46
|
+
*/
|
|
47
|
+
flowData: any[];
|
|
41
48
|
constructor(ssp: SoonSpace, option?: ConstructorOptions);
|
|
42
49
|
/**
|
|
43
50
|
* 设置 key
|
|
@@ -78,6 +85,10 @@ declare class CpsSoonmanagerPlugin {
|
|
|
78
85
|
* @returns
|
|
79
86
|
*/
|
|
80
87
|
fetchModelVisionsData(): Promise<TModelVisionsMap>;
|
|
88
|
+
/**
|
|
89
|
+
* 根据 id 获取树节点
|
|
90
|
+
*/
|
|
91
|
+
getTreeNodeById(id: ITreeData['id'], treeData?: ITreeData[] | null): ITreeData | undefined;
|
|
81
92
|
/**
|
|
82
93
|
* 设置 path
|
|
83
94
|
* @param path
|
|
@@ -87,14 +98,6 @@ declare class CpsSoonmanagerPlugin {
|
|
|
87
98
|
* 加载整个场景
|
|
88
99
|
*/
|
|
89
100
|
loadScene(options?: ILoadSceneOptions): Promise<void>;
|
|
90
|
-
/**
|
|
91
|
-
* 格式化 Poi 数据完成 Poi Renderer 插件使用
|
|
92
|
-
*/
|
|
93
|
-
formatPoiData: (poiData: IPoiData) => PoiNodeData;
|
|
94
|
-
/**
|
|
95
|
-
* 加载 Poi
|
|
96
|
-
*/
|
|
97
|
-
loadPoi(): Promise<void>;
|
|
98
101
|
/**
|
|
99
102
|
* 预设效果
|
|
100
103
|
*/
|
|
@@ -131,6 +134,11 @@ declare class CpsSoonmanagerPlugin {
|
|
|
131
134
|
* @param index
|
|
132
135
|
*/
|
|
133
136
|
flyToObjectFromVisionsData(object: BaseObject3D, index?: number, options?: AnimationOptions): Promise<void>;
|
|
137
|
+
/**
|
|
138
|
+
* 执行流程
|
|
139
|
+
* @param id 流程 id
|
|
140
|
+
*/
|
|
141
|
+
runFlowById(id: string): import("@soonflow/core").SoonFlowParse | undefined;
|
|
134
142
|
}
|
|
135
143
|
export * from './types';
|
|
136
144
|
export * from './constants';
|