@soonspacejs/plugin-cps-soonmanager 2.11.43 → 2.11.45
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.esm.js +4 -4
- package/dist/types.d.ts +4 -3
- package/dist/utils.d.ts +7 -1
- package/package.json +5 -5
package/dist/types.d.ts
CHANGED
|
@@ -25,7 +25,7 @@ export interface ITreeData {
|
|
|
25
25
|
pid: string | null;
|
|
26
26
|
name: string;
|
|
27
27
|
uuid: string;
|
|
28
|
-
renderType: 'GROUP' | '3D' | '
|
|
28
|
+
renderType: 'GROUP' | '3D' | 'STUB' | 'POLYGON' | 'CIRCLE' | 'WATER_SURFACE' | 'DECAL' | 'AREA' | 'FLOOR' | 'ROOM';
|
|
29
29
|
deviceCode: string | null;
|
|
30
30
|
matrix: number[];
|
|
31
31
|
path: string | null;
|
|
@@ -33,8 +33,9 @@ export interface ITreeData {
|
|
|
33
33
|
children: ITreeData[];
|
|
34
34
|
visible: boolean;
|
|
35
35
|
shape?: {
|
|
36
|
-
height
|
|
37
|
-
radius
|
|
36
|
+
height?: number;
|
|
37
|
+
radius?: number;
|
|
38
|
+
depth?: number;
|
|
38
39
|
points?: IVector3[];
|
|
39
40
|
};
|
|
40
41
|
boundingBox?: number[];
|
package/dist/utils.d.ts
CHANGED
|
@@ -14,6 +14,12 @@ export declare function decodeString(encodedStr: string): string;
|
|
|
14
14
|
* @returns Map
|
|
15
15
|
*/
|
|
16
16
|
export declare function groupBy<T extends Record<string, any>, V>(list: T[], key: keyof T): Map<V, T[]>;
|
|
17
|
-
|
|
17
|
+
/**
|
|
18
|
+
* 创建空间
|
|
19
|
+
* @param ssp
|
|
20
|
+
* @param node
|
|
21
|
+
* @returns
|
|
22
|
+
*/
|
|
23
|
+
export declare function createSpace(ssp: SoonSpace, node: ITreeData): import("../../../soonspacejs/src/Library/Canvas3D").Canvas3D | null;
|
|
18
24
|
export declare function createWaterSurface(cpsPlugin: CpsSoonmanagerPlugin, node: ITreeData): import("../../../soonspacejs/src/Library/PluginObject").PluginObject | null;
|
|
19
25
|
export declare function createDecal(ssp: SoonSpace, node: ITreeData): Promise<import("../../../soonspacejs/src/Library/Decal").Decal | null>;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@soonspacejs/plugin-cps-soonmanager",
|
|
3
3
|
"pluginName": "CpsSoonmanagerPlugin",
|
|
4
|
-
"version": "2.11.
|
|
4
|
+
"version": "2.11.45",
|
|
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,7 +13,7 @@
|
|
|
13
13
|
],
|
|
14
14
|
"author": "xunwei",
|
|
15
15
|
"license": "UNLICENSED",
|
|
16
|
-
"gitHead": "
|
|
16
|
+
"gitHead": "ca9a3e502e638afcd979543604db399e5ca9b0be",
|
|
17
17
|
"dependentPlugins": [
|
|
18
18
|
"plugin-poi-renderer",
|
|
19
19
|
"plugin-effect"
|
|
@@ -28,8 +28,8 @@
|
|
|
28
28
|
"socket.io-client": "^4.7.2"
|
|
29
29
|
},
|
|
30
30
|
"peerDependencies": {
|
|
31
|
-
"@soonspacejs/plugin-effect": "2.11.
|
|
32
|
-
"@soonspacejs/plugin-poi-renderer": "2.11.
|
|
33
|
-
"soonspacejs": "2.11.
|
|
31
|
+
"@soonspacejs/plugin-effect": "2.11.45",
|
|
32
|
+
"@soonspacejs/plugin-poi-renderer": "2.11.45",
|
|
33
|
+
"soonspacejs": "2.11.45"
|
|
34
34
|
}
|
|
35
35
|
}
|