@soonspacejs/plugin-cps-soonmanager 2.11.19 → 2.11.21

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
@@ -1,5 +1,5 @@
1
1
  import { Tween } from '@tweenjs/tween.js';
2
- import { AnimationModeType, BaseObjectInfo, IVector3, PlaneIVector2, PoiNodeType } from 'soonspacejs/types/Interface';
2
+ import { AnimationModeType, BaseObjectInfo, IVector3, PoiNodeType } from 'soonspacejs/types/Interface';
3
3
  /**
4
4
  * 场景元数据
5
5
  */
@@ -24,7 +24,7 @@ export interface ITreeData {
24
24
  id: string;
25
25
  pid: string | null;
26
26
  name: string;
27
- renderType: 'GROUP' | '3D' | 'ROOM' | 'STUB' | 'POLYGON' | 'CIRCLE';
27
+ renderType: 'GROUP' | '3D' | 'ROOM' | 'STUB' | 'POLYGON' | 'CIRCLE' | 'WATER_SURFACE';
28
28
  deviceName: string | null;
29
29
  deviceCode: string | null;
30
30
  matrix: number[];
@@ -35,9 +35,12 @@ export interface ITreeData {
35
35
  shape?: {
36
36
  height: number;
37
37
  radius: number;
38
- points?: PlaneIVector2[];
38
+ points?: IVector3[];
39
39
  };
40
40
  boundingBox?: number[];
41
+ extra?: {
42
+ [key: string]: any;
43
+ };
41
44
  }
42
45
  export declare enum PoiContentTypeEnum {
43
46
  PANEL = "PANEL",
@@ -190,6 +193,7 @@ export interface IPresetEffectsOptions {
190
193
  directionalLightShadow?: boolean | {
191
194
  angle?: number;
192
195
  };
196
+ toneMappping?: boolean;
193
197
  }
194
198
  /**
195
199
  * constructor options
package/dist/utils.d.ts CHANGED
@@ -1,5 +1,6 @@
1
1
  import SoonSpace from 'soonspacejs';
2
2
  import { ITreeData } from './types';
3
+ import CpsSoonmanagerPlugin from '.';
3
4
  /**
4
5
  * 解码
5
6
  * @param encodedStr
@@ -14,3 +15,4 @@ export declare function decodeString(encodedStr: string): string;
14
15
  */
15
16
  export declare function groupBy<T extends Record<string, any>, V>(list: T[], key: keyof T): Map<V, T[]>;
16
17
  export declare function createRoom(ssp: SoonSpace, node: ITreeData): import("../../../soonspacejs/src/Library/Group").Group | null;
18
+ export declare function createWaterSurface(cpsPlugin: CpsSoonmanagerPlugin, node: ITreeData): import("../../../soonspacejs/src/Library/PluginObject").PluginObject | 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.19",
4
+ "version": "2.11.21",
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,9 +13,10 @@
13
13
  ],
14
14
  "author": "xunwei",
15
15
  "license": "UNLICENSED",
16
- "gitHead": "9c8cda172fa5d6afd0f5f26995accbbd27d318f1",
16
+ "gitHead": "0ff14d710fe4baa6231a2c9900590c42d75cd5a9",
17
17
  "dependentPlugins": [
18
- "plugin-poi-renderer"
18
+ "plugin-poi-renderer",
19
+ "plugin-effect"
19
20
  ],
20
21
  "dependencies": {
21
22
  "@soonflow/core": "0.2.13",
@@ -27,7 +28,8 @@
27
28
  "socket.io-client": "^4.7.2"
28
29
  },
29
30
  "peerDependencies": {
30
- "@soonspacejs/plugin-poi-renderer": "2.11.19",
31
- "soonspacejs": "2.11.19"
31
+ "@soonspacejs/plugin-effect": "2.11.21",
32
+ "@soonspacejs/plugin-poi-renderer": "2.11.21",
33
+ "soonspacejs": "2.11.21"
32
34
  }
33
35
  }