@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.
- package/dist/glow.core.d.ts +170 -5
- package/dist/glow.core.js +1 -1
- package/dist/typings/core/App.d.ts +4 -0
- package/dist/typings/entity/EntityType.d.ts +9 -1
- package/dist/typings/entity/LeakLine.d.ts +1 -1
- package/dist/typings/entity/OtherEntity.d.ts +3 -1
- package/dist/typings/entity/Pipe.d.ts +68 -0
- package/dist/typings/entity/VideoFusion.d.ts +61 -0
- package/dist/typings/entity/component/PathAnimation.d.ts +4 -0
- package/dist/typings/entity/component/roaming/Roaming.d.ts +7 -1
- package/dist/typings/index.d.ts +2 -0
- package/dist/typings/misc/SystemResId.d.ts +21 -1
- package/package.json +1 -1
|
@@ -3,10 +3,12 @@ import { Entity } from './Entity';
|
|
|
3
3
|
import { LeakLine } from './LeakLine';
|
|
4
4
|
import { Text3D } from './Text3D';
|
|
5
5
|
import { POI } from './POI';
|
|
6
|
+
import { Pipe } from './Pipe';
|
|
7
|
+
import { VideoFusion } from './VideoFusion';
|
|
6
8
|
/**
|
|
7
9
|
* 其它实体
|
|
8
10
|
*/
|
|
9
|
-
export type OtherEntity = Text3D | LeakLine | POI;
|
|
11
|
+
export type OtherEntity = Text3D | LeakLine | POI | Pipe | VideoFusion;
|
|
10
12
|
/**
|
|
11
13
|
* 判断实体是否为其它实体
|
|
12
14
|
* @param entity 实体
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
import { App } from "../core/App";
|
|
2
|
+
import { Point3D } from "../misc";
|
|
3
|
+
import { Entity } from "./Entity";
|
|
4
|
+
/**
|
|
5
|
+
* 管道
|
|
6
|
+
*/
|
|
7
|
+
export declare class Pipe extends Entity {
|
|
8
|
+
/**
|
|
9
|
+
* 默认半径
|
|
10
|
+
*/
|
|
11
|
+
static defaultRadius: number;
|
|
12
|
+
/**
|
|
13
|
+
* 点集
|
|
14
|
+
*/
|
|
15
|
+
readonly points: Point3D[];
|
|
16
|
+
/**
|
|
17
|
+
* 贴图ID
|
|
18
|
+
*/
|
|
19
|
+
textureId: string;
|
|
20
|
+
private _material;
|
|
21
|
+
private _animationSpeed;
|
|
22
|
+
private _radius;
|
|
23
|
+
/**
|
|
24
|
+
* 是否默认隐藏
|
|
25
|
+
*/
|
|
26
|
+
defaultHidden: boolean;
|
|
27
|
+
/**
|
|
28
|
+
* 实例化一个管道对象
|
|
29
|
+
* @param app 应用
|
|
30
|
+
*/
|
|
31
|
+
constructor(app: App);
|
|
32
|
+
/**
|
|
33
|
+
* 获取或设置动画速度
|
|
34
|
+
*/
|
|
35
|
+
get animationSpeed(): number;
|
|
36
|
+
set animationSpeed(value: number);
|
|
37
|
+
/**
|
|
38
|
+
* 获取或设置半径
|
|
39
|
+
*/
|
|
40
|
+
get radius(): number;
|
|
41
|
+
set radius(value: number);
|
|
42
|
+
/**
|
|
43
|
+
* 获取是否允许被冻结材质
|
|
44
|
+
*/
|
|
45
|
+
get canFreezeMaterial(): boolean;
|
|
46
|
+
/**
|
|
47
|
+
* 序列化成JSON对象
|
|
48
|
+
*/
|
|
49
|
+
toJson(): any;
|
|
50
|
+
/**
|
|
51
|
+
* 从JSON对象反序列化(仅生成层级树)
|
|
52
|
+
* @param json JSON对象
|
|
53
|
+
*/
|
|
54
|
+
fromJson(json: any): void;
|
|
55
|
+
/**
|
|
56
|
+
* 创建(仅当前层级可见对象)
|
|
57
|
+
* @param force 是否强制
|
|
58
|
+
*/
|
|
59
|
+
build(force?: boolean): Promise<void>;
|
|
60
|
+
/**
|
|
61
|
+
* 拆毁
|
|
62
|
+
*/
|
|
63
|
+
unbuild(): void;
|
|
64
|
+
/**
|
|
65
|
+
* 释放
|
|
66
|
+
*/
|
|
67
|
+
dispose(): void;
|
|
68
|
+
}
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
import { App } from "../core/App";
|
|
2
|
+
import { Entity } from "./Entity";
|
|
3
|
+
/**
|
|
4
|
+
* 视频融合
|
|
5
|
+
*/
|
|
6
|
+
export declare class VideoFusion extends Entity {
|
|
7
|
+
private _width;
|
|
8
|
+
private _height;
|
|
9
|
+
private _mesh;
|
|
10
|
+
private _material;
|
|
11
|
+
private _coverTexture;
|
|
12
|
+
private _opacityTexture;
|
|
13
|
+
private _videoTexture;
|
|
14
|
+
private _smoothing;
|
|
15
|
+
private _visable;
|
|
16
|
+
/**
|
|
17
|
+
* 是否默认隐藏
|
|
18
|
+
*/
|
|
19
|
+
defaultHidden: boolean;
|
|
20
|
+
/**
|
|
21
|
+
* 封面贴图ID
|
|
22
|
+
*/
|
|
23
|
+
textureId: string;
|
|
24
|
+
/**
|
|
25
|
+
* 透明度贴图ID
|
|
26
|
+
*/
|
|
27
|
+
opacityTextureId: string;
|
|
28
|
+
/**
|
|
29
|
+
* 父物体计算包围盒时是否排除此物体
|
|
30
|
+
*/
|
|
31
|
+
excludeBoundingBox: boolean;
|
|
32
|
+
/**
|
|
33
|
+
* 实例化一个视频融合对象
|
|
34
|
+
* @param app 应用实例
|
|
35
|
+
*/
|
|
36
|
+
constructor(app: App);
|
|
37
|
+
get visable(): boolean;
|
|
38
|
+
set visable(value: boolean);
|
|
39
|
+
/**
|
|
40
|
+
* 获取是否允许被冻结材质
|
|
41
|
+
*/
|
|
42
|
+
get canFreezeMaterial(): boolean;
|
|
43
|
+
/**
|
|
44
|
+
* 获取或设置是否平滑
|
|
45
|
+
*/
|
|
46
|
+
get smoothing(): boolean;
|
|
47
|
+
set smoothing(value: boolean);
|
|
48
|
+
/**
|
|
49
|
+
* 序列化成JSON对象
|
|
50
|
+
*/
|
|
51
|
+
toJson(): any;
|
|
52
|
+
fromJson(json: any): void;
|
|
53
|
+
build(force?: boolean): Promise<void>;
|
|
54
|
+
unbuild(): void;
|
|
55
|
+
dispose(): void;
|
|
56
|
+
/**
|
|
57
|
+
* 设置视频源(需要自行控制播放)
|
|
58
|
+
* @param video 视频源
|
|
59
|
+
*/
|
|
60
|
+
setVideoSource(video: HTMLVideoElement | null): void;
|
|
61
|
+
}
|
|
@@ -2,6 +2,7 @@ import { EventArg } from '../../../event/EventArg';
|
|
|
2
2
|
import { Point3D } from '../../../misc';
|
|
3
3
|
import { Entity } from '../../Entity';
|
|
4
4
|
import { Path } from '../../Path';
|
|
5
|
+
import { Thing } from '../../Thing';
|
|
5
6
|
import { Component } from '../Component';
|
|
6
7
|
/**
|
|
7
8
|
* 漫游
|
|
@@ -16,12 +17,17 @@ export declare class Roaming extends Component {
|
|
|
16
17
|
/**
|
|
17
18
|
* 角色
|
|
18
19
|
*/
|
|
19
|
-
|
|
20
|
+
_character: Thing;
|
|
20
21
|
/**
|
|
21
22
|
* 路径动画
|
|
22
23
|
*/
|
|
23
24
|
private _pathAnimation;
|
|
24
25
|
private _appEvents;
|
|
26
|
+
/**
|
|
27
|
+
* 获取或设置垂直偏移
|
|
28
|
+
*/
|
|
29
|
+
get offsetY(): number;
|
|
30
|
+
set offsetY(value: number);
|
|
25
31
|
/**
|
|
26
32
|
* 实例化一个漫游对象
|
|
27
33
|
* @param entity 实体对象
|
package/dist/typings/index.d.ts
CHANGED
|
@@ -55,6 +55,8 @@ export { Group } from './entity/Group';
|
|
|
55
55
|
export { Thing } from './entity/Thing';
|
|
56
56
|
export { DecorateGrid } from './entity/DecorateGrid';
|
|
57
57
|
export { POI } from './entity/POI';
|
|
58
|
+
export { Pipe } from './entity/Pipe';
|
|
59
|
+
export { VideoFusion } from './entity/VideoFusion';
|
|
58
60
|
export { Component } from './entity/component/Component';
|
|
59
61
|
export { Style } from './entity/component/Style';
|
|
60
62
|
export { Animator } from './entity/component/Animator';
|
|
@@ -81,5 +81,25 @@ export declare enum SystemResId {
|
|
|
81
81
|
/**
|
|
82
82
|
* 装饰线框
|
|
83
83
|
*/
|
|
84
|
-
DecorateGrid = "aeb46e27018fa8aef1ab9809c442167f"
|
|
84
|
+
DecorateGrid = "aeb46e27018fa8aef1ab9809c442167f",
|
|
85
|
+
/**
|
|
86
|
+
* 默认管道贴图
|
|
87
|
+
*/
|
|
88
|
+
DefaultPipeTexture = "bd276fe64d6f7270f246195792285af0",
|
|
89
|
+
/**
|
|
90
|
+
* 管道
|
|
91
|
+
*/
|
|
92
|
+
Pipe = "79caea2506eb4a8ee18c22cb140858d4",
|
|
93
|
+
/**
|
|
94
|
+
* 视频融合
|
|
95
|
+
*/
|
|
96
|
+
VideoFusion = "92a4a0a402d75faff81be6fd1a38123c",
|
|
97
|
+
/**
|
|
98
|
+
* 视频融合默认贴图
|
|
99
|
+
*/
|
|
100
|
+
VideoFusionDefaultTexture = "8ef7bae1bf1a63a1bb902e8a9bd21549",
|
|
101
|
+
/**
|
|
102
|
+
* 视频融合透明度贴图
|
|
103
|
+
*/
|
|
104
|
+
VideoFusionOpacityTexture = "f29a93b7c7a413ddbd8e5afe18c5afcf"
|
|
85
105
|
}
|