@glowjs/core 2022.6.21 → 2022.7.12
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/glow.core.js +1 -1
- package/dist/typings/camera/CameraMgr.d.ts +4 -0
- package/dist/typings/camera/OrthographicView.d.ts +5 -1
- package/dist/typings/entity/component/archive/ArchiveBox.d.ts +89 -0
- package/dist/typings/entity/component/cabinet/BoardCard.d.ts +3 -2
- package/dist/typings/entity/component/cabinet/RackMounted.d.ts +5 -4
- package/dist/typings/entity/component/cabinet/ResImageSource.d.ts +13 -0
- package/dist/typings/index.d.ts +2 -0
- package/package.json +6 -6
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
import { App } from '../../../core/App';
|
|
2
|
+
import { Entity } from '../../Entity';
|
|
3
|
+
import { ResImageSource } from '../cabinet/ResImageSource';
|
|
4
|
+
/**
|
|
5
|
+
* 档案盒
|
|
6
|
+
*/
|
|
7
|
+
export declare class ArchiveBox extends Entity {
|
|
8
|
+
/**
|
|
9
|
+
* 默认宽度
|
|
10
|
+
*/
|
|
11
|
+
static readonly defaultWidth: number;
|
|
12
|
+
/**
|
|
13
|
+
* 默认高度
|
|
14
|
+
*/
|
|
15
|
+
static readonly defaultHeight: number;
|
|
16
|
+
/**
|
|
17
|
+
* 默认深度
|
|
18
|
+
*/
|
|
19
|
+
static readonly defaultDepth: number;
|
|
20
|
+
private _box;
|
|
21
|
+
private _front;
|
|
22
|
+
private _back;
|
|
23
|
+
private _side;
|
|
24
|
+
private _width;
|
|
25
|
+
private _height;
|
|
26
|
+
private _depth;
|
|
27
|
+
private _frontImg;
|
|
28
|
+
private _backImg;
|
|
29
|
+
private _sideImg;
|
|
30
|
+
private _backgroundColor;
|
|
31
|
+
/**
|
|
32
|
+
* 实例化一个档案盒
|
|
33
|
+
* @param app 应用
|
|
34
|
+
*/
|
|
35
|
+
constructor(app: App);
|
|
36
|
+
/**
|
|
37
|
+
* 获取或设置宽度
|
|
38
|
+
*/
|
|
39
|
+
get width(): number;
|
|
40
|
+
set width(value: number);
|
|
41
|
+
/**
|
|
42
|
+
* 获取或设置高度
|
|
43
|
+
*/
|
|
44
|
+
get height(): number;
|
|
45
|
+
set height(value: number);
|
|
46
|
+
/**
|
|
47
|
+
* 获取或设置深度
|
|
48
|
+
*/
|
|
49
|
+
get depth(): number;
|
|
50
|
+
set depth(value: number);
|
|
51
|
+
/**
|
|
52
|
+
* 获取或设置前面图片
|
|
53
|
+
*/
|
|
54
|
+
get frontImg(): ResImageSource;
|
|
55
|
+
set frontImg(value: ResImageSource);
|
|
56
|
+
/**
|
|
57
|
+
* 获取或设置后面图片
|
|
58
|
+
*/
|
|
59
|
+
get backImg(): ResImageSource;
|
|
60
|
+
set backImg(value: ResImageSource);
|
|
61
|
+
/**
|
|
62
|
+
* 获取或设置侧面图片
|
|
63
|
+
*/
|
|
64
|
+
get sideImg(): ResImageSource;
|
|
65
|
+
set sideImg(value: ResImageSource);
|
|
66
|
+
/**
|
|
67
|
+
* 获取或设置背景颜色
|
|
68
|
+
*/
|
|
69
|
+
get backgroundColor(): string;
|
|
70
|
+
set backgroundColor(value: string);
|
|
71
|
+
/**
|
|
72
|
+
* 序列化成JSON对象
|
|
73
|
+
*/
|
|
74
|
+
toJson(): any;
|
|
75
|
+
/**
|
|
76
|
+
* 从JSON对象反序列化(仅生成层级树)
|
|
77
|
+
* @param json JSON对象
|
|
78
|
+
*/
|
|
79
|
+
fromJson(json: any): void;
|
|
80
|
+
/**
|
|
81
|
+
* 创建(仅当前层级可见对象)
|
|
82
|
+
* @param force 是否强制
|
|
83
|
+
*/
|
|
84
|
+
build(force?: boolean): Promise<void>;
|
|
85
|
+
/**
|
|
86
|
+
* 拆毁
|
|
87
|
+
*/
|
|
88
|
+
unbuild(): void;
|
|
89
|
+
}
|
|
@@ -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():
|
|
38
|
-
set frontImg(value:
|
|
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():
|
|
62
|
-
set frontImg(value:
|
|
62
|
+
get frontImg(): ResImageSource;
|
|
63
|
+
set frontImg(value: ResImageSource);
|
|
63
64
|
/**
|
|
64
65
|
* 获取或设置后面图片
|
|
65
66
|
*/
|
|
66
|
-
get backImg():
|
|
67
|
-
set backImg(value:
|
|
67
|
+
get backImg(): ResImageSource;
|
|
68
|
+
set backImg(value: ResImageSource);
|
|
68
69
|
/**
|
|
69
70
|
* 获取或设置背景颜色
|
|
70
71
|
*/
|
package/dist/typings/index.d.ts
CHANGED
|
@@ -55,6 +55,8 @@ 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';
|
|
59
|
+
export { ArchiveBox } from './entity/component/archive/ArchiveBox';
|
|
58
60
|
export { MaterialMgr } from './material/MaterialMgr';
|
|
59
61
|
export { Group } from './entity/Group';
|
|
60
62
|
export { Thing } from './entity/Thing';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@glowjs/core",
|
|
3
|
-
"version": "2022.
|
|
3
|
+
"version": "2022.07.12",
|
|
4
4
|
"description": "GlowJS数字孪生引擎核心库。",
|
|
5
5
|
"main": "./dist/glow.core.js",
|
|
6
6
|
"types": "./dist/typings/index.d.ts",
|
|
@@ -44,11 +44,11 @@
|
|
|
44
44
|
"author": "",
|
|
45
45
|
"license": "ISC",
|
|
46
46
|
"dependencies": {
|
|
47
|
-
"@babylonjs/core": "^5.
|
|
48
|
-
"@babylonjs/gui": "^5.
|
|
49
|
-
"@babylonjs/inspector": "^5.
|
|
50
|
-
"@babylonjs/loaders": "^5.
|
|
51
|
-
"@babylonjs/materials": "^5.
|
|
47
|
+
"@babylonjs/core": "^5.12.1",
|
|
48
|
+
"@babylonjs/gui": "^5.12.1",
|
|
49
|
+
"@babylonjs/inspector": "^5.12.1",
|
|
50
|
+
"@babylonjs/loaders": "^5.12.1",
|
|
51
|
+
"@babylonjs/materials": "^5.12.1",
|
|
52
52
|
"@tweenjs/tween.js": "^18.6.4",
|
|
53
53
|
"earcut": "^2.2.2",
|
|
54
54
|
"heatmap.js": "^2.0.5",
|