@soonspacejs/plugin-cps-soonmanager 2.15.15 → 2.15.17
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 +1 -0
- package/dist/index.d.ts +3 -1
- package/dist/index.esm.js +9144 -8748
- package/dist/semantic.types.d.ts +64 -0
- package/dist/site-road.utils.d.ts +8 -0
- package/dist/types.d.ts +34 -2
- package/dist/utils.d.ts +6 -1
- package/package.json +9 -9
package/dist/semantic.types.d.ts
CHANGED
|
@@ -74,6 +74,64 @@ export interface Asset {
|
|
|
74
74
|
Version: string;
|
|
75
75
|
UBuilder?: any;
|
|
76
76
|
}
|
|
77
|
+
export interface Site {
|
|
78
|
+
ID?: string;
|
|
79
|
+
Name?: string;
|
|
80
|
+
Polygon?: Polygon;
|
|
81
|
+
Elevation?: number;
|
|
82
|
+
Coordinates?: number[];
|
|
83
|
+
}
|
|
84
|
+
export interface Zone {
|
|
85
|
+
ID: string;
|
|
86
|
+
Name?: string;
|
|
87
|
+
Polygon?: Polygon;
|
|
88
|
+
Elevation?: number;
|
|
89
|
+
Facilities?: number[];
|
|
90
|
+
}
|
|
91
|
+
export interface WaterSource {
|
|
92
|
+
ID: string;
|
|
93
|
+
Name?: string;
|
|
94
|
+
Polygon?: Polygon;
|
|
95
|
+
Elevation?: number;
|
|
96
|
+
}
|
|
97
|
+
export interface Entrance {
|
|
98
|
+
ID: string;
|
|
99
|
+
Name?: string;
|
|
100
|
+
Width?: number;
|
|
101
|
+
Thickness?: number;
|
|
102
|
+
Height?: number;
|
|
103
|
+
Open?: boolean;
|
|
104
|
+
RoadEdges?: number[];
|
|
105
|
+
Polygon?: Polygon;
|
|
106
|
+
Orientation?: number[];
|
|
107
|
+
RotationY?: number;
|
|
108
|
+
Elevation?: number;
|
|
109
|
+
OutDoor?: boolean;
|
|
110
|
+
}
|
|
111
|
+
export interface RoadName {
|
|
112
|
+
ID?: string;
|
|
113
|
+
Name?: string;
|
|
114
|
+
}
|
|
115
|
+
export interface RoadNode {
|
|
116
|
+
ID: string;
|
|
117
|
+
Point: number[];
|
|
118
|
+
}
|
|
119
|
+
export interface RoadLane {
|
|
120
|
+
Width?: number;
|
|
121
|
+
}
|
|
122
|
+
export interface RoadEdge {
|
|
123
|
+
ID: string;
|
|
124
|
+
Name: number;
|
|
125
|
+
Nodes: number[];
|
|
126
|
+
UpLanes?: RoadLane[];
|
|
127
|
+
DownLanes?: RoadLane[];
|
|
128
|
+
Length?: number;
|
|
129
|
+
}
|
|
130
|
+
export interface Roads {
|
|
131
|
+
Names?: RoadName[];
|
|
132
|
+
Nodes?: RoadNode[];
|
|
133
|
+
Edges?: RoadEdge[];
|
|
134
|
+
}
|
|
77
135
|
export interface SemanticObject {
|
|
78
136
|
Buildings?: Building[];
|
|
79
137
|
Doors?: Door[];
|
|
@@ -83,5 +141,11 @@ export interface SemanticObject {
|
|
|
83
141
|
Walls?: Wall[];
|
|
84
142
|
Windows?: Window[];
|
|
85
143
|
Columns?: Column[];
|
|
144
|
+
Site?: Site;
|
|
145
|
+
Zones?: Zone[];
|
|
146
|
+
WaterSources?: WaterSource[];
|
|
147
|
+
Entrances?: Entrance[];
|
|
148
|
+
Roads?: Roads;
|
|
86
149
|
Asset?: Asset;
|
|
150
|
+
asset?: Asset;
|
|
87
151
|
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { default as SoonSpace, BaseObject3D } from 'soonspacejs';
|
|
2
|
+
import { Object3D } from 'three';
|
|
3
|
+
import { IRoadsData, ITreeData } from './types';
|
|
4
|
+
export type SiteRoadRenderResult = {
|
|
5
|
+
objects: BaseObject3D[];
|
|
6
|
+
};
|
|
7
|
+
export declare function renderSiteAndRoads(ssp: SoonSpace, treeData: ITreeData[], roadsData: IRoadsData, parent: Object3D | null, resolveObjectId: (node: ITreeData) => string): SiteRoadRenderResult;
|
|
8
|
+
export declare function disposeSiteAndRoads(ssp: SoonSpace, result: SiteRoadRenderResult | null): void;
|
package/dist/types.d.ts
CHANGED
|
@@ -53,7 +53,7 @@ export interface ITreeData {
|
|
|
53
53
|
pid: string | null;
|
|
54
54
|
sid: string;
|
|
55
55
|
name: string;
|
|
56
|
-
renderType: 'GROUP' | '3D' | 'STUB' | 'POLYGON' | 'CIRCLE' | 'WATER_SURFACE' | 'DECAL' | 'AREA' | 'FLOOR' | 'ROOM' | 'DOOR' | 'OUTSIDE' | 'BUILDING' | 'STAIRCASE' | 'ELEVATOR' | 'VENT' | 'WINDOW' | 'GS';
|
|
56
|
+
renderType: 'GROUP' | '3D' | 'STUB' | 'POLYGON' | 'CIRCLE' | 'WATER_SURFACE' | 'DECAL' | 'AREA' | 'FLOOR' | 'ROOM' | 'DOOR' | 'OUTSIDE' | 'BUILDING' | 'STAIRCASE' | 'ELEVATOR' | 'VENT' | 'WINDOW' | 'ZONE' | 'WATER_SOURCE' | 'ENTRANCE' | 'ROAD' | 'GS';
|
|
57
57
|
deviceCode: string | null;
|
|
58
58
|
matrix: number[];
|
|
59
59
|
familyId: string | null;
|
|
@@ -74,6 +74,34 @@ export interface IInnerTreeData extends ITreeData {
|
|
|
74
74
|
path: string | null;
|
|
75
75
|
children: IInnerTreeData[];
|
|
76
76
|
}
|
|
77
|
+
export interface IRoadLane {
|
|
78
|
+
width?: number;
|
|
79
|
+
}
|
|
80
|
+
export interface IRoadNode {
|
|
81
|
+
id: string;
|
|
82
|
+
sid: string;
|
|
83
|
+
roadId: string;
|
|
84
|
+
name?: string;
|
|
85
|
+
x: number;
|
|
86
|
+
y: number;
|
|
87
|
+
z: number;
|
|
88
|
+
order?: number;
|
|
89
|
+
}
|
|
90
|
+
export interface IRoadEdge {
|
|
91
|
+
id: string;
|
|
92
|
+
sid: string;
|
|
93
|
+
roadId: string;
|
|
94
|
+
name?: string;
|
|
95
|
+
startNodeId: string;
|
|
96
|
+
endNodeId: string;
|
|
97
|
+
upLanes?: IRoadLane[];
|
|
98
|
+
downLanes?: IRoadLane[];
|
|
99
|
+
length?: number;
|
|
100
|
+
}
|
|
101
|
+
export interface IRoadsData {
|
|
102
|
+
nodes: IRoadNode[];
|
|
103
|
+
edges: IRoadEdge[];
|
|
104
|
+
}
|
|
77
105
|
export type IFlatData = Pick<ITreeData, 'id' | 'pid' | 'sid' | 'name' | 'renderType' | 'deviceCode' | 'familyId'>;
|
|
78
106
|
export declare enum PoiContentTypeEnum {
|
|
79
107
|
PANEL = "PANEL",
|
|
@@ -482,8 +510,12 @@ export interface IGisPlotProperties {
|
|
|
482
510
|
fillColor: string;
|
|
483
511
|
fillOpacity: number;
|
|
484
512
|
strokeStyle: string;
|
|
485
|
-
pointStyle: 'circle' | 'square';
|
|
513
|
+
pointStyle: 'circle' | 'square' | 'image';
|
|
486
514
|
size: number;
|
|
515
|
+
ontologyId?: string;
|
|
516
|
+
imageUrl?: string;
|
|
517
|
+
imageWidth?: number;
|
|
518
|
+
imageHeight?: number;
|
|
487
519
|
startArrowStyle: string | null;
|
|
488
520
|
endArrowStyle: string | null;
|
|
489
521
|
radius: number;
|
package/dist/utils.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import { default as SoonSpace, BaseObject3D, Canvas3D } from 'soonspacejs';
|
|
1
|
+
import { default as SoonSpace, BaseObject3D, Canvas3D, PlaneIVector2 } from 'soonspacejs';
|
|
2
|
+
import { Object3D } from 'three';
|
|
2
3
|
import { TAnimationFrame } from 'umanager-animation-parser';
|
|
3
4
|
import { BaseTreeNode, IKeyframe, ITreeData } from './types';
|
|
4
5
|
import { default as CpsSoonmanagerPlugin } from '.';
|
|
@@ -33,3 +34,7 @@ export declare function createWaterSurface(cpsPlugin: CpsSoonmanagerPlugin, node
|
|
|
33
34
|
export declare function createDecal(ssp: SoonSpace, node: ITreeData, objectId: string, path: string | null): Promise<import('soonspacejs').Decal | null>;
|
|
34
35
|
export declare function createGs3d(ssp: SoonSpace, node: ITreeData, path: string | null): Promise<BaseObject3D>;
|
|
35
36
|
export declare function transformKeyframes(keyframes: IKeyframe[]): TAnimationFrame[];
|
|
37
|
+
export declare function addPolygonOutline(parent: Object3D, name: string, points: PlaneIVector2[], yHeight: number, color: string, lineWidth: number): void;
|
|
38
|
+
export declare function createZone(ssp: SoonSpace, node: ITreeData, objectId: string): Canvas3D;
|
|
39
|
+
export declare function createWaterSource(ssp: SoonSpace, node: ITreeData, objectId: string): Canvas3D;
|
|
40
|
+
export declare function createEntrance(ssp: SoonSpace, node: ITreeData, objectId: string): Canvas3D;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@soonspacejs/plugin-cps-soonmanager",
|
|
3
3
|
"pluginName": "CpsSoonmanagerPlugin",
|
|
4
|
-
"version": "2.15.
|
|
4
|
+
"version": "2.15.17",
|
|
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",
|
|
@@ -37,14 +37,14 @@
|
|
|
37
37
|
"socket.io-client": "^4.7.2"
|
|
38
38
|
},
|
|
39
39
|
"peerDependencies": {
|
|
40
|
-
"@soonspacejs/plugin-atmosphere": "2.15.
|
|
41
|
-
"@soonspacejs/plugin-effect": "2.15.
|
|
42
|
-
"@soonspacejs/plugin-flow": "2.15.
|
|
43
|
-
"@soonspacejs/plugin-gs3d-loader": "2.15.
|
|
44
|
-
"@soonspacejs/plugin-poi-renderer": "2.15.
|
|
45
|
-
"@soonspacejs/plugin-tiles": "2.15.
|
|
46
|
-
"soonspacejs": "2.15.
|
|
40
|
+
"@soonspacejs/plugin-atmosphere": "2.15.17",
|
|
41
|
+
"@soonspacejs/plugin-effect": "2.15.17",
|
|
42
|
+
"@soonspacejs/plugin-flow": "2.15.17",
|
|
43
|
+
"@soonspacejs/plugin-gs3d-loader": "2.15.17",
|
|
44
|
+
"@soonspacejs/plugin-poi-renderer": "2.15.17",
|
|
45
|
+
"@soonspacejs/plugin-tiles": "2.15.17",
|
|
46
|
+
"soonspacejs": "2.15.17",
|
|
47
47
|
"umanager-animation-parser": "^0.0.6",
|
|
48
|
-
"@soonspacejs/plugin-fds": "2.15.
|
|
48
|
+
"@soonspacejs/plugin-fds": "2.15.17"
|
|
49
49
|
}
|
|
50
50
|
}
|