@soonspacejs/plugin-cps-soonmanager 2.11.66 → 2.11.68
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 +4 -0
- package/dist/index.d.ts +17 -5
- package/dist/index.esm.js +4 -4
- package/dist/types.d.ts +14 -5
- package/dist/utils.d.ts +4 -8
- package/package.json +7 -6
package/dist/constants.d.ts
CHANGED
package/dist/index.d.ts
CHANGED
|
@@ -3,13 +3,15 @@ import type { BaseObject3D, Group, TopologyInfo } from 'soonspacejs';
|
|
|
3
3
|
import { PoiNodeData } from '@soonspacejs/plugin-poi-renderer';
|
|
4
4
|
import EffectPlugin from '@soonspacejs/plugin-effect';
|
|
5
5
|
import SoonFlow from '@soonflow/core';
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
|
|
6
|
+
import { AnimationPlayer } from 'umanager-animation-parser';
|
|
7
|
+
import { EventDispatcher } from 'three';
|
|
8
|
+
import { IMetadata, ITreeData, IPoiData, ITopologyPath, ILoadSceneOptions, TPropertiesMap, TAnimationsMap, IPlayAnimationByIdOptions, TModelVisionsMap, IPresetEffectsOptions, TSpacesMap, ConstructorOptions, ISpaces, IFlatData, IProgress, IProgressEventMap } from './types';
|
|
9
|
+
declare class CpsSoonmanagerPlugin extends EventDispatcher<IProgressEventMap> {
|
|
9
10
|
#private;
|
|
10
11
|
readonly ssp: SoonSpace;
|
|
11
12
|
get path(): string;
|
|
12
13
|
set path(val: string);
|
|
14
|
+
progress: IProgress;
|
|
13
15
|
/**
|
|
14
16
|
* 场景 group 包裹
|
|
15
17
|
*/
|
|
@@ -22,6 +24,11 @@ declare class CpsSoonmanagerPlugin {
|
|
|
22
24
|
* 模型树
|
|
23
25
|
*/
|
|
24
26
|
treeData: ITreeData[] | null;
|
|
27
|
+
/**
|
|
28
|
+
* 扁平化模型树
|
|
29
|
+
*/
|
|
30
|
+
flatData: IFlatData[] | null;
|
|
31
|
+
faltDataMap: Map<string, IFlatData[]> | null;
|
|
25
32
|
/**
|
|
26
33
|
* poi 数据
|
|
27
34
|
*/
|
|
@@ -38,7 +45,7 @@ declare class CpsSoonmanagerPlugin {
|
|
|
38
45
|
* 自定义属性
|
|
39
46
|
*/
|
|
40
47
|
propertiesData: TPropertiesMap | null;
|
|
41
|
-
objectsAnimations: Map<string, Set<
|
|
48
|
+
objectsAnimations: Map<string, Set<AnimationPlayer>>;
|
|
42
49
|
/**
|
|
43
50
|
* 动画
|
|
44
51
|
*/
|
|
@@ -78,6 +85,7 @@ declare class CpsSoonmanagerPlugin {
|
|
|
78
85
|
* @returns
|
|
79
86
|
*/
|
|
80
87
|
fetchTreeData(): Promise<ITreeData[]>;
|
|
88
|
+
fetchFlatData(): Promise<IFlatData[]>;
|
|
81
89
|
/**
|
|
82
90
|
* 获取 Poi 数据
|
|
83
91
|
* @returns
|
|
@@ -108,6 +116,10 @@ declare class CpsSoonmanagerPlugin {
|
|
|
108
116
|
* @returns
|
|
109
117
|
*/
|
|
110
118
|
fetchModelVisionsData(): Promise<TModelVisionsMap>;
|
|
119
|
+
/**
|
|
120
|
+
* 获取空间数据
|
|
121
|
+
* @returns
|
|
122
|
+
*/
|
|
111
123
|
fetchSpacesData(): Promise<Map<string, import("./types").BaseTreeNode<ISpaces>>>;
|
|
112
124
|
/**
|
|
113
125
|
* 格式化 Poi 数据完成 Poi Renderer 插件使用
|
|
@@ -154,7 +166,7 @@ declare class CpsSoonmanagerPlugin {
|
|
|
154
166
|
/**
|
|
155
167
|
* 播放动画
|
|
156
168
|
*/
|
|
157
|
-
playObjectAnimation(object: BaseObject3D, animationIndex?: number,
|
|
169
|
+
playObjectAnimation(object: BaseObject3D, animationIndex?: number, { autoStopPrevious, onStart, onUpdate, }?: IPlayAnimationByIdOptions): Promise<boolean>;
|
|
158
170
|
/**
|
|
159
171
|
* 停止对象动画
|
|
160
172
|
*/
|