@glowjs/core 2024.9.14 → 2024.9.21

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.
@@ -659,6 +659,8 @@ declare enum ToneMappingType {
659
659
  * 动画组件
660
660
  */
661
661
  export declare class Animator extends Component {
662
+ private _playObserves;
663
+ private _endObserves;
662
664
  /**
663
665
  * 实例化一个动画组件对象
664
666
  * @param entity 实体
@@ -696,6 +698,7 @@ export declare class Animator extends Component {
696
698
  set doorState(value: boolean);
697
699
  _updateAll(): void;
698
700
  _unbuild(): void;
701
+ _setEvents(): void;
699
702
  }
700
703
  /**
701
704
  * 应用
@@ -3800,6 +3803,10 @@ export declare class POI extends Entity {
3800
3803
  * 像素宽度
3801
3804
  */
3802
3805
  pixWidth: number;
3806
+ /**
3807
+ * 是否默认隐藏
3808
+ */
3809
+ defaultHidden: boolean;
3803
3810
  /**
3804
3811
  * 像素高度
3805
3812
  */
@@ -3813,6 +3820,8 @@ export declare class POI extends Entity {
3813
3820
  private _pointerUpObserver;
3814
3821
  private _mesh;
3815
3822
  private _showBoundingBox;
3823
+ private _visable;
3824
+ private _pivot;
3816
3825
  /**
3817
3826
  * 上一次点击的时间点,用于计算双击事件
3818
3827
  */
@@ -3822,9 +3831,13 @@ export declare class POI extends Entity {
3822
3831
  * @param app 应用
3823
3832
  */
3824
3833
  constructor(app: App);
3825
- private _visable;
3826
3834
  get visable(): boolean;
3827
3835
  set visable(value: boolean);
3836
+ /**
3837
+ * 获取或设置轴心点
3838
+ */
3839
+ get pivot(): Point2D;
3840
+ set pivot(value: Point2D);
3828
3841
  get pickable(): boolean;
3829
3842
  set pickable(value: boolean);
3830
3843
  get cursor(): string;
@@ -3838,6 +3851,7 @@ export declare class POI extends Entity {
3838
3851
  private _build2D;
3839
3852
  private _onResize;
3840
3853
  private _build3D;
3854
+ private _updatePovit;
3841
3855
  dispose(): void;
3842
3856
  }
3843
3857
  /**
@@ -4718,12 +4732,24 @@ export declare class Thing extends Entity {
4718
4732
  * 父物体计算包围盒时是否排除此物体
4719
4733
  */
4720
4734
  excludeBoundingBox: boolean;
4721
- private _autoAnimationLoopIndex;
4722
4735
  /**
4723
4736
  * 获取或设置自动动画循环索引
4737
+ * @deprecated 已废弃,请使用新属性defaultAnimation
4724
4738
  */
4725
4739
  get autoAnimationLoopIndex(): number;
4726
4740
  set autoAnimationLoopIndex(value: number);
4741
+ private _defaultAnimation;
4742
+ /**
4743
+ * 获取或设置默认动画
4744
+ */
4745
+ get defaultAnimation(): {
4746
+ index: number;
4747
+ loop: boolean;
4748
+ } | null;
4749
+ set defaultAnimation(value: {
4750
+ index: number;
4751
+ loop: boolean;
4752
+ } | null);
4727
4753
  protected _entites: InstantiatedEntries;
4728
4754
  /**
4729
4755
  * 是否包含实例网格
@@ -5178,7 +5204,15 @@ export declare enum EventType {
5178
5204
  /**
5179
5205
  * 实体释放前(Entity)
5180
5206
  */
5181
- BeforeDispose = "BEFORE_DISPOSE"
5207
+ BeforeDispose = "BEFORE_DISPOSE",
5208
+ /**
5209
+ * 动画开始事件(Thing)
5210
+ */
5211
+ AnimationStart = "ANIMATION_START",
5212
+ /**
5213
+ * 动画结束事件(Thing)
5214
+ */
5215
+ AnimationEnd = "ANIMATION_END"
5182
5216
  }
5183
5217
  /**
5184
5218
  * 模块