@glowjs/core 2023.9.7 → 2023.9.23

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.
@@ -28,10 +28,6 @@ export declare type AppOptions = {
28
28
  * 环境贴图
29
29
  */
30
30
  environmentTexture?: EnvironmentTextureSource;
31
- /**
32
- * 科技风建筑,默认false
33
- */
34
- technologyBuilding?: boolean;
35
31
  /**
36
32
  * 装饰线框,默认false
37
33
  */
@@ -12,10 +12,6 @@ export declare class Light extends Base {
12
12
  * 灯光2
13
13
  */
14
14
  private _light2;
15
- /**
16
- * 灯光3
17
- */
18
- private _light3;
19
15
  /**
20
16
  * 实例化一个灯光对象
21
17
  * @param app 应用
@@ -16,7 +16,7 @@ export interface Entity {
16
16
  export declare class Entity extends Base {
17
17
  protected _viewInfo: ViewInfo | null;
18
18
  protected _cursor: string;
19
- protected _boundingInfoNode: AbstractMesh;
19
+ _boundingInfoNode: AbstractMesh;
20
20
  protected _boxContainer: TransformNode;
21
21
  /**
22
22
  * 包围盒
@@ -8,13 +8,9 @@ import { ManualWallBuilder } from './ManualWallBuilder';
8
8
  */
9
9
  export declare class ManualWall extends Wall {
10
10
  /**
11
- * 边缘正常颜色
11
+ * 普通墙截面演示(默认科技风)
12
12
  */
13
- static edgeNormalColor: string;
14
- /**
15
- * 边缘科技风颜色
16
- */
17
- static edgeTechnologyColor: string;
13
+ static sectionColor: string;
18
14
  /**
19
15
  * 左面贴图唯一编号
20
16
  */
@@ -1,3 +1,4 @@
1
+ import { Mesh } from '../../runtime';
1
2
  import { Entity } from '../Entity';
2
3
  import { Component } from './Component';
3
4
  /**
@@ -6,7 +7,7 @@ import { Component } from './Component';
6
7
  export declare class AutoOpenDoor extends Component {
7
8
  private static _actionManager;
8
9
  private static _app;
9
- private static _collision;
10
+ static _collision: Mesh;
10
11
  /**
11
12
  * 实例化一个自动开门对象
12
13
  * @param entity 实体对象
@@ -18,6 +18,10 @@ export declare class PathAnimation extends Component {
18
18
  private _eventDispatcher;
19
19
  private _pause;
20
20
  private _offset;
21
+ /**
22
+ * 速度
23
+ */
24
+ speed: number;
21
25
  /**
22
26
  * 获取或设置暂停
23
27
  */
@@ -147,4 +147,8 @@ export declare class ArchiveCabinetGroup extends Component {
147
147
  * 手动触发离开列
148
148
  */
149
149
  triggerExistCabinet(): void;
150
+ /**
151
+ * 更新包围盒
152
+ */
153
+ private _updateBoundingBox;
150
154
  }
@@ -37,6 +37,11 @@ export declare class Roaming extends Component {
37
37
  */
38
38
  get pause(): boolean;
39
39
  set pause(value: boolean);
40
+ /**
41
+ * 获取或设置速度
42
+ */
43
+ get speed(): number;
44
+ set speed(value: number);
40
45
  /**
41
46
  * 获取或设置路径可见性
42
47
  */
@@ -19,21 +19,9 @@ export declare enum SystemResId {
19
19
  */
20
20
  Wall = "a4fd143c58ea17e7aeb20dab344c0231",
21
21
  /**
22
- * 普通墙贴图
22
+ * 普通墙贴图(科技风)
23
23
  */
24
- ManualWallTexture = "2b0577a52d55cfe05b83f3392dba9cac",
25
- /**
26
- * 科技风
27
- */
28
- TechnologyManualWallTexture = "725c7996b1978d0bd1484d551d777e58",
29
- /**
30
- * 普通墙阴影贴图
31
- */
32
- ManualWallShadowTexture = "6d0a5fc8ee1e932ede4556e5918dc4fe",
33
- /**
34
- * 普通墙边缘贴图
35
- */
36
- ManualWallEdgeTexture = "962b0f041db1dbac633331e662c2182c",
24
+ ManualWallTexture = "725c7996b1978d0bd1484d551d777e58",
37
25
  /**
38
26
  * 默认楼顶贴图
39
27
  */
@@ -43,13 +31,9 @@ export declare enum SystemResId {
43
31
  */
44
32
  DefaultCeilingTexture = "bd68f59792c7af353b47b68eeb43b36c",
45
33
  /**
46
- * 默认地板贴图(防静电地板)
47
- */
48
- DefaultFloorTexture = "d3c168a23f0e0318d4e20283ab6cf9af",
49
- /**
50
- * 科技风地板贴图
34
+ * 默认地板贴图(科技风)
51
35
  */
52
- TechnologyFloorTexture = "3743334a2ed2df2ad6e2a2f221f87e58",
36
+ DefaultFloorTexture = "3743334a2ed2df2ad6e2a2f221f87e58",
53
37
  /**
54
38
  * 漏水线贴图
55
39
  */
@@ -44,4 +44,32 @@ export declare type ResOptions = {
44
44
  * 偏移量,有的模型的轴心点不在底部中心
45
45
  */
46
46
  offset?: Point3D;
47
+ /**
48
+ * 离地高度
49
+ */
50
+ above?: number;
51
+ /**
52
+ * 透明模式(贴图)
53
+ */
54
+ transparencyMode?: number;
55
+ /**
56
+ * 粗糙度(贴图)
57
+ */
58
+ roughness?: number;
59
+ /**
60
+ * 金属度(贴图)
61
+ */
62
+ metallic?: number;
63
+ /**
64
+ * U缩放(贴图)
65
+ */
66
+ uScale?: number;
67
+ /**
68
+ * V缩放(贴图)
69
+ */
70
+ vScale?: number;
71
+ /**
72
+ * 颜色(贴图)
73
+ */
74
+ color?: string;
47
75
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@glowjs/core",
3
- "version": "2023.09.07",
3
+ "version": "2023.09.23",
4
4
  "description": "GlowJS数字孪生引擎核心库。",
5
5
  "main": "./dist/glow.core.js",
6
6
  "types": "./dist/typings/index.d.ts",
@@ -45,11 +45,11 @@
45
45
  "license": "ISC",
46
46
  "dependencies": {
47
47
  "@babel/plugin-transform-runtime": "^7.18.10",
48
- "@babylonjs/core": "^6.19.1",
49
- "@babylonjs/gui": "^6.19.1",
50
- "@babylonjs/inspector": "^6.19.1",
51
- "@babylonjs/loaders": "^6.19.1",
52
- "@babylonjs/materials": "^6.19.1",
48
+ "@babylonjs/core": "6.14.2",
49
+ "@babylonjs/gui": "6.14.2",
50
+ "@babylonjs/inspector": "6.14.2",
51
+ "@babylonjs/loaders": "6.14.2",
52
+ "@babylonjs/materials": "6.14.2",
53
53
  "@tweenjs/tween.js": "^18.6.4",
54
54
  "earcut": "^2.2.2",
55
55
  "heatmap.js": "^2.0.5",