@glowjs/core 2024.9.25 → 2024.10.31
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 +85 -4
- package/dist/glow.core.js +1 -1
- package/dist/typings/core/App.d.ts +4 -0
- package/dist/typings/entity/EntityType.d.ts +5 -1
- package/dist/typings/entity/LeakLine.d.ts +1 -1
- package/dist/typings/entity/OtherEntity.d.ts +2 -1
- package/dist/typings/entity/Pipe.d.ts +68 -0
- package/dist/typings/index.d.ts +1 -0
- package/dist/typings/misc/SystemResId.d.ts +9 -1
- package/package.json +1 -1
package/dist/glow.core.d.ts
CHANGED
|
@@ -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;
|
|
@@ -3951,6 +3955,71 @@ export declare class PathAnimation extends Component {
|
|
|
3951
3955
|
*/
|
|
3952
3956
|
dispose(): void;
|
|
3953
3957
|
}
|
|
3958
|
+
/**
|
|
3959
|
+
* 管道
|
|
3960
|
+
*/
|
|
3961
|
+
export declare class Pipe extends Entity {
|
|
3962
|
+
/**
|
|
3963
|
+
* 默认半径
|
|
3964
|
+
*/
|
|
3965
|
+
static defaultRadius: number;
|
|
3966
|
+
/**
|
|
3967
|
+
* 点集
|
|
3968
|
+
*/
|
|
3969
|
+
readonly points: Point3D[];
|
|
3970
|
+
/**
|
|
3971
|
+
* 贴图ID
|
|
3972
|
+
*/
|
|
3973
|
+
textureId: string;
|
|
3974
|
+
private _material;
|
|
3975
|
+
private _animationSpeed;
|
|
3976
|
+
private _radius;
|
|
3977
|
+
/**
|
|
3978
|
+
* 是否默认隐藏
|
|
3979
|
+
*/
|
|
3980
|
+
defaultHidden: boolean;
|
|
3981
|
+
/**
|
|
3982
|
+
* 实例化一个管道对象
|
|
3983
|
+
* @param app 应用
|
|
3984
|
+
*/
|
|
3985
|
+
constructor(app: App);
|
|
3986
|
+
/**
|
|
3987
|
+
* 获取或设置动画速度
|
|
3988
|
+
*/
|
|
3989
|
+
get animationSpeed(): number;
|
|
3990
|
+
set animationSpeed(value: number);
|
|
3991
|
+
/**
|
|
3992
|
+
* 获取或设置半径
|
|
3993
|
+
*/
|
|
3994
|
+
get radius(): number;
|
|
3995
|
+
set radius(value: number);
|
|
3996
|
+
/**
|
|
3997
|
+
* 获取是否允许被冻结材质
|
|
3998
|
+
*/
|
|
3999
|
+
get canFreezeMaterial(): boolean;
|
|
4000
|
+
/**
|
|
4001
|
+
* 序列化成JSON对象
|
|
4002
|
+
*/
|
|
4003
|
+
toJson(): any;
|
|
4004
|
+
/**
|
|
4005
|
+
* 从JSON对象反序列化(仅生成层级树)
|
|
4006
|
+
* @param json JSON对象
|
|
4007
|
+
*/
|
|
4008
|
+
fromJson(json: any): void;
|
|
4009
|
+
/**
|
|
4010
|
+
* 创建(仅当前层级可见对象)
|
|
4011
|
+
* @param force 是否强制
|
|
4012
|
+
*/
|
|
4013
|
+
build(force?: boolean): Promise<void>;
|
|
4014
|
+
/**
|
|
4015
|
+
* 拆毁
|
|
4016
|
+
*/
|
|
4017
|
+
unbuild(): void;
|
|
4018
|
+
/**
|
|
4019
|
+
* 释放
|
|
4020
|
+
*/
|
|
4021
|
+
dispose(): void;
|
|
4022
|
+
}
|
|
3954
4023
|
/**
|
|
3955
4024
|
* 预置墙
|
|
3956
4025
|
*/
|
|
@@ -5022,7 +5091,11 @@ export declare enum EntityType {
|
|
|
5022
5091
|
/**
|
|
5023
5092
|
* POI标记
|
|
5024
5093
|
*/
|
|
5025
|
-
POI = 32768
|
|
5094
|
+
POI = 32768,
|
|
5095
|
+
/**
|
|
5096
|
+
* 管道
|
|
5097
|
+
*/
|
|
5098
|
+
Pipe = 65536
|
|
5026
5099
|
}
|
|
5027
5100
|
/**
|
|
5028
5101
|
* 环境贴图资源枚举
|
|
@@ -5419,7 +5492,15 @@ export declare enum SystemResId {
|
|
|
5419
5492
|
/**
|
|
5420
5493
|
* 装饰线框
|
|
5421
5494
|
*/
|
|
5422
|
-
DecorateGrid = "aeb46e27018fa8aef1ab9809c442167f"
|
|
5495
|
+
DecorateGrid = "aeb46e27018fa8aef1ab9809c442167f",
|
|
5496
|
+
/**
|
|
5497
|
+
* 默认管道贴图
|
|
5498
|
+
*/
|
|
5499
|
+
DefaultPipeTexture = "bd276fe64d6f7270f246195792285af0",
|
|
5500
|
+
/**
|
|
5501
|
+
* 管道
|
|
5502
|
+
*/
|
|
5503
|
+
Pipe = "79caea2506eb4a8ee18c22cb140858d4"
|
|
5423
5504
|
}
|
|
5424
5505
|
/**
|
|
5425
5506
|
* 加法,返回一个新对象
|
|
@@ -6236,7 +6317,7 @@ export type MeshFaceData = {
|
|
|
6236
6317
|
/**
|
|
6237
6318
|
* 其它实体
|
|
6238
6319
|
*/
|
|
6239
|
-
export type OtherEntity = Text3D | LeakLine | POI;
|
|
6320
|
+
export type OtherEntity = Text3D | LeakLine | POI | Pipe;
|
|
6240
6321
|
export type ParticleData = {
|
|
6241
6322
|
id?: string;
|
|
6242
6323
|
name?: string;
|