@soonspacejs/plugin-cps-soonmanager 2.11.12 → 2.11.13
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/README.md +5 -5
- package/dist/index.esm.js +4 -4
- package/package.json +4 -4
- package/dist/License/decrypt-v1.d.ts +0 -2
- package/dist/License/decrypt-v2.d.ts +0 -3
- package/dist/License/encryptInfo.d.ts +0 -16
- package/dist/License/types.d.ts +0 -8
- package/dist/WaterMark/index.d.ts +0 -31
- package/dist/batch-update-poi/index.d.ts +0 -15
- package/dist/batch-update-poi/types.d.ts +0 -16
- package/dist/batch-update-poi/utils.d.ts +0 -18
- package/dist/constants.d.ts +0 -44
- package/dist/data-source/index.d.ts +0 -15
- package/dist/data-source/request-types.d.ts +0 -193
- package/dist/data-source/types.d.ts +0 -37
- package/dist/data-source/utils/http-request.d.ts +0 -72
- package/dist/data-source/utils/http.d.ts +0 -4
- package/dist/data-source/utils/index.d.ts +0 -4
- package/dist/data-source/utils/mqtt.d.ts +0 -4
- package/dist/data-source/utils/socket.d.ts +0 -4
- package/dist/data-source/utils/utils.d.ts +0 -18
- package/dist/index.d.ts +0 -212
- package/dist/types.d.ts +0 -293
- package/dist/utils.d.ts +0 -13
package/dist/index.d.ts
DELETED
|
@@ -1,212 +0,0 @@
|
|
|
1
|
-
import SoonSpace, { TopologyNodeInfo } from 'soonspacejs';
|
|
2
|
-
import type { BaseObject3D, Group, TopologyInfo } from 'soonspacejs/types/Library';
|
|
3
|
-
import { PoiNodeData } from '@soonspacejs/plugin-poi-renderer';
|
|
4
|
-
import SoonFlow from '@soonflow/core';
|
|
5
|
-
import { Tween } from '@tweenjs/tween.js';
|
|
6
|
-
import { IMetadata, ITreeData, IPoiData, ITopologyPath, ILoadSceneOptions, TPropertiesMap, TAnimationsMap, IPlayAnimationByIdOptions, TModelVisionsMap, IPresetEffectsOptions, ConstructorOptions } from './types';
|
|
7
|
-
declare class CpsSoonmanagerPlugin {
|
|
8
|
-
#private;
|
|
9
|
-
readonly ssp: SoonSpace;
|
|
10
|
-
get path(): string;
|
|
11
|
-
set path(val: string);
|
|
12
|
-
/**
|
|
13
|
-
* 场景 group 包裹
|
|
14
|
-
*/
|
|
15
|
-
sceneGroup: Group | null;
|
|
16
|
-
/**
|
|
17
|
-
* 场景元数据
|
|
18
|
-
*/
|
|
19
|
-
metaData: IMetadata | null;
|
|
20
|
-
/**
|
|
21
|
-
* 模型树
|
|
22
|
-
*/
|
|
23
|
-
treeData: ITreeData[] | null;
|
|
24
|
-
/**
|
|
25
|
-
* poi 数据
|
|
26
|
-
*/
|
|
27
|
-
poiData: IPoiData[] | null;
|
|
28
|
-
/**
|
|
29
|
-
* 数据源
|
|
30
|
-
*/
|
|
31
|
-
dataSourceData: any | null;
|
|
32
|
-
/**
|
|
33
|
-
* 拓扑路径
|
|
34
|
-
*/
|
|
35
|
-
topologyData: TopologyInfo[] | null;
|
|
36
|
-
/**
|
|
37
|
-
* 自定义属性
|
|
38
|
-
*/
|
|
39
|
-
propertiesData: TPropertiesMap | null;
|
|
40
|
-
objectsAnimations: Map<string, Set<Tween<any>>>;
|
|
41
|
-
/**
|
|
42
|
-
* 动画
|
|
43
|
-
*/
|
|
44
|
-
animationsData: TAnimationsMap | null;
|
|
45
|
-
/**
|
|
46
|
-
* 模型视角
|
|
47
|
-
*/
|
|
48
|
-
modelVisionsData: TModelVisionsMap | null;
|
|
49
|
-
/**
|
|
50
|
-
* 流程引擎实咧
|
|
51
|
-
*/
|
|
52
|
-
soonflow: SoonFlow;
|
|
53
|
-
/**
|
|
54
|
-
* 流程数据
|
|
55
|
-
*/
|
|
56
|
-
flowData: any[] | null;
|
|
57
|
-
constructor(ssp: SoonSpace, option?: ConstructorOptions);
|
|
58
|
-
/**
|
|
59
|
-
* 设置 key
|
|
60
|
-
* @param key
|
|
61
|
-
*/
|
|
62
|
-
setKey(key: string): void;
|
|
63
|
-
/**
|
|
64
|
-
* 获取场景元数据
|
|
65
|
-
*/
|
|
66
|
-
fetchMetaData(): Promise<IMetadata>;
|
|
67
|
-
/**
|
|
68
|
-
* 获取场景树(旧版资源包使用)
|
|
69
|
-
* @returns
|
|
70
|
-
*/
|
|
71
|
-
fetchTreeData(): Promise<ITreeData[]>;
|
|
72
|
-
/**
|
|
73
|
-
* 获取 Poi 数据
|
|
74
|
-
* @returns
|
|
75
|
-
*/
|
|
76
|
-
fetchPoiData(): Promise<IPoiData[]>;
|
|
77
|
-
/**
|
|
78
|
-
* 获取数据源数据
|
|
79
|
-
* @returns
|
|
80
|
-
*/
|
|
81
|
-
fetchDataSourceData(): Promise<any>;
|
|
82
|
-
/**
|
|
83
|
-
* 获取拓扑路径
|
|
84
|
-
* @returns
|
|
85
|
-
*/
|
|
86
|
-
fetchTopologyData(): Promise<ITopologyPath[]>;
|
|
87
|
-
/**
|
|
88
|
-
* 获取自定义属性
|
|
89
|
-
* @returns
|
|
90
|
-
*/
|
|
91
|
-
fetchPropertiesData(): Promise<TPropertiesMap>;
|
|
92
|
-
/**
|
|
93
|
-
* 获取动画
|
|
94
|
-
* @returns
|
|
95
|
-
*/
|
|
96
|
-
fetchAnimationsData(): Promise<TAnimationsMap>;
|
|
97
|
-
/**
|
|
98
|
-
* 获取模型视角
|
|
99
|
-
* @returns
|
|
100
|
-
*/
|
|
101
|
-
fetchModelVisionsData(): Promise<TModelVisionsMap>;
|
|
102
|
-
/**
|
|
103
|
-
* 格式化 Poi 数据完成 Poi Renderer 插件使用
|
|
104
|
-
*/
|
|
105
|
-
formatPoiData: (poiData: IPoiData) => PoiNodeData;
|
|
106
|
-
/**
|
|
107
|
-
* 初始化 Poi
|
|
108
|
-
*/
|
|
109
|
-
loadPoi(refreshByDataSource?: boolean): Promise<void>;
|
|
110
|
-
/**
|
|
111
|
-
* 通过数据源刷新 poi
|
|
112
|
-
*/
|
|
113
|
-
refreshPoiByDataSource(): Promise<void>;
|
|
114
|
-
/**
|
|
115
|
-
* 根据 id 获取树节点
|
|
116
|
-
*/
|
|
117
|
-
getTreeNodeById(id: ITreeData['id'], treeData?: ITreeData[] | null): ITreeData | undefined;
|
|
118
|
-
/**
|
|
119
|
-
* 设置 path
|
|
120
|
-
* @param path
|
|
121
|
-
*/
|
|
122
|
-
setPath(path: string): void;
|
|
123
|
-
/**
|
|
124
|
-
* 加载整个场景
|
|
125
|
-
*/
|
|
126
|
-
loadScene(options?: ILoadSceneOptions): Promise<undefined>;
|
|
127
|
-
/**
|
|
128
|
-
* 预设效果
|
|
129
|
-
*/
|
|
130
|
-
presetEffects(options?: IPresetEffectsOptions): Promise<void>;
|
|
131
|
-
/**
|
|
132
|
-
* 获取拓扑路径列表
|
|
133
|
-
*/
|
|
134
|
-
getTopologies(): Promise<TopologyInfo[]>;
|
|
135
|
-
/**
|
|
136
|
-
* 对 nodes 排序(只适用于线路结构的拓扑路径)
|
|
137
|
-
*/
|
|
138
|
-
sortTopologyNodes(topologyInfo: TopologyInfo, startNodeId?: TopologyNodeInfo['id']): TopologyInfo | undefined;
|
|
139
|
-
/**
|
|
140
|
-
* 播放动画
|
|
141
|
-
* @deprecated
|
|
142
|
-
*/
|
|
143
|
-
playAnimationById(id: string, animationIndex?: number, options?: IPlayAnimationByIdOptions): Promise<void>;
|
|
144
|
-
/**
|
|
145
|
-
* 播放动画
|
|
146
|
-
*/
|
|
147
|
-
playObjectAnimation(object: BaseObject3D, animationIndex?: number, options?: IPlayAnimationByIdOptions): Promise<void>;
|
|
148
|
-
/**
|
|
149
|
-
* 停止对象动画
|
|
150
|
-
*/
|
|
151
|
-
stopObjectAnimation(object: BaseObject3D): Promise<void>;
|
|
152
|
-
/**
|
|
153
|
-
* 飞向场景视角
|
|
154
|
-
* @param index
|
|
155
|
-
*/
|
|
156
|
-
flyToSceneFromVisionsData(index?: number): Promise<void>;
|
|
157
|
-
/**
|
|
158
|
-
* 飞向对象视角
|
|
159
|
-
* @param object
|
|
160
|
-
* @param index
|
|
161
|
-
*/
|
|
162
|
-
flyToObjectFromVisionsData(object: BaseObject3D, index?: number): Promise<void>;
|
|
163
|
-
/**
|
|
164
|
-
* 加载流程数据
|
|
165
|
-
*/
|
|
166
|
-
loadFlowData(): Promise<{
|
|
167
|
-
nodes: {
|
|
168
|
-
inputs: import("@soonflow/plugin-soonmanager2-sync/dist/interface").Handle[];
|
|
169
|
-
outputs: import("@soonflow/plugin-soonmanager2-sync/dist/interface").Handle[];
|
|
170
|
-
isStartNode: boolean;
|
|
171
|
-
id: string;
|
|
172
|
-
name: string;
|
|
173
|
-
flowId: string;
|
|
174
|
-
type: import("@soonflow/plugin-soonmanager2-sync/dist/interface").FlowNodeTypesEnum;
|
|
175
|
-
config: string;
|
|
176
|
-
posX: number;
|
|
177
|
-
posY: number;
|
|
178
|
-
sortNum: number;
|
|
179
|
-
enable: boolean;
|
|
180
|
-
handlerList: import("@soonflow/plugin-soonmanager2-sync/dist/interface").Handle[];
|
|
181
|
-
}[];
|
|
182
|
-
edges: {
|
|
183
|
-
sourceNodeHandleId: string;
|
|
184
|
-
targetNodeHandleId: string;
|
|
185
|
-
id: string;
|
|
186
|
-
name: string;
|
|
187
|
-
type: string;
|
|
188
|
-
sourceHandlerId: string;
|
|
189
|
-
sourceNodeId: string;
|
|
190
|
-
targetHandlerId: string;
|
|
191
|
-
targetNodeId: string;
|
|
192
|
-
enable: boolean;
|
|
193
|
-
}[];
|
|
194
|
-
id: string;
|
|
195
|
-
name: string;
|
|
196
|
-
applyType: "AUTO" | "MANUAL";
|
|
197
|
-
pid: string | null;
|
|
198
|
-
nodeData: {
|
|
199
|
-
nodeList: import("@soonflow/plugin-soonmanager2-sync/dist/interface").Node[];
|
|
200
|
-
lineList: import("@soonflow/plugin-soonmanager2-sync/dist/interface").Edge[];
|
|
201
|
-
};
|
|
202
|
-
subFlows: import("@soonflow/plugin-soonmanager2-sync/dist/interface").FlowSyncData[];
|
|
203
|
-
}[]>;
|
|
204
|
-
/**
|
|
205
|
-
* 执行流程
|
|
206
|
-
* @param id 流程 id
|
|
207
|
-
*/
|
|
208
|
-
runFlowById(id: string): Promise<void>;
|
|
209
|
-
}
|
|
210
|
-
export * from './types';
|
|
211
|
-
export * from './constants';
|
|
212
|
-
export default CpsSoonmanagerPlugin;
|
package/dist/types.d.ts
DELETED
|
@@ -1,293 +0,0 @@
|
|
|
1
|
-
import { Tween } from '@tweenjs/tween.js';
|
|
2
|
-
import { AnimationModeType, BaseObjectInfo, IVector3, PlaneIVector2, PoiNodeType } from 'soonspacejs/types/Interface';
|
|
3
|
-
/**
|
|
4
|
-
* 场景元数据
|
|
5
|
-
*/
|
|
6
|
-
export interface IMetadata {
|
|
7
|
-
platformVersion: number;
|
|
8
|
-
version: number;
|
|
9
|
-
name: string;
|
|
10
|
-
projectId: string;
|
|
11
|
-
sceneId: string;
|
|
12
|
-
cover: string | null;
|
|
13
|
-
flatModel: string;
|
|
14
|
-
treeModel: string;
|
|
15
|
-
resource: string;
|
|
16
|
-
exportTime: number;
|
|
17
|
-
environment?: string;
|
|
18
|
-
previewSettings?: string;
|
|
19
|
-
}
|
|
20
|
-
/**
|
|
21
|
-
* 场景树
|
|
22
|
-
*/
|
|
23
|
-
export interface ITreeData {
|
|
24
|
-
id: string;
|
|
25
|
-
pid: string | null;
|
|
26
|
-
name: string;
|
|
27
|
-
renderType: 'GROUP' | '3D' | 'ROOM' | 'STUB' | 'POLYGON' | 'CIRCLE';
|
|
28
|
-
deviceName: string | null;
|
|
29
|
-
deviceCode: string | null;
|
|
30
|
-
matrix: number[];
|
|
31
|
-
path: string | null;
|
|
32
|
-
familyId: string | null;
|
|
33
|
-
children: ITreeData[];
|
|
34
|
-
visible: boolean;
|
|
35
|
-
shape?: {
|
|
36
|
-
height: number;
|
|
37
|
-
radius: number;
|
|
38
|
-
points?: PlaneIVector2[];
|
|
39
|
-
};
|
|
40
|
-
}
|
|
41
|
-
export declare enum PoiContentTypeEnum {
|
|
42
|
-
PANEL = "PANEL",
|
|
43
|
-
VIDEO = "VIDEO",
|
|
44
|
-
VIDEO_STREAM = "VIDEO_STREAM"
|
|
45
|
-
}
|
|
46
|
-
export interface PoiMedia {
|
|
47
|
-
assetId?: string | null;
|
|
48
|
-
url?: string;
|
|
49
|
-
isLoop?: boolean;
|
|
50
|
-
location?: string | null;
|
|
51
|
-
protocol?: string;
|
|
52
|
-
fileId?: string | null;
|
|
53
|
-
fileSourceType?: string;
|
|
54
|
-
}
|
|
55
|
-
export interface PoiContentData {
|
|
56
|
-
[group: string]: {
|
|
57
|
-
[key: string]: {
|
|
58
|
-
value: string;
|
|
59
|
-
index: number;
|
|
60
|
-
label: string;
|
|
61
|
-
};
|
|
62
|
-
};
|
|
63
|
-
}
|
|
64
|
-
export interface PoiContent {
|
|
65
|
-
ds_user: PoiContentData;
|
|
66
|
-
ds_system: PoiContentData;
|
|
67
|
-
}
|
|
68
|
-
/**
|
|
69
|
-
* Poi
|
|
70
|
-
*/
|
|
71
|
-
export interface IPoiData {
|
|
72
|
-
projectId: string;
|
|
73
|
-
sceneId: string;
|
|
74
|
-
nodeId: string;
|
|
75
|
-
poiId: string;
|
|
76
|
-
name: string;
|
|
77
|
-
width: number;
|
|
78
|
-
height: number;
|
|
79
|
-
x: number;
|
|
80
|
-
y: number;
|
|
81
|
-
z: number;
|
|
82
|
-
rotationX: number;
|
|
83
|
-
rotationY: number;
|
|
84
|
-
rotationZ: number;
|
|
85
|
-
scale: number;
|
|
86
|
-
dimensional: PoiNodeType;
|
|
87
|
-
content: string;
|
|
88
|
-
contentData?: PoiContent;
|
|
89
|
-
media: PoiMedia | null;
|
|
90
|
-
contentType: PoiContentTypeEnum;
|
|
91
|
-
display: boolean;
|
|
92
|
-
style: string;
|
|
93
|
-
}
|
|
94
|
-
/**
|
|
95
|
-
* origin path
|
|
96
|
-
*/
|
|
97
|
-
export interface ITopologyPath {
|
|
98
|
-
id: string;
|
|
99
|
-
name: string;
|
|
100
|
-
position: IVector3;
|
|
101
|
-
rotation: IVector3;
|
|
102
|
-
scale: IVector3;
|
|
103
|
-
nodes: ITopologyNode[];
|
|
104
|
-
type: 'network';
|
|
105
|
-
imgUrl?: string;
|
|
106
|
-
animation?: {
|
|
107
|
-
duration: 0;
|
|
108
|
-
};
|
|
109
|
-
}
|
|
110
|
-
export interface ITopologyNode {
|
|
111
|
-
id: string;
|
|
112
|
-
name: string;
|
|
113
|
-
position: IVector3;
|
|
114
|
-
graphs: ITopologyNodeGraph[];
|
|
115
|
-
}
|
|
116
|
-
export interface ITopologyNodeGraph {
|
|
117
|
-
linkInfo: ITopologyEdge;
|
|
118
|
-
targetNodeId: string;
|
|
119
|
-
passable: PassableType;
|
|
120
|
-
}
|
|
121
|
-
export interface ITopologyEdge {
|
|
122
|
-
id: string;
|
|
123
|
-
name: string;
|
|
124
|
-
}
|
|
125
|
-
declare enum PassableType {
|
|
126
|
-
BIDIRECTION = 0,
|
|
127
|
-
POSITIVE = 1,
|
|
128
|
-
OPPOSITE = 2,
|
|
129
|
-
FORBID = 3
|
|
130
|
-
}
|
|
131
|
-
/**
|
|
132
|
-
* 自定义属性
|
|
133
|
-
*/
|
|
134
|
-
export interface IProperties {
|
|
135
|
-
modelId: string;
|
|
136
|
-
group: string;
|
|
137
|
-
key: string;
|
|
138
|
-
value: string | null;
|
|
139
|
-
label: string | null;
|
|
140
|
-
}
|
|
141
|
-
export interface IKeyframe {
|
|
142
|
-
id: string;
|
|
143
|
-
uuid: string;
|
|
144
|
-
x: number;
|
|
145
|
-
y: number;
|
|
146
|
-
z: number;
|
|
147
|
-
scaleX: number;
|
|
148
|
-
scaleY: number;
|
|
149
|
-
scaleZ: number;
|
|
150
|
-
rotationX: number;
|
|
151
|
-
rotationY: number;
|
|
152
|
-
rotationZ: number;
|
|
153
|
-
easing: AnimationModeType;
|
|
154
|
-
mode: string;
|
|
155
|
-
delay: number;
|
|
156
|
-
duration: number;
|
|
157
|
-
repeat: number;
|
|
158
|
-
yoyo: boolean;
|
|
159
|
-
}
|
|
160
|
-
/**
|
|
161
|
-
* 动画
|
|
162
|
-
*/
|
|
163
|
-
export interface IAnimations {
|
|
164
|
-
id: string;
|
|
165
|
-
uuid: string;
|
|
166
|
-
modelId: string;
|
|
167
|
-
name: string;
|
|
168
|
-
keyframes: IKeyframe[];
|
|
169
|
-
}
|
|
170
|
-
/**
|
|
171
|
-
* 模型视角
|
|
172
|
-
*/
|
|
173
|
-
export interface IModelVisions {
|
|
174
|
-
id: string;
|
|
175
|
-
uuid: string;
|
|
176
|
-
nodeId: string;
|
|
177
|
-
name: string;
|
|
178
|
-
code?: any;
|
|
179
|
-
position: IVector3;
|
|
180
|
-
rotation: IVector3;
|
|
181
|
-
target: IVector3;
|
|
182
|
-
}
|
|
183
|
-
/**
|
|
184
|
-
* 预设效果 options
|
|
185
|
-
*/
|
|
186
|
-
export interface IPresetEffectsOptions {
|
|
187
|
-
hdr?: boolean;
|
|
188
|
-
ssao?: boolean;
|
|
189
|
-
directionalLightShadow?: boolean | {
|
|
190
|
-
angle?: number;
|
|
191
|
-
};
|
|
192
|
-
}
|
|
193
|
-
/**
|
|
194
|
-
* constructor options
|
|
195
|
-
*/
|
|
196
|
-
export interface ConstructorOptions {
|
|
197
|
-
/**
|
|
198
|
-
* 平台解密公钥
|
|
199
|
-
*/
|
|
200
|
-
key?: string;
|
|
201
|
-
/**
|
|
202
|
-
* 资源包路径
|
|
203
|
-
*/
|
|
204
|
-
path?: string;
|
|
205
|
-
}
|
|
206
|
-
/**
|
|
207
|
-
* loadScene options
|
|
208
|
-
*/
|
|
209
|
-
export interface ILoadSceneOptions extends ConstructorOptions {
|
|
210
|
-
/**
|
|
211
|
-
* 同步自定义属性
|
|
212
|
-
*/
|
|
213
|
-
syncProperties?: boolean;
|
|
214
|
-
/**
|
|
215
|
-
* 同步模型视角数据
|
|
216
|
-
*/
|
|
217
|
-
syncModelVisions?: boolean;
|
|
218
|
-
/**
|
|
219
|
-
* 计算 bounds tree
|
|
220
|
-
*/
|
|
221
|
-
needsModelsBoundsTree?: boolean;
|
|
222
|
-
/**
|
|
223
|
-
* 应用预设效果
|
|
224
|
-
*/
|
|
225
|
-
applyPresetEffects?: boolean;
|
|
226
|
-
/**
|
|
227
|
-
* 同步场景算法 BFS | DFS
|
|
228
|
-
*/
|
|
229
|
-
loadSceneAlgorithm?: LoadSceneAlgorithm;
|
|
230
|
-
/**
|
|
231
|
-
* 目标节点 id(DFS时有效)
|
|
232
|
-
*/
|
|
233
|
-
loadTargetId?: ITreeData['id'];
|
|
234
|
-
/**
|
|
235
|
-
* 需要加载的层级(DFS时有效)
|
|
236
|
-
*/
|
|
237
|
-
loadLevel?: number;
|
|
238
|
-
/**
|
|
239
|
-
* 需要隐藏的对象 id
|
|
240
|
-
*/
|
|
241
|
-
hiddenObjects?: Set<string>;
|
|
242
|
-
/**
|
|
243
|
-
* 加载 poi
|
|
244
|
-
*/
|
|
245
|
-
loadPoi?: boolean;
|
|
246
|
-
/**
|
|
247
|
-
* 通过数据源刷新 poi
|
|
248
|
-
*/
|
|
249
|
-
refreshPoiByDataSource?: boolean;
|
|
250
|
-
/**
|
|
251
|
-
* 加载流程数据
|
|
252
|
-
*/
|
|
253
|
-
loadFlowData?: boolean;
|
|
254
|
-
/**
|
|
255
|
-
* 场景 group 信息
|
|
256
|
-
*/
|
|
257
|
-
sceneGroupInfo?: Partial<BaseObjectInfo>;
|
|
258
|
-
/**
|
|
259
|
-
* 对象 id 前缀
|
|
260
|
-
*/
|
|
261
|
-
objectPrefixId?: string;
|
|
262
|
-
}
|
|
263
|
-
/**
|
|
264
|
-
* properties map
|
|
265
|
-
*/
|
|
266
|
-
export type TPropertiesMap = Map<IProperties['modelId'], IProperties[]>;
|
|
267
|
-
export type TAnimationsTweenProps = Pick<IKeyframe, 'x' | 'y' | 'z' | 'rotationX' | 'rotationY' | 'rotationZ' | 'scaleX' | 'scaleY' | 'scaleZ'>;
|
|
268
|
-
/**
|
|
269
|
-
* playAnimationById options
|
|
270
|
-
*/
|
|
271
|
-
export interface IPlayAnimationByIdOptions {
|
|
272
|
-
autoStopPrevious?: boolean;
|
|
273
|
-
onUpdate?: (source: TAnimationsTweenProps, tween: Tween<TAnimationsTweenProps>) => void;
|
|
274
|
-
onStart?: (tween: Tween<TAnimationsTweenProps>) => void;
|
|
275
|
-
}
|
|
276
|
-
/**
|
|
277
|
-
* animation map
|
|
278
|
-
*/
|
|
279
|
-
export type TAnimationsMap = Map<IAnimations['modelId'], IAnimations[]>;
|
|
280
|
-
/**
|
|
281
|
-
* model visions map
|
|
282
|
-
*/
|
|
283
|
-
export type TModelVisionsMap = Map<IModelVisions['nodeId'], IModelVisions[]>;
|
|
284
|
-
export interface TLicense {
|
|
285
|
-
sign: string;
|
|
286
|
-
content: string;
|
|
287
|
-
version?: number;
|
|
288
|
-
}
|
|
289
|
-
export declare enum LoadSceneAlgorithm {
|
|
290
|
-
BFS = "BFS",
|
|
291
|
-
DFS = "DFS"
|
|
292
|
-
}
|
|
293
|
-
export {};
|
package/dist/utils.d.ts
DELETED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* 解码
|
|
3
|
-
* @param encodedStr
|
|
4
|
-
* @returns
|
|
5
|
-
*/
|
|
6
|
-
export declare function decodeString(encodedStr: string): string;
|
|
7
|
-
/**
|
|
8
|
-
* 分组
|
|
9
|
-
* @param list
|
|
10
|
-
* @param key
|
|
11
|
-
* @returns Map
|
|
12
|
-
*/
|
|
13
|
-
export declare function groupBy<T extends Record<string, any>, V>(list: T[], key: keyof T): Map<V, T[]>;
|