@glowjs/core 2024.9.5 → 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.
- package/dist/glow.core.d.ts +41 -3
- package/dist/glow.core.js +1 -1
- package/dist/typings/entity/Floor.d.ts +4 -0
- package/dist/typings/entity/POI.d.ts +13 -1
- package/dist/typings/entity/Thing.d.ts +13 -1
- package/dist/typings/entity/component/Animator.d.ts +3 -0
- package/dist/typings/event/EventType.d.ts +9 -1
- package/package.json +1 -1
package/dist/glow.core.d.ts
CHANGED
|
@@ -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
|
* 应用
|
|
@@ -3050,6 +3053,10 @@ export declare class Floor extends Entity {
|
|
|
3050
3053
|
* 楼层高度
|
|
3051
3054
|
*/
|
|
3052
3055
|
height: number;
|
|
3056
|
+
/**
|
|
3057
|
+
* 墙默认厚度
|
|
3058
|
+
*/
|
|
3059
|
+
defaultWallThickness: number;
|
|
3053
3060
|
/**
|
|
3054
3061
|
* 是否总是显示内部结构
|
|
3055
3062
|
*/
|
|
@@ -3796,6 +3803,10 @@ export declare class POI extends Entity {
|
|
|
3796
3803
|
* 像素宽度
|
|
3797
3804
|
*/
|
|
3798
3805
|
pixWidth: number;
|
|
3806
|
+
/**
|
|
3807
|
+
* 是否默认隐藏
|
|
3808
|
+
*/
|
|
3809
|
+
defaultHidden: boolean;
|
|
3799
3810
|
/**
|
|
3800
3811
|
* 像素高度
|
|
3801
3812
|
*/
|
|
@@ -3809,6 +3820,8 @@ export declare class POI extends Entity {
|
|
|
3809
3820
|
private _pointerUpObserver;
|
|
3810
3821
|
private _mesh;
|
|
3811
3822
|
private _showBoundingBox;
|
|
3823
|
+
private _visable;
|
|
3824
|
+
private _pivot;
|
|
3812
3825
|
/**
|
|
3813
3826
|
* 上一次点击的时间点,用于计算双击事件
|
|
3814
3827
|
*/
|
|
@@ -3818,9 +3831,13 @@ export declare class POI extends Entity {
|
|
|
3818
3831
|
* @param app 应用
|
|
3819
3832
|
*/
|
|
3820
3833
|
constructor(app: App);
|
|
3821
|
-
private _visable;
|
|
3822
3834
|
get visable(): boolean;
|
|
3823
3835
|
set visable(value: boolean);
|
|
3836
|
+
/**
|
|
3837
|
+
* 获取或设置轴心点
|
|
3838
|
+
*/
|
|
3839
|
+
get pivot(): Point2D;
|
|
3840
|
+
set pivot(value: Point2D);
|
|
3824
3841
|
get pickable(): boolean;
|
|
3825
3842
|
set pickable(value: boolean);
|
|
3826
3843
|
get cursor(): string;
|
|
@@ -3834,6 +3851,7 @@ export declare class POI extends Entity {
|
|
|
3834
3851
|
private _build2D;
|
|
3835
3852
|
private _onResize;
|
|
3836
3853
|
private _build3D;
|
|
3854
|
+
private _updatePovit;
|
|
3837
3855
|
dispose(): void;
|
|
3838
3856
|
}
|
|
3839
3857
|
/**
|
|
@@ -4714,12 +4732,24 @@ export declare class Thing extends Entity {
|
|
|
4714
4732
|
* 父物体计算包围盒时是否排除此物体
|
|
4715
4733
|
*/
|
|
4716
4734
|
excludeBoundingBox: boolean;
|
|
4717
|
-
private _autoAnimationLoopIndex;
|
|
4718
4735
|
/**
|
|
4719
4736
|
* 获取或设置自动动画循环索引
|
|
4737
|
+
* @deprecated 已废弃,请使用新属性defaultAnimation
|
|
4720
4738
|
*/
|
|
4721
4739
|
get autoAnimationLoopIndex(): number;
|
|
4722
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);
|
|
4723
4753
|
protected _entites: InstantiatedEntries;
|
|
4724
4754
|
/**
|
|
4725
4755
|
* 是否包含实例网格
|
|
@@ -5174,7 +5204,15 @@ export declare enum EventType {
|
|
|
5174
5204
|
/**
|
|
5175
5205
|
* 实体释放前(Entity)
|
|
5176
5206
|
*/
|
|
5177
|
-
BeforeDispose = "BEFORE_DISPOSE"
|
|
5207
|
+
BeforeDispose = "BEFORE_DISPOSE",
|
|
5208
|
+
/**
|
|
5209
|
+
* 动画开始事件(Thing)
|
|
5210
|
+
*/
|
|
5211
|
+
AnimationStart = "ANIMATION_START",
|
|
5212
|
+
/**
|
|
5213
|
+
* 动画结束事件(Thing)
|
|
5214
|
+
*/
|
|
5215
|
+
AnimationEnd = "ANIMATION_END"
|
|
5178
5216
|
}
|
|
5179
5217
|
/**
|
|
5180
5218
|
* 模块
|