@soonspacejs/plugin-cps-soonmanager 2.14.34 → 2.14.37
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 +3194 -3065
- package/dist/semantic.types.d.ts +30 -20
- package/dist/types.d.ts +1 -1
- package/dist/utils.d.ts +25 -1
- package/package.json +8 -8
package/dist/semantic.types.d.ts
CHANGED
|
@@ -17,6 +17,15 @@ export interface Door {
|
|
|
17
17
|
export interface Polygon {
|
|
18
18
|
shape: number[];
|
|
19
19
|
}
|
|
20
|
+
export interface Column {
|
|
21
|
+
ID: string;
|
|
22
|
+
Elevation: number;
|
|
23
|
+
Height: number;
|
|
24
|
+
Polygon: Polygon;
|
|
25
|
+
}
|
|
26
|
+
export interface Polygon {
|
|
27
|
+
shape: number[];
|
|
28
|
+
}
|
|
20
29
|
export interface Space {
|
|
21
30
|
CeilingHeight: number;
|
|
22
31
|
GroundHeight: number;
|
|
@@ -34,19 +43,19 @@ export interface Polygon {
|
|
|
34
43
|
shape: number[];
|
|
35
44
|
}
|
|
36
45
|
export interface Story {
|
|
37
|
-
Columns
|
|
38
|
-
Doors
|
|
39
|
-
Elevation
|
|
40
|
-
Facilities
|
|
46
|
+
Columns?: any[];
|
|
47
|
+
Doors?: number[];
|
|
48
|
+
Elevation?: number;
|
|
49
|
+
Facilities?: any[];
|
|
41
50
|
FloorIndex?: any;
|
|
42
|
-
Height
|
|
43
|
-
ID
|
|
44
|
-
Name
|
|
45
|
-
Polygon
|
|
46
|
-
Spaces
|
|
47
|
-
Staircases
|
|
48
|
-
Walls
|
|
49
|
-
Windows
|
|
51
|
+
Height?: number;
|
|
52
|
+
ID?: string;
|
|
53
|
+
Name?: string;
|
|
54
|
+
Polygon?: Polygon;
|
|
55
|
+
Spaces?: number[];
|
|
56
|
+
Staircases?: number[];
|
|
57
|
+
Walls?: number[];
|
|
58
|
+
Windows?: number[];
|
|
50
59
|
}
|
|
51
60
|
export interface Polygon {
|
|
52
61
|
shape: number[];
|
|
@@ -81,12 +90,13 @@ export interface Asset {
|
|
|
81
90
|
UBuilder?: any;
|
|
82
91
|
}
|
|
83
92
|
export interface SemanticObject {
|
|
84
|
-
Buildings
|
|
85
|
-
Doors
|
|
86
|
-
Spaces
|
|
87
|
-
Staircases
|
|
88
|
-
Stories
|
|
89
|
-
Walls
|
|
90
|
-
Windows
|
|
91
|
-
|
|
93
|
+
Buildings?: Building[];
|
|
94
|
+
Doors?: Door[];
|
|
95
|
+
Spaces?: Space[];
|
|
96
|
+
Staircases?: Staircase[];
|
|
97
|
+
Stories?: Story[];
|
|
98
|
+
Walls?: Wall[];
|
|
99
|
+
Windows?: Window[];
|
|
100
|
+
Columns?: Column[];
|
|
101
|
+
Asset?: Asset;
|
|
92
102
|
}
|
package/dist/types.d.ts
CHANGED
|
@@ -37,7 +37,7 @@ export interface ITreeData {
|
|
|
37
37
|
pid: string | null;
|
|
38
38
|
sid: string;
|
|
39
39
|
name: string;
|
|
40
|
-
renderType: 'GROUP' | '3D' | 'STUB' | 'POLYGON' | 'CIRCLE' | 'WATER_SURFACE' | 'DECAL' | 'AREA' | 'FLOOR' | 'ROOM' | 'GS';
|
|
40
|
+
renderType: 'GROUP' | '3D' | 'STUB' | 'POLYGON' | 'CIRCLE' | 'WATER_SURFACE' | 'DECAL' | 'AREA' | 'FLOOR' | 'ROOM' | 'DOOR' | 'OUTSIDE' | 'BUILDING' | 'STAIRCASE' | 'ELEVATOR' | 'GS';
|
|
41
41
|
deviceCode: string | null;
|
|
42
42
|
matrix: number[];
|
|
43
43
|
familyId: string | null;
|
package/dist/utils.d.ts
CHANGED
|
@@ -9,7 +9,7 @@ import { default as CpsSoonmanagerPlugin } from '.';
|
|
|
9
9
|
*/
|
|
10
10
|
export declare function decodeString(encodedStr: string): string;
|
|
11
11
|
export declare const mapTreeNodeByKey: <T, K extends keyof BaseTreeNode<T>, V>(tree: BaseTreeNode<T>[], key: K, map?: Map<V, BaseTreeNode<T>>) => Map<V, BaseTreeNode<T>>;
|
|
12
|
-
export declare function isSpace(renderType: ITreeData['renderType']): renderType is "AREA" | "FLOOR" | "ROOM";
|
|
12
|
+
export declare function isSpace(renderType: ITreeData['renderType']): renderType is "AREA" | "FLOOR" | "ROOM" | "OUTSIDE" | "BUILDING";
|
|
13
13
|
/**
|
|
14
14
|
* 创建空间
|
|
15
15
|
* @param ssp
|
|
@@ -17,6 +17,30 @@ export declare function isSpace(renderType: ITreeData['renderType']): renderType
|
|
|
17
17
|
* @returns
|
|
18
18
|
*/
|
|
19
19
|
export declare function createSpace(ssp: SoonSpace, node: ITreeData, objectId: string): import('soonspacejs').Canvas3D;
|
|
20
|
+
/**
|
|
21
|
+
* 创建门
|
|
22
|
+
* @param ssp
|
|
23
|
+
* @param node
|
|
24
|
+
* @param objectId
|
|
25
|
+
* @returns
|
|
26
|
+
*/
|
|
27
|
+
export declare function createDoor(ssp: SoonSpace, node: ITreeData, objectId: string): import('soonspacejs').Canvas3D;
|
|
28
|
+
/**
|
|
29
|
+
* 创建楼梯
|
|
30
|
+
* @param ssp
|
|
31
|
+
* @param node
|
|
32
|
+
* @param objectId
|
|
33
|
+
* @returns
|
|
34
|
+
*/
|
|
35
|
+
export declare function createStaircase(ssp: SoonSpace, node: ITreeData, objectId: string): import('soonspacejs').Canvas3D;
|
|
36
|
+
/**
|
|
37
|
+
* 创建电梯
|
|
38
|
+
* @param ssp
|
|
39
|
+
* @param node
|
|
40
|
+
* @param objectId
|
|
41
|
+
* @returns
|
|
42
|
+
*/
|
|
43
|
+
export declare function createElevator(ssp: SoonSpace, node: ITreeData, objectId: string): import('soonspacejs').Canvas3D;
|
|
20
44
|
export declare function createWaterSurface(cpsPlugin: CpsSoonmanagerPlugin, node: ITreeData, objectId: string): import('soonspacejs').PluginObject | null;
|
|
21
45
|
export declare function createDecal(ssp: SoonSpace, node: ITreeData, objectId: string, path: string | null): Promise<import('soonspacejs').Decal | null>;
|
|
22
46
|
export declare function createGs3d(ssp: SoonSpace, node: ITreeData, path: string | null): Promise<BaseObject3D>;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@soonspacejs/plugin-cps-soonmanager",
|
|
3
3
|
"pluginName": "CpsSoonmanagerPlugin",
|
|
4
|
-
"version": "2.14.
|
|
4
|
+
"version": "2.14.37",
|
|
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",
|
|
@@ -35,13 +35,13 @@
|
|
|
35
35
|
"socket.io-client": "^4.7.2"
|
|
36
36
|
},
|
|
37
37
|
"peerDependencies": {
|
|
38
|
-
"@soonspacejs/plugin-atmosphere": "2.14.
|
|
39
|
-
"@soonspacejs/plugin-effect": "2.14.
|
|
40
|
-
"@soonspacejs/plugin-flow": "2.14.
|
|
41
|
-
"@soonspacejs/plugin-gs3d-loader": "2.14.
|
|
42
|
-
"@soonspacejs/plugin-poi-renderer": "2.14.
|
|
43
|
-
"@soonspacejs/plugin-tiles": "2.14.
|
|
44
|
-
"soonspacejs": "2.14.
|
|
38
|
+
"@soonspacejs/plugin-atmosphere": "2.14.37",
|
|
39
|
+
"@soonspacejs/plugin-effect": "2.14.37",
|
|
40
|
+
"@soonspacejs/plugin-flow": "2.14.37",
|
|
41
|
+
"@soonspacejs/plugin-gs3d-loader": "2.14.37",
|
|
42
|
+
"@soonspacejs/plugin-poi-renderer": "2.14.37",
|
|
43
|
+
"@soonspacejs/plugin-tiles": "2.14.37",
|
|
44
|
+
"soonspacejs": "2.14.37",
|
|
45
45
|
"umanager-animation-parser": "^0.0.6"
|
|
46
46
|
}
|
|
47
47
|
}
|