@glowjs/core 2024.9.25 → 2024.11.16

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.
@@ -726,6 +726,10 @@ export declare class App extends EventDispatcher {
726
726
  * DOM容器
727
727
  */
728
728
  container: HTMLDivElement;
729
+ /**
730
+ * 富文本容器
731
+ */
732
+ richContainer: HTMLDivElement;
729
733
  /**
730
734
  * 根路径
731
735
  */
@@ -3460,7 +3464,7 @@ export declare class LeakLine extends Entity {
3460
3464
  */
3461
3465
  toJson(): any;
3462
3466
  /**
3463
- * 从JSON对象反序列化(仅生成层级树
3467
+ * 从JSON对象反序列化(仅生成层级树)
3464
3468
  * @param json JSON对象
3465
3469
  */
3466
3470
  fromJson(json: any): void;
@@ -3920,6 +3924,10 @@ export declare class PathAnimation extends Component {
3920
3924
  private _eventDispatcher;
3921
3925
  private _pause;
3922
3926
  private _offset;
3927
+ /**
3928
+ * 获取垂直偏移
3929
+ */
3930
+ get offsetY(): number;
3923
3931
  /**
3924
3932
  * 速度
3925
3933
  */
@@ -3951,6 +3959,71 @@ export declare class PathAnimation extends Component {
3951
3959
  */
3952
3960
  dispose(): void;
3953
3961
  }
3962
+ /**
3963
+ * 管道
3964
+ */
3965
+ export declare class Pipe extends Entity {
3966
+ /**
3967
+ * 默认半径
3968
+ */
3969
+ static defaultRadius: number;
3970
+ /**
3971
+ * 点集
3972
+ */
3973
+ readonly points: Point3D[];
3974
+ /**
3975
+ * 贴图ID
3976
+ */
3977
+ textureId: string;
3978
+ private _material;
3979
+ private _animationSpeed;
3980
+ private _radius;
3981
+ /**
3982
+ * 是否默认隐藏
3983
+ */
3984
+ defaultHidden: boolean;
3985
+ /**
3986
+ * 实例化一个管道对象
3987
+ * @param app 应用
3988
+ */
3989
+ constructor(app: App);
3990
+ /**
3991
+ * 获取或设置动画速度
3992
+ */
3993
+ get animationSpeed(): number;
3994
+ set animationSpeed(value: number);
3995
+ /**
3996
+ * 获取或设置半径
3997
+ */
3998
+ get radius(): number;
3999
+ set radius(value: number);
4000
+ /**
4001
+ * 获取是否允许被冻结材质
4002
+ */
4003
+ get canFreezeMaterial(): boolean;
4004
+ /**
4005
+ * 序列化成JSON对象
4006
+ */
4007
+ toJson(): any;
4008
+ /**
4009
+ * 从JSON对象反序列化(仅生成层级树)
4010
+ * @param json JSON对象
4011
+ */
4012
+ fromJson(json: any): void;
4013
+ /**
4014
+ * 创建(仅当前层级可见对象)
4015
+ * @param force 是否强制
4016
+ */
4017
+ build(force?: boolean): Promise<void>;
4018
+ /**
4019
+ * 拆毁
4020
+ */
4021
+ unbuild(): void;
4022
+ /**
4023
+ * 释放
4024
+ */
4025
+ dispose(): void;
4026
+ }
3954
4027
  /**
3955
4028
  * 预置墙
3956
4029
  */
@@ -4196,12 +4269,17 @@ export declare class Roaming extends Component {
4196
4269
  /**
4197
4270
  * 角色
4198
4271
  */
4199
- private _character;
4272
+ _character: Thing;
4200
4273
  /**
4201
4274
  * 路径动画
4202
4275
  */
4203
4276
  private _pathAnimation;
4204
4277
  private _appEvents;
4278
+ /**
4279
+ * 获取或设置垂直偏移
4280
+ */
4281
+ get offsetY(): number;
4282
+ set offsetY(value: number);
4205
4283
  /**
4206
4284
  * 实例化一个漫游对象
4207
4285
  * @param entity 实体对象
@@ -4809,6 +4887,65 @@ export declare class Thing extends Entity {
4809
4887
  */
4810
4888
  dispose(): void;
4811
4889
  }
4890
+ /**
4891
+ * 视频融合
4892
+ */
4893
+ export declare class VideoFusion extends Entity {
4894
+ private _width;
4895
+ private _height;
4896
+ private _mesh;
4897
+ private _material;
4898
+ private _coverTexture;
4899
+ private _opacityTexture;
4900
+ private _videoTexture;
4901
+ private _smoothing;
4902
+ private _visable;
4903
+ /**
4904
+ * 是否默认隐藏
4905
+ */
4906
+ defaultHidden: boolean;
4907
+ /**
4908
+ * 封面贴图ID
4909
+ */
4910
+ textureId: string;
4911
+ /**
4912
+ * 透明度贴图ID
4913
+ */
4914
+ opacityTextureId: string;
4915
+ /**
4916
+ * 父物体计算包围盒时是否排除此物体
4917
+ */
4918
+ excludeBoundingBox: boolean;
4919
+ /**
4920
+ * 实例化一个视频融合对象
4921
+ * @param app 应用实例
4922
+ */
4923
+ constructor(app: App);
4924
+ get visable(): boolean;
4925
+ set visable(value: boolean);
4926
+ /**
4927
+ * 获取是否允许被冻结材质
4928
+ */
4929
+ get canFreezeMaterial(): boolean;
4930
+ /**
4931
+ * 获取或设置是否平滑
4932
+ */
4933
+ get smoothing(): boolean;
4934
+ set smoothing(value: boolean);
4935
+ /**
4936
+ * 序列化成JSON对象
4937
+ */
4938
+ toJson(): any;
4939
+ fromJson(json: any): void;
4940
+ build(force?: boolean): Promise<void>;
4941
+ unbuild(): void;
4942
+ dispose(): void;
4943
+ /**
4944
+ * 设置视频源(需要自行控制播放)
4945
+ * @param video 视频源
4946
+ */
4947
+ setVideoSource(video: HTMLVideoElement | null): void;
4948
+ }
4812
4949
  /**
4813
4950
  * 墙基类
4814
4951
  */
@@ -5022,7 +5159,15 @@ export declare enum EntityType {
5022
5159
  /**
5023
5160
  * POI标记
5024
5161
  */
5025
- POI = 32768
5162
+ POI = 32768,
5163
+ /**
5164
+ * 管道
5165
+ */
5166
+ Pipe = 65536,
5167
+ /**
5168
+ * 视频融合
5169
+ */
5170
+ VideoFusion = 131072
5026
5171
  }
5027
5172
  /**
5028
5173
  * 环境贴图资源枚举
@@ -5419,7 +5564,27 @@ export declare enum SystemResId {
5419
5564
  /**
5420
5565
  * 装饰线框
5421
5566
  */
5422
- DecorateGrid = "aeb46e27018fa8aef1ab9809c442167f"
5567
+ DecorateGrid = "aeb46e27018fa8aef1ab9809c442167f",
5568
+ /**
5569
+ * 默认管道贴图
5570
+ */
5571
+ DefaultPipeTexture = "bd276fe64d6f7270f246195792285af0",
5572
+ /**
5573
+ * 管道
5574
+ */
5575
+ Pipe = "79caea2506eb4a8ee18c22cb140858d4",
5576
+ /**
5577
+ * 视频融合
5578
+ */
5579
+ VideoFusion = "92a4a0a402d75faff81be6fd1a38123c",
5580
+ /**
5581
+ * 视频融合默认贴图
5582
+ */
5583
+ VideoFusionDefaultTexture = "8ef7bae1bf1a63a1bb902e8a9bd21549",
5584
+ /**
5585
+ * 视频融合透明度贴图
5586
+ */
5587
+ VideoFusionOpacityTexture = "f29a93b7c7a413ddbd8e5afe18c5afcf"
5423
5588
  }
5424
5589
  /**
5425
5590
  * 加法,返回一个新对象
@@ -6236,7 +6401,7 @@ export type MeshFaceData = {
6236
6401
  /**
6237
6402
  * 其它实体
6238
6403
  */
6239
- export type OtherEntity = Text3D | LeakLine | POI;
6404
+ export type OtherEntity = Text3D | LeakLine | POI | Pipe | VideoFusion;
6240
6405
  export type ParticleData = {
6241
6406
  id?: string;
6242
6407
  name?: string;