@glowjs/core 2022.9.5 → 2023.5.7

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.
Files changed (61) hide show
  1. package/dist/glow.core.js +1 -1
  2. package/dist/typings/camera/AutoRotate.d.ts +36 -0
  3. package/dist/typings/camera/CameraMgr.d.ts +22 -11
  4. package/dist/typings/core/App.d.ts +5 -0
  5. package/dist/typings/core/AppOptions.d.ts +12 -2
  6. package/dist/typings/effect/EffectMgr.d.ts +11 -2
  7. package/dist/typings/effect/HighLight.d.ts +2 -1
  8. package/dist/typings/effect/ImageProcessing.d.ts +1 -6
  9. package/dist/typings/effect/Light.d.ts +4 -0
  10. package/dist/typings/effect/SkyBox.d.ts +14 -0
  11. package/dist/typings/effect/SkyBoxSource.d.ts +4 -0
  12. package/dist/typings/effect/ToneMappingType.d.ts +3 -3
  13. package/dist/typings/entity/Building.d.ts +9 -10
  14. package/dist/typings/entity/DecorateGrid.d.ts +35 -0
  15. package/dist/typings/entity/Entity.d.ts +2 -7
  16. package/dist/typings/entity/Floor.d.ts +3 -2
  17. package/dist/typings/entity/LevelMgr.d.ts +1 -6
  18. package/dist/typings/entity/ManualWall.d.ts +8 -0
  19. package/dist/typings/entity/Path.d.ts +1 -45
  20. package/dist/typings/entity/Thing.d.ts +2 -6
  21. package/dist/typings/entity/ViewInfo.d.ts +3 -2
  22. package/dist/typings/entity/component/Animator.d.ts +1 -1
  23. package/dist/typings/entity/component/Style.d.ts +5 -23
  24. package/dist/typings/entity/component/archive/ArchiveCabinet.d.ts +13 -2
  25. package/dist/typings/entity/component/archive/ArchiveCabinetGroup.d.ts +17 -4
  26. package/dist/typings/entity/component/cabinet/Cabinet.d.ts +64 -14
  27. package/dist/typings/entity/component/cabinet/CabinetCapacityData.d.ts +17 -0
  28. package/dist/typings/entity/component/cabinet/CabinetMgr.d.ts +13 -1
  29. package/dist/typings/entity/component/cabinet/RackMounted.d.ts +14 -0
  30. package/dist/typings/entity/component/cabinet/events/onCabinetLeftDoubleClick.d.ts +1 -2
  31. package/dist/typings/entity/component/roaming/Roaming.d.ts +8 -3
  32. package/dist/typings/entity/path/Path.d.ts +48 -0
  33. package/dist/typings/entity/path/attachDrag.d.ts +2 -0
  34. package/dist/typings/entity/path/createLineMeshData.d.ts +3 -0
  35. package/dist/typings/entity/path/createPointInstance.d.ts +5 -0
  36. package/dist/typings/entity/path/detachDrag.d.ts +2 -0
  37. package/dist/typings/entity/path/dragData.d.ts +9 -0
  38. package/dist/typings/entity/path/getLineMaterial.d.ts +2 -0
  39. package/dist/typings/entity/util/createManualWallEdgeMaterial.d.ts +2 -2
  40. package/dist/typings/entity/util/createManualWallMesh.d.ts +2 -2
  41. package/dist/typings/entity/util/createMergedMesh.d.ts +2 -2
  42. package/dist/typings/entity/util/getPathIconMesh.d.ts +7 -0
  43. package/dist/typings/entity/util/getPathLineMesh.d.ts +2 -0
  44. package/dist/typings/event/EventDispatcher.d.ts +2 -2
  45. package/dist/typings/event/EventMgr.d.ts +1 -1
  46. package/dist/typings/event/EventType.d.ts +22 -22
  47. package/dist/typings/event/KeyCode.d.ts +3 -2
  48. package/dist/typings/gui/Billboard.d.ts +2 -1
  49. package/dist/typings/gui/GradientRectangle.d.ts +1 -1
  50. package/dist/typings/gui/LinkTip.d.ts +30 -0
  51. package/dist/typings/gui/getTextWidth.d.ts +6 -0
  52. package/dist/typings/index.d.ts +12 -2
  53. package/dist/typings/misc/SystemResId.d.ts +7 -3
  54. package/dist/typings/misc/math/vec/isClockwise.d.ts +6 -0
  55. package/dist/typings/misc/randomColor.d.ts +4 -0
  56. package/dist/typings/res/ResOptions.d.ts +5 -0
  57. package/dist/typings/res/ResPool.d.ts +2 -2
  58. package/dist/typings/res/registerBuffer.d.ts +6 -0
  59. package/dist/typings/runtime/RunTime.d.ts +57 -0
  60. package/dist/typings/runtime/index.d.ts +1 -0
  61. package/package.json +6 -6
@@ -0,0 +1,36 @@
1
+ import { CameraMgr } from './CameraMgr';
2
+ /**
3
+ * 自动旋转
4
+ */
5
+ export declare class AutoRotate {
6
+ /**
7
+ * 管理器
8
+ */
9
+ readonly mgr: CameraMgr;
10
+ /**
11
+ * 获取或设置是否启用
12
+ */
13
+ enable: boolean;
14
+ /**
15
+ * 间隔时间
16
+ */
17
+ timeout: number;
18
+ /**
19
+ * 旋转速度
20
+ */
21
+ speed: number;
22
+ private _timeoutId;
23
+ private _mouseIndex;
24
+ private _cacheMouseIndex;
25
+ /**
26
+ * 实例化一个自动旋转对象
27
+ * @param mgr 管理器
28
+ */
29
+ constructor(mgr: CameraMgr);
30
+ private _update;
31
+ private _onMouseEvent;
32
+ /**
33
+ * 检查,true=无操作,false=有操作
34
+ */
35
+ private _check;
36
+ }
@@ -1,10 +1,12 @@
1
- import { ArcRotateCamera } from '../runtime';
1
+ import { ArcRotateCamera, BoundingInfo } from '../runtime';
2
2
  import { Base } from '../base/Base';
3
3
  import { App } from '../core/App';
4
4
  import { Entity } from '../entity/Entity';
5
5
  import { CameraMode } from './CameraMode';
6
+ import { Point3D } from '../misc/Point3D';
6
7
  import { CameraPerson } from './CameraPerson';
7
8
  import { OrthographicView } from './OrthographicView';
9
+ import { AutoRotate } from './AutoRotate';
8
10
  /**
9
11
  * 相机管理器
10
12
  */
@@ -25,6 +27,10 @@ export declare class CameraMgr extends Base {
25
27
  * 获取或设置跟随对象
26
28
  */
27
29
  followObj: Entity;
30
+ /**
31
+ * 自动旋转
32
+ */
33
+ readonly autoRotate: AutoRotate;
28
34
  /**
29
35
  * 实例化一个相机管理器对象
30
36
  * @param app 应用
@@ -92,13 +98,13 @@ export declare class CameraMgr extends Base {
92
98
  /**
93
99
  * 获取或设置目标点位置
94
100
  */
95
- get target(): [number, number, number];
96
- set target(value: [number, number, number]);
101
+ get target(): Point3D;
102
+ set target(value: Point3D);
97
103
  /**
98
104
  * 获取或设置相机位置
99
105
  */
100
- get position(): [number, number, number];
101
- set position(value: [number, number, number]);
106
+ get position(): Point3D;
107
+ set position(value: Point3D);
102
108
  /**
103
109
  * 获取或设置当前在Y轴上的惯性值。这个数字越大,相机停止的时间就越长。
104
110
  */
@@ -224,8 +230,6 @@ export declare class CameraMgr extends Base {
224
230
  */
225
231
  get allowUpsideDown(): boolean;
226
232
  set allowUpsideDown(value: boolean);
227
- get autoRotate(): boolean;
228
- set autoRotate(value: boolean);
229
233
  /**
230
234
  * 获取或设置相机的模式,0=透视,1=正交
231
235
  */
@@ -267,12 +271,12 @@ export declare class CameraMgr extends Base {
267
271
  * 使用一个位置来定义当前相机的相关信息,如alpha, beta和半径
268
272
  * @param position 定义要设置摄像机的位置
269
273
  */
270
- setPosition(position: [number, number, number]): void;
274
+ setPosition(position: Point3D): void;
271
275
  /**
272
276
  * 定义相机应该查看的目标。这将自动调整alpha、beta和半径以适应新的目标。
273
277
  * @param target 新目标
274
278
  */
275
- setTarget(target: [number, number, number]): void;
279
+ setTarget(target: Point3D): void;
276
280
  private _flyToFollowObj;
277
281
  private _onPerspectiveUpdate;
278
282
  private _onOrthographicUpdate;
@@ -287,7 +291,14 @@ export declare class CameraMgr extends Base {
287
291
  * @param time 花费的时间,默认值500毫秒
288
292
  * @param callback 完成回调函数
289
293
  */
290
- fit(obj: Entity, time?: number, callback?: () => void): void;
294
+ fit(obj: Entity | BoundingInfo, time?: number, callback?: () => void): void;
295
+ /**
296
+ * 自适应观察指定物体数组
297
+ * @param arr 物体数组
298
+ * @param time 花费的时间,默认值500毫秒
299
+ * @param callback 完成回调函数
300
+ */
301
+ fitArray(arr: Entity[], time?: number, callback?: () => void): void;
291
302
  /**
292
303
  * 飞行
293
304
  * @param position 相机位置
@@ -295,7 +306,7 @@ export declare class CameraMgr extends Base {
295
306
  * @param time 花费的时间,默认值2000毫秒
296
307
  * @param callback 完成回调函数
297
308
  */
298
- flyTo(position: number[], target: number[], time?: number, callback?: () => void): void;
309
+ flyTo(position: Point3D, target: Point3D, time?: number, callback?: () => void): void;
299
310
  private _updateOrthographic;
300
311
  /**
301
312
  * 停止飞行
@@ -13,6 +13,7 @@ import { MaterialMgr } from '../material/MaterialMgr';
13
13
  import { EntityType } from '../entity/EntityType';
14
14
  import { Component } from '../entity/component/Component';
15
15
  import { Tracker } from '../entity/Tracker';
16
+ import { LinkMgr } from '../link/LinkMgr';
16
17
  /**
17
18
  * 应用
18
19
  */
@@ -91,6 +92,10 @@ export declare class App extends EventDispatcher {
91
92
  * 事件管理器
92
93
  */
93
94
  eventMgr: EventMgr;
95
+ /**
96
+ * 链路管理器
97
+ */
98
+ linkMgr: LinkMgr;
94
99
  /**
95
100
  * 跟踪器
96
101
  */
@@ -1,3 +1,5 @@
1
+ import { EnvironmentTextureSource } from '../effect/EnvironmentTextureSource';
2
+ import { SkyBoxSource } from '../effect/SkyBoxSource';
1
3
  /**
2
4
  * App选项
3
5
  */
@@ -19,11 +21,19 @@ export declare type AppOptions = {
19
21
  */
20
22
  basePath?: string;
21
23
  /**
22
- * 是否启用天空盒子,默认启用
24
+ * 是否启用天空盒子,默认不启用
23
25
  */
24
- skyBox?: boolean;
26
+ skyBox?: SkyBoxSource;
27
+ /**
28
+ * 环境贴图
29
+ */
30
+ environmentTexture?: EnvironmentTextureSource;
25
31
  /**
26
32
  * 科技风建筑,默认false
27
33
  */
28
34
  technologyBuilding?: boolean;
35
+ /**
36
+ * 装饰线框,默认false
37
+ */
38
+ decorateGrid?: boolean;
29
39
  };
@@ -7,6 +7,8 @@ import { Glow } from './Glow';
7
7
  import { HighLight } from './HighLight';
8
8
  import { ImageProcessing } from './ImageProcessing';
9
9
  import { Light } from './Light';
10
+ import { ColorCorrection } from './ColorCorrection';
11
+ import { DecorateGrid } from '../entity/DecorateGrid';
10
12
  /**
11
13
  * 效果管理器
12
14
  */
@@ -39,12 +41,19 @@ export declare class EffectMgr extends Base {
39
41
  * 图像处理
40
42
  */
41
43
  imageProcessing: ImageProcessing;
44
+ /**
45
+ * 颜色校正
46
+ */
47
+ colorCorrection: ColorCorrection;
48
+ /**
49
+ * 装饰线框
50
+ */
51
+ decorateGrid?: DecorateGrid;
42
52
  /**
43
53
  * 实例化一个效果管理器对象
44
54
  * @param app 应用
45
- * @param skyBox 是否启用天空盒子
46
55
  */
47
- constructor(app: App, skyBox?: boolean);
56
+ constructor(app: App);
48
57
  /**
49
58
  * 获取或设置背景色
50
59
  */
@@ -1,3 +1,4 @@
1
+ import { HighlightLayer } from '../runtime';
1
2
  import { Entity } from '../entity/Entity';
2
3
  import { Base } from '../base/Base';
3
4
  import { App } from '../core/App';
@@ -5,7 +6,7 @@ import { App } from '../core/App';
5
6
  * 高亮层
6
7
  */
7
8
  export declare class HighLight extends Base {
8
- private _layer;
9
+ _layer: HighlightLayer;
9
10
  private _entites;
10
11
  /**
11
12
  * 实例化一个高亮层对象
@@ -1,16 +1,11 @@
1
1
  import { Base } from '../base/Base';
2
2
  import { App } from '../core/App';
3
3
  import { ToneMappingType } from './ToneMappingType';
4
- import { ColorCorrection } from './ColorCorrection';
5
4
  /**
6
5
  * 图像处理
7
6
  */
8
7
  export declare class ImageProcessing extends Base {
9
8
  private _config;
10
- /**
11
- * 色彩校正
12
- */
13
- colorCorrection: ColorCorrection;
14
9
  /**
15
10
  * 实例化一个图像处理对象
16
11
  * @param app 应用
@@ -32,7 +27,7 @@ export declare class ImageProcessing extends Base {
32
27
  get toneMappingType(): ToneMappingType;
33
28
  set toneMappingType(value: ToneMappingType);
34
29
  /**
35
- * 获取或设置对效果对比度值。范围[0,4],默认值1。
30
+ * 获取或设置效果对比度值。范围[0,4],默认值1。
36
31
  */
37
32
  get contrast(): number;
38
33
  set contrast(value: number);
@@ -12,6 +12,10 @@ export declare class Light extends Base {
12
12
  * 灯光2
13
13
  */
14
14
  private _light2;
15
+ /**
16
+ * 灯光3
17
+ */
18
+ private _light3;
15
19
  /**
16
20
  * 实例化一个灯光对象
17
21
  * @param app 应用
@@ -1,10 +1,19 @@
1
1
  import { Base } from '../base/Base';
2
2
  import { App } from '../core/App';
3
3
  import { SkyBoxSource } from './SkyBoxSource';
4
+ import { Point3D } from '../misc/Point3D';
4
5
  /**
5
6
  * 天空盒子
6
7
  */
7
8
  export declare class SkyBox extends Base {
9
+ /**
10
+ * 缩放倍数
11
+ */
12
+ static scale: number;
13
+ /**
14
+ * 位置
15
+ */
16
+ static position: Point3D;
8
17
  private _mesh;
9
18
  private _material;
10
19
  private _rotateSpeed;
@@ -18,6 +27,11 @@ export declare class SkyBox extends Base {
18
27
  * @param autoRotate 自动旋转
19
28
  */
20
29
  constructor(app: App, texture?: SkyBoxSource, autoRotate?: boolean);
30
+ /**
31
+ * 获取或设置可见性
32
+ */
33
+ get visible(): boolean;
34
+ set visible(value: boolean);
21
35
  /**
22
36
  * 获取或设置贴图
23
37
  */
@@ -2,6 +2,10 @@
2
2
  * 天空盒子资源枚举
3
3
  */
4
4
  export declare enum SkyBoxSource {
5
+ /**
6
+ * 无
7
+ */
8
+ None = "",
5
9
  /**
6
10
  * 黑色(适合科技风)
7
11
  */
@@ -3,11 +3,11 @@
3
3
  */
4
4
  export declare enum ToneMappingType {
5
5
  /**
6
- * AES
6
+ * ACES
7
7
  */
8
- Aes,
8
+ Aces,
9
9
  /**
10
- * STANDARD
10
+ * 标准
11
11
  */
12
12
  Standard
13
13
  }
@@ -1,15 +1,14 @@
1
1
  import { App } from '../core/App';
2
2
  import { Floor } from './Floor';
3
+ import { Placement } from './placement';
3
4
  import { TransformNode } from '../runtime';
4
5
  import { Entity } from './Entity';
6
+ import { Point3D } from '../misc/Point3D';
7
+ import { Thing } from './Thing';
5
8
  /**
6
- * 建筑
9
+ * 自定义建筑
7
10
  */
8
11
  export declare class Building extends Entity {
9
- /**
10
- * 是否主建筑
11
- */
12
- isMain: boolean;
13
12
  /**
14
13
  * 是否总是显示建筑结构
15
14
  */
@@ -25,7 +24,7 @@ export declare class Building extends Entity {
25
24
  /**
26
25
  * 楼层展开偏移量
27
26
  */
28
- expandOffset: number[];
27
+ expandOffset: Point3D;
29
28
  private _tweenExpand;
30
29
  /**
31
30
  * 实例化一个建筑对象
@@ -37,13 +36,13 @@ export declare class Building extends Entity {
37
36
  */
38
37
  registerDefaultEvents(): void;
39
38
  /**
40
- * 获取所有摆件
39
+ * 获取外立面
41
40
  */
42
- get placements(): Entity[];
41
+ get facades(): Placement[];
43
42
  /**
44
- * 获取外立面
43
+ * 获取楼层链接外立面
45
44
  */
46
- get facades(): Entity[];
45
+ get floorLinks(): Thing[];
47
46
  /**
48
47
  * 获取楼层
49
48
  */
@@ -0,0 +1,35 @@
1
+ import { App } from '../core/App';
2
+ import { Entity } from './Entity';
3
+ /**
4
+ * 装饰网格
5
+ */
6
+ export declare class DecorateGrid extends Entity {
7
+ /**
8
+ * 长宽大小
9
+ */
10
+ static size: number;
11
+ /**
12
+ * 块宽度
13
+ */
14
+ static blockWidth: number;
15
+ /**
16
+ * 块高度
17
+ */
18
+ static blockHeight: number;
19
+ /**
20
+ * 垂直偏移量
21
+ */
22
+ static offsetY: number;
23
+ private _mesh;
24
+ private _mat;
25
+ /**
26
+ * 实例化一个装饰网格对象
27
+ * @param app 应用
28
+ */
29
+ constructor(app: App);
30
+ build(force?: boolean): Promise<void>;
31
+ /**
32
+ * 拆毁(删掉网格,仅保留层级树)
33
+ */
34
+ unbuild(): void;
35
+ }
@@ -2,7 +2,6 @@ import { Base } from '../base/Base';
2
2
  import { App } from '../core/App';
3
3
  import { AbstractMesh, TransformNode, BoundingInfo, Ray, Material, Mesh } from '../runtime';
4
4
  import { ViewInfo } from './ViewInfo';
5
- import { EnvironmentTextureSource } from '../effect/EnvironmentTextureSource';
6
5
  import { Point3D } from '../misc/Point3D';
7
6
  import { Point4D } from '../misc/Point4D';
8
7
  import { EntityType } from './EntityType';
@@ -63,10 +62,6 @@ export declare class Entity extends Base {
63
62
  * 获取或设置路径动画移动速度
64
63
  */
65
64
  moveSpeed: number;
66
- /**
67
- * 环境贴图
68
- */
69
- environmentTexture: EnvironmentTextureSource;
70
65
  /**
71
66
  * 实体注册的应用事件ID列表,当实体销毁时自动移除集合中的事件
72
67
  */
@@ -239,7 +234,7 @@ export declare class Entity extends Base {
239
234
  /**
240
235
  * 获取所有子网格(递归获取子元素的网格),含实例网格
241
236
  */
242
- protected _getAllSubMeshes2(): Mesh[];
237
+ _getAllSubMeshes2(): Mesh[];
243
238
  /**
244
239
  * 计算包围盒
245
240
  */
@@ -354,7 +349,7 @@ export declare class Entity extends Base {
354
349
  */
355
350
  setSubNodes(): void;
356
351
  /**
357
- * 拆毁(删掉网格,仅保留层级树)
352
+ * 拆毁(销毁网格,仅保留层级树)
358
353
  */
359
354
  unbuild(): void;
360
355
  /**
@@ -2,6 +2,7 @@ import { App } from '../core/App';
2
2
  import { Corner } from './Corner';
3
3
  import { Wall } from './Wall';
4
4
  import { Room } from './Room';
5
+ import { Placement } from './placement';
5
6
  import { TransformNode } from '../runtime';
6
7
  import { Entity } from './Entity';
7
8
  import { OtherEntity } from './OtherEntity';
@@ -54,7 +55,7 @@ export declare class Floor extends Entity {
54
55
  /**
55
56
  * 获取所有摆件
56
57
  */
57
- get placements(): Entity[];
58
+ get placements(): Placement[];
58
59
  /**
59
60
  * 获取其它实体
60
61
  */
@@ -84,7 +85,7 @@ export declare class Floor extends Entity {
84
85
  /**
85
86
  * 创建合并的网格
86
87
  */
87
- buildMergedMesh(): Promise<void>;
88
+ buildMergedMesh(transparent?: boolean): Promise<void>;
88
89
  /**
89
90
  * 创建轮廓线
90
91
  */
@@ -1,7 +1,6 @@
1
1
  import { App } from '../core/App';
2
2
  import { Campus } from './Campus';
3
3
  import { Entity } from './Entity';
4
- import { Mesh } from '../runtime';
5
4
  /**
6
5
  * 层级管理器
7
6
  */
@@ -26,10 +25,6 @@ export declare class LevelMgr extends Entity {
26
25
  * 加载进度值
27
26
  */
28
27
  private _progressValue;
29
- /**
30
- * 网格
31
- */
32
- _grid: Mesh;
33
28
  private _changing;
34
29
  /**
35
30
  * 实例化一个层级管理器
@@ -63,7 +58,7 @@ export declare class LevelMgr extends Entity {
63
58
  * @param {*} json JSON对象
64
59
  */
65
60
  fromJson(json: any): void;
66
- /**
61
+ /**.
67
62
  * 切换到指定层级
68
63
  * @param level 层级
69
64
  * @param fit 自适应
@@ -7,6 +7,14 @@ import { ManualWallBuilder } from './ManualWallBuilder';
7
7
  * 手绘墙
8
8
  */
9
9
  export declare class ManualWall extends Wall {
10
+ /**
11
+ * 边缘正常颜色
12
+ */
13
+ static edgeNormalColor: string;
14
+ /**
15
+ * 边缘科技风颜色
16
+ */
17
+ static edgeTechnologyColor: string;
10
18
  /**
11
19
  * 左面贴图唯一编号
12
20
  */
@@ -1,45 +1 @@
1
- import { App } from '../core/App';
2
- import { Point3D } from '../misc/Point3D';
3
- import { Entity } from './Entity';
4
- /**
5
- * 路径
6
- */
7
- export declare class Path extends Entity {
8
- private static _lineMaterial;
9
- private static _pointMaterial;
10
- private static _index;
11
- /**
12
- * 路径点集合
13
- */
14
- readonly points: Point3D[];
15
- /**
16
- * 是否需要创建
17
- */
18
- needBuild: boolean;
19
- /**
20
- * 实例化一个路径对象
21
- * @param app 应用
22
- */
23
- constructor(app: App);
24
- /**
25
- * 序列化成JSON对象
26
- */
27
- toJson(): any;
28
- /**
29
- * 从JSON对象反序列化(仅生成层级树)
30
- * @param json JSON对象
31
- */
32
- fromJson(json: any): void;
33
- /**
34
- * 创建(仅当前层级可见对象)
35
- * @param force 是否强制
36
- * @param onlyLatest 只创建最后一段,编辑器用
37
- */
38
- build(force?: boolean, onlyLatest?: boolean): Promise<void>;
39
- private _createPoint;
40
- private _createLine;
41
- /**
42
- * 拆毁(删掉网格,仅保留层级树
43
- */
44
- unbuild(onlyLatest?: boolean): void;
45
- }
1
+ export { Path } from './path/Path';
@@ -55,13 +55,9 @@ export declare class Thing extends Entity {
55
55
  */
56
56
  linkId: string | null;
57
57
  /**
58
- * 用户自定义数据
58
+ * 父物体计算包围盒时是否排除此物体
59
59
  */
60
- properties: any;
61
- /**
62
- * 是否优化性能,1=强制优化,0=无动画时优化,其它=不优化
63
- */
64
- optimized: -1 | 0 | 1;
60
+ excludeBoundingBox: boolean;
65
61
  private _autoAnimationLoopIndex;
66
62
  /**
67
63
  * 获取或设置自动动画循环索引
@@ -1,3 +1,4 @@
1
+ import { Point3D } from '../misc/Point3D';
1
2
  /**
2
3
  * 视角信息
3
4
  */
@@ -5,9 +6,9 @@ export declare type ViewInfo = {
5
6
  /**
6
7
  * 相机位置
7
8
  */
8
- eye: [number, number, number];
9
+ eye: Point3D;
9
10
  /**
10
11
  * 看点位置
11
12
  */
12
- target: [number, number, number];
13
+ target: Point3D;
13
14
  };
@@ -18,7 +18,7 @@ export declare class Animator extends Component {
18
18
  * 获取动画组名称列表
19
19
  */
20
20
  get animationGroupNames(): string[];
21
- private _current;
21
+ _current: AnimationGroup;
22
22
  /**
23
23
  * 播放指定索引动画组一次(适用于常规播放一次的动话)
24
24
  * @param index 动画索引
@@ -4,6 +4,7 @@ import { Entity } from '../Entity';
4
4
  * 样式组件
5
5
  */
6
6
  export declare class Style extends Component {
7
+ private _buffer;
7
8
  /**
8
9
  * 实例化一个样式组件对象
9
10
  * @param entity 实体
@@ -11,34 +12,15 @@ export declare class Style extends Component {
11
12
  constructor(entity: Entity);
12
13
  private _color;
13
14
  /**
14
- * 获取或设置颜色
15
+ * 获取或设置颜色(十六进制)
15
16
  */
16
17
  get color(): string;
17
18
  set color(value: string);
18
- private _emissive;
19
19
  /**
20
- * 获取或设置发光颜色
20
+ * 获取或设置透明度(取值范围[0,1],需原始模型材质开启透明渲染才能生效)
21
21
  */
22
- get emissive(): string;
23
- set emissive(value: string);
24
- private _emissiveIntensity;
25
- /**
26
- * 获取或设置发光强度
27
- */
28
- get emissiveIntensity(): number;
29
- set emissiveIntensity(value: number);
30
- private _opacity;
31
- /**
32
- * 获取或设置透明度
33
- */
34
- get opacity(): number;
35
- set opacity(value: number);
36
- private _wireframe;
37
- /**
38
- * 获取或设置线框模式
39
- */
40
- get wireframe(): boolean;
41
- set wireframe(value: boolean);
22
+ get alpha(): number;
23
+ set alpha(value: number);
42
24
  /**
43
25
  * 获取是否可以更新
44
26
  */
@@ -1,4 +1,4 @@
1
- import { InstancedMesh, Mesh } from '../../../runtime';
1
+ import { InstancedMesh, TransformNode } from '../../../runtime';
2
2
  import { Entity } from '../../Entity';
3
3
  import { Component } from '../Component';
4
4
  import { ArchiveCabinetGroup } from './ArchiveCabinetGroup';
@@ -7,8 +7,15 @@ import { ArchiveGrid } from './ArchiveGrid';
7
7
  * 密集架(列)
8
8
  */
9
9
  export declare class ArchiveCabinet extends Component {
10
+ static tagStyleConfig: {
11
+ show: boolean;
12
+ hasBackground: boolean;
13
+ backgroundColor: string;
14
+ fontSize: number;
15
+ fontColor: string;
16
+ };
10
17
  private _eventIds;
11
- _door: Mesh;
18
+ _door: TransformNode;
12
19
  /**
13
20
  * 获取或设置数据
14
21
  */
@@ -38,6 +45,10 @@ export declare class ArchiveCabinet extends Component {
38
45
  * 获取列号
39
46
  */
40
47
  get columnId(): string;
48
+ /**
49
+ * 获取列号(数字类型)
50
+ */
51
+ get columnIndex(): number;
41
52
  /**
42
53
  * 获取列类型,1=左活动列,0=固定列,2=右活动列
43
54
  */