@glowjs/core 2024.10.31 → 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.
@@ -3924,6 +3924,10 @@ export declare class PathAnimation extends Component {
3924
3924
  private _eventDispatcher;
3925
3925
  private _pause;
3926
3926
  private _offset;
3927
+ /**
3928
+ * 获取垂直偏移
3929
+ */
3930
+ get offsetY(): number;
3927
3931
  /**
3928
3932
  * 速度
3929
3933
  */
@@ -4265,12 +4269,17 @@ export declare class Roaming extends Component {
4265
4269
  /**
4266
4270
  * 角色
4267
4271
  */
4268
- private _character;
4272
+ _character: Thing;
4269
4273
  /**
4270
4274
  * 路径动画
4271
4275
  */
4272
4276
  private _pathAnimation;
4273
4277
  private _appEvents;
4278
+ /**
4279
+ * 获取或设置垂直偏移
4280
+ */
4281
+ get offsetY(): number;
4282
+ set offsetY(value: number);
4274
4283
  /**
4275
4284
  * 实例化一个漫游对象
4276
4285
  * @param entity 实体对象
@@ -4878,6 +4887,65 @@ export declare class Thing extends Entity {
4878
4887
  */
4879
4888
  dispose(): void;
4880
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
+ }
4881
4949
  /**
4882
4950
  * 墙基类
4883
4951
  */
@@ -5095,7 +5163,11 @@ export declare enum EntityType {
5095
5163
  /**
5096
5164
  * 管道
5097
5165
  */
5098
- Pipe = 65536
5166
+ Pipe = 65536,
5167
+ /**
5168
+ * 视频融合
5169
+ */
5170
+ VideoFusion = 131072
5099
5171
  }
5100
5172
  /**
5101
5173
  * 环境贴图资源枚举
@@ -5500,7 +5572,19 @@ export declare enum SystemResId {
5500
5572
  /**
5501
5573
  * 管道
5502
5574
  */
5503
- Pipe = "79caea2506eb4a8ee18c22cb140858d4"
5575
+ Pipe = "79caea2506eb4a8ee18c22cb140858d4",
5576
+ /**
5577
+ * 视频融合
5578
+ */
5579
+ VideoFusion = "92a4a0a402d75faff81be6fd1a38123c",
5580
+ /**
5581
+ * 视频融合默认贴图
5582
+ */
5583
+ VideoFusionDefaultTexture = "8ef7bae1bf1a63a1bb902e8a9bd21549",
5584
+ /**
5585
+ * 视频融合透明度贴图
5586
+ */
5587
+ VideoFusionOpacityTexture = "f29a93b7c7a413ddbd8e5afe18c5afcf"
5504
5588
  }
5505
5589
  /**
5506
5590
  * 加法,返回一个新对象
@@ -6317,7 +6401,7 @@ export type MeshFaceData = {
6317
6401
  /**
6318
6402
  * 其它实体
6319
6403
  */
6320
- export type OtherEntity = Text3D | LeakLine | POI | Pipe;
6404
+ export type OtherEntity = Text3D | LeakLine | POI | Pipe | VideoFusion;
6321
6405
  export type ParticleData = {
6322
6406
  id?: string;
6323
6407
  name?: string;