@soonspacejs/plugin-cps-soonmanager 2.15.0 → 2.15.2
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 +6 -0
- package/dist/gis-plot.utils.d.ts +7 -0
- package/dist/index.d.ts +17 -1
- package/dist/index.esm.js +305 -144
- package/dist/index.esm.js.map +1 -0
- package/dist/semantic.utils.d.ts +4 -0
- package/dist/types.d.ts +77 -1
- package/dist/utils.d.ts +1 -0
- package/package.json +12 -9
package/dist/semantic.utils.d.ts
CHANGED
|
@@ -1,4 +1,8 @@
|
|
|
1
1
|
import { default as SoonSpace } from 'soonspacejs';
|
|
2
2
|
import { SemanticObject } from './semantic.types';
|
|
3
|
+
/**
|
|
4
|
+
* 根据语义数据在楼层节点下挂出墙、窗、柱等调试几何。
|
|
5
|
+
* 这里只负责可视化语义辅助对象,不影响真实场景模型本身。
|
|
6
|
+
*/
|
|
3
7
|
declare function loadSemanticObjects(ssp: SoonSpace, semanticData: SemanticObject): void;
|
|
4
8
|
export { loadSemanticObjects, };
|
package/dist/types.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { PlotTextAlign, PlotTextLayoutDirection } from '@soonspacejs/plugin-tiles';
|
|
1
2
|
import { AnimationModeType, BaseObjectInfo, IVector3, PoiNodeType } from 'soonspacejs';
|
|
2
3
|
import { TTweenSource, TTweenType } from 'umanager-animation-parser';
|
|
3
4
|
export type BaseTreeNode<T> = T & {
|
|
@@ -37,7 +38,7 @@ export interface ITreeData {
|
|
|
37
38
|
pid: string | null;
|
|
38
39
|
sid: string;
|
|
39
40
|
name: string;
|
|
40
|
-
renderType: 'GROUP' | '3D' | 'STUB' | 'POLYGON' | 'CIRCLE' | 'WATER_SURFACE' | 'DECAL' | 'AREA' | 'FLOOR' | 'ROOM' | 'DOOR' | 'OUTSIDE' | 'BUILDING' | 'STAIRCASE' | 'ELEVATOR' | 'GS';
|
|
41
|
+
renderType: 'GROUP' | '3D' | 'STUB' | 'POLYGON' | 'CIRCLE' | 'WATER_SURFACE' | 'DECAL' | 'AREA' | 'FLOOR' | 'ROOM' | 'DOOR' | 'OUTSIDE' | 'BUILDING' | 'STAIRCASE' | 'ELEVATOR' | 'VENT' | 'WINDOW' | 'GS';
|
|
41
42
|
deviceCode: string | null;
|
|
42
43
|
matrix: number[];
|
|
43
44
|
familyId: string | null;
|
|
@@ -305,6 +306,14 @@ export interface ILoadSceneOptions extends ConstructorOptions {
|
|
|
305
306
|
* 加载流程数据
|
|
306
307
|
*/
|
|
307
308
|
loadFlowData?: boolean;
|
|
309
|
+
/**
|
|
310
|
+
* 鍔犺浇 FDS 妯℃嫙鏁版嵁锛屾垨鐩存帴浣跨敤 url
|
|
311
|
+
*/
|
|
312
|
+
loadFDS?: boolean | string;
|
|
313
|
+
/**
|
|
314
|
+
* FDS 妯℃嫙鏁版嵁 url
|
|
315
|
+
*/
|
|
316
|
+
fdsUrl?: string;
|
|
308
317
|
/**
|
|
309
318
|
* 场景 group 信息
|
|
310
319
|
*/
|
|
@@ -318,6 +327,34 @@ export interface ILoadSceneOptions extends ConstructorOptions {
|
|
|
318
327
|
*/
|
|
319
328
|
asId?: 'id' | 'sid';
|
|
320
329
|
}
|
|
330
|
+
export interface IFdsData {
|
|
331
|
+
id: string;
|
|
332
|
+
sid?: string;
|
|
333
|
+
nodeId?: string;
|
|
334
|
+
name?: string;
|
|
335
|
+
visible?: boolean;
|
|
336
|
+
path: string;
|
|
337
|
+
meshIjk?: {
|
|
338
|
+
x: number;
|
|
339
|
+
y: number;
|
|
340
|
+
z: number;
|
|
341
|
+
};
|
|
342
|
+
meshXb?: {
|
|
343
|
+
minX: number;
|
|
344
|
+
minY: number;
|
|
345
|
+
minZ: number;
|
|
346
|
+
maxX: number;
|
|
347
|
+
maxY: number;
|
|
348
|
+
maxZ: number;
|
|
349
|
+
};
|
|
350
|
+
simulationTime?: number | string;
|
|
351
|
+
hrrpuv?: boolean;
|
|
352
|
+
sootDensity?: boolean;
|
|
353
|
+
temperature?: boolean;
|
|
354
|
+
order?: number;
|
|
355
|
+
builderProjectId?: string;
|
|
356
|
+
builderFdsId?: string;
|
|
357
|
+
}
|
|
321
358
|
/**
|
|
322
359
|
* properties map
|
|
323
360
|
*/
|
|
@@ -391,4 +428,43 @@ export interface IGisData {
|
|
|
391
428
|
terrain?: Terrain[];
|
|
392
429
|
tileset?: Tileset[];
|
|
393
430
|
}
|
|
431
|
+
export interface IGisPlotGeometry {
|
|
432
|
+
type: 'Point' | 'LineString' | 'Polygon';
|
|
433
|
+
coordinates: number[];
|
|
434
|
+
}
|
|
435
|
+
export interface IGisPlotProperties {
|
|
436
|
+
name: string;
|
|
437
|
+
plotType: string;
|
|
438
|
+
strokeColor: string;
|
|
439
|
+
strokeWidth: number;
|
|
440
|
+
strokeOpacity: number;
|
|
441
|
+
fillColor: string;
|
|
442
|
+
fillOpacity: number;
|
|
443
|
+
strokeStyle: string;
|
|
444
|
+
pointStyle: 'circle' | 'square';
|
|
445
|
+
size: number;
|
|
446
|
+
startArrowStyle: string | null;
|
|
447
|
+
endArrowStyle: string | null;
|
|
448
|
+
radius: number;
|
|
449
|
+
startAngle: number;
|
|
450
|
+
sectorAngle: number;
|
|
451
|
+
arrowType: string;
|
|
452
|
+
headSize: number;
|
|
453
|
+
content: string;
|
|
454
|
+
fontSize: number;
|
|
455
|
+
textAlign: PlotTextAlign;
|
|
456
|
+
fontColor: string;
|
|
457
|
+
rotation: number;
|
|
458
|
+
offsetX: number;
|
|
459
|
+
offsetY: number;
|
|
460
|
+
textLayout: PlotTextLayoutDirection;
|
|
461
|
+
[key: string]: unknown;
|
|
462
|
+
}
|
|
463
|
+
export interface IGisPlot {
|
|
464
|
+
id: string;
|
|
465
|
+
sid: string;
|
|
466
|
+
visible: boolean;
|
|
467
|
+
geometry: IGisPlotGeometry;
|
|
468
|
+
properties: IGisPlotProperties;
|
|
469
|
+
}
|
|
394
470
|
export {};
|
package/dist/utils.d.ts
CHANGED
|
@@ -25,6 +25,7 @@ export declare function createSpace(ssp: SoonSpace, node: ITreeData, objectId: s
|
|
|
25
25
|
* @returns
|
|
26
26
|
*/
|
|
27
27
|
export declare function createDoor(ssp: SoonSpace, node: ITreeData, objectId: string): import('soonspacejs').Canvas3D;
|
|
28
|
+
export declare function createWindow(ssp: SoonSpace, node: ITreeData, objectId: string): import('soonspacejs').Canvas3D;
|
|
28
29
|
/**
|
|
29
30
|
* 创建楼梯
|
|
30
31
|
* @param ssp
|
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.2",
|
|
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",
|
|
@@ -18,6 +18,7 @@
|
|
|
18
18
|
"plugin-poi-renderer",
|
|
19
19
|
"plugin-effect",
|
|
20
20
|
"plugin-atmosphere",
|
|
21
|
+
"plugin-fds",
|
|
21
22
|
"plugin-gs3d-loader",
|
|
22
23
|
"plugin-flow",
|
|
23
24
|
"plugin-tiles"
|
|
@@ -27,6 +28,7 @@
|
|
|
27
28
|
"@soonflow/plugin-soonmanager2-node": "0.2.13",
|
|
28
29
|
"@soonflow/plugin-soonmanager2-sync": "0.2.13",
|
|
29
30
|
"@types/lodash-es": "^4.17.9",
|
|
31
|
+
"@types/ndarray": "^1.0.14",
|
|
30
32
|
"@types/node-rsa": "^1.1.1",
|
|
31
33
|
"crypto-browserify": "^3.12.0",
|
|
32
34
|
"lodash-es": "^4.17.21",
|
|
@@ -35,13 +37,14 @@
|
|
|
35
37
|
"socket.io-client": "^4.7.2"
|
|
36
38
|
},
|
|
37
39
|
"peerDependencies": {
|
|
38
|
-
"@soonspacejs/plugin-atmosphere": "2.15.
|
|
39
|
-
"@soonspacejs/plugin-effect": "2.15.
|
|
40
|
-
"@soonspacejs/plugin-flow": "2.15.
|
|
41
|
-
"@soonspacejs/plugin-gs3d-loader": "2.15.
|
|
42
|
-
"@soonspacejs/plugin-poi-renderer": "2.15.
|
|
43
|
-
"@soonspacejs/plugin-tiles": "2.15.
|
|
44
|
-
"soonspacejs": "2.15.
|
|
45
|
-
"umanager-animation-parser": "^0.0.6"
|
|
40
|
+
"@soonspacejs/plugin-atmosphere": "2.15.2",
|
|
41
|
+
"@soonspacejs/plugin-effect": "2.15.2",
|
|
42
|
+
"@soonspacejs/plugin-flow": "2.15.2",
|
|
43
|
+
"@soonspacejs/plugin-gs3d-loader": "2.15.2",
|
|
44
|
+
"@soonspacejs/plugin-poi-renderer": "2.15.2",
|
|
45
|
+
"@soonspacejs/plugin-tiles": "2.15.2",
|
|
46
|
+
"soonspacejs": "2.15.2",
|
|
47
|
+
"umanager-animation-parser": "^0.0.6",
|
|
48
|
+
"@soonspacejs/plugin-fds": "2.15.2"
|
|
46
49
|
}
|
|
47
50
|
}
|