@soonspacejs/plugin-cps-soonmanager 2.14.35 → 2.15.0

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/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.35",
4
+ "version": "2.15.0",
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.35",
39
- "@soonspacejs/plugin-effect": "2.14.35",
40
- "@soonspacejs/plugin-flow": "2.14.35",
41
- "@soonspacejs/plugin-gs3d-loader": "2.14.35",
42
- "@soonspacejs/plugin-poi-renderer": "2.14.35",
43
- "@soonspacejs/plugin-tiles": "2.14.35",
44
- "soonspacejs": "2.14.35",
38
+ "@soonspacejs/plugin-atmosphere": "2.15.0",
39
+ "@soonspacejs/plugin-effect": "2.15.0",
40
+ "@soonspacejs/plugin-flow": "2.15.0",
41
+ "@soonspacejs/plugin-gs3d-loader": "2.15.0",
42
+ "@soonspacejs/plugin-poi-renderer": "2.15.0",
43
+ "@soonspacejs/plugin-tiles": "2.15.0",
44
+ "soonspacejs": "2.15.0",
45
45
  "umanager-animation-parser": "^0.0.6"
46
46
  }
47
47
  }