@soonspacejs/plugin-cps-soonmanager 2.9.5 → 2.9.7
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 +8 -0
- package/dist/index.d.ts +27 -22
- package/dist/index.esm.js +2 -2
- package/dist/types.d.ts +60 -6
- package/dist/utils.d.ts +11 -4
- package/package.json +12 -3
package/dist/types.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Tween } from '@tweenjs/tween.js';
|
|
2
|
-
import { AnimationModeType, IVector3 } from 'soonspacejs/types/Interface';
|
|
2
|
+
import { AnimationModeType, IVector3, PoiNodeType } from 'soonspacejs/types/Interface';
|
|
3
3
|
/**
|
|
4
4
|
* 场景元数据
|
|
5
5
|
*/
|
|
@@ -31,6 +31,58 @@ export interface ITreeData {
|
|
|
31
31
|
familyId: string | null;
|
|
32
32
|
children: ITreeData[];
|
|
33
33
|
}
|
|
34
|
+
export declare enum PoiContentTypeEnum {
|
|
35
|
+
PANEL = "PANEL",
|
|
36
|
+
VIDEO = "VIDEO",
|
|
37
|
+
VIDEO_STREAM = "VIDEO_STREAM"
|
|
38
|
+
}
|
|
39
|
+
export interface PoiMedia {
|
|
40
|
+
assetId?: string | null;
|
|
41
|
+
url?: string;
|
|
42
|
+
isLoop?: boolean;
|
|
43
|
+
location?: string | null;
|
|
44
|
+
protocol?: string;
|
|
45
|
+
fileId?: string | null;
|
|
46
|
+
fileSourceType?: string;
|
|
47
|
+
}
|
|
48
|
+
export interface PoiContentData {
|
|
49
|
+
[group: string]: {
|
|
50
|
+
[key: string]: {
|
|
51
|
+
value: string;
|
|
52
|
+
index: number;
|
|
53
|
+
label: string;
|
|
54
|
+
};
|
|
55
|
+
};
|
|
56
|
+
}
|
|
57
|
+
export interface PoiContent {
|
|
58
|
+
ds_user: PoiContentData;
|
|
59
|
+
ds_system: PoiContentData;
|
|
60
|
+
}
|
|
61
|
+
/**
|
|
62
|
+
* Poi
|
|
63
|
+
*/
|
|
64
|
+
export interface IPoiData {
|
|
65
|
+
projectId: string;
|
|
66
|
+
sceneId: string;
|
|
67
|
+
nodeId: string;
|
|
68
|
+
poiId: string;
|
|
69
|
+
name: string;
|
|
70
|
+
width: number;
|
|
71
|
+
height: number;
|
|
72
|
+
x: number;
|
|
73
|
+
y: number;
|
|
74
|
+
z: number;
|
|
75
|
+
rotationX: number;
|
|
76
|
+
rotationY: number;
|
|
77
|
+
rotationZ: number;
|
|
78
|
+
scale: number;
|
|
79
|
+
dimensional: PoiNodeType;
|
|
80
|
+
content: string;
|
|
81
|
+
media: PoiMedia | null;
|
|
82
|
+
contentType: PoiContentTypeEnum;
|
|
83
|
+
display: boolean;
|
|
84
|
+
style: string;
|
|
85
|
+
}
|
|
34
86
|
/**
|
|
35
87
|
* origin path
|
|
36
88
|
*/
|
|
@@ -131,9 +183,9 @@ export interface IPresetEffectsOptions {
|
|
|
131
183
|
};
|
|
132
184
|
}
|
|
133
185
|
/**
|
|
134
|
-
*
|
|
186
|
+
* constructor options
|
|
135
187
|
*/
|
|
136
|
-
export interface
|
|
188
|
+
export interface ConstructorOptions {
|
|
137
189
|
/**
|
|
138
190
|
* 平台解密公钥
|
|
139
191
|
*/
|
|
@@ -142,6 +194,11 @@ export interface ILoadSceneOptions {
|
|
|
142
194
|
* 资源包路径
|
|
143
195
|
*/
|
|
144
196
|
path?: string;
|
|
197
|
+
}
|
|
198
|
+
/**
|
|
199
|
+
* loadScene options
|
|
200
|
+
*/
|
|
201
|
+
export interface ILoadSceneOptions extends ConstructorOptions {
|
|
145
202
|
/**
|
|
146
203
|
* 同步自定义属性
|
|
147
204
|
*/
|
|
@@ -201,7 +258,4 @@ export declare enum LoadSceneAlgorithm {
|
|
|
201
258
|
BFS = "BFS",
|
|
202
259
|
DFS = "DFS"
|
|
203
260
|
}
|
|
204
|
-
export interface Options {
|
|
205
|
-
key?: string;
|
|
206
|
-
}
|
|
207
261
|
export {};
|
package/dist/utils.d.ts
CHANGED
|
@@ -1,6 +1,13 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* 解码
|
|
3
|
-
* @param encodedStr
|
|
4
|
-
* @returns
|
|
5
|
-
*/
|
|
2
|
+
* 解码
|
|
3
|
+
* @param encodedStr
|
|
4
|
+
* @returns
|
|
5
|
+
*/
|
|
6
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[]>;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@soonspacejs/plugin-cps-soonmanager",
|
|
3
3
|
"pluginName": "CpsSoonmanagerPlugin",
|
|
4
|
-
"version": "2.9.
|
|
4
|
+
"version": "2.9.7",
|
|
5
5
|
"description": "Sync cps soonmanager data plugin for SoonSpace.js",
|
|
6
6
|
"main": "dist/index.esm.js",
|
|
7
7
|
"module": "dist/index.esm.js",
|
|
@@ -13,8 +13,17 @@
|
|
|
13
13
|
],
|
|
14
14
|
"author": "xunwei",
|
|
15
15
|
"license": "UNLICENSED",
|
|
16
|
-
"gitHead": "
|
|
16
|
+
"gitHead": "a15e2ecffc921c604f41b9218553c63dd5e5e279",
|
|
17
|
+
"dependentPlugins": [
|
|
18
|
+
"plugin-poi-renderer"
|
|
19
|
+
],
|
|
20
|
+
"dependencies": {
|
|
21
|
+
"@soonflow/core": "^0.2.3",
|
|
22
|
+
"@soonflow/plugin-soonmanager2-node": "^0.2.3",
|
|
23
|
+
"@soonflow/plugin-soonmanager2-sync": "^0.2.3"
|
|
24
|
+
},
|
|
17
25
|
"peerDependencies": {
|
|
18
|
-
"soonspacejs": "2.9.
|
|
26
|
+
"@soonspacejs/plugin-poi-renderer": "2.9.7",
|
|
27
|
+
"soonspacejs": "2.9.7"
|
|
19
28
|
}
|
|
20
29
|
}
|