@glowjs/core 2022.6.29 → 2022.7.6

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.
@@ -30,6 +30,10 @@ export declare class CameraMgr extends Base {
30
30
  * @param app 应用
31
31
  */
32
32
  constructor(app: App);
33
+ /**
34
+ * 在地表以上(默认true)
35
+ */
36
+ aboveGround: boolean;
33
37
  /**
34
38
  * 获取或设置人称
35
39
  */
@@ -1,5 +1,6 @@
1
1
  import { App } from '../../../core/App';
2
2
  import { Entity } from '../../Entity';
3
+ import { ResImageSource } from './ResImageSource';
3
4
  /**
4
5
  * 板卡
5
6
  */
@@ -34,8 +35,8 @@ export declare class BoardCard extends Entity {
34
35
  /**
35
36
  * 获取或设置前面图片
36
37
  */
37
- get frontImg(): string;
38
- set frontImg(value: string);
38
+ get frontImg(): ResImageSource;
39
+ set frontImg(value: ResImageSource);
39
40
  /**
40
41
  * 获取或设置背景颜色
41
42
  */
@@ -1,5 +1,6 @@
1
1
  import { App } from '../../../core/App';
2
2
  import { Entity } from '../../Entity';
3
+ import { ResImageSource } from './ResImageSource';
3
4
  /**
4
5
  * 机架设备
5
6
  */
@@ -58,13 +59,13 @@ export declare class RackMounted extends Entity {
58
59
  /**
59
60
  * 获取或设置前面图片
60
61
  */
61
- get frontImg(): string;
62
- set frontImg(value: string);
62
+ get frontImg(): ResImageSource;
63
+ set frontImg(value: ResImageSource);
63
64
  /**
64
65
  * 获取或设置后面图片
65
66
  */
66
- get backImg(): string;
67
- set backImg(value: string);
67
+ get backImg(): ResImageSource;
68
+ set backImg(value: ResImageSource);
68
69
  /**
69
70
  * 获取或设置背景颜色
70
71
  */
@@ -0,0 +1,13 @@
1
+ /**
2
+ * 资产图片(字符串表示JSON字符串,对象表示文件)
3
+ */
4
+ export declare type ResImageSource = string | {
5
+ /**
6
+ * 图片资源ID
7
+ */
8
+ id: string;
9
+ /**
10
+ * 扩展名
11
+ */
12
+ ext: string;
13
+ };
@@ -55,6 +55,7 @@ export { Cabinet } from './entity/component/cabinet/Cabinet';
55
55
  export { RackMounted } from './entity/component/cabinet/RackMounted';
56
56
  export { BoardCard } from './entity/component/cabinet/BoardCard';
57
57
  export { NetworkPort } from './entity/component/cabinet/NetworkPort';
58
+ export { ResImageSource } from './entity/component/cabinet/ResImageSource';
58
59
  export { MaterialMgr } from './material/MaterialMgr';
59
60
  export { Group } from './entity/Group';
60
61
  export { Thing } from './entity/Thing';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@glowjs/core",
3
- "version": "2022.06.29",
3
+ "version": "2022.07.06",
4
4
  "description": "GlowJS数字孪生引擎核心库。",
5
5
  "main": "./dist/glow.core.js",
6
6
  "types": "./dist/typings/index.d.ts",